/* Die normale Version (enthält alle Gewichte von Thin bis Black) */
@font-face {
    font-family: 'Inter';
    src: url('Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

/* Die kursive Version */
@font-face {
    font-family: 'Inter';
    src: url('Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
}

/* In style-Sicherung.css ganz oben einfügen */
html {
    scroll-behavior: smooth;
}


:root {
    --bg-color: #e9e7d7;
    --text-inactive: #d2cc9f;
    --target-vw: 16vw; 
    --p-orange: #ba634c;
    --sage-green: #a3b4af;
    --reveal-yellow: #d2cca0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    background-color: var(--bg-color);
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.header {
    position: fixed;
    top: 5vh;
    left: 5vw;
    /*font-weight: bold;*/
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    z-index: 100;
}

/* 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;
}

/* Für Tablets und Handys (Bildschirme schmaler als 1024px) */
@media (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; /* Abstand zwischen den Blöcken */
    }

    .step {
        position: relative !important; /* Hebt die absolute Positionierung auf */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 500px;
        text-align: center !important; /* Text mittig für mobile Ansicht */
    }

.wood-ball {
        opacity: 0.3; /* Macht die Kugel semitransparent */
        filter: grayscale(0.5); /* Optional: macht sie etwas blasser für besseren Textkontrast */
        transition: opacity 0.3s ease;
    }

    .ball-anchor {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: 40px 0;
        width: 200px;
        z-index: 0; /* Legt die Kugel hinter den Text */
    }

    .vertical-line {
        display: none; /* Die rote Linie stört oft auf dem Handy */
    }

    .side-text {
        display: none; /* Das riesige Wort "Visibility" sprengt mobil meist den Rahmen */
    }
}

/* ABSCHNITT 1 */
.main-stage {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.text-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.stretch-block {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    gap: 0.5vh;
}

.word {
    font-size: var(--target-vw);
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scaleY(calc(50vh / (var(--target-vw) * 0.724)));
    transform-origin: center;
    /* Verschiebung nach links */
    position: relative;
    left: -0.5vw; /* Negativer Wert schiebt nach links */
}

.p-word { letter-spacing: 0.111em; }
.m-word { letter-spacing: 0.06em; }

.slogan {
    font-weight: 400;
    color: var(--p-orange);
    font-size: 3vw;
    margin-top: -12vh; 
    width: 100%;
    text-align: right;
    padding-right: 20vw;
    /* WICHTIGE ÄNDERUNGEN HIER: */
    position: relative; /* Ermöglicht die Nutzung von z-index */
    z-index: 99;        /* Höher als die Wörter (die standardmäßig 1 oder 0 haben) */
    pointer-events: none; /* Verhindert, dass der Slogan den Maus-Effekt blockiert */
   
}


.background-layer { color: var(--text-inactive); }
.reveal-layer {
    background-color: var(--sage-green);
    color: #d5d8c2;
    z-index: 10;
    clip-path: circle(0px at -100% -100%);
}

@media screen and (max-width: 900px) {
    /* Wir erzwingen, dass die Stage den Raum einnimmt */
    html, body {
        overflow-x: hidden !important;
    }

    main.main-stage {
        display: block !important;
        height: 100vh !important;
        width: 100vw !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* HINTERGRUND */
    .background-layer {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1 !important;
        display: flex !important;
        width: max-content !important;
        animation: marquee-horizontal 30s linear infinite !important;
        color: #d5d8c2;
    }

    /* REVEAL - Jetzt mit absoluter Gewalt sichtbar gemacht */
    #reveal.reveal-layer {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 999 !important; /* Über alles andere */
        background-color: var(--sage-green) !important; /* Wenn das nicht rot wird, wird die ID #reveal nicht gefunden */
        color: #d5d8c2;
        clip-path: circle(40vw at 30% 40%) !important;
        pointer-events: none !important;
    }

    /* Der Inhalt im Kuckloch */
    .reveal-content-wandert {
        display: flex !important;
        width: max-content !important;
        animation: marquee-horizontal 30s linear infinite !important;
    }

    .stretch-block {
        width: 94vw !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        flex-shrink: 0;
    }

    @keyframes marquee-horizontal {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

     .word {

        height: 50vh !important;

        display: flex !important;

        align-items: center;

        justify-content: center;

        font-weight: 400;

        line-height: 1 !important;

        white-space: nowrap;

        transform-origin: center center;

        /* Hier ggf. deine scale-Werte wieder einfügen falls gewünscht */

    }

    /* Farben für den Effekt */
    .background-layer .word { color: var(--text-inactive); }
    .reveal-layer .word { color: #d5d8c2;; }

    .p-word { letter-spacing: 0.04em; }
    .m-word { letter-spacing: -0.01em; }

    @keyframes marquee-horizontal {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); } 
    }

   /* .slogan { display: none !important; }*/
}
   

/* ABSCHNITT 2 */
.info-section {
    position: relative;
    width: 100vw;
    min-height: 100vh; 
    background-color: #9BA9A6;
    overflow: visible !important;
    display: flex; 
    align-items: center;
    z-index: 20;
}

/* 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: 5vw;
    color: var(--p-orange);
    margin-bottom: 30px;
    font-weight: 400;
}

.info-text {
    font-size: 1.25rem;
    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(--reveal-yellow);
    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: 2rem; 
    font-weight: bold; 
}

.reveal-info .highlight { 
    color: var(--p-orange); 
    font-size: 2rem; 
    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: #bd6148; 
    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: #bd6148; 
    border-radius: 50%;
    color: white; 
    font-size: 20px;
    justify-content: center;
    align-items: center;
    opacity: 1; /* Sicherstellen, dass die Kugel sichtbar ist */
}



@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: #9BA9A6;
    }
/*.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;
    }

}


/* --- 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: 50%;
    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: 2;
}

.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: 10000;
}

.wood-ball {
    width: 100%;
    position: relative;
    z-index: 11;
    /*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 */
}

.step h3 {
    display: flex;
    align-items: baseline;  /* Richtet Text an der Unterkante der großen Zahl aus */
    color: var(--p-orange);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 8px;
    text-transform: none;
}

.step .num {
    margin-right: 10px;
    font-size: 2.5rem;      /* Deutlich größer als der Rest der Headline */
    font-weight: 600;       /* Extra fett für mehr Präsenz */
    color: #ffffff;         /* Hier deine Wunschfarbe, z.B. Weiß oder ein helleres Beige */
    display: block;         /* Optional: Setzt die Zahl über den Text */
    line-height: 1;         /* Verhindert zu großen Zeilenabstand */
    opacity: 0.8;           /* Optional: Macht es etwas dezenter, falls es zu knallig ist */
}

.step p {
    font-size: 0.9rem;
    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: 4vh;  left: 10%;  text-align: left; }
.step-02 { top: 8vh;  right: 8%; text-align: right; }
.step-03 { top: 38vh; right: 5%; text-align: right; }
.step-04 { top: 48vh; left: 5%;  text-align: left; }

/* Bei den unteren Schritten erhöhen wir den Abstand, 
   da Texte dort oft länger werden */
.step-05 { top: 68vh; right: 10%; text-align: left; } 
.step-06 { top: 90vh; 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: 0 !important;
    }

    /* 2. Der Container hält alles mittig */
    .process-flow {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 25px !important; /* Abstand zwischen den Headlines */
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* 3. RADIKALER RESET der Klickflächen */
    .step {
        /* WICHTIG: Hebt die top/left Werte von .step-01, .step-02 etc. auf */
        position: relative !important; 
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        
        /* Macht die Klickfläche so breit wie den Text */
        width: auto !important; 
        min-width: 0 !important;
        max-width: none !important;
        
        padding: 10px 20px !important;
        cursor: pointer;
        z-index: 20;
        display: block !important;
    }

    .step h3 {
        margin: 0 !important;
        pointer-events: none; /* Klick geht durch zum .step Container */
        text-align: center;
        white-space: nowrap;
    }

    /* 4. Das Overlay bleibt fixed */
    .step-content {
        position: fixed !important;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background-color: var(--bg-color) !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 40px !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .step.active .step-content {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .step-content p {
        display: block !important;
        color: #000 !important;
        font-size: 1.1rem !important;
        max-width: 90% !important;
        text-align: center !important;
    }

    /* 5. Bild im Hintergrund */
    .ball-anchor {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 70vw !important;
        opacity: 0.3;
        z-index: 1 !important;
        pointer-events: none;
    }

    /* Effekte bei Klick */
    .visibility-section.overlay-open .step h3,
    .visibility-section.overlay-open .ball-anchor {
        opacity: 0.1 !important;
        filter: grayscale(1);
    }
}

/* --- 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: 45vh; 
    background-color: var(--p-orange);
    z-index: 10;
    pointer-events: none;
}

/* Kleiner Punkt am Ende der Linie (optional, für den sauberen Abschluss) */
.image-section::after {
    content: '';
    position: absolute;
    top: 45vh; /* Gleicher Wert wie die Höhe oben */
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: var(--p-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.side-text {
    position: absolute;
    left: -7.9vw;
    top: 50vh;
   /* letter-spacing: -0.05em;*/
    font-size: 24vw;
    font-weight: 300;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;

    /* DREHUNG */
    transform: translateY(-10%) rotate(-90deg) scaleX(0.8) scaleY(1.4);
    transform-origin: left top;

    /* 1. EBENE: HARTER WEISS-VERLAUF */
    /* Wir nutzen 'to bottom', was durch die Drehung optisch im Wort verläuft */
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 3%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0) 80%
    );
    
    -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;
}

.image-overlay-text {
    position: absolute;
    /* Positionierung über dem Bild */
    bottom: 15%; 
    right: 8%;
    
    max-width: 450px; /* Breite des Textblocks */
    color: #ffffff;
    text-align: right; /* Rechtsbündig nach Vorlage */
    z-index: 20;
}

.image-overlay-text p {
    font-size: 1.4rem;
    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); 
}

.deco-plus { color: var(--p-orange); font-size: 3rem; margin-top: 20px; }

@media (max-width: 900px) {
    .image-section::before,
    .image-section::after {
        display: none;
    }
}

/* Sektion 5 Styling */
.services-section {
    padding: 100px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.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;
    width: 450px;
    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(100%);
    opacity: 0.2;
    transform: scale(1); /* Falls du den Zoom-Effekt doch nicht willst */
}

/* Der Haupt-Container für das Grid */
.keywords-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12 Spalten Layout */
    gap: 10px 20px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Das einzelne Wort */
.keyword-item {
    font-size: 1.2rem;
    color: #3a3a3a;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 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 {
    grid-column: 1 / -1; /* Geht über die volle Breite von Spalte 1 bis 12 */
    max-height: 0;
    overflow: hidden;
    font-size: 1.1rem;
    color: var(--p-orange);
    text-align: center;
    transition: all 0.4s ease-in-out;
    background: transparent; /*rgba(255, 255, 255, 0.2);*/ /* Optionaler leichter Hintergrund */
    border: none;
}

.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: 2.5rem; /* Standard ist ca. 1rem. Erhöhe diesen Wert nach Belieben */
    color: var(--p-orange);
    line-height: 1;    /* Verhindert, dass der große Punkt die Zeilenhöhe sprengt */
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none; /* Verhindert, dass man den Punkt markieren kann */
}

/* Responsive Anpassung */
@media (max-width: 900px) {
    .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%);
    }

   .keywords-container {
        display: flex; /* Wechsel von Grid zu Flex für vertikale Stapelung */
        flex-direction: column;
        align-items: center;
        gap: 0; 
        max-width: 100%;
    }
    
    .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 */
    }

    .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 */
    }


    /* Bullets komplett entfernen */
    .grid-bullet, .bullet {
        display: none !important;
    }

}

/* SEKTION 6 */

.marquee-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #bac2b9; /* Laufbandfarbe */
    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;
}

.marquee-content span {
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    font-weight: 700;
   
    line-height: 0.76;
}

/* Ebene 1: Die unauffällige Farbe */
.base-layer span {
    color: #cfcba0; /* Helles Grau/Beige */
}

/* 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 150px at var(--x, 0) var(--y, 0), black 100%, transparent 100%);
    mask-image: radial-gradient(circle 150px at var(--x, 0) var(--y, 0), black 100%, transparent 100%);
}

.highlight-layer span {
    color: #ba634c; /* Das kräftige Orange */
}

@keyframes marquee-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* KALENDAR SEKTION */

.booking-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
}

.container-s7 {
    display: flex;
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap;
}

/* Die Boxen */
.contact-box, .calendar-box {
    flex: 1;
   /* min-width: 320px;*/
    padding: 40px;
    border-radius: 2px;
    position: relative;
    min-height: 600px;
    z-index: 10; /* Basis-Ebene */
    /*box-sizing: border-box;*/ /* Stellt sicher, dass Padding die 50% nicht vergrößert */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert den "Laden" Button vertikal */
    align-items: center;
    text-align: center;
}

.contact-box { background-color: #cfcba0; }
.calendar-box { background-color: #bac2b9; }

/* Formular Styles */

#contact-form {
    width: 100%;
    text-align: left; /* Formular-Texte wieder linksbündig */
}
#contact-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f2ede4;
    padding: 5px 0;
    margin-bottom: 10px;
    color: #f2ede4;
    font-style: italic;
    outline: none;
}

#contact-form input::placeholder { color: #f2ede4; }

#contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f2ede4; /* Die gleiche helle Linie wie bei den Inputs */
    padding: 15px 0;
    margin-bottom: 10px;
    color: #f2ede4;
    font-family: inherit; /* Nutzt 'TeXGyreHeros' statt Standard-Browserschrift */
    font-size: 1rem;
    font-style: italic;
    outline: none;
    resize: none; /* Verhindert, dass der Nutzer die Box manuell großzieht und das Layout zerschießt */
    min-height: 370px; /* Gibt dem Nutzer direkt Platz zum Schreiben */
}

#contact-form textarea::placeholder {
    color: #f2ede4;
}

.form-note {
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-size: 0.8rem;
    color: #f2ede4;
    font-style: italic;
}

/* Der Schalter (Toggle) */
.toggle-btn {
    position: absolute;
    bottom: 30px;
    right: 40px;
    width: 60px;
    height: 30px;
    background: #f2ede4;
    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: #bd6148;
    border-radius: 50%;
}

/* Kalender Header & Footer */
.calendar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #444;
}

.calendar-title {
    font-size: 1rem;
    color: #444; /* Oder var(--p-orange), falls es auffälliger sein soll */
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-wrapper {
    height: 500px; /* Deine gewünschte sichtbare Höhe */
    overflow: hidden; /* Schneidet alles außerhalb ab */
    position: relative;
    border-radius: 8px;
    /*background-color: #adb5ab; /* Deine Box-Farbe */
    filter: grayscale(1) opacity(0.7); /* Deine aktuelle Optik */
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

/*.calendar-wrapper:hover {
    filter: grayscale(0) opacity(1);
}*/

/* Container der Kalender-Box */
.calendar-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #adb5ab;
    padding: 40px;
}

/* Der Hinweistext zur DSGVO */
.consent-text {
    color: white !important;
    margin-bottom: 30px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.consent-text a {
    color: white;
    text-decoration: underline;
}

/* Steuerung der Sichtbarkeit */
.calendar-display-none {
    display: none;
    width: 100%;
    height: 100%;
}


.calendar-wrapper iframe {
    position: absolute !important;
    top: -260px !important; /* Den Header von Google wegschieben */
    left: 0 !important;
    width: 100% !important;
    height: 800px !important;
    border: 0 !important;
}

.calendar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.booking-text {
    color: #bd6148;
    font-weight: bold;
}

/* DER BUTTON - Hier liegt die Lösung für die Hand */
.calendar-btn {
    background-color: #bd6148;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer !important; /* Erzwingt die Hand */
    pointer-events: auto !important; /* Macht ihn klickbar */
    position: relative;
    z-index: 100; /* Liegt garantiert über der Box */
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 15px;
}

.calendar-btn:hover {
    background-color: #a04e38;
}

.note-small {
    font-size: 0.7rem; 
    color: #444; 
    font-style: italic;
    margin-top: 5px;
}

/* Hilfsklasse für den Trigger (falls du ein div statt button nutzt) */
#custom-calendar-trigger {
    cursor: pointer !important;
    pointer-events: all !important;
}

@media (max-width: 900px) {
    /* Nur die Kalender-Box anpassen, Kontakt-Box bleibt unberührt */
    .calendar-box {
        padding: 30px 15px; /* Etwas schmaleres Padding für mehr Platz innen */
        min-width: 100%;
        height: auto;
    }

    .calendar-wrapper {
        height: 600px; /* Erhöhte Sichtbarkeit auf Mobile */
       /* filter: none; */ /* Farbigkeit hilft bei der Lesbarkeit am Handy */
        overflow: hidden; /* Wichtig, um den Überhang abzuschneiden */
        position: relative;
    }

    .calendar-wrapper iframe {
        /* Setzt den negativen Desktop-Offset zurück */
        top: 0 !important; 
        height: 1100px;
        
        /* Verhindert das Quetschen: Wir skalieren den Inhalt leicht, 
           damit er in schmale Displays passt */
        transform: scale(0.98);
        transform-origin: top center;
        width: 100%;
        top: -500px !important;
    }
}

/* SEKTION 8: Q&A */
.qa-section {
    padding: 100px 20px;
    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%);
    font-size: 25vw;
    font-weight: 400;
    color: #e1dfc2; 
    z-index: -1;
    pointer-events: none;
    letter-spacing: -0.05em;
}

.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;
}

.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: 40vh; 
        
        /* 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: #d5d7c3; 
}
.col-agb a { 
    color: #ffffff; 
}

.col-impress { 
    background-color: #bac2b9; 
}
.col-impress a { 
    color: #efecb8; 
}

.col-kontakt { 
    background-color: #cfcba0; 
}
.col-kontakt a { 
    color: #ba634c;  
/* 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: 40px !important;          /* Jede Spalte bekommt ihre eigene Höhe */
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    /* Navbar Korrektur */
    .navbar {
        top: 2vh;
        right: 5vw;
    }
} /* <--- Diese Klammer schließt die Media Query korrekt ab */