/* ==========================================================================
   ATELIER-SEITE
   Nutzt Variablen & Grundklassen aus assets/css/home/style.css
   ========================================================================== */

.atelier-page { padding-bottom: 70px; }

/* ==========================================================================
   UNIFORME LOGO- & HEADER-SKALIERUNG (identisch zu FAQ / Vibe-Check)
   ========================================================================== */
header.site-header,
.site-header {
    height: auto !important;
    min-height: 190px !important;
    padding: 20px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.brand,
header .brand,
.site-header .brand {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
}

img.brand-logo,
.brand-logo,
.brand img {
    width: 160px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    max-height: none !important;
    transform: scale(1) !important;
}

/* Scroll-Verhalten (nur Handy, siehe header-scroll.js): header-scroll.js
   setzt bei jedem Scroll-Frame --header-shrink (0-1) sowie opacity/
   transform direkt inline, sodass die Größe kontinuierlich und ohne
   feste Zeit-Übergänge der Scroll-Position folgt (vorher: zwei feste
   Zustände mit je eigenem CSS-Übergang, die sich bei schnellem/unruhigem
   Scrollen gegenseitig überholten und dadurch ruckartig wirkten).
   Der PC-Zustand ab 900px (siehe Media Query direkt darunter) bleibt unberührt. */
@media (max-width: 899px) {
    header.site-header,
    .site-header {
        --header-shrink: 0;
        min-height: calc(190px - (100px * var(--header-shrink))) !important;
        padding: calc(20px - (12px * var(--header-shrink))) 0 !important;
        /* Vereinheitlicht mit der Paddy-Seite (assets/css/about/style.css):
           gleicher schwacher Weichzeichner + gleiche Verlauf-Deckkraft. */
        background: linear-gradient(to bottom, rgba(8,7,6,.55) 0%, rgba(8,7,6,0) 100%) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        backdrop-filter: blur(2px) !important;
    }
    .site-header img.brand-logo,
    .site-header .brand-logo,
    .site-header .brand img {
        width: calc(160px - (60px * var(--header-shrink))) !important;
    }
}

@media (min-width: 900px) {
    header.site-header,
    .site-header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 240px !important;
        min-height: 240px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 40px !important;
        z-index: 100 !important;
        pointer-events: none !important;
    }

    header.site-header a,
    header.site-header nav,
    .site-header a,
    .site-header nav {
        pointer-events: auto !important;
    }

    img.brand-logo,
    .brand-logo,
    .brand img {
        width: 250px !important;
        height: auto !important;
        transform: scale(1.25) !important;
        margin: 0 0 0 30px !important;
    }
}

@media (max-width: 900px) {
    .menu-toggle,
    .site-header .nav,
    [id*="menu-overlay"],
    .menu-backdrop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .site-header { justify-content: center !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.atelier-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    padding: calc(190px + 20px) 16px 60px;
    overflow: hidden;
}

.atelier-hero-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    z-index: 0;
}

.atelier-hero-bg img { object-position: center 30%; }

.atelier-hero-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(8,7,6,.55) 0%, rgba(8,7,6,.35) 40%, rgba(8,7,6,.95) 100%);
}

.atelier-hero-content {
    position: relative;
    z-index: 3;
    max-width: 640px;
}

.atelier-hero .hero-title {
    font-size: clamp(56px, 16vw, 90px);
    margin: 0 0 16px;
}

.atelier-hero .hero-description {
    max-width: 440px;
}

@media (min-width: 900px) {
    .atelier-hero {
        min-height: 90vh;
        padding: 260px 60px 100px;
    }
    .atelier-hero-content { max-width: 720px; }
}

/* ==========================================================================
   INTRO / PHILOSOPHIE
   ========================================================================== */
.atelier-intro {
    padding: 80px 16px;
    display: grid;
    gap: 20px;
}

.atelier-intro-left span {
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yellow);
}

.atelier-intro-right h2 {
    font-family: var(--display);
    font-size: clamp(40px, 11vw, 64px);
    line-height: .9;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.atelier-intro-right p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--cream-75);
    max-width: 640px;
    margin: 0 0 16px;
}

@media (min-width: 900px) {
    .atelier-intro {
        grid-template-columns: 0.5fr 1.5fr;
        gap: 60px;
        max-width: var(--max);
        margin: 0 auto;
        padding: 140px 60px;
    }
}

/* ==========================================================================
   BILDSTRECKE — KARUSSELL (identisch zur Paddy-Seite: mittleres Bild groß &
   scharf, Nachbarbilder angeschnitten & transparenter dahinter sichtbar,
   per JS in assets/js/atelier/script.js über data-pos="current|prev|next"
   auf .atelier-photo gesteuert; die HTML-Startwerte zeigen ohne JS trotzdem
   eine sinnvolle Ausgangsansicht.)
   ========================================================================== */
.atelier-gallery {
    position: relative;
    padding: 90px 16px 100px;
    overflow: hidden;
}

.atelier-gallery .section-intro {
    margin-bottom: 40px;
}

.atelier-gallery .section-intro span {
    display: block;
    color: var(--yellow);
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.atelier-gallery .section-intro h2 {
    font-family: var(--display);
    font-size: clamp(40px, 11vw, 60px);
    line-height: .9;
    text-transform: uppercase;
    margin: 0;
}

.atelier-carousel-track {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.atelier-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--black-soft);
    width: min(78vw, 320px);
    aspect-ratio: 3 / 4;
    box-shadow: 0 20px 45px rgba(0,0,0,.5);
    transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
    opacity: 0;
    pointer-events: none;
}

.atelier-photo[data-pos="current"] {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}
.atelier-photo[data-pos="prev"] {
    transform: translateX(-58%) scale(.82);
    opacity: .45;
    z-index: 2;
}
.atelier-photo[data-pos="next"] {
    transform: translateX(58%) scale(.82);
    opacity: .45;
    z-index: 2;
}

.atelier-icon {
    position: absolute;
    z-index: 4;
    width: 70px;
    height: 70px;
    bottom: 16px;
    right: 16px;
    opacity: .9;
    pointer-events: none;
    filter: invert(1) drop-shadow(0 4px 10px rgba(0,0,0,.5));
}

.icon-wheel { animation: slow-spin 40s linear infinite; }

@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.atelier-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--cream-20);
    background: rgba(8,7,6,.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: var(--cream);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-content: center;
    cursor: pointer;
}
.atelier-carousel-arrow.prev { left: 8px; }
.atelier-carousel-arrow.next { right: 8px; }

.atelier-carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
}
/* Trefffläche 24x24 (WCAG-Mindestgröße für Touch-Ziele), sichtbarer Punkt
   bleibt per ::before bei den ursprünglichen 7px. */
.atelier-carousel-dot {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.atelier-carousel-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cream-20);
}
.atelier-carousel-dot.active::before { background: var(--yellow); }

.atelier-gallery-note {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cream-55);
    font-style: italic;
}

@media (min-width: 700px) {
    .atelier-carousel-track { height: 480px; }
    .atelier-photo { width: min(60vw, 340px); }
}

@media (min-width: 900px) {
    .atelier-gallery { padding: 100px 60px 140px; max-width: var(--max); margin: 0 auto; }
    .atelier-carousel-track { height: 520px; }
    .atelier-photo { width: 360px; aspect-ratio: 4 / 5; }
    .atelier-photo[data-pos="prev"] { transform: translateX(-72%) scale(.82); }
    .atelier-photo[data-pos="next"] { transform: translateX(72%) scale(.82); }
    .atelier-carousel-arrow { width: 54px; height: 54px; font-size: 26px; }
    .atelier-carousel-arrow.prev { left: 30px; }
    .atelier-carousel-arrow.next { right: 30px; }
}

/* ==========================================================================
   ATELIER-WERTE (3er-Reihe)
   ========================================================================== */
.atelier-values {
    padding: 70px 16px;
    display: grid;
    gap: 40px;
}

.atelier-value .number {
    display: block;
    font-family: var(--display);
    font-size: 34px;
    color: var(--cream);
    opacity: .6;
    margin-bottom: 6px;
}

.atelier-value h3 {
    font-family: var(--display);
    font-size: clamp(32px, 9vw, 44px);
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: .95;
}

.atelier-value p {
    font-size: 15px;
    line-height: 1.6;
    /* var(--cream-75) landet auf dem roten Sektionshintergrund bei 4,48:1 —
       0,02 unter dem WCAG-AA-Grenzwert von 4,5:1. Nur hier lokal etwas
       kräftiger, die globale Textfarbe bleibt unangetastet. */
    color: rgba(244, 237, 217, .8);
    margin: 0;
    max-width: 420px;
}

@media (min-width: 900px) {
    .atelier-values {
        grid-template-columns: repeat(3, 1fr);
        max-width: var(--max);
        margin: 0 auto;
        padding: 100px 60px;
    }
}

/* ==========================================================================
   FIXIERTE MOBILE NAVI-LEISTE (identisch zu FAQ)
   ========================================================================== */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(20, 18, 16, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(244, 237, 217, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 4px;
    z-index: 9999;
}

.mobile-nav-bar a {
    text-decoration: none;
    font-family: var(--text);
    font-weight: 700;
    font-size: 11px;
    color: var(--cream-55);
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

/* Eigener, hellerer Rotton statt var(--red): auf dem sehr dunklen
   Nav-Hintergrund unterschritt die Marken-Rotfarbe den WCAG-AA-
   Kontrast (2,4:1 statt geforderter 4,5:1). Nur hier lokal angepasst,
   die globale Markenfarbe bleibt unangetastet. */
.mobile-nav-bar a.active { color: #d95a3e !important; }

@media (min-width: 900px) {
    .mobile-nav-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Overlays dürfen Klicks nicht blockieren */
.page-noise,
.cursor,
[class*="noise"],
[class*="overlay"] {
    pointer-events: none !important;
}

.footer {
    position: relative;
    z-index: 10000;
}

@media (max-width: 899px) {
    /* Genug Abstand zur fixierten mobilen Tab-Leiste, damit ihre Links nie
       darüberliegen. */
    .footer { padding-bottom: 90px; }
}
