/* ================================================
   PC DIGITAL — v5 — All Gemini fixes applied
   ================================================ */

:root {
    --bg: #0f0f0f;
    --bg-dark: #0a0a0a;
    --bg-grey: #151515;
    --bg-card: #1a1a1a;
    --bg-border: #252525;
    --text: #f0f0f0;
    --text-grey: #a0a0a0;
    --text-mid: #555;
    --accent: #c8c8c8;
    --font-sans: 'Archivo', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overscroll-behavior: none; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-text {
    font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800;
    letter-spacing: 0.25em; display: block; margin-bottom: 1.5rem;
    opacity: 0; transform: translateY(10px);
    animation: preloaderFadeIn 0.8s ease 0.2s forwards;
}
@keyframes preloaderFadeIn { to { opacity: 1; transform: translateY(0); } }
.preloader-bar { width: 120px; height: 1px; background: var(--bg-border); overflow: hidden; margin: 0 auto; }
.preloader-progress { width: 0; height: 100%; background: var(--text); transition: width 0.2s linear; }

/* ===== NAVIGATION ===== */
#main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 clamp(1rem, 4vw, 3rem);
    transition: background 0.3s, backdrop-filter 0.3s;
    background: transparent;
}
#main-header.scrolled {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-wrapper {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h);
}
.nav-logo { display: flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.1em; transition: transform 0.3s; }
#main-header.scrolled .nav-logo { transform: scale(0.9); }
.logo-sub { font-size: 0.65rem; font-weight: 300; color: var(--text-grey); letter-spacing: 0.2em; }
.nav-links { display: flex; gap: 3.5rem; }
.nav-links a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; position: relative; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--text); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--text-grey); }
.nav-num { font-size: 0.55rem; color: #444; margin-right: 4px; vertical-align: super; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-switcher { display: flex; gap: 2px; }
.lang-btn { font-size: 0.65rem; font-weight: 600; padding: 4px 8px; letter-spacing: 0.06em; border: 1px solid transparent; border-radius: 2px; transition: all 0.2s; color: var(--text-mid); }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--text); border-color: var(--text-mid); background: rgba(255,255,255,0.05); border-radius: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; height: 20px; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--text); transition: all 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }
/* ===== MOBILE MENU — Slide from right ===== */
.mobile-menu {
    position: fixed; top: 0; right: 0; z-index: 999;
    width: clamp(280px, 50vw, 400px);
    height: 100vh;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex; flex-direction: column;
    padding: 6rem 2rem 2rem;
}
.mobile-menu.active { transform: translateX(0); }
/* Backdrop overlay */
.mobile-backdrop {
    position: fixed; inset: 0; z-index: 998;
    background: rgba(0,0,0,0.6);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-backdrop.active { opacity: 1; pointer-events: auto; }
/* Close button */
.mobile-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 32px; height: 32px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.mobile-close::before, .mobile-close::after {
    content: ''; position: absolute;
    width: 24px; height: 1.5px; background: var(--text);
}
.mobile-close::before { transform: rotate(45deg); }
.mobile-close::after { transform: rotate(-45deg); }
.mobile-nav-links { margin-top: auto; }
.mobile-nav-links li { margin-bottom: 2rem; }
.mobile-nav-links a { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.mobile-lang { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 2rem; }
@media (min-width: 769px) {
    .mobile-menu { width: clamp(300px, 30vw, 500px); }
}
@media (max-width: 768px) { .nav-links, .lang-switcher { display: none; } .nav-toggle { display: flex; } }

/* ===== FOOTER — LEFT ALIGNED ===== */
#footer-fixed {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 100vh; z-index: 0;
}
/* On subpages, footer is static (no content-wrapper overlay) */
body.subpage #footer-fixed {
    position: relative;
    height: auto;
    min-height: 50vh;
    z-index: 1;
}
.footer-bg { position: absolute; inset: 0; overflow: hidden; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: brightness(0.45) grayscale(20%); }
.footer-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 0%, rgba(15,15,15,0.3) 40%, rgba(15,15,15,0.85) 100%); }
.footer-content {
    position: relative; z-index: 2; width: 100%; height: 100%;
    max-width: 1400px; margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.footer-left {
    position: absolute; bottom: 2rem; left: clamp(1rem, 4vw, 3rem);
    font-size: 0.85rem; color: var(--text-grey);
}
.footer-logo { font-weight: 800; font-size: 1rem; letter-spacing: 0.1em; color: var(--text); margin-bottom: 0.5rem; }
.footer-logo-sub { font-size: 0.5rem; font-weight: 300; letter-spacing: 0.2em; }
.footer-copy { margin-bottom: 0.8rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-grey); transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-center {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.footer-marquee {
    overflow: hidden; white-space: nowrap;
    font-size: clamp(3rem, 9vw, 9rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase; width: 100%;
}
.marquee-sep {
    display: inline-block; width: clamp(2rem, 5vw, 5rem); height: clamp(0.5rem, 1vw, 0.8rem);
    background: var(--text); border-radius: 2px;
    vertical-align: middle; margin: 0 clamp(1rem, 3vw, 3rem);
}
.footer-email {
    font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700;
    letter-spacing: 0.02em; border-bottom: 2px solid var(--text);
    padding-bottom: 4px; transition: color 0.3s; margin-top: 2rem;
}
.footer-email:hover { color: var(--accent); }
.footer-right {
    position: absolute; bottom: 2rem; right: clamp(1rem, 4vw, 3rem);
    font-size: 0.85rem;
}
.footer-phone { color: var(--text-grey); transition: color 0.3s; }
.footer-phone:hover { color: var(--text); }
@media (max-width: 768px) {
    .footer-left { position: relative; bottom: auto; left: auto; text-align: center; padding-top: 2rem; }
    .footer-right { display: none; }
}

#content-wrapper { position: relative; z-index: 1; background: var(--bg); }

/* ===== HERO ===== */
.sec-hero {
    position: relative; height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.55) saturate(0.85) contrast(1.05);
    transform: scale(1.1); will-change: transform;
}
.hero-gradient-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 30vh; background: linear-gradient(transparent, var(--bg)); z-index: 10; }
.hero-gradient-top { position: absolute; top: 0; left: 0; right: 0; height: 12vh; background: linear-gradient(var(--bg), transparent); z-index: 10; }
.hero-marquee {
    position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); z-index: 7;
    overflow: hidden; white-space: nowrap;
    font-size: clamp(4rem, 10vw, 10rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase;
    color: var(--text); opacity: 0.12; pointer-events: none;
    line-height: 1.1;
}
.marquee-track { display: inline-flex; align-items: center; animation: marquee 40s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-claim {
    position: relative; z-index: 10;
    padding: 0 clamp(1rem, 4vw, 3rem);
    margin-bottom: 8vh;
    max-width: 550px; width: 100%;
    font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 300; line-height: 1.5;
    color: var(--text);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}
.hero-claim.visible { opacity: 1; transform: translateY(0); }
.hero-claim em { font-style: italic; font-family: var(--font-serif); }
@media (max-width: 768px) {
    .hero-marquee { font-size: clamp(3rem, 15vw, 6rem); }
    .hero-claim { margin-bottom: 4vh; font-size: 1rem; max-width: 90%; }
}

/* ===== WENN-SECTION ===== */
.sec-wenn {
    min-height: 100vh; display: flex; align-items: center;
    padding: 10rem clamp(1rem, 4vw, 3rem);
    background: var(--bg-grey); position: relative; overflow: hidden;
}
.wenn-texts { max-width: 1100px; }
.wenn-line {
    font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 400;
    font-family: var(--font-serif);
    line-height: 1.5; margin-bottom: 3rem; color: var(--text-grey);
    opacity: 0; transform: translateX(-8%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.wenn-line.visible { opacity: 1; transform: translateX(0); }
.wenn-line em { font-style: italic; color: var(--text); font-weight: 400; }
.wenn-line-2 { padding-left: clamp(2rem, 7vw, 7rem); transition-delay: 0.15s; }
.wenn-line-3 { padding-left: clamp(4rem, 14vw, 14rem); transition-delay: 0.3s; }
.sec-wenn::before {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.04; pointer-events: none;
    width: 500px; height: 500px; top: 10%; left: -10%;
    background: radial-gradient(circle, rgba(200,200,200,0.4), transparent);
}
@media (max-width: 768px) {
    .wenn-line { font-size: 1.2rem; }
    .wenn-line-2 { padding-left: 1rem; }
    .wenn-line-3 { padding-left: 2rem; }
}

/* ===== NAME SECTION — MASONRY GRID + PARALLAX ===== */
.sec-name { position: relative; height: 160vh; overflow: hidden; background: var(--bg); }
.name-sticky {
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.name-heading {
    position: absolute; z-index: 5;
    font-size: clamp(5rem, 14vw, 14rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase;
    text-align: center; line-height: 0.9;
    background: linear-gradient(135deg, #e0e0e0, #ffffff, #c8c8c8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-shadow: none;
    opacity: 0; transform: scale(0.95);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.name-heading.visible { opacity: 1; transform: scale(1); }
.name-line { display: block; }
.name-overlay { position: absolute; inset: 0; z-index: 3; background: rgba(15, 15, 15, 0.25); }
.name-images {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px; width: 100%; height: 100%; padding: 0 1rem;
}
.name-img {
    overflow: hidden;
    opacity: 0; transform: scale(1.1) translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.name-img.visible { opacity: 1; transform: scale(1) translateY(0); }
.name-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(15%) brightness(0.85) saturate(0.8);
}
/* Staggered delays */
.name-img:nth-child(1) { transition-delay: 0s; }
.name-img:nth-child(2) { transition-delay: 0.06s; }
.name-img:nth-child(3) { transition-delay: 0.12s; }
.name-img:nth-child(4) { transition-delay: 0.04s; }
.name-img:nth-child(5) { transition-delay: 0.10s; }
.name-img:nth-child(6) { transition-delay: 0.16s; }
.name-img:nth-child(7) { transition-delay: 0.08s; }
.name-img:nth-child(8) { transition-delay: 0.14s; }
.name-img:nth-child(9) { transition-delay: 0.20s; }
.name-img:nth-child(10) { transition-delay: 0.12s; }
.name-img:nth-child(11) { transition-delay: 0.18s; }
.name-img:nth-child(12) { transition-delay: 0.24s; }
/* Masonry: vary heights */
.name-img-1 { grid-row: span 2; }
.name-img-4 { grid-row: span 2; }
.name-img-7 { grid-row: span 2; }
.name-img-10 { grid-row: span 2; }
@media (max-width: 768px) {
    .name-images { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .name-img-3, .name-img-6, .name-img-9, .name-img-12 { display: none; }
    .sec-name { height: 130vh; }
    .name-heading { font-size: clamp(3rem, 14vw, 7rem); }
}

/* ===== ABOUT — Text left, Portrait right (also on mobile inline) ===== */
.sec-about { padding: 0; background: var(--bg); position: relative; overflow: visible; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 100vh; align-items: end;
    padding: 6rem clamp(1rem, 4vw, 3rem); gap: 0; position: relative;
}
.about-text-col { position: relative; z-index: 2; padding-right: 4rem; padding-bottom: 6rem; }
.about-portrait-col {
    display: flex; justify-content: flex-start;
    position: relative; z-index: 3;
    margin-left: -10vw; align-self: stretch; align-items: flex-end;
}
.about-portrait {
    aspect-ratio: 1.579 / 1; width: 100%; max-width: 550px;
    overflow: hidden; position: relative;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) brightness(0.9); }
.about-portrait::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 40%; background: linear-gradient(transparent, var(--bg));
}
.about-headline {
    font-size: clamp(2.2rem, 5.5vw, 5.5rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase;
    line-height: 1.0;
}
.about-headline-word {
    display: block; opacity: 0; transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.about-headline-word.visible { opacity: 1; transform: translateY(0); }
.about-serif-text {
    font-size: clamp(1.05rem, 1.8vw, 1.4rem); line-height: 1.7;
    color: #c8c8c8; font-weight: 400;
    font-family: var(--font-serif); font-style: italic;
    max-width: 480px;
    opacity: 0; transform: translateY(15px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.about-serif-text.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem; gap: 0; align-items: start;
    }
    .about-text-col { padding-right: 0; padding-bottom: 2rem; order: 2; }
    .about-portrait-col { margin-left: 0; order: 1; width: 100%; }
    .about-portrait { max-width: 100%; width: 100%; aspect-ratio: 1.579 / 1; }
    .about-headline { font-size: clamp(1.5rem, 6vw, 3rem); line-height: 1.05; }
}

/* ===== SERVICES — Scroll-driven horizontal cards wie Referenz ===== */
.sec-services { position: relative; background: rgb(20, 20, 20); }
.services-scroll-wrap { height: 500vh; position: relative; }
.services-sticky {
    position: sticky; top: 0; height: 100vh;
    overflow: hidden;
}

/* Background image — parallax */
.services-bg { position: absolute; inset: -20%; z-index: 0; }
.services-bg img {
    width: 100%; height: 140%; object-fit: cover;
    filter: brightness(0.6) saturate(0.7);
}
.services-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgb(20,20,20) 0%,
        rgba(20,20,20,0.05) 15%,
        rgba(20,20,20,0.15) 40%,
        rgba(20,20,20,0.35) 70%,
        rgb(20,20,20) 100%
    );
}

/* Intro text — top left, scrolls out */
.services-intro {
    position: absolute; z-index: 10;
    top: 15%; left: clamp(2rem, 6vw, 6rem);
    max-width: 500px;
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    line-height: 1.8; color: var(--text-grey);
}

/* Card viewport — overflow hidden, full width */
.services-card-viewport {
    position: absolute; z-index: 5;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    overflow: hidden;
    height: 55vh;
}
/* Card track — horizontal flex, animated by GSAP translateX */
.services-card-track {
    display: flex; gap: 0;
    height: 100%;
    padding: 0 10vw 0 45vw;  /* Start cards further right for more scroll */
    align-items: center;
}

/* Individual card — image top, icon+label bottom, smooth rotation */
.srv-card {
    flex-shrink: 0;
    width: clamp(180px, 19vw, 280px);
    height: clamp(260px, 36vh, 420px);
    border-radius: 16px;
    overflow: hidden;
    transform-origin: center center;
    display: flex; flex-direction: column;
    margin-right: clamp(30px, 4vw, 60px); /* Much larger gap for animation feel */
    text-decoration: none; color: inherit;
    will-change: transform, opacity;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.srv-card-img {
    height: 55%; overflow: hidden;
}
.srv-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    border-radius: 14px 14px 0 0;
}
.srv-card-bottom {
    height: 45%;
    background: rgba(245,245,245,0.95);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1rem 0.8rem;
    gap: 0.5rem;
    border-radius: 0 0 14px 14px;
}
.srv-card-icon svg {
    width: 28px; height: 28px;
    color: rgba(0,0,0,0.6);
}
.srv-card-label {
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    color: rgba(0,0,0,0.85);
}

/* Title — bottom-left, large, fading */
.services-title-ct {
    position: absolute; z-index: 8;
    bottom: 2rem; left: 0;
    padding: 0 clamp(2rem, 6vw, 6rem);
    pointer-events: none;
}
.services-title {
    font-size: clamp(4rem, 9vw, 9rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase;
    color: var(--text);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .services-scroll-wrap { height: 600vh; }
    .srv-card {
        width: clamp(180px, 55vw, 260px);
        height: clamp(240px, 38vh, 340px);
        margin-right: clamp(-20px, -5vw, 0px);
    }
    .services-card-viewport { height: 55vh; }
    .services-card-track { padding: 0 clamp(20px, 6vw, 40px); }
    .services-title { font-size: clamp(2rem, 12vw, 4rem); }
    .services-intro { font-size: 0.9rem; max-width: 90%; top: 8%; }
}

/* ===== STATS — SERIF TYPO ===== */
.sec-stats {
    min-height: 100vh; display: flex; align-items: center;
    padding: 10rem clamp(1rem, 4vw, 3rem);
    background: var(--bg-grey); position: relative;
}
.stats-content { width: 100%; max-width: 900px; }
.stat-block {
    margin-bottom: 4rem;
    opacity: 0; transform: translateY(3rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stat-block.visible { opacity: 1; transform: translateY(0); }
.stat-block-2 { padding-left: clamp(2rem, 10vw, 10rem); transition-delay: 0.15s; }
.stat-block-3 { padding-left: clamp(4rem, 20vw, 20rem); transition-delay: 0.3s; }
.stat-number {
    font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 800;
    line-height: 1; letter-spacing: -0.02em;
    color: var(--text-grey);
    font-family: var(--font-serif); font-style: italic;
}
.stat-plus {
    font-size: clamp(2rem, 5vw, 4rem); font-weight: 800;
    color: var(--text-grey);
    font-family: var(--font-serif);
}
.stat-label { display: block; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: 0.1em; margin-top: 0.3rem; color: var(--text); }
.stat-sub { display: block; font-size: 0.8rem; color: var(--text-mid); letter-spacing: 0.15em; text-transform: uppercase; }
/* Light orbs */
.sec-stats::before, .sec-stats::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.04; pointer-events: none;
}
.sec-stats::before { width: 400px; height: 400px; top: 15%; right: 5%; background: radial-gradient(circle, rgba(200,200,200,0.4), transparent); }
.sec-stats::after { width: 300px; height: 300px; bottom: 20%; left: 10%; background: radial-gradient(circle, rgba(200,200,200,0.3), transparent); }

/* Progress lines */
.progress-lines {
    position: fixed; left: clamp(1rem, 3vw, 3rem); top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 1rem; z-index: 100;
    opacity: 0; transition: opacity 0.5s;
}
.progress-line { width: 2px; height: 50px; background: var(--bg-border); border-radius: 1px; position: relative; overflow: hidden; }
.progress-line::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 0%; background: var(--text); transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-line.active::after { height: 100%; }
@media (max-width: 768px) {
    .progress-lines { top: auto; bottom: 2rem; left: 50%; transform: translateX(-50%); flex-direction: row; }
    .progress-line { width: 40px; height: 2px; }
    .stat-block-2, .stat-block-3 { padding-left: clamp(1rem, 5vw, 3rem); }
}

/* ===== TESTIMONIALS — CAROUSEL ===== */
.sec-testimonials {
    padding: 10rem clamp(1rem, 4vw, 3rem);
    background: var(--bg); position: relative;
}
.testimonials-heading {
    font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase;
    line-height: 1.0; margin-bottom: 4rem;
    max-width: 1400px; margin-left: auto; margin-right: auto;
}
.testimonials-heading-line {
    display: block; opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonials-heading-line.visible { opacity: 1; transform: translateY(0); }

.testimonials-carousel {
    display: flex; gap: 2rem;
    max-width: 1400px; margin: 0 auto;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
    scrollbar-width: none;
}
.testimonials-carousel::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 auto; width: 420px;
    background: var(--bg-card); border: 1px solid var(--bg-border);
    border-radius: 2px; padding: 3rem 2.5rem;
    scroll-snap-align: start;
    opacity: 1; transform: none;
}
.testimonial-card:nth-child(2) { transition-delay: 0s; }
.testimonial-card:nth-child(3) { transition-delay: 0s; }

.testimonial-stars { color: var(--text); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 1.5rem; opacity: 0.5; }
.testimonial-quote {
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7;
    color: var(--text-grey); margin-bottom: 2rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-border); display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-grey);
}
.testimonial-name { display: block; font-weight: 700; font-size: 0.9rem; }
.testimonial-role { display: block; font-size: 0.75rem; color: var(--text-mid); }

@media (max-width: 768px) {
    .testimonial-card { width: 300px; padding: 2rem 1.5rem; }
    .testimonials-heading { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block; padding: 14px 36px; background: var(--text); color: var(--bg);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: 2px; transition: all 0.3s;
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-outline {
    display: inline-block; padding: 14px 36px; border: 1px solid var(--text-mid); color: var(--text);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: 2px; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--text); transform: translateY(-2px); }

/* ===== REFERENZEN / PORTFOLIO ===== */
.sec-references {
    padding: 8rem clamp(1rem, 4vw, 3rem);
    background: var(--bg);
    position: relative;
}
.ref-header {
    max-width: 1400px; margin: 0 auto 4rem;
}
.ref-heading {
    font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase;
    line-height: 1.0; margin-bottom: 1.5rem;
}
.ref-heading-line {
    display: block; opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ref-heading-line.visible { opacity: 1; transform: translateY(0); }
.ref-sub {
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-grey); max-width: 500px;
}
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 22vw, 360px), 1fr));
    gap: 1.5rem;
    max-width: 1400px; margin: 0 auto;
}
.ref-card {
    display: block; text-decoration: none; color: inherit;
    background: var(--bg-card); border: 1px solid var(--bg-border);
    border-radius: 4px; overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.ref-card:hover { transform: translateY(-4px); border-color: var(--text-mid); }
.ref-screenshot {
    width: 100%; aspect-ratio: 16/9; overflow: hidden;
    border-bottom: 1px solid var(--bg-border);
}
.ref-screenshot img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    transition: transform 0.4s ease, filter 0.3s ease;
}
.ref-card:hover .ref-screenshot img { transform: scale(1.03); filter: brightness(1) saturate(1); }
.ref-info {
    padding: 1rem 1.2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.ref-name { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }
.ref-domain { font-size: 0.75rem; color: var(--text-mid); letter-spacing: 0.06em; }
@media (max-width: 768px) {
    .ref-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
    .ref-heading { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* ===== KONTAKT ===== */
.sec-contact {
    padding: 8rem clamp(1rem, 4vw, 3rem);
    background: var(--bg-grey);
    position: relative; z-index: 1;
}
.contact-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
}
.contact-heading {
    font-size: clamp(2rem, 4vw, 4rem); font-weight: 800;
    letter-spacing: -0.04em; text-transform: uppercase;
    line-height: 1.0; margin-bottom: 1.5rem;
}
.contact-desc {
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--text-grey); line-height: 1.7;
    margin-bottom: 2rem;
}
.contact-detail-link {
    display: block; font-size: 0.9rem; color: var(--text-grey);
    margin-bottom: 0.5rem; transition: color 0.3s;
}
.contact-detail-link:hover { color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { position: relative; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem 0;
    background: transparent; border: none; border-bottom: 1px solid var(--bg-border);
    color: var(--text); font-family: var(--font-sans); font-size: 0.95rem;
    outline: none; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--text); }
.form-group label {
    position: absolute; top: 1rem; left: 0;
    font-size: 0.85rem; color: var(--text-mid);
    transition: all 0.3s; pointer-events: none;
}
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.7rem; font-size: 0.7rem; color: var(--text-grey);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-privacy { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8rem; color: var(--text-mid); }
.form-privacy input { margin-top: 3px; }
.form-status { font-size: 0.85rem; margin-top: 0.5rem; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ===== SECTION TRANSITIONS ===== */
.sec-about, .sec-services, .sec-stats, .sec-testimonials, .sec-references, .sec-contact {
    position: relative;
}
/* Subtle gradient transitions between sections */
.sec-wenn::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none; z-index: 2;
}
.sec-about::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(var(--bg), transparent);
    pointer-events: none; z-index: 2;
}
.sec-services::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--bg-grey));
    pointer-events: none; z-index: 2;
}
.sec-stats::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(var(--bg-grey), transparent);
    pointer-events: none; z-index: 2;
}
.sec-testimonials::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none; z-index: 2;
}
.sec-references::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(var(--bg), transparent);
    pointer-events: none; z-index: 2;
}
.sec-contact::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none; z-index: 2;
}

/* ===== FOOTER VISIBILITY FIX ===== */
#content-wrapper {
    position: relative; z-index: 1;
    background: var(--bg);
    margin-bottom: 100vh; /* scroll into fixed footer at the end */
}
/* Last section fades into transparent so footer shows through */
.sec-contact {
    padding-bottom: 12rem;
    background: linear-gradient(var(--bg-grey), var(--bg));
}
.sec-contact::after {
    display: none;
}

/* ===== LOGIN BUTTON ===== */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 1rem;
    white-space: nowrap;
}
.nav-login-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.mobile-login-item {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
.mobile-login-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.mobile-login-item a:hover {
    background: var(--accent);
    color: var(--bg);
}
