:root {
    --primary-color: #007AFF;
    --secondary-color: #8E8E93;
    --text-color: #1D1D1F;
    --background-color: #F5F5F7;
    --card-background: #FFFFFF;
    --nav-blur-background: rgba(255, 255, 255, 0.72);
    --border-radius-lg: 20px;
    --border-radius-md: 14px;
    --border-radius-sm: 10px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: #F5F5F7;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 122, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(0, 122, 255, 0.03) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-blur-background);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: none;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    height: 36px;
}

.logo img {
    height: 100%;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: none;
    -webkit-text-fill-color: var(--text-color);
}

.hero p {
    font-size: 1.35rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Works Section */
.works {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: transparent;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.work-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-item h4 {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-color);
}

.work-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(245, 245, 247, 0.5) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    right: -20%;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    margin-top: 2.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 800px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: transparent;
}

.contact-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(250, 250, 252, 0.9) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    margin-top: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: none;
}

.button:hover {
    background: #0071E3;
    transform: none;
    box-shadow: none;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--secondary-color);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.credit {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.swissartz-logo {
    height: 24px;
    width: auto;
    transition: var(--transition);
}

.animated-text {
    position: relative;
    display: inline-block;
}

.text-wrapper {
    position: relative;
    display: inline-block;
}

.letter {
    display: inline-block;
    line-height: 1em;
}

.credit a:hover {
    color: #1D4ED8;
}

.credit a:hover .swissartz-logo {
    transform: rotate(360deg);
}

/* Section Headers */
h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

h3::before {
    content: '';
    position: absolute;
    left: -20%;
    top: -100%;
    width: 140%;
    height: 300%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
    z-index: -1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 247, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: auto;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 3% auto;
    padding: 32px;
    width: 90%;
    max-width: 1280px;
    border-radius: var(--border-radius-lg);
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    color: var(--secondary-color);
    z-index: 1;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(243, 244, 246, 0.8);
}

.close:hover {
    background: rgba(229, 231, 235, 0.9);
    color: var(--text-color);
}

.modal-gallery {
    position: relative;
    width: 100%;
    height: 600px;
    margin-bottom: 32px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #F3F4F6;
}

.gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-container img.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.modal-info {
    padding: 32px;
    background: linear-gradient(
        180deg,
        rgba(245, 245, 247, 0.6) 0%,
        rgba(250, 250, 252, 0.8) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: 1.5rem;
}

.modal-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.modal-description {
    line-height: 1.8;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero h2 {
        font-size: 2.75rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 24px;
    }

    .modal-gallery {
        height: 400px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Sektion-Hintergründe */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            ellipse at top center,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(255, 255, 255, 0) 60%
        );
    pointer-events: none;
    z-index: 0;
}

.visitor-sticker {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: rotate(-5deg);
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
    min-width: 280px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.visitor-sticker[data-maximized="true"] .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 1;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    position: relative;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.contact-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.visitor-sticker.minimized {
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: scale(0);
    visibility: hidden;
    pointer-events: none;
    border: none;
    background: none;
    box-shadow: none;
}

.visitor-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visitor-number {
    font-size: 1.2rem;
    font-weight: 500;
}

.visit-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.minimized-indicator {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #FFBD2E;
    border: 1px solid #DEA123;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.minimized-indicator.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.minimized-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.minimized-indicator::before {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9A5F00;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.minimized-indicator:hover::before {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.minimized-indicator.active {
    animation: pulse 2s infinite;
}

.mac-window-buttons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.mac-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.mac-button:hover::before {
    opacity: 1;
}

.mac-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mac-close {
    background: #FF5F56;
    border: 1px solid #E0443E;
}

.mac-close::before {
    content: '×';
    font-size: 12px;
    color: #820300;
}

.mac-minimize {
    background: #FFBD2E;
    border: 1px solid #DEA123;
}

.mac-minimize::before {
    content: '−';
    font-size: 12px;
    color: #9A5F00;
}

.mac-maximize {
    background: #27C93F;
    border: 1px solid #1DAD2B;
}

.mac-maximize::before {
    content: '+';
    font-size: 12px;
    color: #006500;
}

@keyframes stickerAppear {
    from {
        transform: scale(0);
        opacity: 0;
        visibility: hidden;
    }
    to {
        transform: rotate(-5deg);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes stickerDisappear {
    from {
        transform: rotate(-5deg);
        opacity: 1;
        visibility: visible;
    }
    to {
        transform: scale(0);
        opacity: 0;
        visibility: hidden;
    }
}

.copy-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    right: 0;
    top: -30px;
}

.contact-item:hover .copy-tooltip {
    opacity: 1;
} 