/* ==========================================================================
   BASIS & TYPOGRAFIE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --poster-blue: #1d4e9e; 
    --club-red: #b30000;
    --club-brown: #3e2723;
    --white: #ffffff;
    --lime-gradient: linear-gradient(135deg, rgba(103, 145, 30, 0.85) 0%, rgba(145, 171, 15, 0.85) 100%);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --paper-bg: #fffdf7;
    --paper-border: #e2dcc8;
}

* { box-sizing: border-box; max-width: 100%; }

body, html {
    margin: 0; padding: 0;
    font-family: var(--font-body);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    color: #333;
}

/* --- Typografie & Haupt-Überschriften (Platzsparend & Dezent) --- */
h2 {
    color: var(--club-red);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    text-align: left;
    /* Größe reduziert: Startet bei 1.6rem und geht maximal auf 2.2rem */
    font-size: clamp(1.6rem, 4vw, 2.2rem); 
    line-height: 1;
    /* Abstand nach unten halbiert */
    margin-bottom: 15px; 
    letter-spacing: 0px; /* Normaler Zeichenabstand wirkt dezenter */
}

/* Die blaue Linie: flacher und näher am Text */
h2::after {
    content: '';
    display: block;
    width: 60px; /* Kürzerer Strich */
    height: 3px;
    background: var(--poster-blue);
    margin: 8px 0 0 0; /* Abstand von 15px auf 8px reduziert */
}

/* AUSNAHME: Protokoll-Papier bleibt unverändert */
.protocol-paper h2 {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem) !important;
    color: var(--club-red);
    text-align: left;
    margin-bottom: 15px;
}

/* --- Mobile Anpassung --- */
@media (max-width: 950px) {
    h2 {
        text-align: center;
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    h2::after {
        margin: 8px auto 0;
        width: 50px;
    }
}

/* ==========================================================================
   ÜBERSCHRIFTEN-FIX: PROTOKOLL & MOBILE ZENTRIERUNG
   ========================================================================== */

/* 1. Desktop: Authentischer Schreibmaschinen-Look auf Papier */
.protocol-paper h2, 
.protocol-paper h3 {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: clamp(1.4rem, 3vw, 1.8rem) !important;
    color: var(--club-red);
    text-transform: uppercase;
    text-align: left; /* Standard am Desktop: links */
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 8px;
    display: block;
    width: 100%;
}

/* Die blaue Linie unter den Papier-Überschriften */
.protocol-paper h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--poster-blue);
    margin: 8px 0 0 0; /* Bleibt links am Desktop */
}

/* 2. Mobile Anpassung: Alles sauber mittig */
@media (max-width: 950px) {
    .protocol-paper h2, 
    .protocol-paper h3 {
        text-align: center !important; /* Erzwingt Zentrierung */
        font-size: 1.5rem !important;
        padding-bottom: 10px;
    }

    .protocol-paper h2::after {
        margin: 8px auto 0 !important; /* Zentriert die blaue Linie */
        width: 60px;
    }
    
    /* Falls du justify-center für den Fließtext auf Mobile willst: */
    .protocol-paper p {
        text-align: center;
        line-height: 1.6;
    }
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.main-nav {
    position: fixed;
    top: 0; width: 100%; height: 80px; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); display: flex; align-items: center;
    border-bottom: 1px solid #eee;
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 20px;
}

.club-logo { height: 60px; width: auto; transition: 0.3s; }

.nav-links { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.nav-links li a {
    text-decoration: none; color: var(--poster-blue);
    font-family: var(--font-heading); font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase;
}

.mobile-menu-toggle {
    display: none; background: none; border: none;
    color: var(--poster-blue); font-size: 1.8rem; cursor: pointer;
}

.hero-header {
    min-height: 550px; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; text-align: center;
    padding-top: 80px; position: relative;
    background: var(--lime-gradient), url('img/Vereinshaus.webp') center/cover fixed;
}

.header-content h1 {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--poster-blue); text-transform: uppercase;
    text-shadow: 3px 3px 0px white; margin: 0;
}

.header-subtitle {
    color: var(--club-brown); font-size: clamp(1.1rem, 3vw, 1.45rem); 
    font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
    margin-top: 25px; padding: 10px 15px; display: inline-block;
    border-top: 2px solid var(--club-brown); border-bottom: 2px solid var(--club-brown);
    text-shadow: 0.3px 0 0 var(--club-brown), 1px 1px 0px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   LAYOUT SEKTIONEN (DESKTOP)
   ========================================================================== */
.content-wrapper { 
    max-width: 1200px; 
    margin: 60px auto; 
    padding: 0 20px; 
    width: 100%; 
}

/* Protocol-Sektion: Bild links, Text rechts */
section.protocol-section {
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px; 
    margin: 80px auto; 
    padding: 0 20px;
}

/* LINKS – Plakat größer machen */
.poster-frame { 
    flex: 0 0 48%;          /* beide Spalten jetzt 50/50 */
    max-width: none;        /* keine 550px-Bremse mehr */
    min-width: 400px;
    padding: 14px;          /* weißer Rand bleibt */
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: rotate(-1.5deg) scale(1.12); /* 12% größer */
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-frame .styled-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* RECHTS – gleiche Basis, damit die Höhen matchen */
.protocol-paper {
    flex: 0 0 48%;
    min-width: 320px;
}

/* Wenn mal kein Bild da ist – zentrieren */
section.protocol-section:not(:has(.poster-frame)) {
    justify-content: center;
}
section.protocol-section:not(:has(.poster-frame)) .protocol-paper {
    flex: 0 0 100%; 
    max-width: 850px; 
}

/* --- MOBILE --- */
@media (max-width: 950px) {
    section.protocol-section {
        flex-direction: column;
        align-items: center;
    }
    .poster-frame {
        max-width: 100%;
        min-width: 100%;
        transform: none;   /* auf Handy nicht schief */
        margin-bottom: 20px;
    }
}
/* --- SPEZIFISCHE STYLES FÜR ANLAGE & ZUCHT --- */

.content-wrapper {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}

/* Galerie Überschriften */
.gallery-theme-title {
font-size: 1.4rem;
color: #1a3a5f;
margin: 45px 0 20px 0;
padding-bottom: 10px;
border-bottom: 2px solid #eee;
font-weight: bold;
display: flex;
align-items: center;
}

/* Das 3er-Grid System */
.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
margin-bottom: 40px;
}

/* Galerie Karten mit abgerundeten Ecken */
.gallery-item-wrapper {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
display: flex;
flex-direction: column;
}

.gallery-item-wrapper:hover {
transform: translateY(-8px);
box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Bild-Container (4:3 Seitenverhältnis) */
.gallery-item {
position: relative;
width: 100%;
padding-top: 75%;
overflow: hidden;
background-color: #eee;
}

.gallery-item img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.gallery-item {
    height: 450px;
}

.gallery-item-wrapper:hover .gallery-item img {
transform: scale(1.05);
}

/* Overlay Effekt beim Hover */
.overlay {
position: absolute;
inset: 0;
background: rgba(26, 58, 95, 0.75);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease;
}

.gallery-item-wrapper:hover .overlay {
opacity: 1;
}

.overlay p {
color: white;
font-size: 1rem;
font-weight: bold;
border: 2px solid white;
padding: 10px 20px;
text-transform: uppercase;
}

/* Blaue Beschriftung unter dem Bild */
.click-hint {
padding: 15px;
text-align: left;
background: #fff;
font-weight: 600;
color: #0000cd;
text-decoration: underline;
font-size: 0.95rem;
}

/* Responsive Anpassungen für Tablets */
@media (max-width: 1024px) {
.gallery-grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* Responsive Anpassungen für Handys */
@media (max-width: 650px) {
.gallery-grid {
grid-template-columns: 1fr;
}

.gallery-theme-title {
    font-size: 1.2rem;
}


}
@media (max-width: 950px) {
    .gallery-item { 
        height: 350px !important;
    }
}


/* ==========================================================================
   SATZUNG & RECHTLICHE TEXTE
   ========================================================================== */

/* Container für Download-Button und Inhaltsverzeichnis */
.satzung-header-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 50px;
    align-items: center;
}

/* Die Schnellnavigation (TOC) */
.toc-box {
    flex: 1;
    min-width: 250px;
}

.toc-box strong {
    display: block;
    color: var(--poster-blue);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.toc-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.toc-box ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: 0.2s;
}

.toc-box ul li a:hover {
    color: var(--club-red);
    padding-left: 5px;
}

/* Der eigentliche Gesetzestext-Stil */
.legal-text section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.legal-text h3 {
    text-align: left; /* Paragraphen immer links */
    color: var(--poster-blue);
    border-bottom: none;
    margin-top: 0;
}

.legal-text p {
    color: #444;
    max-width: 800px;
}

/* Kleine Anmerkungen */
.legal-note-small {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    background: #fff;
    padding: 10px;
    border-left: 3px solid #ddd;
    margin-top: 15px;
}

.stand-info {
    margin-top: 60px;
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Mobile Anpassung für die Satzung */
@media (max-width: 950px) {
    .satzung-header-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .toc-box ul {
        grid-template-columns: 1fr;
    }

    .btn-download {
        width: 100% !important; /* Nutzt den Button-Fix von vorhin */
    }
}

/* ==========================================================================
   GRENZKRIMI STYLE (Polizeiakte / Zeitungs-Look)
   ========================================================================== */

.funny-story {
    background: #fdfdfd;
    border: 2px solid #333;
    padding: 40px;
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    box-shadow: 8px 8px 0px #333; /* Harter Schatten für Akten-Look */
}

/* Der "EILIG" oder "STRENG GEHEIM" Stempel-Look */
.funny-story::before {
    content: 'TATSACHENBERICHT';
    position: absolute;
    top: 20px;
    right: -20px;
    background: rgba(179, 0, 0, 0.1);
    color: var(--club-red);
    border: 3px solid var(--club-red);
    padding: 5px 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transform: rotate(15deg);
    opacity: 0.6;
    border-radius: 5px;
    pointer-events: none;
}

.story-icon {
    font-size: 2.5rem;
    color: var(--poster-blue);
    text-align: center;
    margin-bottom: 10px;
}

/* Metadaten (Tatort/Datum) wie bei einer Schreibmaschine */
.report-meta {
    font-family: 'Courier New', Courier, monospace;
    background: #eee;
    padding: 8px 15px;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Der Berichtstext */
.police-report p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #222;
}

/* Das Zitat als zentrales Element */
.report-quote {
    background: #fff;
    border-left: 5px solid var(--poster-blue);
    padding: 20px;
    margin: 30px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--poster-blue);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Quellenangabe */
.source-credit {
    margin-top: 30px;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}
/* --- Grenzkrimi Akten-Style --- */
.funny-story {
    background: #fdfdfd;
    border: 1px solid #ccc; /* Dünnerer Rahmen für Eleganz */
    padding: 40px;
    position: relative;
    max-width: 850px;
    margin: 60px auto;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.05); /* Sehr dezenter Schatten */
}

/* Der rote Dokumenten-Stempel */
.funny-story::before {
    content: 'AKTE: 1989';
    position: absolute;
    top: 25px;
    right: 20px;
    color: var(--club-red);
    border: 2px solid var(--club-red);
    padding: 4px 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transform: rotate(12deg);
    opacity: 0.4;
    font-size: 0.8rem;
    border-radius: 3px;
}

.report-meta {
    font-family: 'Courier New', Courier, monospace;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: block;
}

.police-report p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.report-quote {
    background: #f9f9f9;
    border-left: 4px solid var(--poster-blue);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #444;
}

.source-credit {
    margin-top: 30px;
    text-align: right;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #888;
}

/* Mobile Optimierung */
@media (max-width: 950px) {
    .funny-story {
        padding: 25px;
        margin: 40px 15px;
    }
    .funny-story::before {
        display: none; /* Stempel am Handy ausblenden für mehr Platz */
    }
}

/* Mobile Anpassung */
@media (max-width: 950px) {
    .funny-story {
        margin: 40px 15px;
        padding: 25px;
    }
    
    .funny-story::before {
        right: 10px;
        top: 10px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   MOBILE ANPASSUNG
   ========================================================================== */
@media (max-width: 950px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Nur eine Spalte auf dem Handy */
        gap: 15px;
    }

    .gallery-item {
        height: 220px;
    }

    /* Auf dem Handy Overlay immer leicht sichtbar machen oder permanent einblenden */
    .gallery-item .overlay {
        transform: translateY(0);
        background: rgba(29, 78, 158, 0.6);
    }
}


/* ==========================================================================
   GALERIE & SLIDER (BEREINIGT)
   ========================================================================== */
.gallery-section, 
.bruthaus-gallery { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin: 80px auto; 
    padding: 0 20px; 
    max-width: 1200px; 
}

/* Der Swiper-Container braucht Platz für die Punkte unten */
.swiper.gallery-slider { 
    width: 100%; 
    padding: 20px 10px 60px 10px; 
}

.gallery-item { 
    position: relative; 
    border-radius: 15px; 
    overflow: hidden; 
    height: 350px; /* Einheitliche Höhe für einen ruhigen Slider */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* WICHTIG: Verhindert, dass Bilder gequetscht werden */
}

/* Styling für die Swiper-Navigation */
.swiper-button-next, 
.swiper-button-prev { 
    color: var(--poster-blue) !important; 
    background: rgba(255,255,255,0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-button-next::after, 
.swiper-button-prev::after { 
    font-size: 1.2rem !important; 
    font-weight: bold;
}

.swiper-pagination-bullet-active { 
    background: var(--poster-blue) !important; 
}

/* FIX FÜR GROSSE BILDER & LADE-VERZÖGERUNG */
.gallery-grid, .nature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    /* Verhindert das Springen beim Laden */
    min-height: 350px; 
}

.gallery-item {
    background: #f0f0f0; /* Grauer Platzhalter, während das Bild lädt */
    height: 350px;
    overflow: hidden;
    position: relative;
    /* Erzwingt, dass der Browser sofort Platz reserviert */
    aspect-ratio: 4 / 3; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Macht das Erscheinen weicher */
    transition: opacity 0.5s ease-in;
    display: block;
}

/* Verhindert, dass Riesen-Bilder den Container sprengen */
.styled-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- ANTI-LAG GALERIE FIX --- */
.gallery-grid {
    display: grid;
    /* Festes Raster: Verhindert, dass der Browser beim Laden neu rechnen muss */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    /* Reserviert sofort Platz für die Sektion */
    min-height: 400px; 
}

.gallery-item {
    position: relative;
    width: 100%;
    /* WICHTIG: Reserviert den Platz (4:3 Format) VOR dem Laden des Bildes */
    aspect-ratio: 4 / 3; 
    background: #f5f5f5; /* Hellgrauer Platzhalter */
    border-radius: 12px;
    overflow: hidden;
    /* Verhindert das "Zittern" beim Rendern */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Das Bild erscheint sanft, statt hart reinzuspringen */
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Verhindert, dass extrem große Bilder im Protokoll das Layout sprengen */
.poster-frame .styled-img {
    width: 100%;
    height: auto;
    max-height: 600px; /* Begrenzung nach oben */
    object-fit: contain;
    background: #fff;
}

/* Mobile Optimierung für die Galerie */
@media (max-width: 950px) {
    .gallery-item { 
        height: 250px; /* Auf dem Handy etwas kompakter */
    }
    
    .swiper-button-next, 
    .swiper-button-prev { 
        display: none !important; /* Auf Touch-Geräten wischt man lieber mit dem Daumen */
    }

    .gallery-section {
        margin: 40px auto;
    }
}
/* ==========================================================================
   BUTTONS & DOWNLOADS
   ========================================================================== */
.btn-primary, .satzung-button {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px;
    background: var(--poster-blue); color: white !important; text-decoration: none;
    border-radius: 50px; font-weight: 700; transition: 0.3s;
}

.btn-download {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #d32f2f; color: white !important; width: 220px; height: 180px; padding: 20px;
    border-radius: 12px; text-decoration: none; font-weight: 800; text-transform: uppercase;
    text-align: center; transition: 0.3s; box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}
.btn-download i { font-size: 3.5rem; margin-bottom: 12px; }
.btn-download:hover { background: #b71c1c; transform: scale(1.03); }

/* ==========================================================================
   WELLEN-FIX (FÜR HEADER & FOOTER)
   ========================================================================== */

/* Container für die Wellen im Header */
.hero-header .wave-container.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10; 
}

/* Container für die Wellen im Footer */
.hero-footer .wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
    transform: rotate(180deg); 
}

/* Das eigentliche SVG sichtbar machen */
.hero-header .wave-bottom svg, 
.hero-footer .wave-top svg {
    display: block;
    width: 100%;
    height: 60px; 
    fill: var(--white); 
}

.shape-fill { 
    fill: var(--white); 
}

/* ==========================================================================
   MOBILE ANPASSUNG (WELLEN)
   ========================================================================== */
@media (max-width: 950px) {
    .hero-header .wave-bottom svg, 
    .hero-footer .wave-top svg {
        height: 35px; 
    }
    
    .hero-header {
        padding-bottom: 80px; 
    }
    
    .hero-footer {
        padding-top: 80px; 
    }
}
/* ==========================================================================
   DER FINALE MOBILE-FIX (ABBRECHEN DES QUETSCHENS)
   ========================================================================== */
@media (max-width: 950px) {
    /* Menü System */
    .mobile-menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 80px; right: -100%; width: 100%; height: calc(100vh - 80px);
        background: white; flex-direction: column; align-items: center; padding-top: 50px;
        transition: 0.4s ease-in-out; display: flex; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .club-logo { height: 48px; }

    /* Anti-Quetsch: Stapeln erzwingen */
    section.protocol-section, .content-wrapper, .anlage-split, .content-section {
        display: block !important; width: 100% !important; padding: 0 25px !important; margin: 40px 0 !important;
    }

    .poster-frame, .image-block, .protocol-paper, .text-section {
        width: 100% !important; max-width: 100% !important; flex: none !important;
        margin: 0 0 30px 0 !important; display: block !important;
    }

    /* Bilder & Papier Look Reset für Mobile */
    .poster-frame .styled-img { height: auto !important; max-height: 380px; border-radius: 20px; }
    
    .protocol-paper {
        background: transparent !important; border: none !important; box-shadow: none !important;
        padding: 0 !important; text-align: center !important;
    }

    /* Buttons auf Daumen-Größe */
    .btn-primary, .satzung-button, .btn-download {
        display: flex !important; width: 100% !important; max-width: 340px !important;
        min-height: 60px !important; margin: 25px auto !important; border-radius: 50px !important;
        justify-content: center; align-items: center; font-size: 1.1rem !important;
    }

    .btn-download { flex-direction: row !important; height: auto !important; gap: 15px; }
    .btn-download i { font-size: 2.2rem !important; margin: 0 !important; }

    /* Slider & Info-Karten */
    .info-card { flex-direction: column; align-items: center; text-align: center; }
    .swiper-button-next, .swiper-button-prev { display: none !important; }
    .gallery-item { height: 180px !important; }
}

/* ==========================================================================
   WELLEN-FIX (Wiederherstellung der Sichtbarkeit)
   ========================================================================== */

/* Header Welle */
.hero-header .wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

/* Footer Welle */
.hero-footer .wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
    transform: rotate(180deg);
}

/* Das eigentliche SVG */
.wave-bottom svg, 
.wave-top svg {
    display: block;
    width: 100%;
    height: 60px; /* Die Höhe, die gefehlt hat */
    fill: var(--white);
}

.shape-fill { 
    fill: var(--white); 
}

/* Mobile Anpassung für die Wellen */
@media (max-width: 950px) {
    .wave-bottom svg, 
    .wave-top svg {
        height: 35px;
    }
}

/* --- SATZUNG MOBILE OPTIMIERUNG --- */
.legal-document {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    /* Auf dem Handy reduzieren wir den Abstand, damit mehr Platz für Text bleibt */
    padding: 40px 20px !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    /* Verhindert, dass Text über den Rand schiebt */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto; /* Aktiviert automatische Silbentrennung */
}

.legal-text {
    text-align: left;
    width: 100%;
}

.legal-text h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-top: 25px;
    color: #1d4e9e;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.legal-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Spezieller Fix für das S21 und schmale Displays */
@media (max-width: 400px) {
    .legal-document {
        padding: 30px 15px !important; /* Noch weniger Rand auf ganz kleinen Schirmen */
    }
    
    .protocol-title {
        font-size: 1.5rem !important; /* Überschrift verkleinern, damit sie nicht bricht */
    }
}

/* ==========================================================================
   KOMBINIERTER FIX: WELLEN & WILLKOMMEN
   ========================================================================== */

/* 1. Willkommens-Sektion (Desktop: Text links, Logo rechts) */
.content-section#home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.content-section#home .text-section {
    flex: 1;
    text-align: left; /* Text am Desktop links lassen */
}

.content-section#home .image-block {
    flex: 0 0 40%;
    text-align: right;
}

.content-section#home .styled-img {
    box-shadow: none; /* Logo ohne harten Schatten-Kasten */
}

/* 2. Wellen-Sichtbarkeit (Header & Footer) */
.hero-header .wave-bottom,
.hero-footer .wave-top {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.hero-header .wave-bottom { bottom: -1px; }
.hero-footer .wave-top { top: -1px; transform: rotate(180deg); }

.wave-bottom svg, 
.wave-top svg {
    display: block;
    width: 100%;
    height: 60px; /* Die wichtige Höhe */
    fill: var(--white);
}

.shape-fill { fill: var(--white); }

/* 3. Mobile Anpassungen (Unter 950px) */
@media (max-width: 950px) {
    /* Wellen flacher auf dem Handy */
    .wave-bottom svg, 
    .wave-top svg {
        height: 35px;
    }

    /* Willkommen auf Handy: Alles mittig stapeln */
    .content-section#home {
        display: block !important;
        text-align: center;
    }
    
    .content-section#home .text-section {
        text-align: center !important;
        margin-bottom: 30px;
    }

    .content-section#home .image-block {
        width: 100%;
        text-align: center;
    }

    .content-section#home .image-block img {
        max-width: 250px; /* Logo auf Handy handlicher */
        margin: 0 auto;
    }
}

/* ==========================================================================
   DER FINALE FOOTER-WELLEN-FIX
   ========================================================================== */

.hero-footer {
    position: relative;
    /* Der grüne Verlauf über dem Vereinsbild */
    background: linear-gradient(135deg, rgba(103, 145, 30, 0.85) 0%, rgba(145, 171, 15, 0.85) 100%), 
                url('img/Vereinshaus.webp') center/cover;
    padding: 120px 20px 60px; /* Padding links/rechts für Mobile hinzugefügt */
    margin-top: 0;
    overflow: hidden; 
}

.hero-footer .wave-top {
    position: absolute;
    top: -2px; 
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.hero-footer .wave-top svg {
    display: block;
    width: 100%;
    height: 80px; 
    fill: #ffffff; /* Exakt Weiß, passend zum Hintergrund darüber */
}

/* Zentrierung für den gesamten Inhalt */
.hero-footer .footer-content, 
.hero-footer .contact-box,
.hero-footer .footer-nav {
    position: relative;
    z-index: 20;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto; 
}

.footer-link, .legal-link {
    color: white !important;
    text-decoration: underline;
    font-weight: 600;
}

/* --- COPYRIGHT ZENTRIERUNG --- */
.footer-copyright {
    width: 100%;
    text-align: center; 
    margin: 20px auto 0; 
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    clear: both; 
}

.footer-copyright p {
    margin: 0;
    display: inline-block; 
}


.footer-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Mobile Anpassung */
@media (max-width: 950px) {
    .hero-footer .wave-top svg {
        height: 40px;
    }
    .hero-footer {
        padding-top: 80px;
    }
}


/* ==========================================================================
   DER PROTOKOLL- & PAPIER-STYLE (Desktop-Fokus)
   ========================================================================== */

/* Die Sektion: Bild links, Papier rechts */
section.protocol-section {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    max-width: 1200px;
    margin: 80px auto;
    gap: 50px;
    padding: 0 20px;
}

/* Das "Papier" */
.protocol-paper {
    flex: 0 0 45%;
    background: #fffdf7; /* Ganz leichtes Vintage-Gelb/Weiß */
    border: 1px solid #e2dcc8;
    border-left: 10px solid var(--poster-blue); /* Der dicke blaue Rand */
    padding: 50px;
    position: relative;
    /* Der Schlagschatten für den Paper-Effekt */
    box-shadow: 15px 15px 0px rgba(226, 220, 200, 0.5); 
}

/* Der Schreibmaschinen-Effekt für Überschriften im Papier */
.protocol-paper h2, 
.protocol-paper h3 {
    font-family: 'Courier New', Courier, monospace; /* Typischer Schreibmaschinen-Font */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--club-red);
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: left; /* Auf dem Papier immer linksbündig für den Doku-Look */
}

/* Text auf dem Papier */
.protocol-paper p {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    color: #444;
}

/* Das Bild daneben (Poster-Frame) */
.poster-frame {
    flex: 0 0 50%;
}

.poster-frame .styled-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px; /* Weniger rund, eher wie ein Foto */
    border: 10px solid white; /* Weißer Fotorand */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ==========================================================================
   ANPASSUNG FÜR MOBILE (Anti-Quetsch)
   ========================================================================== */
@media (max-width: 950px) {
    section.protocol-section {
        display: block;
        margin: 40px 0;
    }

    .poster-frame, 
    .protocol-paper {
        width: 100% !important;
        margin-bottom: 30px;
    }

    .protocol-paper {
        padding: 30px 20px;
        box-shadow: none;
        border-right: 1px solid #e2dcc8; /* Auf Mobile rundherum Rahmen */
    }
}

/* Mobile Korrektur für das Fischfest-Modul */
@media (max-width: 950px) {
    
    /* 1. Das Plakat und das Papier untereinander stapeln */
    .protocol-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* 2. Den Plakat-Rahmen auf volle Breite setzen */
    .poster-frame {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        transform: none; /* Keine Drehung am Handy */
    }

    /* 3. Den Text auf dem Plakat verkleinern, damit er nicht bricht */
    .date-big {
        font-size: clamp(2rem, 10vw, 2.5rem); /* Skaliert zwischen 2rem und 2.5rem */
    }

    .date-big span {
        font-size: 1.2rem;
    }

    .location-line {
        font-size: 1.1rem;
        margin: 5px 0;
    }

    /* 4. Das Protokoll-Papier anpassen */
    .protocol-paper {
        min-width: 100%;
        padding: 20px; /* Weniger Innenabstand am Handy */
    }

    /* 5. Die Details (Termin, Ort, Kulinarik) untereinander */
    .detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .detail-item i {
        margin-top: 0;
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   SPEZIFISCHE ANPASSUNG: FISCHFEST, GESCHICHTE & CO.
   (Mehr Abstand an den Seiten, damit die Boxen kompakter wirken)
   ========================================================================== */

/* Betrifft die Sektionen mit dem Protokoll-Layout (Bild + Text) */
section.protocol-section {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    /* Erhöhter Seitenabstand für die gesamte Sektion */
    padding: 20px 10%; 
    margin: 40px auto;
}

/* Die Inhalts-Boxen (Papier) kompakter machen */
.protocol-paper {
    flex: 1;
    max-width: 500px; /* Begrenzt die Breite des Text-Papiers */
    background: var(--paper-bg);
    border: 1px solid var(--paper-border);
    border-left: 8px solid var(--poster-blue);
    padding: 30px 40px;
    box-shadow: 8px 8px 0px var(--paper-border);
}

/* Den Plakat-Rahmen ebenfalls etwas einbremsen */
.poster-frame {
    flex: 1;
    max-width: 420px; /* Plakat wird etwas schmaler */
}

/* Sonderfall: Wenn nur Text vorhanden ist (z.B. Geschichte ohne Bild) */
section.protocol-section:not(:has(.poster-frame)) .protocol-paper {
    max-width: 700px; /* Damit reiner Text nicht zu schmal wird */
    margin: 0 auto;
}

/* ==========================================================================
   FISCHFEST-BOX: PLAKAT VOLLSTÄNDIG SICHTBAR (FIX)
   ========================================================================== */

#fischfest.protocol-section {
    display: flex;
    align-items: flex-start; /* Wichtig: Damit das Papier oben bündig mit dem Plakat startet */
    justify-content: center;
    gap: 50px;
    padding: 20px 5%; /* Padding oben/unten etwas reduziert für kompakten Look */
    max-width: 1300px;
}

#fischfest .poster-frame {
    flex: 0 0 550px; 
    height: auto;       /* FIX: Höhe nicht mehr starr, sondern passt sich dem Bild an */
    overflow: visible;  /* FIX: Nichts mehr wegschneiden */
    border-radius: 12px;
    box-shadow: 20px 20px 0px rgba(29, 78, 158, 0.1); 
    border: 1px solid #eee;
    background: #fff;   /* Hintergrund für den Rahmen */
}

#fischfest .poster-frame .styled-img {
    width: 100%;
    height: auto;       /* FIX: Bild behält seine echten Proportionen */
    object-fit: contain; /* FIX: Zeigt das gesamte Bild ohne Crop */
    display: block;
}

#fischfest .protocol-paper {
    flex: 1;
    max-width: 500px;
    padding: 40px;
    /* justify-content: center lassen wir weg, damit der Text oben startet */
    margin-top: 0; 
}
/* ==========================================================================
   MOBILE ANPASSUNG (Damit es nicht den Schirm sprengt)
   ========================================================================== */
@media (max-width: 1100px) {
    #fischfest .poster-frame {
        flex: 0 0 450px;
        height: 580px;
    }
}

@media (max-width: 950px) {
    #fischfest.protocol-section {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }

    #fischfest .poster-frame {
        width: 100%;
        max-width: 100%;
        height: auto; /* Auf Mobile lassen wir die natürliche Höhe zu */
        aspect-ratio: 3 / 4; /* Behält ein schönes Poster-Format bei */
    }
}
/* ==========================================================================
   MOBILE ANPASSUNG
   ========================================================================== */
@media (max-width: 950px) {
    #fischfest.protocol-section {
        flex-direction: column;
        padding: 20px 15px;
    }

    #fischfest .poster-frame {
        width: 100%;
        max-width: 340px; /* Etwas schmaler auf Mobile */
        height: 400px;    /* Kürzere Höhe auf Mobile */
        flex: none;
    }

    #fischfest .protocol-paper {
        width: 100%;
        max-width: 100%;
        padding: 25px;
        box-shadow: none;
        border: 1px solid var(--paper-border);
        border-left: 8px solid var(--poster-blue);
    }
}


/* ==========================================================================
   MOBILE ANPASSUNG (Damit es am Handy nicht ZU schmal wird)
   ========================================================================== */
@media (max-width: 950px) {
    section.protocol-section {
        padding: 15px 25px; /* Am Handy wieder mehr Platz nutzen */
        flex-direction: column;
        align-items: center;
    }

    .protocol-paper, .poster-frame {
        max-width: 100%; /* Volle Breite am Handy für Lesbarkeit */
        width: 100% !important;
    }
}

/* Speziell für die DSGVO-Unterüberschriften */
.dsgvo-sub-header {
    font-family: 'Courier New', Courier, monospace !important;
    text-transform: uppercase;
    color: var(--club-red);
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd; /* Dezente Trennlinie */
    padding-bottom: 5px;
}

/* Mobile Anpassung für die DSGVO-Überschrift */
@media (max-width: 600px) {
    .dsgvo-sub-header {
        text-align: center;
        font-size: 1.1rem;
    }
}

/* --- NAVIGATION & LOGO FIX --- */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* Logo links, Links rechts */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-area img {
    height: 65px; /* Passt das Logo in die 80px hohe Bar ein */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #1d4e9e; /* Dein Poster-Blau */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #b30000; /* Dein Club-Rot */
}

/* MOBILE OPTIMIERUNG */
@media (max-width: 950px) {
    .nav-links {
        display: none; /* Wird über dein JS (Klasse .active) gesteuert */
    }
    
    .logo-area img {
        height: 50px; /* Etwas kleiner auf Handys */
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        border-bottom: 2px solid #b30000;
    }
}

/* --- ADRESSE IM FOOTER OPTIMIEREN --- */
.footer-address {
    font-style: normal; /* Entfernt das standardmäßige Kursiv von <address> */
    line-height: 1.6;
    color: #ffffff;
}

.club-name {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-heading); /* Falls du eine Überschrift-Schriftart definiert hast */
}

.legal-link {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.legal-link:hover {
    opacity: 0.8;
}


.tractor-section {
    margin: 60px auto;
    text-align: center;
}

.tractor-showcase {
    display: flex;
    justify-content: center;
}

.tractor-img-container {
    max-width: 900px;
    width: 100%;
}

.tractor-final-img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    border-radius: 15px;
}


@media (max-width: 650px) {
    .tractor-img-container {
        max-width: 95%;
    }
}

/* --- MOBILE FIX für Vereinsgeschichte --- */
@media (max-width: 768px) {
  /* falls du einen eigenen Header hast */
  .vereinsgeschichte-header h1,
  #vereinsgeschichte h1,
  .page-title {
    font-size: 26px !important;   /* vorher sicher 40-48px */
    line-height: 1.25;
    padding: 0 15px;
    word-break: break-word;       /* lange Wörter umbrechen */
  }

  .vereinsgeschichte-header p,
  #vereinsgeschichte .subtitle {
    font-size: 16px;
    padding: 0 15px;
  }
}

/* extra klein für S21 & Co (unter 400px) */
@media (max-width: 400px) {
  .vereinsgeschichte-header h1,
  #vereinsgeschichte h1 {
    font-size: 22px;
  }
}

/* --- FIX: Vereinsgeschichte Header auf S21 --- */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1.9rem !important;   /* statt 2.5rem */
    line-height: 1.15;
    text-shadow: 2px 2px 0px white; /* weniger dicker Schatten */
    padding: 0 10px;
    word-break: break-word;
  }

  .header-content .header-subtitle {
    font-size: 0.95rem !important;
    letter-spacing: 1.5px;
    margin-top: 12px;
    padding: 6px 10px;
  }
}

/* Extra für S21 (360px) */
@media (max-width: 400px) {
  .header-content h1 {
    font-size: 1.65rem !important;
  }
}