@font-face {
    font-family: 'HighlandGothic';
    src: url('assets/fonts/HighlandGothicFLF-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

/* ========================================================= */
/* 1. TYPOGRAPHIE & GLOBALE STYLES */
/* ========================================================= */

h1, h2, h3 {
    font-family: 'HighlandGothic', Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
    -webkit-text-stroke: none;
    margin-bottom: 10px;
}

h4 {
    font-family: Arial, sans-serif; font-weight: bold;
    font-size: 1.2rem;
}
/* 1. GLOBALE BASIS (Für p und h5 auf allen Seiten) */
p, h5 {
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    font-style: normal;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 15px;   /* Hier ist der wichtige Vorschub für normale Texte */
    color: black;
}

/* 2. DIE AUFZÄHLUNG (h6-Container) */
h6 {
    display: flex;
    align-items: flex-start; 
    gap: 0.8rem; 
    width: calc(100% - 4rem);
    margin: 0 0 15px 4rem; 
    text-align: left;
    justify-content: flex-start;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    font-style: normal;
    line-height: 1.3;
}

/* 3. SPEZIALFALL: p INNERHALB VON h6 */
/* Nur hier entfernen wir den Abstand, damit die Liste kompakt bleibt */
h6 p {
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    line-height: 1.4;
    margin: 0 !important;  
    padding: 0;
    flex: 1;
}

/* 4. DAS FETTE TEXTSTÜCK (strong) */
h6 strong {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.4;
    display: inline; /* "inline" ist besser als "inline-block", damit der Textfluss nicht bricht */
}

/* 5. DER PUNKT (Bullet) */
h6::before {
    content: "•";
    color: crimson;
    font-size: 3.5rem; 
    line-height: 0.7;    /* Kleinerer Wert, da der Punkt riesig ist */
    margin-top: -0.4rem; /* Feinjustierung, damit der Riesenpunkt auf Zeilenhöhe sitzt */
    flex: 0 0 auto;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: black;
    background-color: rgb(193,150,82); /* Coyote dunkel */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h2.hero-title {
    font-size: 2.2rem; /* "3rem" ist etwa 3-mal so groß wie der Standardtext */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* ========================================================= */
/* 2. HEADER & LOGO */
/* ========================================================= */
header {
    position: relative;
    height: 52vh;
    background-image: url('assets/bg1.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 10px;
    filter: brightness(100%);
}
.header-content {
    display: flex;
    align-items: center; 
    width: 100%; 
    padding-left: 80px; 
}
.logo {
    height: 70%;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.logo:hover {
    transform: scale(1.10); 
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)); 
    cursor: pointer;
}

.header-text {
    position: absolute;
    top: 50%;
    transform: translateY(-40%);
    left: 550px;
    width: auto;
}
.logo-text {
    font-family: 'HighlandGothic', Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-size: 6rem;
    color: #b88b4a; 
    -webkit-text-stroke: 4px black; 
    font-weight: bold;
    display: block;
    white-space: nowrap;
    /* JUSTIERUNG */
    line-height: 0.8;      
    margin-top: 16px;      
    margin-bottom: 50px;  
}
/*===============================================================*/
/* 1. Typewriter Animation auf der Titelseite und weitere Seiten */
/*===============================================================*/
#typewriter-logo
#typewriter-big span,
#typewriter-big-2 span,
#typewriter-small span {
    display: inline-block; /* Verhindert den harten Umbruch nach unten */
    vertical-align: middle; 
    white-space: normal; 
    transform: translateY(-5px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

#typewriter-big-2 {
    display: inline-block;
    margin-top: 10px; /* Optionaler Abstand nach oben zur ersten Zeile */
}

/* 2. Container für ganze Wörter (verhindert Umbruch im Wort) */
.word-wrapper {
    display: inline-block;
    white-space: nowrap; 
}

/* 3. Stil für jeden einzelnen Buchstaben */
.typewriter-letter {
    display: inline-block !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    -webkit-text-stroke: inherit;
    text-shadow: inherit;
}

/* 4. Der Zustand nach dem Einblenden */
.typewriter-letter.letter-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 5. Mobile Anpassung */
@media (max-width: 768px) {
    #typewriter-logo {
        display: block;      /* Auf dem Handy darf es eine eigene Zeile sein */
        font-size: 2.5rem !important;
        -webkit-text-stroke: 1.5px black !important;
        text-align: center;
        margin-bottom: 20px;
        line-height: 1.1;
    }
}
    .logo-text#typewriter-logo span {
        transform: translateY(5px); /* Kleinerer Hupf-Effekt auf Mobile */
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        
    }

/* 1. Die stabilisierte Animation */
@keyframes smoothZoomIn {
    0% {
        /* Wir starten bei scale(1.5) statt 3, das ist viel sauberer für das Rendering */
        transform: scale(3);
        opacity: 0;
        filter: blur(8px);
    }
    100% {
        /* Absolut ursprüngliche Größe und Position */
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* 2. Die Anwendung der Klasse */
.zoom-entry {
    display: inline-block; /* WICHTIG: Erlaubt das Skalieren bei einem span */
    opacity: 0; 
    
    /* Deine restlichen Animationseigenschaften bleiben gleich */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    animation: smoothZoomIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
    will-change: transform, opacity;
}


.header-text h1 {
    font-size: 6rem;
    color: #b88b4a; /* dunkles Coyote */
    -webkit-text-stroke: 4px black; 
    line-height: 0.5;
    white-space: nowrap;
    margin-top: 30px;
}
.header-text h5 {
    font-size: 6rem;
    color: #b88b4a; /* dunkles Coyote */
    -webkit-text-stroke: 4px black; 
    line-height: 0.5;
    white-space: nowrap;
    margin-top: 30px;
}
.header-text h2 {
    font-size: 1.8rem;
    line-height: 0.4;
    color: #000000;
    white-space: nowrap;
    margin: 0;
}
.header-text .zusatz-info {
    font-size: 12pt; 
    font-weight: bold; 
    line-height: 1.2;
    color: #000000;
    position: absolute;
    top: 180px;
    left: 0;
    width: 1180px;
    margin-top: 0;
    text-align: left;
    background-color: rgba(241, 226, 202, 0.8); 
    padding: 10px; 
    border-radius: 10px;
    border: 1px solid black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 5; 
}
.header-text .zusatz-info:hover {
    transform: scale(1.20); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
    cursor: pointer; 
}


/* ========================================================= */
/* 3. MENÜ & TITELLEISTE */
/* ========================================================= */

.title-section {
    font-family: 'HighlandGothicFLF', sans-serif;
    text-align: center;
    background-color: rgb(241,226,202);
    height: 72px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.title-bar {
    position: relative;
    padding-right: 80px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 72px; 
    display: block; 
}
.main-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 2.5rem; 
    color: #000;
    z-index: 1;
    text-align: center;
    white-space: nowrap;
}
.main-title .big { font-size: 1em; font-weight: bold; }
.main-title .small { font-size: 0.5em; margin-left: 0.3em; }


/* Navigationsmenü */
.nav-menu {
    position: absolute; 
    right: 0; 
    margin-right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}
.menu-icon {
    font-size: 1.9rem;
    cursor: pointer;
    user-select: none;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.0);
    transition: background .15s, opacity .15s;
}
.menu-icon:hover { 
    background: rgba(255,255,255,0.15); 
    opacity: 0.9; 
}

/* Das gesamte Menü-Fenster */
.menu-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: -20px;
    margin-top: 8px;
    background: #b88b4a; /* Coyote Hintergrund */
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    list-style: none;
    min-width: 180px;
    border: 1px solid black; /* Rand um das gesamte Menü */
    z-index: 1000;
}

.menu-links.show { 
    display: flex; 
}

.menu-links li { 
    margin: 8px 0; 
}

/* Die einzelnen Buttons im Menü */
.menu-links a {
    color: #000;
    font-size: 1.0rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-decoration: none;
    display: block;
    padding: 5px;
    text-align: center;
    background-color: rgba(241, 226, 202, 0.8); /* Helleres Coyote für die Buttons */
    border: 1px solid black;
    border-radius: 4px;
    /* Vorbereitung für flüssigen Zoom */
    transition: transform 0.2s ease-in-out, background-color 0.2s, box-shadow 0.2s;
}

/* DER ZOOM-EFFEKT BEIM DRÜBERFAHREN */
.menu-links a:hover { 
    text-decoration: none; /* Keine Unterstreichung */
    transform: scale(1.3); /* Button kommt nach vorne */
    background-color: #d4ae6d; /* Wird noch ein Stück heller */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); /* Tiefe durch Schatten */
}


/* ========================================================= */
/* 4. CONTENT BEREICHE (Ranges, Gallery, Legal) */
/* ========================================================= */

.ranges {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    background-color: rgb(193,150,82);
}
.range-box {
    background-color: rgb(241,226,202);
    padding: 10px;
    border-radius: 10px;
    width: 32%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid black;
}
.range-box:hover {
    transform: translateY(-8px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
    cursor: pointer; 
}
.range-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Styling für die Maps-Links */
.maps-link {
    color: black;
    text-decoration: none;
    display: inline-block; /* Wichtig für die Skalierung */
    transition: transform 0.3s ease, color 0.3s ease; /* Sanfter Übergang */
    border-bottom: 1px dashed rgb(193, 150, 82);
    padding: 2px 5px;
    cursor: pointer;
}

/* Der Zoom-Effekt beim Mouseover */
.maps-link:hover {
    color: rgb(193, 150, 82);
    transform: scale(1.1); /* Vergrößert den Text um 10% */
    border-bottom: 1px solid rgb(193, 150, 82);
}

/* Styling für die Maps-Links seite infos*/
.maps-link-info {
    color: white;
    background-color: rgb(193, 150, 82);              /* Dunkler Hintergrund */
    text-decoration: none;
    font-weight: bold;
    border: 1px solid black; 
    border-radius: 3px;                   
    padding: 8px 16px;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;           /* Großbuchstaben für "Action" */
    font-size: 0.9em;
}

.maps-link-info:hover {
    background-color: rgb(193, 150, 82);
    color: black;
    transform: translateY(-8px);         /* Schwebe-Effekt statt Zoom */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Schatten beim Schweben */
}

/* Galerie */
.gallery {
    position: relative;
    width: 90%;
    margin: 10px auto 50px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    
}
.gallery-container {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
}
.gallery-container img, .gallery-container video {
    width: 100%;
    height: 650px;
    object-fit: cover;
    flex-shrink: 0;
}
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 5px;
    z-index: 10;
    transition: background 0.3s;
}
.gallery-btn:hover { background: rgba(0, 0, 0, 0.8); }
#prevBtn { left: 10px; }
#nextBtn { right: 10px; }


/* Impressum, Datenschutz, Wir Legal */
.legal {
    max-width: 900px;
    margin: 50px auto;
    padding: 10px 30px 30px 30px;
    line-height: 1.3;
    background: rgb(241, 226, 202); 
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgba(0,0,0, 0.5);
    text-align: left;
    border: 2px solid black;
}
.legal div + div { 
    margin-top: 1em; 
}
.legal p { 
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    font-style: normal;
    margin: 0; 
    line-height: 1.4;
    color: black; 
}
.legal h4 { 
    margin: 0 0 5px 0; 
}


/*Cookie abfrage*/
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
    padding: 10px;
    display: none;
    z-index: 999;
}
#cookie-banner button {
    background: rgb(193,150,82);
    color: black;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

#cookie-banner p {
    color: white !important;
    font-family: Arial, sans-serif;
    font-size: 0.9rem; /* Etwas kleiner, damit es nicht so wuchtig wirkt */
    line-height: 1.4;
    margin: 0;
}

/* Falls du den Link in der Datenschutzerklärung auch optimieren willst */
#cookie-banner a {
    text-decoration: underline;
}

/* --- Neue Klassen für die Wir-Seite --- */
.wir-image-row {
    display: flex;
    /* Nutzt die volle Breite des legal-Containers (800px) */
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    /* Reduziert den Abstand zum Text darüber massiv */
    margin: 0 0 30px 0 !important; 
    /* Zwingt beide Spalten an die exakt gleiche Oberkante */
    align-items: flex-start !important; 
    margin-top: -10px !important;
}

.wir-image-item {
    flex: 1;
    max-width: 48%;
    padding: 0 !important;
    margin: 0 !important;
    display: grid; /* Grid eliminiert Abstände zwischen Kindern besser */
    grid-template-columns: 100%;
}

/* Der Wrapper um das Bild */
.wir-image-wrapper {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important; /* Entfernt jeglichen Text-Freiraum */
}

.wir-image-wrapper img {
    width: 100%;
    height: auto;
    border: 2px solid #000;
    border-radius: 8px 8px 0 0;
    display: block; /* Wichtig: Verhält sich nicht wie Text */
    margin: 0 !important;
}

/* Der Coyote-Kasten direkt unter dem Bild - Bildunterzeilen*/
.wir-caption-box {
    background-color: rgb(193,150,82); 
    color: black;
    padding: 8px 10px; 
    border: 2px solid #000;
    /* Wichtig: Verhindert doppelte Linien und Lücken */
    border-top: 0 !important; 
    margin-top: -1px !important; /* Schiebt den Kasten 1px über den Bildrand für nahtlosen Übergang */
    border-radius: 0 0 8px 8px;
    text-align: left;
    margin-bottom: 0 !important;
    min-height: auto !important; 
}

.wir-caption-box p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.0rem;
    font-weight: bold;
    color: black !important;
    line-height: 1.2;
}

/* Verhindert, dass der Text vor dem Bild (h5/h6) die Bilder nach unten drückt */
.legal h5 + .wir-image-row,
.legal h6 + .wir-image-row {
    margin-top: 0 !important;
}

/* 1. Der Einblend-Zustand (Scroll-Animation) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Nur 20px statt 30px für schnelleres Erscheinen */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Dein gewünschter Maus-Over Effekt (Scale) */
.wir-image-item {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
    box-shadow 0.3s ease;
    cursor: pointer; /* Zeigt an, dass es interaktiv ist */
}

.wir-image-item:hover {
    /* Vergrößert das Bild samt Unterschrift */
    transform: scale(1.5) !important;
    /* Verstärkt den Schatten für einen "Abhebe-Effekt" */
    z-index: 10;
}

/* Optional: Schatten für das gesamte Item beim Hover */
.wir-image-item:hover img, 
.wir-image-item:hover .wir-caption-box {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


/* Mobil-Optimierung: Untereinander statt nebeneinander */
@media (max-width: 600px) {
    .wir-image-row {
        flex-direction: column;
        align-items: center;
    }
    .wir-image-item {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
}

/* Video Intro Overlay */
#video-intro-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; 
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}
#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


/* ========================================================= */
/* 7. WIEDERLADER-SPEZIFISCHE ERWEITERUNGEN (NEU) */
/* ========================================================= */

.resource-area {
    /* Basiseigenschaften von .legal kopiert */
    max-width: 800px;
    margin: 60px auto;
    padding: 0px 20px;
    line-height: 1.3;
    background: rgb(241, 226, 202); 
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgba(0,0,0, 0.5);
    text-align: left;
    border: 2px solid black; 
}

/* WICHTIG: Überschreibt die störenden .legal Regeln für diesen Bereich */
.resource-area div + div { margin-top: 0; } /* UNERWÜNSCHTEN ABSTAND ENTFERNEN */
.resource-area p { margin: 0; line-height: 1.2; }
.resource-area h4 { margin: 0 0 5px 0; }


/* GLOBALE VARIABLEN & FUNKTIONALES FEEDBACK (NEU) */
:root {
    --brand-color: rgb(193, 150, 82); 
    --shadow-light: rgba(0,0,0,0.1);
    --text-color: black; 
    --light-color: white;
    --accent-color: rgb(193,150,82);
}

/* Message Box (Ersatz für alert()) */
#message-box {
    position: fixed; top: 20px; right: 20px; background-color: #dc3545; color: white; padding: 10px 20px;
    border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); z-index: 1000; opacity: 0;
    visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; transform: translateY(-20px);
    font-family: Arial, sans-serif;
}
#message-box.show { opacity: 1; visibility: visible; transform: translateY(0); }
#message-box.success { background-color: #28a745; }

/* LOGIN FORMULAR STYLES */
#login-formular {
    max-width: 350px; margin: 2rem auto; padding: 20px; border: 1px solid #ccc;
    border-radius: 8px; box-shadow: 0 2px 8px var(--shadow-light); text-align: center;
    background: white; border: 1px solid black;
}
#mitglied-passwort {
    width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ccc;
    border-radius: 6px; box-sizing: border-box; color: var(--text-color);
}
#login-formular button {
    width: 100%; padding: 12px; border: none; border-radius: 6px; font-weight: bold;
    cursor: pointer; background-color: var(--brand-color); color: var(--text-color);
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s, box-shadow 0.2s;
}
#login-formular button:hover {
    background-color: #b88b4a; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.action-buttons-wrapper {
    width: 100%;
    margin-top: 0; /* Abstand zwischen Resource Grid und Buttons */
    margin-bottom: 30px;
    text-align: center;
}
.action-buttons {
    display: flex; 
    gap: 15px; 
    margin-top: 0; 
    padding-top: 0;
    border-top: none;
    justify-content: center; /* Zentriert die Logout/Download Buttons */
}
.action-buttons a, .action-buttons button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px; 
    border: none; 
    border-radius: 6px; 
    font-weight: bold;
    cursor: pointer; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.2s, transform 0.2s;
}
.action-buttons a:hover, .action-buttons button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
#download-link { background-color: var(--brand-color); color: var(--text-color); }
#logout-button { background-color: #6c757d; color: var(--light-color); }

/* RESSORCEN-GITTER & BOXEN */
#geschuetzter-inhalt h3 {
    font-family: 'HighlandGothic', Arial, sans-serif;
    text-align: center;
    margin-bottom: 25px; /* Abstand zwischen H1 und den Boxen */
    font-size: 2.5rem;
    color: black;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
#geschuetzter-inhalt {
    border: 2px solid black; /* Fügt den Rahmen wieder hinzu, aber nur für den Inhalt */
}

.resource-grid-wrapper {
    width: 100%;
    margin-bottom: 50px;
    margin-top: 0; 
    padding: 0;
    display: block;
}
.resource-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
    align-items: stretch; /* KRITISCH: Stellt sicher, dass Grid-Elemente die maximale Höhe annehmen */
    align-content: start;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.resource-box {
    padding: 15px; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px var(--shadow-light);
    background-color: white; 
    border: 1px solid #ccc; 
    color: var(--text-color);
    display: flex; 
    flex-direction: column;
    height: 100%; 
    margin: 0;
    align-self: start;
    max-height: fit-content;
}
.resource-box ul { 
    list-style: none; 
    padding: 0;
    margin: 0; 
    margin-bottom: 0; 
    flex: none;
    line-height: 1.4;
}
.resource-box li { 
    margin-bottom: 5px; 
    margin-top: 0; 
    padding-top: 0;
    font-size: 0.95rem; 
    padding-left: 15px; 
    position: relative; 
}
.resource-box li a { 
    color: var(--text-color); 
    text-decoration: none; 
    transition: color 0.1s; 
}
.resource-box li a:hover { 
    color: var(--brand-color); 
    text-decoration: underline; 
}
.icon { 
    margin-right: 8px; 
    font-size: 1.1em; 
}
.resource-box h4 { 
    margin-top: 0; 
    margin-bottom: 10px; 
    line-height: 1.2;
    border-bottom: 2px solid var(--brand-color); 
    padding-bottom: 5px;
}
.resource-box li::before {
    content: "»"; 
    color: var(--brand-color); 
    font-weight: bold; 
    display: inline-block;
    position: absolute; left: 0;
}
/* Icon-Platzhalter (da Font-Awesome/Echt-Icons nicht geladen werden können) */
.login-icon::before { content: "🔓"; }
.download-icon::before { content: "⬇️"; }
.logout-icon::before { content: "🚪"; }
.box-icon-1::before { content: "📚"; }
.box-icon-2::before { content: "🛠️"; }

/* LOGO ÜBER DEM BUTTON */
.logo-wrapper {
    /* Stellt den Abstand zwischen den Boxen und dem Logo her */
    margin-top: 10px; 
    margin-bottom: 20px; 
    text-align: center; /* Zentriert das Logo (das ein Inline-Element ist) */
    width: 100%;
}

#button-logo {
    /* Maximale Größe des Logos festlegen */
    max-width: 400px; 
    height: auto;
    display: inline-block;
    opacity: 0.85; /* Macht das Logo etwas dezenter */
    transition: opacity 0.3s;
}

#button-logo:hover {
    opacity: 1; /* Volle Sichtbarkeit beim Überfahren */
}
/* Wiederladebereich Bild oder Video beim anklicken zeigen */
.modal {
    display: none; /* KRITISCH: Versteckt das Modal standardmäßig */
    position: fixed; 
    z-index: 1000; /* Stellt sicher, dass es über allem liegt */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); 
}

/* MODAL INHALTSBEREICH (Zentriert) */
.modal-content {
    background-color: #C19652;
    margin: 10% auto; /* 10% Abstand oben und unten, zentriert */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px; /* Maximale Breite festlegen */
    border-radius: 8px;
    position: relative;
}

/* VIDEO CONTAINER (Für responsives Video) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Verhältnis 16:9 */
    height: 0;
    overflow: hidden;
    margin-top: 15px;
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#videoModal h3 {
    font-size: 1.6em; /* Wert anpassen (1.4em, 20px, etc.) */
    color: #000000; /* Dunkle Farbe für bessere Lesbarkeit im Modal */
    text-align: left;
}


/* SCHLIESSEN BUTTON */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
/* Styling für die Archiv-Liste im Modal */
.archive-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.archive-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}
.archive-list a {
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}
.archive-list a:hover {
    color: var(--brand-color);
}

/* SKIP INTRO BUTTON - Design & Position */
.skip-btn {
    position: absolute;
    bottom: 40px; /* Abstand von unten */
    right: 40px;  /* Abstand von rechts */
    padding: 12px 24px;
    background-color: rgba(184, 139, 74, 0.7); 
    border: 2px solid #000000; 
    color: white;
    border-radius: 8px;
    font-family: 'HighlandGothic', Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background-color: rgba(184, 139, 74, 1);
    transform: scale(1.05);
    border-color: #000000; /* Rahmen bleibt schwarz */
}

.intro-seen #video-intro-overlay {
    display: none !important;
}

/* ========================================================= */
/* 8. FASZINATION SEITE & INFO
/* ========================================================= */

.faszination-container {
    padding: 40px 20px;
    background-color: rgb(193,150,82); 
}

.content-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

/* --- STANDARDBOXEN (Faszination Seite) --- */
.faszination-card {
    background-color: rgb(241,226,202); 
    padding: 5px 25px 25px 25px;
    border-radius: 10px;
    width: 45%; 
    text-align: left;
    border: 1px solid black;
    box-shadow: 4px 4px 15px rgba(0,0,0, 0.3);
    transition: transform 0.3s ease;
    align-self: flex-start
}

.faszination-card:hover {
    transform: translateY(-5px);
}

.faszination-card h2 {
    margin-top: 5px;
    color: #000;
    font-size: 2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgb(193,150,82);
    padding-bottom: 10px;
}

/* --- HIGHLIGHT-BOX (Info Seite) --- */
.full-width-card {
    background-color: rgb(241,226,202);
    border-radius: 10px;
    max-width: 1200px;
    margin: 10px auto;
    border: 1px solid black;
    box-shadow: 4px 4px 15px rgba(0,0,0, 0.3);
    padding: 25px;
    display: grid !important;
    /* Hier erzwingen wir: Links flexibel, Rechts STRENG 220px */
    grid-template-columns: 1fr 220px !important; 
    gap: 30px;
    align-items: start;
    padding: 25px 25px 25px 25px !important;
}

.full-width-card h2 {
    margin-top: 0 !important;      /* Entfernt den äußeren Abstand oben */
    padding-top: 0 !important;
    margin-bottom: 15px !important; 
    padding-bottom: 0 !important; 
    line-height: 1.1;              /* Macht die Zeile etwas kompakter */
}

/* Abstand ÜBER dem Text reduzieren */
.full-width-card p {
    margin-top: 0 !important;      /* Entfernt den Abstand nach oben komplett */
    padding-top: 0 !important;
    line-height: 1.4;              /* Hält die Zeilen kompakt */
}

/* Linke Spalte */
.text-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Rechte Spalte (Logos) */
.card-images-vdb {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 220px;
}

/* Die weißen Boxen für die Logos */
.card-images-vdb .zoom-img {
    width: 200px !important;
    height: 120px !important;
    background-color: rgb(241,226,202) !important;
    border: none !important;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
}

/* Die Logo-Bilder selbst */
.card-images-vdb .zoom-img img {
    width: auto !important;
    height: auto !important;
    max-width: 85% !important; /* Verhindert das "Sprengen" des Rahmens */
    max-height: 85% !important;
    object-fit: contain !important;
    padding: 0 !important;
    border: none !important;
    background-color: rgb(241,226,202) !important;
}

.card-images {
    margin-top: 0 !important;      /* Verhindert, dass die Bilder-Spalte nach unten rutscht */
}

/* Buttons direkt unter dem Text */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Die Bilder rechts */
.full-width-card .card-images {
    grid-column: 2; 
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    width: 200px;
    margin: 0 !important; /* Kein Versatz nach oben/unten */
}

/* VDB-Logo-Boxen Hintergrund in der lokalen Box*/
.full-width-card .zoom-img {
    width: 200px !important;
    height: 120px !important;
    background-color: rgb(241,226,202) !important; 
    border: 0px none transparent !important; /* Erzwingt totale Transparenz */
    outline: none !important;                /* Entfernt eventuelle Fokus-Rahmen */
    box-shadow: none !important;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important; 
}

.full-width-card .zoom-img img {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    object-fit: contain !important;
    padding: 10px !important;
    background-color: rgb(241,226,202) !important;
}

/* --- GEMEINSAME BILD-BASIS (Wichtig für beide Seiten) --- */
.card-images {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.zoom-img {
    position: relative;
    cursor: pointer;
    overflow: visible !important;
}

/* Faszination-Bilder (Vorschau) */
.faszination-card .zoom-img {
    flex: 1;
    height: 150px;
    max-width: 250px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 6px;
}

.zoom-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid black;
    transition: transform 0.3s ease-in-out;
    display: block;
    pointer-events: none !important;
    transition: transform 0.5s ease-in-out !important;
}

/* --- DER GENERELLE STABILE ZOOM (Zitterfrei für alles) --- */
.zoom-img:hover img {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(2.2) !important; 
    width: 400px !important; 
    height: auto !important;
    z-index: 999999999 !important;
    box-shadow: 0 0 100px rgba(0,0,0,0.9);
    border: 1px solid black !important;
    border-radius: 10px;
    pointer-events: none !important;
}

/* Spezielle Zoom-Anpassung NUR für VDB Logos (kein scale, da feste Breite oben) */
.full-width-card .zoom-img:hover img {
    transform: translate(-50%, -50%) scale(1.8) !important;
    width: 450px !important; /* Logos im Zoom etwas größer machen */
}

/* Fix für Stacking Context */
.faszination-card, .full-width-card, .content-grid {
    transform: none !important;
    isolation: auto !important;
    z-index: auto !important;
    overflow: visible !important;
}

/* Footer - Social Media Container Zwei-Spalten-Layout */
footer {
    text-align: center;
    background-color: rgb(0,0,0); 
    padding: 8px 0; 
    color: white;
    margin-top: 10px; 
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; 
    flex-wrap: wrap;
    margin: 10px 0;
}

.footer-block {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.footer-label {
    font-family: 'HighlandGothic', Arial, sans-serif;
    color: white;
    font-size: 1.0rem;
    white-space: nowrap;
    text-transform: uppercase;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 35px;
}

.footer-icons img {
    width: 33px;
    height: 33px;
    display: block;
    transition: transform 0.3s ease;
}

.footer-icons a:hover img {
    transform: scale(1.9);
    filter: drop-shadow(0 0 5px rgba(193,150,82, 0.8));
}

.footer-full-line {
    border: 0;
    border-top: 4px solid rgb(193, 150, 82);
    width: 100%;
    margin: 10px 0; 
}

.footer-bottom {
    padding-bottom: 5px;
}

footer .footer-bottom p {
    margin: 3px 0;
    font-size: 0.85rem;
    color: white; 
}

footer .footer-bottom a {
    display: inline-block; /* Ermöglicht das Zoomen */
    color: #cccccc; 
    margin: 0 10px 10px 10px;
    text-transform: none;
    font-size: 1.0rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .footer-bottom a:hover {
    color: rgb(193, 150, 82); 
    transform: scale(1.3);    
}

@media (max-width: 850px) {
    .footer-columns {
        flex-direction: column;
        gap: 15px;
    }
}

/* Container für die Buttons - Zieht die Gruppe näher nach oben */
.vdb-button-container {
    grid-column: 1 / span 2; 
    text-align: center;
    margin-top: 0px !important; /* Kleinerer Abstand zum Text */
    padding-top: 0 !important;
}

/* Die Button-Gruppe */
.button-group {
    display: flex;
    justify-content: flex-start; /* Buttons linksbündig unter dem Text */
    flex-wrap: wrap;
    gap: 15px;
}

/* EINHEITLICHER BUTTON-STIL (Für alle Links mit dieser Klasse) */
.vdb-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000 !important; /* Standardmäßig alle Schwarz */
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #000;
    transition: all 0.3s ease-in-out;
    white-space: nowrap; /* Verhindert Zeilenumbruch im Button */
}

/* EINHEITLICHER HOVER-EFFEKT (Coyote) */
.vdb-button:hover {
    background-color: rgb(193,150,82) !important; /* Coyote Braun */
    color: #000 !important; /* Text wird schwarz für bessere Lesbarkeit auf Coyote */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* FAQ-MODUL STYLING - Seite FAQ */
.faq-wrapper {
    margin-top: 15px;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05); /* Dezenter Hintergrund */
    border: 1px solid rgba(193, 150, 82, 0.3); /* Goldener Rand, leicht transparent */
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    /* transition wurde um transform und box-shadow erweitert */
    transition: all 0.3s ease; 
}

.faq-item:hover {
    border-color: rgb(193, 150, 82); /* Helleres Gold beim Drüberfahren */
    background: rgba(255, 255, 255, 0.1);
    /* NEU: Zoom und Schatten */
    transform: scale(1.02); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Damit die gezoomte Box über den anderen liegt */
}

.faq-item summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: bold;
    color: rgb(193, 150, 82);
    list-style: none; /* Entfernt den Standard-Pfeil */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Entfernt den Standard-Pfeil im Safari */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Eigener Pfeil-Effekt (+ / -) */
.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 15px 15px 15px;
    margin: 0;
    font-size: 1.0rem;
    font-weight: normal;
    color: black; 
    line-height: 1.5;
}

.faq-item strong {
    color: #000;
}

/* Effekt beim Drüberfahren mit der Maus */
.faq-item summary:hover {
    color: rgb(213, 170, 102); /* Ein helleres Gold */
    text-shadow: 0 0 8px rgba(193, 150, 82, 0.4); /* Dezentes Leuchten */
    transition: all 0.2s ease-in-out;
}

/* Logo Mausverfolger auf Startseite */
#mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;               /* Größe des kleinen Logos */
    height: 40px;
    pointer-events: none;      /* WICHTIG: Erlaubt Klicks "durch" das Logo hindurch */
    z-index: 9999;             /* Immer ganz oben */
    opacity: 0;                /* Startet unsichtbar */
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%); /* Zentriert das Logo auf der Mausspitze */
}

#mouse-follower img {
    width: 100%;
    height: auto;
    display: block;
}

/* Zeigt das Logo nur an, wenn die Maus sich bewegt */
body.mouse-active #mouse-follower {
    opacity: 0.9;              /* Leicht transparent wirkt edler */
}

/* ========================================================= */
/* 6. RESPONSIVES DESIGN für Telefon und Tablet */
/* ========================================================= */

/* Dekoration auf kleineren Bildschirmen ausblenden */
@media (max-width: 1800px) {
    .decoration-icon {
        display: none;
    }
}

/* RESPONSIVES DESIGN (< 768px) */
@media (max-width: 1800px) {
    /* HEADER ANPASSUNGEN */
    header { height: auto; }
    .header-content { display: block; text-align: center; padding-left: 0; }
    .logo { 
    width: 60%;      /* Logo nimmt 60% der Displaybreite ein */
    height: auto;    /* Höhe passt sich automatisch an das Verhältnis an */
    max-width: 300px; /* Verhindert, dass es auf Tablets riesig wird */
    margin: 20px auto; 
    display: block; 
}
    
    
    .logo-text { 
        font-size: 2.5rem;      /* Viel kleiner für Handys */
        white-space: normal;    /* Erlaubt Zeilenumbruch, falls das Display sehr schmal ist */
        margin: 5px 0; 
        line-height: 1.1;
        -webkit-text-stroke: 1.5px black; /* Dünnere Umrandung für kleine Schrift */
        text-align: center;
    }

    .header-text {
        position: relative; 
        width: 100%; 
        margin: 0; 
        transform: none; 
        left: auto;
        top: auto;
        text-align: center;
    }
    .header-text h1 { 
        white-space: normal; 
        margin: 5px 0; 
        line-height: 1.2; 
        white-space: normal;
        font-size: 2.5rem
    }
    
    .header-text h2 { 
        font-size: 0.9rem;    /* Deutlich kleiner (war 1.2rem), damit weniger Umbrüche entstehen */
        line-height: 1.1; 
        margin: 0 auto;
        white-space: normal;
        text-align: center;     /* Muss zum logo-text passen */
        font-weight: normal;  /* Macht es graziler und spart Platz */
}

    .header-text .zusatz-info {
        white-space: normal;
        position: static; 
        width: 100%; 
        top: auto; 
        left: auto; 
        margin-top: 15px; 
        padding: 15px 5px; 
        background-color: rgba(241, 226, 202, 0.95); 
    }

    /* TITELLEISTE ANPASSUNGEN */
    .title-section {
        height: auto; 
        padding: 15px 0; 
        display: block; 
    }
    .title-bar {
        height: auto; 
        padding-right: 10px;
    }
    .main-title {
        position: static; 
        margin: 10px auto; 
        font-size: 1.2rem; 
        white-space: normal; 
        text-align: center;
        width: 100%; 
        padding: 0 10px;
        transform: none;
        left: auto;
    }

    .main-title .big {
        display: block;       /* Erzwingt eine eigene Zeile */
        font-size: 2.2rem;    /* Größe ggf. anpassen */
        margin-bottom: 5px;   /* Kleiner Abstand nach unten zum kleinen Text */
    }

    .main-title .small {
        display: block;       /* Erzwingt eine eigene Zeile */
        font-size: 1.0rem;    /* Etwas kleiner für den Untertitel */
        line-height: 1.2;
        -webkit-text-stroke: 0px; /* Falls im Desktop eine Umrandung war, hier entfernen */
    }

    .nav-menu {
        position: static;    /* Hebt die absolute Positionierung auf */
    transform: none;      /* Entfernt die Verschiebung */
    display: flex;        /* Falls die Menüpunkte nebeneinander sollen */
    justify-content: center;
    width: 100%;
    }
    
    /* CONTENT ANPASSUNGEN */
    .ranges {
        flex-direction: column; 
        padding: 15px; 
        gap: 20px;
        align-items: center; 
    }
    .range-box {
        width: 90%; 
        margin: 0; 
        padding: 15px;
    }
    .range-box h3 { font-size: 1.3rem; }
    .gallery-container img, .gallery-container video { height: 250px; }
    .gallery-btn { padding: 8px 12px; font-size: 1.5rem; }
    .legal { max-width: 90%; margin: 30px auto; padding: 15px; }

/* Container-Fix */
    .content-grid { 
        flex-direction: column !important; 
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto 20px auto !important;
        gap: 20px !important;
    }

    /* Die Karten-Breite strikt begrenzen */
    .full-width-card, .faszination-card { 
        width: 95% !important;       /* Nutzt 95% der verfügbaren 400px */
        max-width: 95vw !important;  /* Absicherung gegen Ausbrechen */
        grid-template-columns: 1fr !important; 
        padding: 15px !important;
        margin: 10px auto !important;
        text-align: center !important;
        display: block !important;    /* Wechsel von Grid auf Block für einfaches Stapeln */
    }

    /* Text-Spalte anpassen */
    .text-column {
        width: 100% !important;
        padding: 0 !important;
    }

    
    /* Buttons zentrieren und Breite anpassen */
    .button-group {
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .vdb-button {
        width: 100% !important;      /* Buttons untereinander auf voller Breite */
        max-width: 280px;            /* Aber nicht zu riesig */
        white-space: normal !important; /* Erlaubt Zeilenumbruch im Button-Text */
        font-size: 0.9rem !important;
    }

    /* Logos unter dem Text nebeneinander */
    .full-width-card .card-images { 
        display: flex !important;
        flex-direction: row !important; 
        justify-content: center !important; 
        width: 100% !important; 
        margin-top: 20px !important;
        gap: 10px !important;
    }

    /* Logo-Boxen skalieren */
    .full-width-card .zoom-img {
        width: 45% !important;       /* Nutzen ca. die Hälfte der Breite */
        height: 80px !important;
        max-width: 140px !important;
    }

    /* CONTENT ANPASSUNGEN */
    .ranges {
        flex-direction: column; 
        padding: 15px; 
        gap: 20px;
        align-items: center; 
    }
    .range-box {
        width: 90%; 
        margin: 0; 
        padding: 15px;
    }
    .range-box h3 { font-size: 1.3rem; }
    .gallery-container img, .gallery-container video { height: 250px; }
    .gallery-btn { padding: 8px 12px; font-size: 1.5rem; }
    .legal { max-width: 90%; margin: 30px auto; padding: 15px; }

    /* LOGO-WRAPPER ANPASSUNGEN (Innerhalb Media Query) */
    .logo-wrapper {
        margin-top: 10px; 
        margin-bottom: 20px; 
        display: flex;         /* Sorgt für saubere Zentrierung */
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .logo-wrapper img {
        width: 80% !important; /* Nimmt 80% der Breite des Containers ein */
        max-width: 250px;      /* Verhindert, dass es auf Tablets zu riesig wird */
        height: auto !important;
        display: block;
        margin: 0 auto;
    }

    
/* Gallery anpassung Titelseite */
@media (max-width: 1800px) {
    .gallery {
        width: 95% !important; /* Etwas breiter auf dem Handy nutzen */
        margin: 10px auto 30px auto !important;
    }

    .gallery-container img, 
    .gallery-container video {
        width: 100% !important;
        height: auto !important;      /* WICHTIG: Hebt die 650px auf */
        aspect-ratio: 16 / 9;         /* Erzwingt ein schönes Breitbild-Format */
        object-fit: cover !important; /* Sorgt dafür, dass das Bild den Raum füllt */
    }

    .gallery-btn {
        padding: 5px 12px !important; /* Kleinere Buttons für weniger Überlappung */
        font-size: 1.5rem !important;
    }
}
}






