/* ==========================================================================
   CLASH GROTESK FONTS LOADING (EXCLUSIVE)
   ========================================================================== */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('/fonts/ClashGrotesk-Variable.woff2') format('woff2');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    --bg-color: #fafbf5;
    --bg-secondary: #ffffff;
    --text-color: #090909;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --accent-color: #e1c217;

    /* Dark contrast colors */
    --dark-bg: #090909;
    --dark-text: #fafbf5;
    --dark-text-muted: #a0a0a5;
    --dark-border: #262626;

    /* Typo */
    --font-family: 'ClashGrotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --subtext-font-size: 1.3rem;
    --subtext-line-height: 1.45;
    --subtext-font-weight: 300;

    /* Layout & Utilities */
    --container-width: 1440px;
    --header-height: 70px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

/* Lenis Smooth Scroll Helpers */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis-stopped {
    overflow: hidden;
}

html.modal-open {
    overflow-y: scroll !important;
    scrollbar-color: transparent rgba(9, 9, 9, 0.6);
}

html.modal-open::-webkit-scrollbar-thumb {
    background-color: transparent;
}

html.modal-open::-webkit-scrollbar-track {
    background-color: rgba(9, 9, 9, 0.6);
}

body {
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* ==========================================================================
   REVEAL ON SCROLL ANIMATIONS
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.text-accent {
    color: var(--accent-color);
}

.section-padding {
    padding: 140px 0;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 94%;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.55rem;
    color: #1a1a1a;
    margin-top: 16px;
    font-weight: 300;
    max-width: 700px;
    line-height: 1.4;
}

/* Divider Utilities */
.divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    max-width: var(--container-width);
    margin: 0 auto;
    width: 94%;
}

.hero-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin-top: 40px;
    margin-bottom: 0;
    width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    border: 1px solid transparent;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 1rem;
}

.header-action-btn {
    width: 170px;
    line-height: normal;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--dark-text);
    border-color: var(--text-color);
}

.btn-primary:hover {
    background-color: var(--dark-border);
    border-color: var(--dark-border);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(9, 9, 9, 0.18);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: var(--text-color);
    color: var(--dark-text);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(250, 251, 245, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 130;
    transition: var(--transition);
}

header.header-scrolled {
    background-color: rgba(250, 251, 245, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    width: 94%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text-color);
}

.logo img {
    display: block;
    width: 92px;
    height: auto;
}

.footer-logo img {
    opacity: 1;
}

.logo span {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 0.12em;
}

/* Center-Right Navigation */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

#site-header #btn-header-cta {
    padding: 11px 24px;
    font-size: 0.82rem;
}

nav.main-nav {
    display: flex;
    gap: 32px;
}

nav.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-color);
    position: relative;
    padding: 6px 0;
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 120;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-size: 2.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.mobile-nav-overlay .btn-mobile-cta {
    margin-top: 20px;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
    position: sticky;
    top: -1550px;
    z-index: 1;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: 0;
    overflow: visible;
    background-color: var(--bg-color);
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 100vh;
    background-image: radial-gradient(circle, rgba(20, 20, 20, 0.18) 1px, transparent 1.2px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 72% 65% at 50% 48%, transparent 24%, #000 78%);
    mask-image: radial-gradient(ellipse 72% 65% at 50% 48%, transparent 24%, #000 78%);
    pointer-events: none;
    z-index: 0;
}

#hero .section-container {
    position: relative;
    z-index: 1;
}

.hero-scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

/* Overlap sections styling for sticky scroll reveal */
#referenzen,
#warum-scroll-wrapper,
#ablauf,
#ueber,
#kontakt,
footer {
    position: relative;
    z-index: 2;
}

#ablauf {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.hero-watermark {
    position: absolute;
    top: calc(var(--header-height) + 10px);
    left: calc(max(3vw, calc((100vw - 1440px) / 2)) - 0.04em);
    font-size: 22vw;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.02;
    pointer-events: none;
    user-select: none;
    line-height: 0.8;
    letter-spacing: -0.05em;
    z-index: 0;
}

.hero-watermark span {
    margin-left: 0.12em;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
    min-height: calc(100vh - var(--header-height));
    padding: clamp(48px, 7vh, 80px) 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-color);
    max-width: 950px;
    margin: 0 auto;
}

.hero-subtitle {
    max-width: 820px;
    margin: -12px auto 0;
    font-size: clamp(1.3rem, 1.6vw, 1.55rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-muted);
}

.hero-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.hero-proof {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 6px;
    color: #5f5f5f;
    font-size: 0.92rem;
    font-weight: 450;
}

.hero-proof span {
    position: relative;
    padding-left: 14px;
}

.hero-proof span::before {
    content: '';
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
}

.hero-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid var(--text-color);
    border-radius: 9999px;
    transition: var(--transition);
}

.hero-project-link span {
    color: var(--text-color);
    transition: transform 0.25s ease;
}

.hero-project-link:hover span {
    color: var(--accent-color);
    transform: translateX(4px);
}

.hero-project-link:hover {
    background-color: var(--dark-border);
    border-color: var(--dark-border);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(9, 9, 9, 0.14);
}

.hero-lead-section {
    position: relative;
    z-index: 2;
    padding: 140px 0 100px 0;
}

.hero-lead-container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 94%;
    text-align: center;
}

.hero-lead-text {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 1050px;
    margin: 0 auto;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

/* Typewriter Cursor Styling */
.typewriter-line1,
.typewriter-line2 {
    position: relative;
    display: inline;
}

.typewriter-line2::after {
    content: '|';
    display: inline-block;
    animation: typewriter-blink 0.75s step-end infinite;
    font-weight: 300;
    margin-left: 4px;
    color: var(--text-color, #1a1a1a);
}

@keyframes typewriter-blink {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Custom scroll reveal overrides for the Hero Section */
#hero .reveal-right {
    transform: translateX(40px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.8s;
}

#hero .reveal-right.active {
    transform: translate(0, 0);
    opacity: 1;
}

#hero .hero-lead-section.reveal-hero-lead {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero .hero-lead-section.reveal-hero-lead.active {
    transform: translate(0, 0);
    opacity: 1;
}

/* ==========================================================================
   WARUM SECTION (WHY US) - SCROLL-DRIVEN CARD FAN
   ========================================================================== */

/* The scroll wrapper for the card fan section */
#warum-scroll-wrapper {
    position: relative;
    z-index: 2;
    background-color: var(--dark-bg);
    padding-top: 100px;
}

.warum-spacer {
    height: 5vh;
    background-color: var(--dark-bg);
    position: relative;
    z-index: 2;
}

#warum {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 4vh;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

#warum .section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* Editorial Header for Warum Section */
.warum-editorial-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 70px;
}

.editorial-line {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 0 20px 0;
    width: 100%;
}

.editorial-main-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

.editorial-text-left,
.editorial-text-right {
    font-size: var(--subtext-font-size);
    line-height: var(--subtext-line-height);
    font-weight: var(--subtext-font-weight);
    color: rgba(255, 255, 255, 0.85);
}

.editorial-text-left {
    text-align: left;
}

.editorial-text-right {
    text-align: right;
}

@media (max-width: 767px) {
    .editorial-main-row {
        flex-direction: column;
        gap: 15px;
    }

    .editorial-text-right {
        text-align: left;
    }

    .editorial-text-left,
    .editorial-text-right {
        font-size: var(--subtext-font-size);
    }
}

/* The stage holds all three cards in a centered stack */
.why-cards-stage {
    position: relative;
    width: 340px;
    height: 540px;
    perspective: 1200px;
}

/* Base card styling - tall portrait format like the reference images */
.why-fan-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    will-change: transform;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center bottom;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.why-fan-card-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.why-fan-card-text {
    font-size: var(--subtext-font-size);
    line-height: var(--subtext-line-height);
    font-weight: var(--subtext-font-weight);
    opacity: 0.9;
    text-align: left !important;
}

.why-fan-card-text--mobile {
    display: none;
}

/* Card 1 - Left (Dark Grey) */
.why-fan-card--left {
    background-color: #262626;
    color: var(--dark-text);
    z-index: 3;
}

.why-fan-card--left .why-fan-card-title {
    color: var(--dark-text);
    font-weight: 300;
    /* Dünn */
}

.why-fan-card--left .why-fan-card-text {
    color: rgba(250, 251, 245, 0.85);
}

/* Card 2 - Center (Base Yellow) */
.why-fan-card--center {
    background-color: var(--accent-color);
    color: #090909;
    z-index: 2;
}

.why-fan-card--center .why-fan-card-title {
    color: #090909;
    font-weight: 600;
}

.why-fan-card--center .why-fan-card-text {
    color: #090909;
    opacity: 1;
}

/* Card 3 - Right (Cream White) */
.why-fan-card--right {
    background-color: #fafbf5;
    color: #090909;
    z-index: 1;
}

.why-fan-card--right .why-fan-card-title {
    color: #090909;
    font-weight: 500;
    /* Mittel */
}

/* Fanned-out animation end states */
.why-cards-stage.fanned-out .why-fan-card--left {
    transform: translateX(-200px) rotate(-18deg);
}

.why-cards-stage.fanned-out .why-fan-card--center {
    transform: translateY(-40px);
}

.why-cards-stage.fanned-out .why-fan-card--right {
    transform: translateX(200px) rotate(18deg);
}

.why-fan-card--right .why-fan-card-text {
    color: rgba(9, 9, 9, 0.85);
}



/* ==========================================================================
   FOKUS SECTION (OUR APPROACH)
   ========================================================================== */
.fokus-grid {
    display: grid;
    grid-template-columns: 0.4fr 1.6fr;
    gap: 40px;
    text-align: left;
    margin-top: 260px;
}

.fokus-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #262626;
    padding-top: 10px;
}

.fokus-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.fokus-statement {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 1000px;
}

.fokus-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fokus-pillar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 250px;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.34);
}



.fokus-pillar-num {
    font-size: 0.9rem;
    font-weight: 500;
    color: #262626;
}

.fokus-pillar-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fokus-pillar-text {
    font-size: var(--subtext-font-size);
    color: var(--text-muted);
    line-height: var(--subtext-line-height);
    font-weight: var(--subtext-font-weight);
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .fokus-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 100px;
    }

    .fokus-content {
        gap: 50px;
    }

    .fokus-statement {
        font-size: 2.5rem;
    }

    .fokus-pillars {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}



/* ==========================================================================
   REFERENZEN SECTION (PROJECTS)
   ========================================================================== */
#referenzen {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

#referenzen .section-title {
    color: var(--dark-text);
}

.section-kicker {
    margin: 0 0 18px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker--dark {
    color: var(--accent-color);
}

.section-intro {
    max-width: 720px;
    margin-top: 24px;
    color: rgba(250, 251, 245, 0.68);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.55;
}

#referenzen .section-subtitle {
    color: var(--dark-text-muted);
}

#referenzen .project-title {
    color: var(--dark-text);
}

#referenzen .project-desc {
    color: var(--dark-text-muted);
}

#referenzen .project-image-frame {
    border-color: #262626;
    background-color: #1b1b1c;
}


#referenzen .project-image-wrapper {
    border-color: rgba(255, 255, 255, 0.05);
}

.projects-feed {
    display: flex;
    flex-direction: column;
    gap: 160px;
}

.project-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 769px) {
    .project-row {
        width: 82%;
    }

    .project-row:nth-child(odd) {
        align-self: flex-start;
    }

    .project-row:nth-child(even) {
        align-self: flex-end;
    }
}

/* Image Container styling */
.project-image-frame {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 10px;
    border-radius: 18px;
    transition: var(--transition);
}



.project-image-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/9;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-image-wrapper:hover .project-img {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-img--align-top {
    object-position: center top;
    transform-origin: center top;
}

.project-info-inline {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.5;
    margin-top: 28px;
    text-align: left;
}

.project-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 12px;
}

.project-heading > span {
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.project-info-inline p {
    max-width: 820px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tags span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(250, 251, 245, 0.72);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1;
}

.project-info-inline strong {
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 8px;
    color: var(--text-color);
}

#referenzen .project-info-inline {
    color: var(--dark-text-muted);
}

#referenzen .project-info-inline strong {
    color: var(--dark-text);
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 1.55rem;
    font-weight: 550;
}



/* Text Column styling */
.project-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-category {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.project-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.project-desc {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.6;
}

.project-specs {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 400;
}

/* ==========================================================================
   PROJECT SCROLL REVEAL OVERRIDES
   ========================================================================== */
/* Entire project rows fly in slowly parallelly from the bottom */
.project-row.reveal-up {
    transform: translateY(100px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.project-row.reveal-up.active {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   ABLAUF SECTION (PROCESS CARDS)
   ========================================================================== */
.process-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 64px;
}

.process-card-spacer {
    /* Empty grid cell placeholder */
}

.process-card {
    background: linear-gradient(145deg, #171717, #111111);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    position: relative;
    cursor: default;
    border: 1px solid var(--dark-border);
}

.card-num {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 28px;
}

.card-title {
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--dark-text);
}

.card-desc {
    font-size: var(--subtext-font-size);
    line-height: var(--subtext-line-height);
    font-weight: var(--subtext-font-weight);
    color: rgba(250, 251, 245, 0.85);
    margin-top: auto;
    opacity: 1;
    transform: none;
}

.card-plus {
    position: absolute;
    bottom: 28px;
    left: 28px;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 400;
    color: var(--accent-color);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark theme overrides for Ablauf Section */
#ablauf .section-title {
    color: var(--dark-text);
}


/* ==========================================================================
   UEBER SECTION (ABOUT / FOUNDER)
   ========================================================================== */
#ueber {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    /* Inherits padding from .section-padding */
}

.ueber-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(60px, 8vw, 130px);
    align-items: center;
}

.ueber-image-frame {
    border: 1px solid var(--dark-border);
    background-color: #1b1b1c;
    padding: 10px;
    border-radius: 18px;
    max-width: 420px;
    margin: 0 auto 0 0;
    transition: var(--transition);
}



.ueber-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.ueber-text-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.ueber-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    /* Edles helles Grau */
}

.ueber-title {
    font-size: clamp(3rem, 5vw, 5.3rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--dark-text);
}

.ueber-text {
    font-size: var(--subtext-font-size);
    line-height: var(--subtext-line-height);
    color: rgba(250, 251, 245, 0.85);
    font-weight: var(--subtext-font-weight);
}

.ueber-signature {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    border-left: 2px solid var(--accent-color);
    /* Gelber Akzent-Strich */
    padding-left: 16px;
}

.ueber-signature strong {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-text);
}

.ueber-signature span {
    font-size: 1.1rem;
    color: var(--dark-text-muted);
}

.ueber-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ueber-points span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(250, 251, 245, 0.72);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1;
}

@media (max-width: 991px) {
    .ueber-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .ueber-image-frame {
        max-width: 320px;
        margin: 0 auto;
    }

    .ueber-signature {
        align-self: center;
        text-align: left;
    }
}


/* ==========================================================================
   KONTAKT SECTION (CONTACT - FINAL CTA THEME)
   ========================================================================== */
#kontakt {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding: 140px 0 220px 0;
    text-align: center;
}

#kontakt .section-title {
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: var(--dark-text);
    margin-bottom: 0;
}

#kontakt .final-cta-content {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

#kontakt .section-kicker {
    margin-bottom: -12px;
}

#kontakt .final-cta-desc {
    font-size: var(--subtext-font-size);
    line-height: var(--subtext-line-height);
    font-weight: var(--subtext-font-weight);
    max-width: 650px;
    margin: 0 auto;
    color: rgba(250, 251, 245, 0.85);
    text-align: center;
}

#kontakt .final-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#kontakt .final-cta-actions .btn-primary {
    background-color: var(--dark-text);
    color: var(--dark-bg);
    border-color: var(--dark-text);
}

#kontakt .final-cta-actions .btn-primary:hover {
    background-color: transparent;
    border-color: var(--dark-text);
    color: var(--dark-text);
    transform: translateY(-2px);
}

#kontakt .final-cta-subtext {
    font-size: 0.85rem;
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.final-cta-note {
    margin-top: 2px;
    color: rgba(250, 251, 245, 0.5);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================================================
   CONSULTATION MODAL (POPUP) STYLES
   ========================================================================== */
.exit-confirmation {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.exit-confirmation.active {
    opacity: 1;
    visibility: visible;
}

.exit-confirmation-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(9, 9, 9, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.exit-confirmation-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: 0 24px 60px rgba(9, 9, 9, 0.24);
    text-align: center;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-confirmation.active .exit-confirmation-card {
    transform: translateY(0) scale(1);
}

.exit-confirmation-card h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.exit-confirmation-card p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.exit-confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.exit-confirmation-actions .btn {
    flex: 1;
    padding-inline: 18px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 9, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-container {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth touch momentum scrolling on iOS */
    position: relative;
    z-index: 1010;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--dark-border);
    color: var(--accent-color);
    box-shadow: 0 6px 16px rgba(9, 9, 9, 0.14);
}

.modal-body {
    padding: 32px;
}

.modal-intro {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Leen Form Layout styling inside modal */
.leen-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.leen-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.leen-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #262626;
    text-align: left;
}

.leen-form input,
.leen-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    transition: var(--transition-fast);
    width: 100%;
    color: var(--text-color);
    font-family: inherit;
}

.leen-form input:focus,
.leen-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 194, 23, 0.12);
}

.leen-form input.has-error,
.leen-form textarea.has-error {
    border-color: #e23517;
}

.leen-form input.has-error:focus,
.leen-form textarea.has-error:focus {
    border-color: #e23517;
    box-shadow: 0 0 0 3px rgba(226, 53, 23, 0.1);
}

.form-error {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 2;
    color: #e23517;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    pointer-events: none;
    animation: form-error-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes form-error-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leen-form textarea {
    height: 100px;
    resize: none;
}

.leen-form .form-privacy-note {
    margin: 22px 0 0;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
}

.leen-form .form-privacy-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 576px) {
    .header-action-btn {
        width: 120px;
        padding: 11px 20px;
        font-size: 0.82rem;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-body {
        padding: 24px;
    }

    .leen-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .leen-form .form-row .form-group:first-child {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
    background-color: var(--dark-bg);
    color: var(--dark-text-muted);
    border-top: 1px solid var(--dark-border);
    padding: 40px 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 94%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--dark-text);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    display: inline-block;
    padding: 12px 16px;
    margin: -12px -16px;
}

.footer-links a:hover {
    color: var(--dark-text);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {

    .section-container,
    .hero-lead-container,
    .footer-container {
        width: 94%;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .why-cards-stage {
        width: 300px;
        height: 420px;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }

    #hero {
        position: relative;
        top: auto;
        padding-top: calc(var(--header-height) + 160px);
        height: auto;
        min-height: auto;
    }

    .hero-grid {
        min-height: auto;
        padding: 0;
    }

    .hero-lead-section {
        padding: 140px 0;
    }

    .section-padding {
        padding: 100px 0;
    }

    #warum-scroll-wrapper {
        padding-top: 60px;
    }

    #kontakt {
        padding: 100px 0 160px 0;
    }

    .section-title {
        font-size: 2.75rem;
    }

    /* Header mobile toggle */
    .mobile-toggle {
        display: flex;
    }

    nav.main-nav,
    #site-header .header-container .btn {
        display: none;
    }

    /* Hero layout stack */
    .hero-title {
        font-size: 3.25rem;
    }

    .hero-lead-text {
        font-size: 1.75rem;
    }

    /* Reduce animation slide distance in hero on mobile viewports */
    #hero .reveal-up {
        transform: translateY(40px);
    }

    #hero .reveal-right {
        transform: translateX(40px);
    }

    #hero .hero-lead-section.reveal-hero-lead {
        transform: translateY(30px);
    }



    /* Projects stack */
    .projects-feed {
        gap: 60px;
    }

    .project-info-inline {
        font-size: 1.18rem;
        margin-top: 16px;
    }

    .leen-form .form-privacy-note {
        font-size: 1rem;
    }

    /* Process cards responsive */
    .process-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-card-spacer {
        display: none;
    }

    /* Contact stack */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-form-panel {
        padding: 40px;
    }
}

@media (max-width: 767px) {
    #referenzen .section-header {
        margin-bottom: 60px;
    }

    #ablauf .section-header {
        margin-bottom: 50px;
    }

    #ablauf .process-cards {
        margin-top: 20px;
    }

    #hero {
        position: static;
        top: auto;
        height: auto;
        padding-top: calc(var(--header-height) + 90px);
    }

    .hero-lead-section {
        padding-top: 110px;
        padding-bottom: 100px;
    }

    #hero .section-container {
        transform: none !important;
    }

    .hero-scroll-overlay {
        display: none;
    }

    #referenzen {
        position: static;
        z-index: auto;
    }

    .project-image-wrapper:hover .project-img {
        transform: none;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-hero-lead,
    .project-row.reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-lead-container {
        width: 100%;
    }

    .section-title {
        font-size: 2.25rem;
    }

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

    .ueber-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        margin-top: -8px;
        font-size: 1.3rem;
    }

    .hero-cta-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .hero-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 12px;
        text-align: left;
    }

    .ueber-signature,
    .ueber-points {
        width: 100%;
        align-self: stretch;
    }

    .ueber-points {
        justify-content: flex-start;
    }

    .fokus-pillar {
        min-height: 210px;
    }

    .project-heading {
        margin-bottom: 10px;
    }

    #referenzen .project-info-inline strong {
        font-size: 1.35rem;
    }

    .projects-feed {
        gap: 90px;
    }

    .final-cta-note {
        max-width: 290px;
        line-height: 1.5;
    }

    #warum {
        height: auto;
        overflow: visible;
        padding-top: 20px;
        padding-bottom: 60px;
    }

    #warum .section-container {
        gap: 40px;
    }

    .warum-editorial-header {
        margin-bottom: 30px;
    }

    .warum-spacer {
        display: none;
    }

    .why-cards-stage {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        height: auto;
        gap: 24px;
        perspective: none;
        margin: 0;
    }

    .why-fan-card {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 340px;
        transform: none !important;
    }

    .why-fan-card-title {
        font-size: 1.85rem;
    }

    .why-fan-card-text {
        font-size: var(--subtext-font-size);
    }

    .why-fan-card-text--mobile {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-cards {
        grid-template-columns: 1fr;
    }

    #ablauf .process-card {
        background-color: var(--dark-border);
    }

    #ablauf .process-card .card-num {
        color: var(--accent-color);
    }

    #ablauf .process-card .card-desc {
        opacity: 1;
        transform: none;
    }

    #ablauf .process-card .card-plus {
        display: none;
    }

    .panel-features {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    #kontakt .final-cta-desc {
        font-size: 1.3rem;
    }
}
