/* ============================= */
/*       ALLGEMEINE SETTINGS     */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("../bilder/besetzung.jpg");
    background-size: cover;
    background-position: center;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================= */
/*            HEADER             */
/* ============================= */

.menu-toggle {
    display: none;
}


header {
    background-image: url("../bilder/gruppenbild.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 20px;
    text-align: center;
    position: relative;
}

/* Dunkle Überlagerung für bessere Lesbarkeit */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Text über das Bild legen */
header h1,
header nav {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    border-bottom: 5px solid white;
}


/* ============================= */
/*          NAVIGATION           */
/* ============================= */


.mobile-nav {
    display:none
}

.desktop-nav ul {
  display: flex;
  justify-content: center; /* oder space-between */
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px;
  transition: 0.3s;
}

.desktop-nav li a:hover {
  color: darkgreen;
}


/* ============================= */
/*            MAIN               */
/* ============================= */

main {
    background-color: white;
    max-width: 1400px;   /* vorher 1000px */
    width: 95%;          /* sorgt für guten Rand */
    margin: 30px auto;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex: 1;
    text-align: justify;
}

h2 {
    margin-bottom: 15px;
    color: darkgreen;
    text-align: center;
}

h7 {
    color: darkgreen;
    font-size: 1.0rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    display: inline-block;
    text-align: center;
}

p {
    margin-bottom: 15px;
}


/* Befreundete Vereine Links */
ul li a {
    color: darkgreen;
    text-decoration: none;
    font-weight: bold;
}

ul li a:hover {
    text-decoration: underline;
    color: green;
}

html {
    scroll-behavior: smooth;
}

.seitentitel {
    margin-bottom: 20px;
}

.untermenue {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 15px 0;
    border-bottom: 2px solid darkgreen;
    z-index: 10;
    text-align: center;
}


.untermenue a {
    margin-right: 25px;
    text-decoration: none;
    font-weight: bold;
    color: darkgreen;
    text-align: center;
}

.untermenue a:hover {
    color: green;
}

.content-section {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2s ease forwards;
}

.content-section h3 {
    margin-bottom: 15px;
    color: darkgreen;
    text-align: center;
}

.vereine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.verein-karte {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertikal zentrieren */
    align-items: center;      /* horizontal zentrieren */

    text-align: center;
}

.verein-karte:hover {
    transform: translateY(-5px);
}

.verein-karte h4 {
    margin-bottom: 10px;
    text-align: center;
}

.verein-karte a {
    text-decoration: none;
    color: darkgreen;
    font-weight: bold;
    text-align: center;
    align-items: center;
}

/* Kein Blocksatz in Vereins-Karten */
.verein-karte p,
.verein-karte h4,
.verein-karte a {
    align-items: center;
}

/* Vorstand Grid */
.vorstand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Einzelne Karte */
.vorstand-karte {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;

    justify-content: center;   /* vertikal zentrieren */
    align-items: center;       /* horizontal zentrieren */

    text-align: center;

    min-height: 150px; /* sorgt dafür, dass die Karten gleich hoch sind */

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vorstand-karte:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.vorstand-karte h4 {
    color: darkgreen;
    margin-bottom: 10px;
}

.vorstand-karte p {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Besetzung Layout */
.besetzung-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.besetzung-text {
    flex: 1;
}

.besetzung-bild {
    flex: 0 0 350px;   /* feste angenehme Breite */
}

.besetzung-bild img {
    width: 100%;
    height: 200px;        /* Höhe begrenzen */
    object-fit: cover;    /* Bild sauber zuschneiden */
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

blockquote {
    margin: 0px 0;
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-left: 5px solid darkgreen;
    font-style: italic;
    font-size: 0.9rem;
    border-radius: 5px;
}

blockquote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    text-align: right;
    color: darkgreen;
}

.aktuelles-text {
    text-align: center;     /* Text mittig */
    max-width: auto;       /* begrenzt die Breite */
    margin: 20px auto 40px auto;  /* zentriert den Block */
    font-size: 1.1rem;
    color: black;
}

/* Kontakt Grid */

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Kontaktkarten */

.kontakt-karte {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.kontakt-karte h3 {
    color: darkgreen;
    margin-bottom: 10px;
}

.kontakt-karte a {
    color: darkgreen;
    text-decoration: none;
    font-weight: bold;
}

.kontakt-karte a:hover {
    text-decoration: underline;
}

/* Impressum & Datenschutz Seiten */

.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.legal-page h2 {
    text-align: center;
    margin-bottom: 30px;
}

.legal-box {
    padding: 30px;
    border-radius: 8px;
    line-height: 1.6;
}

.legal-box h3 {
    margin-top: 25px;
    color: #2c3e50;
}

.legal-box p {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}

.footer-links a:hover {
    text-decoration: underline;
}

.countdown-section {
    text-align: center;
    margin: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

.countdown-text {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.time-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.time-box span {
    font-size: 2rem;
    font-weight: bold;
}

.time-box p {
    margin-top: 5px;
    font-size: 0.9rem;
}



/* ============================= */
/*           TABELLE             */
/* ============================= */

/* Container */
.termine-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Karte */
.termin-karte {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.termin-karte:hover {
    transform: translateY(-3px);
}

/* Datum links */
.termin-datum {
    color: green;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 70px;
}

.termin-datum .tag {
    font-size: 1.6rem;
    font-weight: bold;
    display: block;
}

.termin-datum .monat {
    font-size: 0.9rem;
}

/* Infos */
.termin-info h3 {
    margin: 0;
}

.termin-info p {
    margin: 5px 0;
    color: #555;
}

.button {
    display: inline-block;
    background-color: darkgreen;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.button:hover {
    background-color: green;
}

.welcome {
    max-width: 100%;
    margin: 40px auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2s ease forwards;
    display: flex;
    align-items: center;   /* vertikal ausrichten */
    justify-content: center;
    gap: 30px;             /* Abstand zwischen Logo und Text */
    margin: 40px 0;
}

.next-events {
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2s ease forwards;
}

.event-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.event-card {
    background-color: #f9f9f9;
    padding: 20px;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.instagram-teaser {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2s ease forwards;
}

.about-teaser {
    max-width: 80%;
    margin: 50px auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2s ease forwards;
}

.logo-top {
    text-align: center;      /* zentriert das Logo */
    justify-content: center;
    margin: 20px 0;          /* Abstand oben und unten */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2s ease forwards;
}

.logo-top img {
    height: 250px;           /* Höhe anpassen */
    width: auto;             /* Proportionen behalten */
}

/* ============================= */
/*          FORMULAR             */
/* ============================= */




/* ============================= */
/*            FOOTER             */
/* ============================= */

footer {
    text-align: center;
    padding: 15px;
    background-color: #ddd;
}



/* ============================= */
/* 📱 MOBILE (bis 768px) */
/* ============================= */


@media (max-width: 768px) {

    /* Grundlayout */
    body {
        padding: 10px;
    }

    section {
        margin: 40px 0;
    }

    /* Überschriften kleiner */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    p {
        font-size: 1rem;
        text-align: center;
    }

    h7 {
        text-align: center;
    }

    a {
        text-align: center;
        font-size: 0.8rem;
    }


    header {
        background-image: url("../bilder/gruppenbild.jpg");
        background-size: contain;      /* ganzes Bild sichtbar */
        background-position: center;
        background-repeat: no-repeat;  /* wichtig! */
    
        height: 250px;                /* feste Höhe statt padding */
        width: 100%;
        padding: 20px;
    
        display: block;
        justify-content: space-between;
        align-items: center;
        text-align:center;
    }

/* Dunkle Überlagerung für bessere Lesbarkeit */
    header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    /* Text über das Bild legen */
    header h1,
    header nav {
        position: relative;
        z-index: 1;
    }

    header h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        border-bottom: 5px solid white;
    }


    /* ===== ALLGEMEIN ===== */



/* ===== BUTTON (Seitentitel) ===== */

    .menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 15px;
        font-size: 18px;
        font-weight: bold;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1000;       /* auf jeden Fall über menu */
        position: relative;
    }

    .menu-toggle .arrow {
        transition: transform 0.3s ease;
    }

    .menu-toggle.open .arrow {
        transform: rotate(180deg);
    }


/* ===== MOBILE NAV ===== */

    /* Mobile Navigation */
    .mobile-nav {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        pointer-events: none;
        background: #fafafa;
        z-index: 20;
    }

    .mobile-nav.active {
        max-height: 1000px;
        pointer-events: auto;
    }

    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav li {
        border-bottom: 1px solid #ddd;
    }

    .mobile-nav a {
        display: block;
        padding: 15px;
        text-decoration: none;
        color: black;
        font-size: 16px;
    }

    .page-name {
        color: white; /* deine Wunschfarbe */
    }

    .arrow {
        color: white;
    }

/* ===== DESKTOP AUSBLENDEN ===== */

    .desktop-nav {
        display: none;
    }


    /* Logo + Startbereich */
    .start-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .welcome {
        display: block;
    }

    .start-logo {
        height: 90px;
    }

    /* Bilder allgemein */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Hero-Bilder begrenzen */


    .hero img {
        max-width: 100%;
        height: auto;        /* wichtig! */
    }


    /* Karten untereinander */
    .vorstand-grid,
    .termine-grid,
    .kontakt-grid {
        display: block;
    }

    .vorstand-karte,
    .termin-karte,
    .kontakt-karte {
        margin-bottom: 20px;
    }

    /* Countdown anpassen */
    .countdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        justify-items: center;
    }

    .time-box {
        width: 100%;
        max-width: 120px;
    }

    .time-box span {
        font-size: 2rem;
    }

    /* Buttons größer & besser klickbar */
    button,
    .button {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .termin-karte {
        display: block;
        align-items: center;
        gap: 20px;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: 0.2s;
    }

    .termin-datum {
        min-width: 60px;
        padding: 8px;
    }

    .termin-datum .tag {
        font-size: 1.3rem;
    }


}




/* ============================= */
/* 📲 KLEINE SMARTPHONES (bis 480px) */
/* ============================= */

@media (max-width: 480px) {

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .start-logo {
        height: 75px;
    }

    .time-box span {
        font-size: 1.3rem;
    }

}

