/* Globale Einstellungen & Variablen */
:root {
    --primary-blue: #8bcbe6;
    --primary-orange: #df6c30;
    --text-dark: #333;
    --text-brown: #8c4b38;
    --bg-light: #fafafa;

    --header-height: 120px;
    --header-scroll-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: var(--header-height);
}

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', serif;
}

/* --- NAVIGATION & LOGO --- */
header {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

header.scrolled {
    height: var(--header-scroll-height);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 85px;
    width: auto;
    transition: height 0.3s;
}

header.scrolled .logo img {
    height: 55px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-brown);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-orange);
}

/* --- CALL TO ACTION (CTA) BUTTON IM HEADER --- */
.nav-cta {
    background-color: var(--primary-orange);
    color: white !important;
    /* Überschreibt die braune Textfarbe der anderen Links */
    padding: 10px 24px;
    border-radius: 30px;
    /* Macht den Button schön rund (Pillenform) */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(223, 108, 48, 0.3);
}

.nav-cta:hover {
    background-color: #c95c25;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 108, 48, 0.4);
}

/* Markiert die aktuell besuchte Seite im Menü */
.nav-link.active-page {
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 3px;
}

/* Markiert den CTA-Button SEHR DEUTLICH als gedrückt */
.nav-cta.active-page {
    background-color: #a84518;
    /* Ein deutlich dunkleres Orange/Rostbraun */
    color: rgba(255, 255, 255, 0.85);
    /* Die weiße Schrift wird minimal abgedunkelt */
    box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.5);
    /* Tieferer, starker Schatten nach innen */
    transform: scale(0.95) translateY(2px);
    /* Button wirkt physisch nach unten gedrückt */
    pointer-events: none;
    /* Klick deaktiviert */
}

/* Anpassung für das Mobile-Menü (Hamburger) */
@media (max-width: 768px) {
    .nav-cta {
        display: inline-block;
        margin-top: 15px;
        padding: 14px 35px;
        font-size: 1.15rem;
    }
}
/* --- HAMBURGER MENU (Mobile) --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2000;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-brown);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 8px;
}

.bar:nth-child(3) {
    top: 16px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- HERO SECTION --- */

.hero-content {
    transform: translateY(-80px);
    /* Schiebt den gesamten Block um 60 Pixel nach oben */
}
.hero {
    background: url('bilder/fraumitrotenhaaren.webp') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* --- HERO SECTION --- */

.hero-content {
    transform: translateY(-80px);
}

.hero {
    background: url('bilder/fraumitrotenhaaren.webp') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-logo {
    border-radius: 50%;
    margin-bottom: 25px;
    width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* NEU: Startwerte und Animations-Aufruf für das Logo */
    opacity: 0;
    animation: popInLogo 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);

    /* NEU: Startwerte und Animations-Aufruf für den Text */
    opacity: 0;
    /* Das "0.4s" am Ende sorgt für die kurze Verzögerung nach dem Logo */
    animation: slideUpText 1s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

/* --- KEYFRAMES FÜR DIE HERO-ANIMATIONEN --- */
@keyframes popInLogo {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUpText {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ALLGEMEINE SECTIONS --- */
section {
    padding: 100px 20px;
}

.section-white {
    background-color: #fff;
    text-align: center;
}

.section-blue {
    background-color: #f4f8fa;
    /* Sehr zartes Eisblau statt Vollfarbe */
    text-align: center;
}

.section-orange {
    background-color: #fff7f3;
    /* Sehr sanftes, helles Orange */
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-header img {
    margin-bottom: 15px;
}

.section-header h2 {
    color: var(--text-brown);
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- DER FÖRDERVEREIN (NEUES, OFFENES LAYOUT) --- */
.foerderverein-section {
    padding-bottom: 50px;
    /* Etwas weniger Padding unten, da die Blöcke Platz brauchen */
}

.info-blocks-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* Großer Abstand zwischen den Blöcken für Luftigkeit */
}

.info-block {
    display: flex;
    align-items: center;
    /* Zentriert Text vertikal zum Bild */
    gap: 50px;
    text-align: left;
    /* Text ist jetzt linksbündig für bessere Lesbarkeit */
}

/* Dreht die Reihenfolge für jeden zweiten Block um (Bild rechts) */
.info-block.block-reverse {
    flex-direction: row-reverse;
}

.info-block-image {
    flex: 1;
    /* Bild nimmt 50% der Breite ein */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Eleganter Schatten */
}

.info-block-image {
    flex: 0 0 35%;
    /* Das Bild nimmt nur noch 35% statt 50% der Breite ein */
    max-width: 380px;
    /* Absolute Begrenzung, damit es nie zu riesig wird */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: block;
    /* Wichtig für das klickbare a-Tag */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Weiche Animation */
}

/* Der Hover-Effekt für das Bild */
.info-block-image:hover {
    transform: translateY(-6px);
    /* Hebt sich leicht an */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    /* Schatten wird weicher und größer */
}

.info-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

.info-block-text {
    flex: 1;
    /* Der Text nimmt den restlichen (größeren) Platz ein */
    padding: 20px 0;
}

.info-block-text h3 {
    color: var(--text-brown);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.info-block-text p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
}

.inline-link {
    font-size: 1rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.inline-link:hover {
    color: var(--primary-blue);
    padding-left: 5px;
    /* Kleiner Animationseffekt beim Hover */
}

.inline-link-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* --- RESPONSIVE ANPASSUNGEN (FÜR HANDYS) --- */
@media (max-width: 768px) {

    .info-block,
    .info-block.block-reverse {
        flex-direction: column;
        /* Stapelt Bild und Text vertikal auf Handys */
        text-align: center;
        gap: 30px;
    }

    .info-block-image {
        width: 100%;
    }

    .foerderverein-section .section-header h2 {
        font-size: 1.8rem;
    }

    .inline-link-row {
        justify-content: center;
    }
}

/* --- VERANSTALTUNGEN --- */
.events-list {
    max-width: 650px;
    margin: 0 auto;
}

.event-item {
    border-bottom: 1px solid #ddd;
    /* Dezente graue Linie */
    padding: 35px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    color: var(--primary-orange);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.event-desc {
    color: var(--text-dark);
    /* Da der Hintergrund jetzt hell ist, muss der Text dunkel sein */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-time {
    color: #666;
    /* Dezentes Grau für die Uhrzeit */
    font-size: 1rem;
}


/* --- VORSTAND (KOMPAKT & LIGHTBOX) --- */
.team-compact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.team-image-clickable {
    position: relative;
    max-width: 650px;
    margin: 0 auto 30px auto;
    cursor: zoom-in;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-image-clickable img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.team-image-clickable:hover img {
    transform: scale(1.02);
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
}

.roster-row {
    margin-bottom: 25px;
    text-align: center;
}

.roster-row:last-child {
    margin-bottom: 0;
}

.roster-row h4 {
    color: var(--primary-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    display: inline-block;
}

.compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.compact-member {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.compact-member strong {
    color: var(--text-dark);
}

.compact-member span {
    color: #777;
    font-size: 0.85rem;
}


/* --- LIGHTBOX (MODAL) OPTIMIERT --- */
.modal {
    display: none;
    /* Wird per JS auf 'flex' gesetzt */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    /* Flexbox für perfekte dynamische Zentrierung */
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Ein kleiner Schutzabstand zum Bildschirmrand */
}

.modal-content {
    /* Diese Werte zwingen das Bild, so groß wie möglich zu werden */
    width: 100%;
    height: 100%;
    max-width: 1600px;
    /* Sehr großzügiges Limit für Desktop-Monitore */
    max-height: 90vh;
    object-fit: contain;
    /* Hält die Proportionen, füllt die Fläche aber maximal aus */
    display: block;
    border-radius: 4px;

    /* Weiche Zoom-Animation */
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Diese Klasse wird vom JavaScript hinzugefügt, um die Animation auszulösen */
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-orange);
}


/* --- PRESSE (ELEGANT MIT BILDVORSCHAU) --- */
.section-orange {
    background-color: var(--primary-orange);
    color: white;
    text-align: center;
}

.presse-grid-new {
    display: grid;
    /* Spalten etwas breiter machen, da Bild + Text nebeneinander stehen */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.press-empty {
    grid-column: 1 / -1;
    color: #fff;
    font-size: 1.1rem;
    padding: 30px 0;
    text-align: center;
}

.presse-card-new {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    /* Flexbox für Side-by-Side Layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;

    /* Da die Karte ein Link ist, müssen wir das Standard-Verhalten überschreiben */
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presse-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-blue);
}

.presse-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --- DAS VORSCHAUBILD --- */
.presse-thumb {
    flex: 0 0 100px;
    /* Feste Breite von 100px, damit es "nicht zu groß" ist */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Leichter Schatten, wirkt wie echtes Papier */
    border: 1px solid #eaeaea;
}

.presse-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Leichter Zoom-Effekt auf dem Bild beim Hover über die Karte */
.presse-card-new:hover .presse-thumb img {
    transform: scale(1.05);
}

/* --- DER TEXTBEREICH --- */
.presse-content {
    flex: 1;
    /* Nimmt den restlichen Platz ein */
    display: flex;
    flex-direction: column;
}

.presse-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 10px;
}

.presse-tag {
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 0.9rem;
}

.presse-paper {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.presse-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 15px;
}

.presse-link {
    margin-top: auto;
    display: inline-block;
    color: var(--text-brown);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.presse-link .arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.presse-card-new:hover .presse-link {
    color: var(--primary-orange);
}

.presse-card-new:hover .presse-link .arrow {
    transform: translateX(5px);
}

/* --- RESPONSIVE FÜR SMARTPHONES --- */
@media (max-width: 600px) {
    .presse-grid-new {
        grid-template-columns: 1fr;
        /* Zwingt die Karten in eine einzige Spalte */
    }

    .presse-card-new {
        padding: 20px 15px;
        gap: 15px;
        /* Etwas enger zusammen auf dem Handy */
    }

    .presse-thumb {
        flex: 0 0 80px;
        /* Bild wird auf dem Handy etwas kleiner */
    }

    .presse-title {
        font-size: 1rem;
    }
}


/* --- KONTAKT --- */
.kontakt-info {
    margin-bottom: 50px;
    color: var(--text-brown);
    line-height: 1.8;
    font-size: 1.05rem;
}

.kontakt-info a {
    color: var(--text-brown);
    text-decoration: underline;
    font-weight: bold;
}

.kontakt-form {
    max-width: 650px;
    margin: 0 auto;
}

/* Desktop-Layout: Felder stehen nebeneinander */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* --- MODERNISIERTES KONTAKTFORMULAR --- */
.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    background-color: #f5f5f5;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.3s ease;

    /* Verhindert Standard-Schatten auf Apple-Geräten */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(223, 108, 48, 0.15);
}

.kontakt-form button {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 0 40px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(223, 108, 48, 0.25);
}

.kontakt-form button:hover {
    background-color: #c95c25;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 108, 48, 0.4);
}


/* --- FOOTER --- */
footer {
    background-color: #f1f1f1;
    padding: 30px;
    text-align: center;
}

footer a {
    color: #555;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-orange);
}


/* --- SCROLL ANIMATION KLASSEN --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVE OPTIMIERUNG --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        padding-top: 100px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .kontakt-form button {
        padding: 16px;
        width: 100%;
    }

    .modern-grid {
        gap: 20px;
    }

    .modern-card img {
        height: 280px;
    }

    .team-compact-wrapper {
        padding: 20px 10px;
    }

    .compact-grid {
        gap: 15px;
        flex-direction: column;
    }

    .presse-card {
        padding: 25px 20px;
    }
}

/* --- KONTAKTFORMULAR ANIMATIONEN --- */

#submitBtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    /* Verhindert, dass der Button beim Textwechsel schrumpft */
    transition: background-color 0.4s ease, transform 0.2s ease;
}

/* Ein kleiner Klick-Effekt */
#submitBtn:active {
    transform: scale(0.95);
}

/* Status: LÄDT */
#submitBtn.loading {
    background-color: #999;
    cursor: wait;
    pointer-events: none;
    /* Verhindert mehrfaches Klicken */
}

/* Status: ERFOLGREICH */
#submitBtn.success {
    background-color: #4CAF50;
    /* Schönes, sattes Grün */
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

/* Wenn es lädt, verstecken wir den Text */
#submitBtn.loading .btn-text {
    opacity: 0;
}

/* Der animierte Ladekreis */
.loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

#submitBtn.loading .loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Die Erfolgsmeldung unter dem Formular */
.success-message {
    display: none;
    /* Erstmal komplett unsichtbar */
    color: #4CAF50;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- UNTERSEITEN (PURE WHITE DESIGN - KORRIGIERT & ZENTRIERT) --- */

.subpage-wrapper {
    background-color: #fff;
    padding: 160px 20px 80px 20px;
    min-height: 100vh;
}

.reading-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.content-block {
    margin-bottom: 35px;
    /* Schafft Atempausen zwischen den Textabschnitten */
}

/* Der Kopfbereich der Seite */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 40px;
}

.page-top-icon {
    width: 110px;
    height: auto;
    margin-bottom: 25px;
    opacity: 0.9;
}

.page-header h1 {
    color: var(--text-brown);
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- KORRIGIERTER FLIESSTEXT (Zentriert) --- */
.page-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 22px;
    text-align: center;
    /* Hier ist die wichtige Zentrierung */
    max-width: 800px;
    /* Begrenzt die Zeilenlänge für das Auge */
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    font-size: 1.35rem !important;
    font-weight: 300;
    color: var(--text-brown) !important;
    text-align: center !important;
    line-height: 1.6 !important;
    margin-bottom: 40px !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-content h2 {
    color: var(--primary-orange);
    font-size: 2.2rem;
    margin: 50px 0 25px 0;
    font-weight: 300;
    text-align: center;
}

.highlight-quote {
    text-align: center;
    color: var(--text-brown);
    font-size: 1.6rem;
    font-style: italic;
    margin: 50px auto;
    font-weight: 300;
    line-height: 1.5;
    max-width: 800px;
}

/* Die Aufzählungen im Text (Sie finden / Dann) */
.list-section ul {
    list-style: none;
    padding-left: 0;
    max-width: 750px;
    margin: 0 auto;
}

.list-section li {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    text-align: left;
    /* Listen sehen linksbündig immer besser aus */
}

.list-section li::before {
    content: '•';
    color: var(--primary-orange);
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: -4px;
}

/* --- Der edle Trenner (Linie mit Buch-Icon) --- */
.text-divider {
    text-align: center;
    margin: 80px 0;
    position: relative;
}

.text-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background-color: #eaeaea;
    z-index: 1;
}

.text-divider img {
    width: 110px;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 30px;
    opacity: 0.85;
}

/* Der Abschluss-Bereich */
.contact-cta {
    text-align: center;
    margin-top: 80px;
    padding-top: 50px;
    border-bottom: 1px solid #eaeaea;
    /* Eine abschließende Linie ganz unten */
    padding-bottom: 80px;
}

.contact-cta p {
    text-align: center !important;
}

.btn-orange {
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-orange:hover {
    background-color: #c95c25;
    transform: translateY(-2px);
    color: white;
}

/* --- ANKER-LINKS & TEXT-LINKS --- */

/* Verhindert, dass der fixed Header die Überschrift verdeckt, wenn man dorthin springt */
#motivation {
    scroll-margin-top: 140px;
}

/* Styling für Links im Fließtext (wie die Beitrittserklärung) */
.text-link {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}

.text-link:hover {
    color: var(--primary-blue);
    border-bottom: 1px solid var(--primary-blue);
}

/* --- RESPONSIVE OPTIMIERUNG FÜR UNTERSEITEN (PREMIUM MOBILE LAYOUT) --- */
@media (max-width: 768px) {
    .subpage-wrapper {
        padding-top: 110px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .page-header {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Fließtext-Optimierung für schmale Displays */
    .page-content p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 22px;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    .intro-text {
        font-size: 1.15rem !important;
        margin-bottom: 40px !important;
    }

    .page-content h2 {
        font-size: 1.8rem;
        margin: 50px 0 20px 0;
    }

    .highlight-quote {
        font-size: 1.25rem;
        margin: 40px auto;
    }

    /* Listen auf dem Handy einrücken */
    .list-section li {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 18px;
        padding-left: 25px;
    }

    .list-section li::before {
        font-size: 1.5rem;
        top: -2px;
    }

    /* Abstände der Trenner anpassen */
    .text-divider {
        margin: 60px 0;
    }

    /* Bücher auf dem Handy elegant verkleinert */
    .text-divider img {
        width: 85px;
        max-width: none;
        padding: 0 15px;
    }

    .page-top-icon {
        width: 90px;
        max-width: none;
        margin-bottom: 20px;
    }
}

/* --- SPEZIAL-LAYOUT FÜR "MACH MIT!" --- */

.participation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 60px 0;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.participation-col h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Spezielle Listen-Styles für das Grid */
.check-list,
.action-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.check-list li,
.action-list li {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    text-align: left;
}

/* Oranges Häkchen für "Sie finden..." */
.check-list li::before {
    content: '✓';
    color: var(--primary-orange);
    font-size: 1.4rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Oranger Pfeil für "Dann..." */
.action-list li::before {
    content: '→';
    color: var(--primary-orange);
    font-size: 1.6rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -4px;
}

/* --- DIE HIGHLIGHT DOWNLOAD-BOX --- */
.cta-box {
    background-color: var(--bg-light);
    border: 2px dashed var(--primary-orange);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    max-width: 750px;
    margin: 80px auto;
    box-shadow: 0 10px 30px rgba(223, 108, 48, 0.08);
    transition: transform 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-5px);
}

.cta-box h2 {
    margin-top: 0;
    font-size: 2.2rem;
}

.cta-box p {
    text-align: center;
    max-width: 100%;
    margin-bottom: 15px;
}

.btn-large {
    font-size: 1.25rem;
    padding: 16px 40px;
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(223, 108, 48, 0.4);
}

.btn-large:hover {
    box-shadow: 0 6px 20px rgba(223, 108, 48, 0.6);
}

/* --- RESPONSIVE ANPASSUNGEN FÜR MACH MIT --- */
@media (max-width: 768px) {
    .participation-grid {
        grid-template-columns: 1fr;
        /* Listen stehen auf dem Handy untereinander */
        gap: 60px;
    }

    .cta-box {
        padding: 40px 20px;
        margin: 60px auto;
    }

    .btn-large {
        font-size: 1.1rem;
        padding: 14px 25px;
    }
}

/* --- Styling für den Link innerhalb des Highlight-Zitats (Eleganter Pfeil) --- */
.highlight-quote a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.highlight-quote a::after {
    content: " \2192";
    /* Unicode für den eleganten Rechts-Pfeil (→) */
    color: var(--primary-orange);
    /* Der Pfeil leuchtet im Vereins-Orange */
    margin-left: 8px;
    /* Sorgt für einen schönen Abstand zum Text */
    display: inline-block;
    /* Wichtig, damit wir den Pfeil animieren können */
    transition: transform 0.3s ease;
    /* Weiche Animation */
}

.highlight-quote a:hover {
    color: var(--primary-orange);
    /* Beim Hovern wird auch der Text orange */
}

.highlight-quote a:hover::after {
    transform: translateX(5px);
    /* Der Pfeil rutscht beim Darüberfahren sanft nach rechts */
}

/* --- BACK TO TOP BUTTON (Elegantes Design) --- */
#back-to-top {
    position: fixed;
    bottom: 40px;
    /* Etwas mehr Luft nach unten am PC */
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    /* Edler, weißer Hintergrund */
    color: var(--primary-orange);
    /* Der Pfeil ist orange */
    border: 1px solid rgba(223, 108, 48, 0.2);
    /* Ein sehr sanfter, oranger Rand */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Ein sehr weicher, unaufdringlicher Schatten */

    /* Start-Zustand */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Die Größe des SVG-Pfeils */
#back-to-top svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

/* Diese Klasse wird per JavaScript hinzugefügt, wenn man scrollt */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Der schicke Hover-Effekt (NUR für PCs/Laptops mit Maus) */
@media (hover: hover) {
    #back-to-top:hover {
        background-color: var(--primary-orange);
        /* Füllt sich beim Darüberfahren orange */
        color: white;
        /* Der Pfeil wird strahlend weiß */
        border-color: var(--primary-orange);
        transform: translateY(-5px);
        /* Hebt sich sanft an */
        box-shadow: 0 8px 25px rgba(223, 108, 48, 0.3);
        /* Oranger Schimmer */
    }

    #back-to-top:hover svg {
        transform: translateY(-2px);
    }
}

/* Klick-Feedback für Touchscreens (Smartphones) */
#back-to-top:active {
    transform: scale(0.9);
    /* Button schrumpft beim Antippen kurz zusammen */
    background-color: #f5f5f5;
    /* Wird minimal dunkler */
}

/* Deutlich GRÖSSER auf mobilen Geräten für den Daumen */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 25px;
        /* Etwas mehr Abstand zum unteren Rand */
        right: 20px;
        width: 55px;
        /* Deutlich vergrößert (vorher 45px) */
        height: 55px;
    }

    #back-to-top svg {
        width: 26px;
        /* Auch der Pfeil wächst mit */
        height: 26px;
    }
}

/* Die "Fahrstuhl fährt"-Klasse (Button bleibt orange, bis man oben ist) */
#back-to-top.is-scrolling {
    background-color: var(--primary-orange) !important;
    color: white !important;
    border-color: var(--primary-orange) !important;
    transform: scale(0.95);
    /* Bleibt optisch leicht eingedrückt */
}

/* --- NEU: FEHLER STATUS FÜR BUTTON (Rot & Schütteln) --- */
#submitBtn.error {
    background-color: #e74c3c;
    /* Rote Warnfarbe */
    pointer-events: none;
    animation: shake 0.4s ease-in-out;
}

/* Die Schüttel-Animation (Shake) */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* Die rote Fehlermeldung unter dem Formular */
.error-message {
    display: none;
    color: #e74c3c;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.error-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
