/*Die Logo-Schrift*/
@font-face {
    font-family: 'Pin';
    src: url('fonts/Pin.woff2') format('woff2'),
         url('fonts/Pin.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
 
@font-face {
    font-family: 'Work';
    src: url('fonts/WorkSans-VariableFont_wght.woff2') format('woff2');
    font-display: swap;
    font-weight: 100 900;
    font-style: normal;
}

html, body {
    max-width: 100%;
}
 
html {
    scroll-behavior: smooth;
}
 
/* Der Wrapper fängt alle überstehenden Elemente ab */
.site-wrapper {
  width: 100%;
  position: relative; /* Wichtig, falls du absolut positionierte Elemente nutzt */
}

@media screen and (min-width: 901px) {
    html, body {
        overflow-x: clip;
    }
}

@media screen and (orientation: portrait), screen and (max-width: 900px) {
    html, body {
        touch-action: pan-y;
    }
}

.section-headline {
    position: absolute;
    font-size: 1em;
    font-weight: 500;
    left:5vw;
    top:5vh;
    color: var(--p-orange);
    margin: 0;
} 

:root {
    --bg-color: #eae8d9;
    --text-inactive: #d1cca4;
    --target-vw: 16vw;
    --p-orange: #c56950;
    --sage-green: #a6b3af;
    --reveal-yellow: #d7d8c7;
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
img {
    /* Verhindert, dass Bilder beim Skalieren durch die CPU vermatschen */
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: crisp-edges;
    
    /* Verbessert die Darstellung bei Größenänderungen in älteren/anderen Browsern */
    image-rendering: high-quality; 
}

.logo {
    width: 60%;
    max-width: 150px;
    position: absolute;
    top: 76px;
    left: 76px;
    z-index: 1000;
}
 
.logo--reveal {
    clip-path: circle(0px at 0px 0px);
}
 
body, html {
    width: 100%;
    background-color: var(--bg-color);
    font-family: 'Work', Arial, sans-serif;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: auto;
}
 
.header {
    position: fixed;
    top: 5vh;
    left: 5vw;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    z-index: 100;
}
 
/* ─────────────────────────────────────────
   NAV ICON COMPONENT
   Zustände: + (Standard) → × (Offen)
   ───────────────────────────────────────── */
 
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    top: 5.4vmin;
    right: 7.4vmin;
    z-index: 1000;
    transition: background 0.15s ease;
}
 
.nav-icon {
    position: relative;
    width: 0;
    height: 0;
    transform-origin: 15px 15px;
    transition: transform 0.35s ease;
}
 
.bar {
    position: absolute;
    background: var(--p-orange);
    border-radius: 1px;
}
 
.bh { width: 30px; height: 4px; left: 0; top: 13px; }
.bv { width: 4px; height: 30px; left: 13px; top: 0; }
 
.nav-icon-btn.is-open .nav-icon {
    transform: rotate(45deg);
}
 
@keyframes spinUpToPlus {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(1800deg); }
}
 
@keyframes spinUpToX {
    0%   { transform: rotate(45deg); }
    100% { transform: rotate(1845deg); }
}
 
.nav-icon-btn.easter-egg .nav-icon {
    animation: spinUpToPlus 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
 
.nav-icon-btn.is-open.easter-egg .nav-icon {
    animation: spinUpToX 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
 
/* ── Gemeinsame Link-Basis ── */
.nav-link {
    position: absolute;
    font-size: 2.9vmin;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--p-orange);
    text-decoration: none;
    white-space: nowrap;
    pointer-events: none;
    overflow: hidden;
    transition: pointer-events 0s 0.5s;
    z-index: 20;
}
 
.nav-link span {
    display: block;
    transition:
        transform 0.5s cubic-bezier(0.77, 0, 0.18, 1),
        opacity   0.4s ease;
}
 
.nav-link.dir-left  { text-align: right; }
.nav-link.dir-left span  { transform: translateX(110%);  opacity: 0; }
 
.nav-link.dir-right { text-align: left; }
.nav-link.dir-right span { transform: translateX(-110%); opacity: 0; }
 
.nav-link.dir-up {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-align: right;
}
.nav-link.dir-up span { transform: translateY(110%); opacity: 0; }
 
.nav-link.dir-downrev {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-align: left;
}
.nav-link.dir-downrev span { transform: translateY(-110%); opacity: 0; }

.nav-link.dir-down-flat {
    writing-mode: horizontal-tb;
    text-align: left;
    display: inline-block;
    overflow: hidden;
}

.nav-link.dir-down-flat span {
    display: inline-block;
    transform: translateY(-110%);
    opacity: 0;
}
.nav-link.dir-down {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-align: left;
}
.nav-link.dir-down span { transform: translateY(-110%); opacity: 0; }

.nav-link.dir-up-flat {
    writing-mode: horizontal-tb;
    text-align: left;
    display: inline-block;
    overflow: hidden;
}

.nav-link.dir-up-flat span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
}
 
.nav-link.dir-down-horizontal { text-align: left; }
.nav-link.dir-down-horizontal span { transform: translateY(110%); opacity: 0; }
 
.nav-link .clip {
    display: block;
    overflow: hidden;
}
 
/* ── OPEN: Links einfahren ── */
.logo-container.is-open { pointer-events: all; }
 
.logo-container.is-open .nav-link {
    pointer-events: all;
    transition: pointer-events 0s;
}
 
.logo-container.is-open .nav-link span {
    transform: translate(0, 0);
    opacity: 1;
}
 
.logo-container.is-open .nav-link:nth-child(1) span { transition-delay: 0.05s; }
.logo-container.is-open .nav-link:nth-child(2) span { transition-delay: 0.12s; }
.logo-container.is-open .nav-link:nth-child(3) span { transition-delay: 0.19s; }
.logo-container.is-open .nav-link:nth-child(4) span { transition-delay: 0.26s; }
.logo-container.is-open .nav-link:nth-child(5) span { transition-delay: 0.33s; }
.logo-container.is-open .nav-link:nth-child(6) span { transition-delay: 0.40s; }
.logo-container.is-open .nav-link:nth-child(7) span { transition-delay: 0.47s; }
.logo-container.is-open .nav-link:nth-child(8) span { transition-delay: 0.54s; }
 
/* ── Positionen der Links ── */
.link-1 { top: 14%; right: 34.4%; }
.link-2 { top: 67.2%; right: 3%;   width: 3%; }
.link-3 { top: 75.8%; right: 57.6%;  }
.link-4 { bottom: 59%; left: 23.7%; height: 3%; }
.link-5 { bottom: 52%; left: 52.8%; height: 3%; }
.link-6 { bottom: 54.3%; left: 7.5%; height: 15%; }
.link-7 { top: 66.8%; right: 25.4%; } 
.link-8 { top: 42.8%; right: 22.5%; } 

/* GEMEINSAME LAYER-BASIS */
.layer, .info-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-kerning: none;
    -webkit-font-smoothing: antialiased;
    will-change: clip-path;
}
 
.logo-container .layer span.word {
    position: absolute;
}
 
/* ── Desktop Slogan ── */
@media screen and (min-width: 901px) {
    .slogan {
        font-weight: 501;
        color: var(--p-orange);
        font-size: clamp(0.8em, 1.5vw, 1em);
        
        position: absolute;
        
        /* 1. HORIZONTALE RECHTE KANTE (Fixiert bei 67.7% von rechts): */
        right: 67.7%;
        width: max-content;
        text-align: left;
        
        /* 2. VERTIKALER ANKER (Nulllinie = Oberkante von .slogan__sub--first): */
        top: calc(100% - 21.6%); /* Entspricht exakt der Höhe von "bottom: 16.2%" */
        bottom: auto;
        
        z-index: 99;
        pointer-events: none;
        letter-spacing: 0.04em; /* 4% als gängiges em-Maß */
    }

    /* 3. DIE ÜBERSCHRIFT: Wird aus dem Fluss genommen und wächst nach OBEN */
    .slogan__headline {
        display: block;
        font-size: 1.1em;
        
        position: absolute;
        bottom: 100%;          /* Unterkante dockt an der Nulllinie an */
        left: 0;
        margin-bottom: 0.4em;  /* Abstand zur 1. Unterzeile (ersetzt den Spacer) */
        white-space: nowrap;   /* Verhindert Umbrüche in der Überschrift */
    }

    /* 4. DER SPACER: Wird nicht mehr benötigt, da .slogan__headline margin-bottom nutzt */
    .slogan__spacer {
        display: none;
    }

    /* 5. DIE UNTERZEILEN: Beginnen an der Nulllinie und laufen nach UNTEN */
    .slogan__sub {
        display: block;
        font-size: 0.9em;
        letter-spacing: 0.1em;
        font-weight: 600;
    }

    .slogan__sub--first {
        letter-spacing: 0.085em;
        font-weight: 600;
    }
}
 
/* ── Portrait + alles unter 900px (gemeinsame Basis) ── */
@media screen and (orientation: portrait), screen and (max-width: 900px) {
 
    .visibility-section {
        height: auto;
        min-height: 100vh;
        padding: 50px 20px;
        overflow: visible;
    }
 
    .process-flow {
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
 
    /*.step {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 500px;
        text-align: center !important;
    }*/
 
    .wood-ball {
        opacity: 0.3;
        filter: grayscale(0.5);
        transition: opacity 0.3s ease;
    }
 
    .ball-anchor {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: 40px 0;
        width: 200px;
        z-index: 0;
    }
 
    .vertical-line { display: none; }
    .side-text      { display: none; }
 
    .nav-link { font-size: clamp(12px, 2.3vh, 22px); }

    /*.nav-link.link-3 span {
        transform: translateX(-110%);
    }*/
 
 
    .link-1 { top: 16%; right: 34.6%;   width: 14.3%; }
    .link-2 { top: 33.3%; right: 30%;   width: 3%; }
    .link-3 { top: 76.4%; left: 32.5%; }
    .link-4 { bottom: 59%; left: 26.6%; height: 3%; }
    .link-5 { bottom: 53%; left: 52.8%; height: 3%; }
    .link-6 { bottom: 63.1%; left: 45%; height: 12%; }
    .link-7 { top: 68%; right: 27.6%;   width: 14.3%; height: 6%; transform: translateY(-19.1%) }
    .link-8 { top: 76.4%; right: 33.2% }

    .logo {
        max-width: 22vw;
        position: absolute;
        top: 36px;
        left: 40px;
        z-index: 1000;
    }
}
 
/* ── Mobil Portrait: Slogan + overflow fix ── */
@media screen and (orientation: portrait) and (max-width: 900px) {
 
    .slogan {
        font-weight: 501;
        color: var(--p-orange);
        font-size: 1.4rem;
        width: 100%;
        text-align: left;
        position: absolute;
        bottom: 25%;
        left: 32.5%;
        z-index: 99;
        pointer-events: none;
        letter-spacing: 4%;
        opacity: 1;
        transition: opacity 0.5s ease;
    }
 
    .slogan__spacer,
    .slogan__sub {
        display: none;
    }
 
    .logo-container.is-open .slogan {
        opacity: 0;
    }
 
    html, body {
        overflow-x: hidden !important;
        overflow-x: clip !important;
    }
    .main-stage {
        overflow: visible !important;
        overflow-y: hidden !important;
    }
    .logo-container {
        overflow: visible !important;
    }
    .background-layer {
        clip-path: none !important;
        overflow: visible !important;
    }
}
 
/* ── Mobil Landscape ── */
@media screen and (max-width: 900px) and (orientation: landscape) {
 
    html, body {
        overflow-x: hidden !important;
        overflow-x: clip !important;
    }

    .nav-link.dir-down-flat span {
        transform: translateY(110%); /* statt -110%: kommt jetzt von unten statt von oben */
    }
 
    .link-1 { right: 34.7%; width: 18.2%; }
    .link-2 { top: 67.3%; right: 2%; width: 3%; }
    .link-3 { top: 75.9%; }
    .link-4 { bottom: 58%; left: 23.2%;  height: 3%; }
    .link-5 { bottom: 54%; left: 52.7%; height: 3%; }
    .link-6 { bottom: 30.5%; left: 112.5%; height: 15%; }
    .link-7 { top: 39%; left: -33%; width: 18.2%; height: unset; transform: unset; }
    .link-8 { top: 75.9%; right: 30.1%; }
 
    .nav-link { font-size: 3vmin; }
 
    .logo {
        max-width: 18vw;
        top: 30px;
    }
 
    .slogan {
        font-weight: 501;
        color: var(--p-orange);
        font-size: 3vmin;
        width: 100%;
        text-align: left;
        position: absolute;
        bottom: 12.8%;
        left: -25%;
        z-index: 99;
        pointer-events: none;
    }
 
    .slogan__headline {
        font-size: 1.1em;
    }
 
    .slogan__spacer {
        display: block;
        margin-bottom: 0.4em;
    }
 
    .slogan__sub {
        display: block;
        font-size: 0.9em;
        letter-spacing: 0.1em;
    }
 
    .slogan__sub--first {
        letter-spacing: 0.098em;
    }
}
 
/* ABSCHNITT 1 */
.main-stage {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}
 
.logo-container {
    position: relative;
    width: 100vh;
    height: 100vh;
    flex-shrink: 0;
    overflow: visible;
    margin: 0 auto;
    pointer-events: none;
    font-size: 2vmin;
}
 
.text-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
 
.stretch-block {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    gap: 0.0vh;
    clip-path: inset(0px 0);
}
 
.word {
    position: absolute;
    display: inline-block;
    font-size: 39vh;
    font-family: 'Pin';
    white-space: nowrap;
    line-height: 1;
    padding: 30vh;
    box-sizing: content-box;
}
 
.background-layer { color: var(--text-inactive); }
 
.reveal-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--sage-green);
    z-index: 5;
    clip-path: circle(0px at -100% -100%);
    will-change: clip-path;
}
 
.reveal-layer {
    color: var(--reveal-yellow);
    z-index: 10;
    clip-path: circle(0px at -100% -100%);
}
 
.mobile-only { display: none; }
 
/* ── Mobil allgemein ── */
@media screen and (max-width: 900px) {
 
    main.main-stage {
        height: 100vh !important;
        width: 100% !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow-x: hidden !important;
    }
 
    .stretch-block { display: none !important; }
 
    /* Reveal: statisch eingefroren statt ausgeblendet */
    .reveal-bg-layer {
        background-color: var(--sage-green) !important;
        clip-path: circle(39vmin at 50% 42%) !important;
        pointer-events: none !important;
        will-change: auto;
    }
 
    #reveal {
        display: block !important;
        clip-path: circle(18vmin at 50% 42%) !important;
        pointer-events: none !important;
        will-change: auto;
    }
}
 
/* ── Reveal-Position: Portrait ── */
@media screen and (max-width: 900px) and (orientation: portrait) {
    .reveal-bg-layer,
    #reveal {
        clip-path: circle(39vmin at 50% 38%) !important;
    }
}
 
/* ── Reveal-Position: Landscape ── */
@media screen and (max-width: 900px) and (orientation: landscape) {
    .reveal-bg-layer,
    #reveal {
        clip-path: circle(39vmin at 50% 45%) !important;
    }
}


/* ABSCHNITT 2 */
.info-section {
    position: relative;
    width: 100vw;
    min-height: 100vh; 
    background-color: var(--sage-green);
    overflow: visible !important;
    display: flex; 
    align-items: center;
    z-index: 20;
    font-size: 2vmin;
}

/* Die rote Linie im Hintergrund (Schiene) 
.info-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: var(--p-orange);
    z-index: 1;
} */

.info-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    overflow: visible !important;
}

.info-container {
    max-width: 1200px;
    /* Erhöhtes Padding unten (120px), damit die Kugel Platz hat und nicht im Text klebt */
    padding: 0 5% 120px 5%; 
    z-index: 5;
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Die sauberste Lösung */
.info-container::after {
    content: '';
    position: absolute;
    /* Positioniert die Linie 5px unter dem Plus-Bereich */
    bottom: -220px; /* Reicht weit nach unten */
    top: calc(100% - 25px); /* Startpunkt feinjustiert unter dem Plus */
    left: 50%;
    width: 1px;
    background-color: var(--p-orange);
    z-index: 0;
}

.info-headline {
    font-size: 2.5em;
    color: var(--p-orange);
    margin-bottom: 30px;
    font-weight: 400;
}

.info-text {
    font-size: 1.25em;
    line-height: 1.5;
    text-align: justify;
}

/* Ebenen-Logik */
.background-info {
    color: #ffffff;
    z-index: 5;
}

/* Das untere Plus im Background-Layer unsichtbar machen, damit es nicht doppelt erscheint */
.background-info .deco-plus {
   /* opacity: 0;*/
    pointer-events: none;

}

.reveal-info {
    background-color: var(--text-inactive);
    color: #ffffff;
    z-index: 10;
    clip-path: circle(0px at -100% -100%);
    /* WICHTIG: Layer lässt Klicks durch, damit Text markierbar bleibt */
    pointer-events: none; 
}

/* Die Highlights in der Schriftgröße angepasst */
.background-info .highlight { 
    color: #ffffff; 
    font-size: 1.2em; 
    font-weight: bold; 
}

.reveal-info .highlight { 
    color: var(--p-orange); 
    font-size: 1.2em; 
    font-weight: bold; 
}

/* DAS PLUS / DIE KUGEL */
.deco-plus {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%); /* Wichtig: Zentriert das Plus ohne Skalierung */
    z-index: 20;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 1; /* Fest auf 1 setzen, damit es nicht verblasst */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; 
}

/* Verwandlung zur Kugel, wenn der Reveal-Layer (Guckloch) darüber liegt */
.reveal-info .deco-plus {
    width: 30px;
    height: 30px;
    background-color: var(--p-orange); 
    border-radius: 50%;
    color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
   /* box-shadow: 0 0 15px rgba(189, 97, 72, 0.4);*/
}


/* Grundzustand: Nur im Spotlight sichtbar */
#sphere-trigger {
    pointer-events: none !important; 
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex !important;
    width: 35px;
    height: 35px;
    background-color: var(--p-orange); 
    border-radius: 50%;
    color: white; 
    font-size: 20px;
    justify-content: center;
    align-items: center;
    opacity: 1; /* Sicherstellen, dass die Kugel sichtbar ist */
}

/* Der Haupt-Container des Elements */
#plusCircleWrapper {
    position: relative; /* Oder absolute, je nach deinem Layout */
    z-index: 100;
    will-change: transform; /* Optimiert die Rendering-Performance im Browser */
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1); /* Macht das Mitwandern geschmeidig */
}

/* Das Plus-Icon im Normalzustand */
#plusCircleWrapper .plus-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Der Kreis-Zustand (standardmäßig versteckt) */
#plusCircleWrapper .circle-icon {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =============================================================
   ZUSTAND: GELÖST (Klasse wird per JS vergeben)
   ============================================================= */

/* Das Plus verschwindet elegant */
#plusCircleWrapper.is-detached .plus-icon {
    opacity: 0;
    transform: scale(0) rotate(90deg);
}

/* Der Kreis wird sichtbar und nimm seine volle Größe an */
#plusCircleWrapper.is-detached .circle-icon {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
}

@media (max-width: 900px) {
  #reveal-info {
       /* display: block !important; */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 10;
        /* Startposition des Streifens */
        clip-path: inset(45% 0 45% 0);
        transition: clip-path 0.1s ease-out;
        background-color: var(--sage-green);
        padding: 60px 20px;
    }
/*.reveal-layer {
       background-color: var(--reveal-yellow) !important;
        visibility: visible !important;
    }*/
    

    /* Sektion 2: Den Hintergrund-Layer wieder normal in den Fluss bringen */
    .info-section {
        height: auto !important;
        min-height: 100vh;
        display: flex;
        position: relative;
    }

    .background-info {
        position: relative !important;
        width: 100%;
        padding: 60px 20px; /* Angenehmer mobiler Abstand */
       /* display: block !important;*/
    }

    .info-container {
        position: relative;
        z-index: 5;
    }

    .info-container::after{
        display: none;
    }

    .info-headline {
        font-size: 3em;
    }

    .info-text {
        font-size: 1.7em;
    }

    #traveling-sphere {
        display: none !important;
        opacity: 0 !important;
    }
}


/* --- ABSCHNITT 3 --- */
/* --- ABSCHNITT 3 VISIBILITY --- */
.process-section {
    z-index: 1;}

   

.visibility-section {
    position: relative;
    width: 100vw;
    min-height: 150vh;
    background-color: var(--bg-color);
    padding: 10vh 0;

   
}

.vertical-line {
    position: absolute;
    top: 0;
    left: 50vw;
    width: 1px;
    height: 100%;
    background-color: var(--p-orange);
    z-index: 1;
}

.process-flow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 130vh;
    /* z-index + container-type entfernt: beide erzeugen einen Stacking Context,
       der .wood-ball (z-25) gegen den global-fixed Traveler (z-20) verlieren ließ.
       Da keine @container-Rules existieren, hat container-type keinen Nutzen. */
}

.ball-anchor {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
   /* width: 320px; */
    width: 25vw;         /* Kugel wird mit dem Fenster kleiner */
    min-width: 180px;    /* Aber nicht winzig */
    max-width: 320px;    /* Und nicht riesig */
    z-index: 25;
}

.wood-ball {
    width: 100%;
    position: relative;
    z-index: 25;
    /*filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));*/
}

.step {
    position: absolute;
  /*  width: 300px; */
     width: 28%;           /* Nutzt einen Prozentsatz der Gesamtbreite */
    min-width: 220px;     /* Verhindert, dass der Text zu schmal und lang wird */
    max-width: 350px;     /* Verhindert, dass der Text bei Riesen-Monitoren zu breit wird */
    z-index: 200;
    transition: all 0.3s ease; /* Weicher Übergang beim Skalieren */
    font-size: 1rem;
    hyphens: auto;
}

.step h3 {
    display: flex;
    align-items: baseline;  /* Richtet Text an der Unterkante der großen Zahl aus */
    color: var(--p-orange);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: none;
}

.step .num {
    margin-right: 10px;
    font-size: 2rem;      /* Deutlich größer als der Rest der Headline */
    font-weight: 700;       /* Extra fett für mehr Präsenz */
    color: #ffffff;         /* Hier deine Wunschfarbe, z.B. Weiß oder ein helleres Beige */
            
    line-height: 1.6;         /* Verhindert zu großen Zeilenabstand */
    opacity: 0.8;           /* Optional: Macht es etwas dezenter, falls es zu knallig ist */
}

.step p {
    font-size: var(--base-size);
    line-height: 1.5;
    color: var(--p-orange);
}

/* Exakte Positionierung nach Vorlage */
/*.step-01 { top: 6vh; left: 15%; text-align: left; }
.step-02 { top: 11vh; right: 8%; text-align: right; }
.step-03 { top: 35vh; right: 2%; text-align: right; }
.step-04 { top: 50vh; left: 3%; text-align: left; }
.step-05 { top: 60vh; right: 8%; text-align: left; }
.step-06 { top: 80vh; right: 15%; text-align: left; }*/

.step-01 { top: 2%;  left: 10%;  text-align: left; }
.step-02 { top: 10%;  right: 8%; text-align: right; }
.step-03 { top: 33%; right: 5%; text-align: right; }
.step-04 { top: 40%; left: 5%;  text-align: left; }

/* Bei den unteren Schritten erhöhen wir den Abstand, 
   da Texte dort oft länger werden */
.step-05 { top: 55%; right: 10%; text-align: left; } 
.step-06 { top: 77%; right: 20%; text-align: left; }



@media (max-width: 900px) {
    /* 1. Desktop-Texte und Linien verstecken */
    .step p, .vertical-line { 
        display: none !important; 
    }

    .visibility-section {
        position: relative !important;
        min-height: 100vh !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10vh 0 10vh !important;
    }

    /* 2. Der Container hält alles mittig */
    .process-flow {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start;
        justify-content: center !important;
        gap: 4px !important;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        left: 5vw;
        transform: none !important;
    }

    /* 3. Reset der Klickflächen */
    .step {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        padding: 10px 20px !important;
        z-index: 20;
        display: block !important;
    }

    .step.active {
        z-index: 100 !important;
    }

    .step h3 {
        margin: 0 !important;
        text-align: left;
        white-space: nowrap;
        cursor: pointer;
    }

    /* 4. Angedockter Popover statt Vollbild-Overlay */
    .step-content {
        position: absolute !important;
        top: 100% !important;
        left: 20px !important;
        width: min(85vw, 320px) !important;
        height: auto !important;
        margin-top: 10px;
        background-color: var(--bg-color) !important;
        border: 1px solid var(--p-orange);
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        z-index: 50 !important;
        display: block !important;
        padding: 18px 20px !important;

        opacity: 0;
        transform: translateY(-8px) scale(0.96);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    /* Sprechblasen-Pfeil, zeigt zur Nummer */
    .step-content::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 24px;
        width: 12px;
        height: 12px;
        background-color: var(--bg-color);
        border-left: 1px solid var(--p-orange);
        border-top: 1px solid var(--p-orange);
        transform: rotate(45deg);
    }

    .step.active .step-content {
        opacity: 1 !important;
        transform: translateY(0) scale(1);
        pointer-events: auto !important;
    }

    .step-content p {
        display: block !important;
        color: var(--p-orange);
        font-size: 1rem !important;
        line-height: 1.5;
        max-width: 100% !important;
        text-align: left !important;
    }

    .close-hint {
        display: block;
        margin-top: 12px;
        font-size: 0.75em;
        opacity: 0.6;
        cursor: pointer;
        text-align: right;
    }

    .close-hint::after {
        content: '✕ Schließen';
    }

    /* 5. Bild im Hintergrund */
    .ball-anchor {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 80vw !important;
        opacity: 0.3;
        z-index: 1 !important;
        pointer-events: none;
    }
}



/* --- ABSCHNITT 4 --- */
.image-section {
    position: relative;
    width: 100vw;
    height: 100vh; /* Füllt den gesamten Viewport */
    overflow: visible;
}

/* Linie in Sektion 4, die bis zur Bürste reicht */
.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    /* 45vh ist ein guter Schätzwert, damit sie bei 'cover' 
       visuell auf der Bürste landet. Passe diesen Wert an, 
       bis die Spitze die Bürste berührt. */
    height: 14vh; 
    background-color: var(--p-orange);
    z-index: 10;
    pointer-events: none;
}

/* Kleines Plus am Ende der Linie */
.image-section::after {
    content: '';
    position: absolute;
    top: 16.5vh; /* Gleicher Wert wie die Höhe oben */
    left: 50%;
    width: 1.8vw;
    height: 1.8vw;
    max-width: 35px;
    max-height: 35px;
    background-color: var(--p-orange);
    clip-path: polygon(
        43% 0%,   57% 0%,
        57% 43%,  100% 43%,
        100% 55%, 57% 57%,
        57% 100%, 43% 100%,
        43% 57%,  0% 57%,
        0% 43%,   43% 43%
    );
    transform: translate(-50%, -50%);
    z-index: 11;
}

.side-text-wrapper {
    position: absolute;
    left: -7.9vw;
    top: 50vh;
    transform: translateY(-10%) rotate(-90deg) scaleX(0.8) scaleY(1.4);
    transform-origin: left top;
    z-index: 1;
    pointer-events: none;
}

.side-text {
    font-size: 24vw;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;

    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 31%, 
        rgba(255, 255, 255, 0.5) 45%, 
        rgba(255, 255, 255, 0) 76%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 2. EBENE: WEICHES LICHT OVERLAY */
.side-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;

    /* WEICHES LICHT VERLAUF */
    /* Dieser Verlauf legt sich über den ersten. 
       Ein schräger Winkel (135deg) gibt oft einen schöneren Glanzeffekt. */
    background: linear-gradient(180deg, 
        rgba(127, 127, 127, 0.5) 0%, 
        rgba(127, 127, 127, 0) 60%
    );
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* DER EFFEKT-MODUS */
    mix-blend-mode: soft-light;
}
    
    /* Optional: Ein leichter Blur macht es noch ähnlicher zur Vorlage */
   /* filter: blur(1px); 
    opacity: 0.9;
}*/

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.footer-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Sorgt dafür, dass das Bild den Raum füllt ohne zu zerren */
    display: block;
    object-position: 52% 5%;
}

.image-overlay-text {
    position: absolute;
    /* Positionierung über dem Bild */
    bottom: 15%; 
    left: 8%;
    
    max-width: 37vw; /* Breite des Textblocks */
    color: #ffffff;
    text-align: left; /* Rechtsbündig nach Vorlage */
    z-index: 20;
}

.image-overlay-text p {
    font-size: clamp(1.5em,2.1vw,2.5em);
    line-height: 1.4;
    font-weight: 400;
    /* Optionaler leichter Schatten für bessere Lesbarkeit auf hellem Hintergrund */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.highlight-orange {
    color: var(--p-orange);
    /*text-shadow: 0 2px 10px rgba(0,0,0,0.5);*/ 
    text-shadow: 0 1px 1px rgba(255,255,255,0.5),
                 0 1px 1px rgba(0,0,0,0.5);
    line-height: 1.9;          
    font-size: 3rem;
    font-weight: 500;   
}

.deco-plus { color: var(--p-orange); font-size: 3rem; margin-top: 20px; }

@media (max-width: 900px) {
    .image-section::before,
    .image-section::after {
        display: none;
    }

    .image-overlay-text {
        right: 5%;
        left: 10%; /* ← gibt links genug Luft */
        max-width: 48%;
        top: 1%;
        bottom: unset;
        
    }


    .image-overlay-text p {
        font-size: 1.1rem;
        line-height: 1.4;
        font-weight: 400;
        /* Optionaler leichter Schatten für bessere Lesbarkeit auf hellem Hintergrund */
        text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
    }

    .highlight-orange {
        font-size: 1.5rem;
    }

    .footer-image {
        object-position: 57% 5%;
    }

}

/* Sektion 5 Styling */
.services-section {
    padding: 100px 20px;
    text-align: center;
    background-color: #ffffff;
    height: auto;
    background-color: var(--reveal-yellow);
    position: relative;
}

.container-s5 {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.bg-sphere {
    position: absolute;
    height: 70vh;
    max-width: 70vw;
    width: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    /* Weiche Übergänge für alle Zustände */
    transition: opacity 0.3s ease-in-out, filter 0.4s ease, transform 0.5s ease;
    filter: grayscale(0%);
    opacity: 1;
}

/* Hilfsklasse für den Moment des Bildwechsels */
.bg-sphere.switching {
    opacity: 0;
}

/* Dieser Zustand wird durch JS beim Klick aktiviert */
.bg-sphere.is-active {
    filter: grayscale(0%);
    opacity: 0.2;
    transform: scale(1); /* Falls du den Zoom-Effekt doch nicht willst */
    filter: blur(2px);
}

/* Der Haupt-Container für das Grid */
.keywords-container {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin: 0 auto;
    height: 45vh;
    padding: 5vh;
    background-color: var(--reveal-yellow)
}

.keyword-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Das einzelne Wort */
.keyword-item {
    line-height: 1.5;
    font-size: clamp(1.1rem, 3.2vw, 2.5rem);
    Font-weight: 500;
    color: var(--sage-green);
    /*text-shadow: 0 0px 1px black;*/
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.2em 0.1em;
    white-space: nowrap;
   }

/* Hover & Aktiv Zustand */
.keyword-item:hover, .keyword-item.active {
    color: var(--p-orange);
    transform: scale(1.05);
}

/* DIE LÖSUNG FÜR DIE BREITE:
   Die Info-Box bekommt die Anweisung, alle 12 Spalten zu bespannen.
   Durch 'order' im JS wird sie direkt unter die Zeile geschoben.
*/
.keyword-info {
    max-height: 0;
    overflow: hidden;
    font-size: clamp(1.05rem, 2.5vh, 1.3rem);
    color: var(--p-orange);
    text-align: center;
    transition: all 0.4s ease-in-out;
    background: transparent;
    border: none;
    width: 100%;
    line-height: 1.7;
}

.keyword-info.open {
    max-height: 200px; /* Genug Platz für den Text */
    padding: 20px;
    margin: 1px 0 1px 0;
    
}

/* Optional: Das aktive Wort hervorheben, damit man weiß, worauf sich der Text bezieht */
.keyword-item.active {
    color: var(--p-orange);
    font-weight: 600;
}

.bullet {
    color: var(--p-orange); /* Oder deine Highlight-Farbe */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    pointer-events: none; /* Verhindert, dass das Bullet den Hover-Effekt der Nachbarn stört */
}

.grid-bullet {
    font-size: clamp(1.4rem, 3.3vw, 2.9rem);
    color: var(--p-orange);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    margin: 0 0.5em;
}

/* Responsive Anpassung */
@media (max-width: 900px) {
   .services-section {
        height: auto;
        /*min-height: 100vh;*/
        padding: 60px 20px;
    }
   
    .bg-sphere {
        width: 300px;
        opacity: 0.4; /* Etwas transparenter, damit der Text darüber lesbar bleibt */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        filter: grayscale(57%) blur(2px);
        transition: unset;
    }

   .keywords-container {
        height: auto;        /* ← das ist der Fix */
        min-height: 0;       /* ← verhindert dass irgendein Browser height: auto anders interpretiert */
        padding: 0;          /* statt 5vh Desktop-Padding */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: 100%;
        padding-top: 0;
    }
    
    .keyword-item {
        width: 100%;
        padding: 15px 10px;
        font-size: 1.1rem;
        /*border-bottom: 1px solid rgba(186, 99, 76, 0.2); */ /* Optionale Trennlinie */
        order: unset !important; /* Hebt die im JS gesetzte Grid-Order auf */
        transition: unset;
    }

    .keyword-info {
        width: 100%;
        order: unset !important; /* Text erscheint nun direkt nach dem Item im HTML-Fluss */
        /*background-color: rgba(0, 0, 0, 0.03); */ /* Leichte Abhebung des offenen Textes */
        font-size: 0.9rem;
        transition: unset;;
    }

    .keyword-info.open {
        max-height: none; /* Auf Mobile darf der Text so lang sein wie er will */
        padding: 20px;
    }


    /* Bullets komplett entfernen */
    .grid-bullet, .bullet {
        display: none !important;
    }

}

/*==============================================
    SEKTION 5.1 BILDER
    ==========================================*/

.images-section {
    background-color: #ffffff; /* Weißer Hintergrund */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8vh 0; /* Etwas Luft oben und unten */
    position: relative;
}

.image-flipper {
    position: relative;
    width: min(70vw, 90vh); /* 90vh = 60vh * 1.5 (Ratio 3:2) */
    aspect-ratio: 3 / 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Bild passt sich komplett in die Box ein */
    opacity: 0;
    transition: opacity 0.6s ease-in-out; /* Weiche Überblendung */
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-caption {
    position: absolute;
    bottom: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    pointer-events: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    z-index: 5;
    display: none;
}

.slide-caption:not(:empty) {
  display: block;
}


/* ─── STEUERUNG AM UNTEREN RAND ─── */
.flipper-controls {
    position: absolute;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.ctrl-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.ctrl-btn:hover {
    transform: scale(1.2);
}

/* Pfeile ‹ › aus Border-Winkel */
.ctrl-prev::before,
.ctrl-next::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 3px solid var(--p-orange);
    border-right: 3px solid var(--p-orange);
}
.ctrl-prev::before { transform: rotate(-135deg); margin-right: 3px; }
.ctrl-next::before { transform: rotate(45deg); margin-left: 3px; }

/* Pause: zwei Balken (Default-Zustand) */
.ctrl-pause::before,
.ctrl-pause::after {
    content: "";
    width: 4px;
    height: 16px;
    background-color: var(--p-orange);
    margin: 0 2px;
}

/* Play: Dreieck (aktiv, wenn Klasse is-playing gesetzt ist) */
.ctrl-pause.is-playing::before {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid var(--p-orange);
    background: none;
    margin: 0 0 0 3px;
}
.ctrl-pause.is-playing::after {
    content: none;
}

@media (max-width: 900px) {
    .images-section{ padding: 2vh 0}

    .image-flipper {
        width: 100%;
        max-width: 70vw;
        aspect-ratio: unset;
        height: 60vh;
    }

    .slide-caption {
        bottom: 91px;
        left: 0;
        right: 0;
        text-align: center;
        transform: none;
        background: transparent;
        color: var(--sage-green);
    }
}    


@media (max-width: 900px) and (orientation: landscape) {

    .image-flipper {
        width: min(150vh, 100vw); /* 150vh = 100vh × 1.5 (Ratio 3:2) */
        height: 100vh;
        max-width: none;
        aspect-ratio: unset;
    }

    .flipper-controls {
        background-color: transparent;
        box-shadow: none;
    }

    .slide-caption {
        bottom: 14px;
        top: auto;
        left: auto;
        right: 14px;
        text-align: right;
        transform: none;
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        font-size: 10px;
        padding: 3px 10px;
        border-radius: 20px;
    }
}

/* =============================================
   SEKTION 5.5 — Preise
   Fallback (vw-basiert) für Safari < 16,
   dann @supports (width: 1cqw) überschreibt
   auf Browsern mit Container Query Unit Support.
   ============================================= */
 
/* ── Basis-Layout (immer aktiv) ── */
.preise-section {
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 5vh;
}


 
.preise-container {
    position: relative;
    width: clamp(100vmin, 95vw, 1300px);
    aspect-ratio: 16 / 12;
    /*flex-shrink: 0;*/
    overflow: visible;
    margin: 0 auto;
    pointer-events: none;
    container-type: size;
    container-name: preise;
}
 
.card-scroll-wrapper {
    margin-top: 1px;
}
 
/* Flip mechanic — keine cqw, immer aktiv */
.card-wrapper {
    position: absolute;
    pointer-events: all;
    perspective: 1200px;
    cursor: pointer;
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.card-wrapper.flipped .card-inner {
    transform: rotateY(180deg);
}
 
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    overflow: visible;
    box-sizing: border-box;
}
 
.card-back {
    transform: rotateY(180deg) translateZ(1px);
}
 
.card-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    transform: translateZ(0);
}
 
.card-content {
    position: relative;
    z-index: 1;
}
 
.card-list {
    position: absolute;
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.card-list-flipped {
    position: absolute;
    list-style: disc;
    padding: 0;
    margin: 0;
    line-height: 1.5;
}
 
.card-list--orange li { color: var(--p-orange); line-height: 1.5; }
.card-list li { line-height: 1.4; }
 
.card-price {
    position: absolute;
    z-index: 2;
    /* Wrapper für price-note (absolute) + price-big (flow) */
}
 
.price-note {
    /* position: absolute — wird per Karten-Klasse individuell gesetzt */
    position: absolute;
    display: block;
    color: var(--p-orange);
    font-style: italic;
}
 
.price-big {
    display: block;
    color: var(--p-orange);
    line-height: 1.1;
    font-weight: 500;
}

.price-big-li {
    display: block;
    color: var(--p-orange);
    line-height: 1.1;
    font-weight: 500;
}
 
.price-big-main {
    display: block;
    color: var(--p-orange);
    line-height: 1.1;
    font-weight: 500;
}

.flip-arrow-re {
  position: absolute;
  bottom: 2vw; 
  right: 2vw;  
  font-size: 1.5vw;
  color: var(--p-orange); /* Nimmt direkt deine Akzentfarbe auf */
  opacity: 0.6;
  transition: all 0.3s ease;
}

.flip-arrow-li {
  position: absolute;
  bottom: 2vw; 
  right: 2vw;  
  font-size: 1.5vw;
  color: var(--p-orange); /* Nimmt direkt deine Akzentfarbe auf */
  opacity: 0.6;
  transition: all 0.3s ease;
}
 
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.1em;
}
 
.price-label { color: var(--p-orange); line-height: 1.5; }
.price-amount { color: var(--p-orange); }
 
.price-desc {
    color: var(--p-orange);
    margin: 0 0 0.7em 0;
    line-height: 1.3;
    font-style: italic;
}
 
.card-title {
    color: var(--p-orange);
    font-weight: 600;
    margin: 0 0 0.3em 0;
    line-height: 1.2;
}
 
.card-title-flipped {
    color: var(--p-orange);
    font-weight: 500;
    margin: 0.3em 0 0.3em 0;
    text-align: right;
    line-height: 1.2;
}
 
.card-subtitle {
    color: var(--p-orange);
    font-style: italic;
    margin: -0.5rem 0 1em 0;
}
 
.card-subtitle-flipped {
    color: var(--p-orange);
    font-style: italic;
    margin: -0.7em 0 1em 0;
    text-align: right;
}
 
/* Plus */
.plus-wrap {
    position: absolute;
    pointer-events: none;
    z-index: 20;
}
.plus-wrap .bar {
    position: absolute;
    background: var(--p-orange);
    border-radius: 1px;
}
 
/* ── FALLBACK: vw-Äquivalente für Safari < 16 ──
   Basis: Container ist ~95vw breit.
   1cqw ≈ 0.95vw — gerundet auf 1vw für Einfachheit.
   Radius: 13.8cqw ≈ 13.8vw
   ────────────────────────────────────────────── */
 
/* Headline */
.preise-headline {
    position: absolute;
    top: 10%;
    left: 5%;
    color: var(--p-orange);
    line-height: 1.4;
    font-weight: 600;
    pointer-events: none;
    padding-bottom: 4vw;
    /* Fallback */
    font-size: 2.2vw;
    letter-spacing: 0.1vw;
}
 
/* Card positions — Fallback */
#card1 { left: 3.5vw;   bottom: 10vw; width: 19.5vw; height: 36.1vw; }
#card2 { left: 24.72vw; bottom: 10vw; width: 29.3vw;  height: 49.1vw; }
#card3 { left: 55.76vw; bottom: 10vw; width: 19.5vw;  height: 44vw; }
#card4 { left: 77vw;    bottom: 10vw; width: 19.5vw;  height: 28vw; }
 
/* Border-radius — Fallback */
.card-face-br-bl  { border-radius: 0 0 0 13.8vw; }
.card-face-br-br  { border-radius: 0 0 13.8vw 0; }
.card-face-br-tr  { border-radius: 0 13.8vw 0 0; }
.card-face-br-tl  { border-radius: 13.8vw 0 0 0; }
 
.card-clip-br-bl  { border: 1.2px solid var(--p-orange); border-radius: 0 0 0 13.8vw; background: transparent; }
.card-clip-br-br  { border: 1.2px solid var(--p-orange); border-radius: 0 0 13.8vw 0; background: transparent; }
.card-clip-bg-br  { background: var(--reveal-yellow); border-radius: 0 0 13.8vw 0; }
.card-clip-bg-bl  { background: var(--reveal-yellow); border-radius: 0 0 0 13.8vw; }
.card-clip-bg2-tr { background: var(--text-inactive); border-radius: 0 13.8vw 0 0; }
.card-clip-bg2-tl { background: var(--text-inactive); border-radius: 13.8vw 0 0 0; }
.card-clip-bg2-br { background: var(--text-inactive); border-radius: 0 0 13.8vw 0; }
.card-clip-bg2-bl { background: var(--text-inactive); border-radius: 0 0 0 13.8vw; }
 
/* Plus — Fallback */
.plus-wrap        { width: 2vw; height: 2vw; }
.plus-tr          { top: -1.1vw;  right: -1.1vw; }
.plus-tl          { top: -1.1vw;  left:  -1.1vw; }
.plus-wrap .bh    { width: 2vw;   height: 0.3vw; left: 0; top: calc(50% - 0.15vw); }
.plus-wrap .bv    { width: 0.3vw; height: 2vw;   left: calc(50% - 0.15vw); top: 0; }
 
/* Typografie — Fallback */
.card-content     { padding: 1.5vw; }
.card-title       { font-size: 1.8vw; }
.card-title-flipped { font-size: 1.2vw; }
.card-subtitle    { font-size: 1.3vw; }
.card-subtitle-flipped { font-size: 0.9vw; }
 
/* card-subtitle-flipped individuelle Abstände — Fallback */
.card-subtitle-flipped-1 { margin-right: 4.4vw; }
.card-subtitle-flipped-2 { margin-right: 6.6vw; }
.card-subtitle-flipped-3 { margin-right: 3vw; }
.card-subtitle-flipped-4 { margin-right: 3vw; }
 
.card-list        { bottom: 11.4vw; left: 3.1vw; right: 1.5vw; letter-spacing: 0.05vw; }
.card-list li     { padding: 0.2em 0; font-size: 1.2vw; }
.card-list-flipped { bottom: 11.4vw; left: 3vw; right: 1.5vw; font-size: 1.2vw; letter-spacing: 0.05vw; }
 
.card-price       { bottom: 5.5vw; right: 3.5vw; }
.price-note       { font-size: 1.1vw; }
.price-big        { font-size: 1.6vw; }
.price-big-li     { font-size: 1.6vw; }
.price-label      { font-size: 1.3vw; }
.price-amount     { font-size: 1.3vw; }
.price-desc       { font-size: 1.1vw; }
.price-big-main   { font-size: 2.1vw; }
 
/* price-note individuelle Position — Fallback */
.card1-price-note { bottom: 1.5vw; right: 4.6vw; }
.card2-price-note { bottom: 2vw; right: 6.4; }
.card3-price-note { bottom: 1.5vw; right: 5vw; white-space: nowrap; }
.card4-price-note { bottom: 1.5vw; right: 5vw; white-space: nowrap; }
 
/* Inline-style Ersatz — Fallback */
.card1-title-sub  { text-align: left; margin-left: 5vw; }
.card2-title      { text-align: left; margin-left: 4vw; margin-top: 4vw; }
.card2-subtitle   { text-align: left; margin-left: 19vw; }
.card3-title      { text-align: left; margin-top: 2vw; }
.card3-subtitle   { text-align: left; padding-left: 3.3vw; }
.card3-back-div   { margin-top: 2vh; }
.card4-title      { text-align: left; margin-top: 1.5vw; }
.card4-subtitle   { text-align: left; padding-left: 3.7vw; }
.card4-back-div   { margin-top: 2vw; }
 
 
/* ══════════════════════════════════════════════
   @supports — überschreibt auf Browsern mit cqw
   ══════════════════════════════════════════════ */
@supports (width: 1cqw) {
 
    .preise-container { font-size: 2cqw; }
 
    .preise-headline {
        font-size: 2.2cqw;
        letter-spacing: 0.1cqw;
    }
 
    #card1 { left: 3.5cqw;   bottom: 10cqw; width: 19.5cqw; height: 36.1cqw; }
    #card2 { left: 24.72cqw; bottom: 10cqw; width: 29.3cqw;  height: 49.1cqw; }
    #card3 { left: 55.76cqw; bottom: 10cqw; width: 19.5cqw;  height: 44cqw; }
    #card4 { left: 77cqw;    bottom: 10cqw; width: 19.5cqw;  height: 28cqw; }
 
    .card-face-br-bl  { border-radius: 0 0 0 13.8cqw; }
    .card-face-br-br  { border-radius: 0 0 13.8cqw 0; }
    .card-face-br-tr  { border-radius: 0 13.8cqw 0 0; }
    .card-face-br-tl  { border-radius: 13.8cqw 0 0 0; }
 
    .card-clip-br-bl  { border-radius: 0 0 0 13.8cqw; }
    .card-clip-br-br  { border-radius: 0 0 13.8cqw 0; }
    .card-clip-bg-br  { border-radius: 0 0 13.8cqw 0; }
    .card-clip-bg-bl  { border-radius: 0 0 0 13.8cqw; }
    .card-clip-bg2-tr { border-radius: 0 13.8cqw 0 0; }
    .card-clip-bg2-tl { border-radius: 13.8cqw 0 0 0; }
    .card-clip-bg2-br { border-radius: 0 0 13.8cqw 0; }
    .card-clip-bg2-bl { border-radius: 0 0 0 13.8cqw; }
 
    .plus-wrap        { width: 2cqw; height: 2cqw; }
    .plus-tr          { top: -1.1cqw;  right: -1.1cqw; }
    .plus-tl          { top: -1.1cqw;  left:  -1.1cqw; }
    .plus-wrap .bh    { width: 2cqw;   height: 0.3cqw; left: 0; top: calc(50% - 0.15cqw); }
    .plus-wrap .bv    { width: 0.3cqw; height: 2cqw;   left: calc(50% - 0.15cqw); top: 0; }
 
    .card-content       { padding: 1.5cqw; }
    .card-title         { font-size: 1.8cqw; }
    .card-title-flipped { font-size: 1.5cqw; }
    .card-subtitle      { font-size: 1.3cqw; }
    .card-subtitle-flipped { font-size: 1.1cqw; }
 
    /* card-subtitle-flipped individuelle Abstände — cqw */
    .card-subtitle-flipped-1 { margin-right: 4.4cqw; }
    .card-subtitle-flipped-2 { margin-right: 6.6cqw; }
    .card-subtitle-flipped-3 { margin-right: 3cqw; }
    .card-subtitle-flipped-4 { margin-right: 3cqw; }
 
    .card-list          { bottom: 11.4cqw; left: 3.1cqw; right: 1.5cqw; letter-spacing: 0.05cqw; }
    .card-list li       { font-size: 1.2cqw; }
    .card-list-flipped  { bottom: 11.4cqw; left: 3cqw; right: 1.5cqw; font-size: 1.2cqw; letter-spacing: 0.05cqw; }
 
    .card-price         { bottom: 5.5cqw; right: 3.5cqw; }
    .price-note         { font-size: 1.1cqw; }
    .price-big          { font-size: 2cqw; }
    .price-big-li       { font-size: 2cqw; }
    .price-label        { font-size: 1.3cqw; }
    .price-amount       { font-size: 1.3cqw; }
    .price-desc         { font-size: 1.1cqw; }
    .price-big-main     { font-size: 2.7cqw; }
 
    /* price-note individuelle Position — cqw */
    .card1-price-note { bottom: 1.8cqw; right: 5.7cqw; }
    .card2-price-note { bottom: 2.5cqw; right: 7.7cqw; }
    .card3-price-note { bottom: 1.8cqw; right: 6.2cqw; white-space: nowrap; }
    .card4-price-note { bottom: 1.8cqw; right: 6.2cqw; white-space: nowrap; }
 
    .card1-title-sub    { margin-left: 5cqw; }
    .card2-title        { margin-left: 4cqw; margin-top: 4cqw; }
    .card2-subtitle     { margin-left: 19.4cqw; }
    .card3-title        { margin-top: 2cqw; }
    .card3-subtitle     { padding-left: 3.3cqw; }
    .card3-back-div     { margin-top: 2cqw; }
    .card4-title        { margin-top: 1.5cqw; }
    .card4-subtitle     { padding-left: 3.7cqw; }
    .card4-back-div     { margin-top: 2cqw; }

    .flip-arrow-re         { bottom: 2cqw; right: 2cqw; font-size: 1.5cqw; }
    .flip-arrow-li         { bottom: 2cqw; left: 2cqw; font-size: 1.5cqw; }

}
 
 
/* =============================================
   MOBIL HOCHFORMAT — JS-Karussell
   ============================================= */
@media (max-width: 600px) and (orientation: portrait) {
 
    .preise-section {
        align-items: stretch;
        overflow: hidden;
        height: 100vh;
        flex-direction: column;
        padding: 0;
    }

    .section-headline-5 {display: none;}
 
    .preise-container {
        width: 100vw;
        height: 100vh;
        aspect-ratio: unset;
        max-height: unset;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        container-type: inline-size;
        font-size: 4vw;
    }
 
    .preise-headline {
        position: relative;
        top: auto;
        left: auto;
        flex-shrink: 0;
        font-size: 4.5vw;
        padding: 5vw 6vw 3vw;
        pointer-events: none;
    }
 
    .card-scroll-wrapper {
        flex: 1;
        position: relative;
        overflow: hidden;
        width: 100%;
    }
 
    .card-track {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        height: 100%;
        will-change: transform;
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding-bottom: 8vh;
        box-sizing: border-box;
    }
 
    #card1, #card2, #card3, #card4 {
        position: relative;
        left: auto;
        bottom: auto;
        flex-shrink: 0;
        width: 60vw;
        max-height: 75vh;
        margin: 0 2.5vw;
    }
 
    #card1 { height: 55vh; }
    #card2 { height: 75vh; }
    #card3 { height: 67vh; }
    #card4 { height: 42vh; }
 
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 8px 0 1vh;
        flex-shrink: 0;
    }
 
    .carousel-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--text-inactive);
        transition: background 0.3s ease, transform 0.3s ease;
        cursor: pointer;
    }
 
    .carousel-dot.active {
        background: var(--p-orange);
        transform: scale(1.4);
    }
 
    /* Plus */
    .plus-wrap        { width: 4vw; height: 4vw; }
    .plus-tr          { top: -2vw; right: -2vw; }
    .plus-tl          { top: -2vw; left:  -2vw; }
    .plus-wrap .bh    { width: 4vw;   height: 0.6vw; top: calc(50% - 0.3vw); left: 0; }
    .plus-wrap .bv    { width: 0.6vw; height: 4vw;   left: calc(50% - 0.3vw); top: 0; }
 
    /* Typografie */
    .card-title         { font-size: 6vw; margin-left: 5vw;}
    .card-title-flipped { font-size: 6vw; }
    .card-subtitle      { font-size: 4.5vw; }
    .card-subtitle-flipped      { font-size: 4.5vw; margin-top: -2vh; margin-bottom: 8vh}
    /* card-subtitle-flipped individuelle Abstände — mobil */
    .card-subtitle-flipped-1 { margin-right: 17vw; }
    .card-subtitle-flipped-2 { margin-right: 28vw; }
    .card-subtitle-flipped-3 { margin-right: 12vw; }
    .card-subtitle-flipped-4 { margin-right: 12vw; }

    .card1-title-sub  { text-align: left; margin-left: 21vw; }
    .card2-subtitle   { text-align: left; margin-left: 26vw; }
    .card3-subtitle   { text-align: left; padding-left: 16.3vw; }
    .card4-subtitle   { text-align: left; padding-left: 16.7vw; }
 
    .card-list          { bottom: 29.4vw; }
    .card-list li       { font-size: 4vw; margin-left: 2vw; }
    .card-list-flipped  { font-size: 4vw; left: 9vw; bottom: 15vh }
    .price-note         { font-size: 3.5vw; }
    .price-big          { font-size: 8vw; margin-right: 0vw; }
    .price-big-li       { font-size: 8vw; margin-right: 10vw; }
    .price-label        { font-size: 4vw; margin-left: 3vw; margin-top: 0.4vh }
    .price-amount       { font-size: 4vw; margin-right: 3vw; }
    .price-desc         { font-size: 3.4vw; margin-left: 3vw; }
    .price-big-main     { font-size: 9vw; margin-right: 10vw; }
 
    /* price-note individuelle Position — mobil */
    .card1-price-note { bottom: 7vw; right: 24vw; }
    .card2-price-note { bottom: 8vw; right: 34vw; }
    .card3-price-note { bottom: 7vw; right: 21vw; }
    .card4-price-note { bottom: 7vw; right: 31vw; }
 
    /* Border-radius mobil */
    .card-face-br-bl  { border-radius: 0 0 0 30vw; }
    .card-face-br-br  { border-radius: 0 0 30vw 0; }
    .card-face-br-tr  { border-radius: 0 30vw 0 0; }
    .card-face-br-tl  { border-radius: 30vw 0 0 0; }
    
    .card-clip-br-bl  { border-radius: 0 0 0 30vw; }
    .card-clip-br-br  { border-radius: 0 0 30vw 0; }
    .card-clip-bg-br  { border-radius: 0 0 30vw 0; }
    .card-clip-bg-bl  { border-radius: 0 0 0 30vw; }
    .card-clip-bg2-tr { border-radius: 0 30vw 0 0; }
    .card-clip-bg2-tl { border-radius: 30vw 0 0 0; }
    .card-clip-bg2-br { border-radius: 0 0 30vw 0; }
    .card-clip-bg2-bl { border-radius: 0 0 0 30vw; }

    .flip-arrow-re       { bottom: 3vw; right: 4vw; font-size: 4vw; }
    .flip-arrow-li       { bottom: 3vw; left: 4vw; font-size: 4vw; }
 
    @supports (width: 1cqw) {
        .preise-container   { font-size: 4cqw; }
        .preise-headline    { font-size: 4.5cqw; }
 
        .card-face-br-bl  { border-radius: 0 0 0 30cqw; }
        .card-face-br-br  { border-radius: 0 0 30cqw 0; }
        .card-face-br-tr  { border-radius: 0 30cqw 0 0; }
        .card-face-br-tl  { border-radius: 30cqw 0 0 0; }
        
        .card-clip-br-bl  { border-radius: 0 0 0 30cqw; }
        .card-clip-br-br  { border-radius: 0 0 30cqw 0; }
        .card-clip-bg-br  { border-radius: 0 0 30cqw 0; }
        .card-clip-bg-bl  { border-radius: 0 0 0 30cqw; }
        .card-clip-bg2-tr { border-radius: 0 30cqw 0 0; }
        .card-clip-bg2-tl { border-radius: 30cqw 0 0 0; }
        .card-clip-bg2-br { border-radius: 0 0 30cqw 0; }
        .card-clip-bg2-bl { border-radius: 0 0 0 30cqw; }

        .card1-title-sub    { margin-left: 21cqw; }
        .card2-subtitle     { margin-left: 26cqw; }
        .card3-subtitle     { padding-left: 16.3cqw; }
        .card4-subtitle     { padding-left: 16.7cqw; }

 
        .card-subtitle-flipped      { margin-top: -3cqw; margin-bottom: 8cqw;}
        /* card-subtitle-flipped individuelle Abstände — mobil cqw */
        .card-subtitle-flipped-1 { margin-right: 17cqw; }
        .card-subtitle-flipped-2 { margin-right: 28cqw; }
        .card-subtitle-flipped-3 { margin-right: 12cqw; }
        .card-subtitle-flipped-4 { margin-right: 12cqw; }
 
        .card-list          { bottom: 29.4cqw; }
        .card-list li       { font-size: 4cqw; margin-left: 2cqw; }
        .card-list-flipped  { font-size: 4cqw; left: 9cqw; bottom: 25cqw }
        .price-note         { font-size: 3.5cqw; }
        .price-big          { font-size: 8cqw; margin-right: 0cqw;}
        .price-big-li       { font-size: 8cqw; margin-right: 10cqw;}
        .price-label        { font-size: 4cqw; margin-left: 3cqw; margin-top: 1cqw; }
        .price-amount       { font-size: 4cqw; margin-right: 3cqw; }
        .price-desc         { font-size: 3.4cqw; margin-left: 3cqw; }
        .card-title         { font-size: 6cqw; margin-left: 5cqw; }
        .card-title-flipped { font-size: 6cqw; }
        .card-subtitle      { font-size: 4.5cqw; }
        .price-big-main     { font-size: 8.7cqw; margin-right: 10cqw; }
 
        /* price-note individuelle Position — mobil cqw */
        .card1-price-note { bottom: 7cqw; right: 23cqw; }
        .card2-price-note { bottom: 8cqw; right: 34cqw; }
        .card3-price-note { bottom: 7cqw; right: 21cqw; }
        .card4-price-note { bottom: 7cqw; right: 31cqw; }

        .flip-arrow-re      { bottom: 1cqw; right: 2cqw; font-size: 4cqw; }
        .flip-arrow-li      { bottom: 1cqw; left: 2cqw; font-size: 4cqw; }

    }
}

@media (max-height: 690px) and (orientation: portrait) {
    .price-desc {
        margin: -0.6vh 0.5vw -0.2vh 0.5vw;
    }

    .card-subtitle-flipped      { font-size: 4.5vw; margin-top: -2vh; margin-bottom: 4vh}
}

/*Andrehen beim ersten Anzeigen*/


@keyframes card-peek {
    0%   { transform: rotateY(0deg); }
    35%  { transform: rotateY(-32deg); }
    55%  { transform: rotateY(-28deg); }
    100% { transform: rotateY(0deg); }
}

.card-inner.peek {
    animation: card-peek 1s cubic-bezier(0.4, 0.2, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .card-inner.peek {
        animation: none;
    }
}


/* SEKTION 6 */

.marquee-section {
    position: relative;
    width: 100%;
    overflow: visible;
    background-color: transparent; /* Laufbandfarbe #bac2b9*/
    padding: 0;
    margin: 0;
    display: flex;
    cursor: none; /* Optional: Versteckt den Standard-Cursor für besseren Effekt */
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    /* Entfernt den Standard-Abstand unter Buchstaben wie 'g' oder 'y' */
    line-height: 1;
}

.marquee-content {
    display: flex;
    animation: marquee-animation 120s linear infinite;
    margin-top: 5vh;
}

.marquee-content span {
    font-family: 'Work', sans-serif;
    font-size: 6rem;
    font-weight: 600;
   
    line-height: 0.76;
}

/* Ebene 1: Die unauffällige Farbe */
.base-layer span {
    color: var(--p-orange); /* Helles Grau/Beige #cfcba0*/
}

/* Ebene 2: Die Spotlight-Farbe */
.highlight-layer {
    position: absolute;
    top: 0; /* Muss mit Padding der Sektion übereinstimmen */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Klicks gehen durch auf die Sektion */
    display: flex;
    align-items: center;

    /* HIER die Farbe des Kreises (Hintergrund im Guckloch) ändern */
    background-color: #979575;
    
    /* Das Guckloch (Spotlight) */
    -webkit-mask-image: radial-gradient(circle 12vw at var(--x, 0) var(--y, 0), black 100%, transparent 100%);
    mask-image: radial-gradient(circle 12vw at var(--x, 0) var(--y, 0), black 100%, transparent 100%);
}

.highlight-layer span {
    color: var(--p-orange); /* Das kräftige Orange */
}

@keyframes marquee-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* KALENDAR SEKTION */
/* ============================================================
   SEKTION 7 – KALENDAR & KONTAKT
   Korrigierte Version
   Änderungen gegenüber Original sind mit ← FIX markiert
   ============================================================ */

.kontakt-text {
    font-size: 1.25rem;
    line-height: 1.5;
    text-align: justify;
    color: var(--sage-green);
}

.kontakt-headline {
    font-size: 2.5rem;
    color: var(--p-orange);
    margin-bottom: -24px;
    font-weight: 400;
}

.booking-section {
    min-height: 100vh;
    height: auto;
    padding: 7vh 5vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
}

.container-s7 {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    padding: 5vh;
    align-items: flex-start; /* ← FIX: sicherstellt dass beide Boxen gleichhoch sind */
}

/* DIE BOXEN – gemeinsame Basis */
.contact-box,
.calendar-box {
    flex: 1;
    min-width: 320px;
    padding: 40px;
    border-radius: 2px;
    position: relative;
    max-width: 600px;
    /* ← FIX: max-height entfernt – das feste max-height: 75vh (+ Tippfehler mAX-height)
       kämpfte gegen den Kalender-Inhalt (Iframe 690px + Titel + Note).
       Die Höhe ergibt sich jetzt organisch aus dem Inhalt. */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* ← FIX: war 'center', verhinderte flex-grow der Textarea */
}

.contact-box {
    background-color: var(--text-inactive);
    justify-content: flex-start; /* ← FIX: hier im CSS statt als Inline-Style im HTML */
    max-height: none;
    overflow: hidden;
}

/* ============================================================
   FORMULAR (iOS Flex- & Autofill-Fix)
   ============================================================ */

#contact-form {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
   /* height: 100%;*/
   flex-grow: 1;
}

#contact-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f2ede4;
    padding: 10px 0; /* Etwas mehr Padding, damit die Schrift nicht auf der Linie klebt */
    margin-bottom: 0px;
    color: #f2ede4;
    font-style: italic;
    outline: none;
    
    /* Verhindert, dass iOS das Feld bei Platzmangel zusammenschiebt */
    flex-shrink: 0; 
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

#contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f2ede4;
    padding: 15px 0;
    margin-bottom: 40px; /* Fester Abstand statt %, das ist sicherer für iOS */
    color: #f2ede4;
    font-family: inherit;
    font-size: 1rem;
    font-style: italic;
    outline: none;
    resize: none;
    
    /* Auch hier Schutz vor dem Quetscheffekt */
    flex-shrink: 0; 
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #f2ede4;
}

.form-note {
    position: absolute;
    bottom: 11%;
    left: 7%;
    font-size: 0.8rem;
    color: #f2ede4;
    font-style: italic;
}
/* ============================================================
   TOGGLE-BUTTON (Absenden)
   ============================================================ */

.toggle-btn {
    position: absolute;
    bottom: 30px;
    right: 40px;
    width: 60px;
    height: 30px;
    background: #eeefb7;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    z-index: 20;
}

.toggle-btn::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    width: 22px;
    height: 22px;
    background: var(--p-orange);
    border-radius: 50%;
}

/* ============================================================
   KALENDER-BOX
   ============================================================ */

.calendar-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ← FIX: war 'start' (kein gültiger Wert), jetzt 'flex-start' */
    align-items: center;
    text-align: center;
    background-color: var(--sage-green);
    opacity: 0.5;
    padding: 40px;
}

.calendar-title {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #444;
}

.calendar-wrapper {
    height: 550px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    isolation: isolate;
    clip-path: inset(0);
}

.calendar-wrapper iframe {
    top: 0 !important;
    left: 0 !important;
    width: 470px;
    height: 690px !important;
    border: 0 !important;
    display: block;
}

.note-small {
    font-size: 0.7rem;
    color: #444;
    font-style: italic;
    margin-top: -2vh;
}

/* ============================================================
   EASY!APPOINTMENTS – Header ausblenden
   ============================================================ */

#book-appointment-page .ea-header,
#book-appointment-page .header,
#book-appointment-page .steps {
    display: none !important;
}

#book-appointment-page {
    padding-top: 0 !important;
}

#book-appointment-page > div:first-child {
    display: none !important;
}

/* ============================================================
   DSGVO-CONSENT
   ============================================================ */

.consent-text {
    color: white !important;
    margin-bottom: 30px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.consent-text a {
    color: white;
    text-decoration: underline;
}

/* ============================================================
   SONSTIGES
   ============================================================ */

.calendar-display-none {
    display: none;
    width: 100%;
    height: 100%;
}

.calendar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.booking-text {
    color: var(--p-orange);
    font-weight: bold;
}

.calendar-btn {
    background-color: var(--p-orange);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 15px;
}

.calendar-btn:hover {
    background-color: var(--p-orange);
}

#custom-calendar-trigger {
    cursor: pointer !important;
    pointer-events: all !important;
}

#cal-booking-widget {
    background: var(--bg-color);
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.calendar-button {
    display: none;
}

/* ============================================================
   RESPONSIVE – Portrait / Schmal / Klein
   ============================================================ */

@media screen and (orientation: portrait),
       screen and (max-width: 900px),
       screen and (max-height: 500px) {

    .booking-section {
        height: auto;
        min-height: 100svh;
        padding: 80px 20px;
        box-sizing: border-box;
        width: 100%;
        overflow-x: hidden;
    }

    .container-s7 {
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 2vh;
    }

    .contact-box,
    .calendar-box {
        min-height: auto;
        width: 100%;
        max-width: 100%;
        /* ← FIX: max-height: 75vh entfernt – auf Mobilgeräten hat das Kalender-
           Iframe nach Skalierung ca. 600px Höhe; ein hartes max-height schneidet
           das sonst ab. */
        box-sizing: border-box;
    }

    .calendar-box {
        padding: 30px 0px;
        height: auto;
    }

    .calendar-wrapper {
        width: 100%;
        max-width: 100%;
        height: 600px;
        overflow: hidden;
        position: relative;
        isolation: isolate;
        clip-path: inset(0);
        display: flex;
        justify-content: center;
    }

    .calendar-wrapper iframe {
       /* width: 100% !important;
        max-width: 100% !important;*/
        height: 1100px !important;
        transform: scaleX(0.85), scale(0.98), translateY(-500px); /* ← top durch transform ersetzen */
        transform-origin: top center;
        left: 0 !important;
        display: block;
      }

    .form-note {
        bottom: 9%;
        font-size: 0.7rem;

    }
}


/* SEKTION 8: Q&A */
.qa-section {
    padding: 8vh 5vw 0vh 5vw;
    background-color: var(--bg-color);
    text-align: center;
    position: relative;
    min-height: 100vh; 
}

.qa-headline {
    color: var(--p-orange);
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: normal;
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.qa-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-size: clamp(18rem,25vw,24rem);
    font-weight: 400;
    color: var(--text-inactive); 
    z-index: -1;
    pointer-events: none;
    letter-spacing: -0.05em;
    opacity: 0.5;
}

.qa-item {
    border-bottom: 1px solid var(--p-orange);
    text-align: left;
    margin-bottom: 10px;
}

.qa-question {
    padding: 15px 0;
    color: var(--p-orange);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.qa-answer {
    padding-bottom: 20px;
    color: var(--p-orange);
    font-size: 0.95rem;
    line-height: 1.5;
    display: none; /* Standardmäßig zu */
}

@media (max-width: 900px) {
    /* Sektion 8 Anpassungen */
    .qa-section {
        padding: 60px 20px;
        overflow: hidden; /* Verhindert Scrollen durch das gedrehte Element */
    }

    .qa-headline {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .qa-bg-text {
        /* Schriftgröße massiv erhöhen für den "Hintergrund-Look" */
        font-size: 35vh; 
        
        /* Zentrierung beibehalten und um 90 Grad drehen */
        /* translate(-50%, -50%) sorgt für die Mitte, rotate(90deg) für die Drehung */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-90deg);
        
        /*opacity: 0.5;*/ /* Etwas dezenter, da es jetzt größer ist */
        white-space: nowrap;
        width: auto;
    }

    .qa-container {
        width: 100%;
        padding: 0 10px;
    }

    .qa-question {
        font-size: 1rem;
        padding: 20px 0;
    }
}

/* FOOTER */
.site-footer {
    display: flex;
    width: 100%;
    height: 60px;
}

.footer-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.footer-col a {
    text-decoration: none;
    /* Die allgemeine Farbe Weiß entfernen wir hier, 
       da wir sie unten spezifisch festlegen */
    text-transform: uppercase;
}

/* Spezifische Hintergrund- und Schriftfarben */

.col-agb { 
    background-color: var(--reveal-yellow); 
}
.col-agb a { 
    color: #ffffff; 
}

.col-impress { 
    background-color: var(--sage-green); 
}
.col-impress a { 
    color: var(--text-inactive); 
}

.col-kontakt { 
    background-color: var(--text-inactive); 
}
.col-kontakt a { 
    color: var(--p-orange);  
/* AGB - Impressum - Kontakt*/
}


/* Navbar Anpassung für Unterseiten */
.navbar {
    position: fixed;
    top: 5vh;
    right: 5vw;
    z-index: 1001;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--p-orange);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Footer-Logo Integration */
.footer-image-small {
    width: 150px;
    display: block;
    margin: 50px auto;
    opacity: 0.8;
}

/* Responsive Korrektur */
@media (max-width: 900px) {
    main {
        margin-top: 0px !important;
    }

    h1 { 
        font-size: 1.8rem; 
    }

    /* FOOTER MOBIL UNTEREINANDER */
    .site-footer {
        display: flex !important;
        flex-direction: column !important; /* Stapelt die Boxen vertikal */
        height: auto !important;          /* Aufheben der 60px Desktop-Höhe */
    }

    .footer-col {
        width: 100% !important;
        flex: none !important;            /* Deaktiviert die gleichmäßige Aufteilung der Breite */
        height: 30px !important;          /* Jede Spalte bekommt ihre eigene Höhe */
        display: flex !important;
        justify-content: center;
        align-items: center;
        font-size: 1.0rem;
    }

    /* Navbar Korrektur */
    .navbar {
        top: 2vh;
        right: 5vw;
    }
} /* <--- Diese Klammer schließt die Media Query korrekt ab */