/* ============================================================
   style.css – Lichtentanner-Traktorenfreunde
   Private Interessengemeinschaft – kein e. V.
   Version: 2.0 (mit Traktor-Detail-Seite)
   ============================================================ */

/* ============================================================
   1. GRUNDRESET
   ============================================================ */

/*
   * = Universalselektor – betrifft ALLE Elemente.
   margin: 0 entfernt Standard-Abstände.
   padding: 0 entfernt Standard-Innenabstände.
   box-sizing: border-box = Padding und Border werden in die Breite einbezogen.
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
   html = Basis-Element.
   scroll-behavior: smooth = weiches Scrollen bei internen Links.
*/
html {
    scroll-behavior: smooth;
}

/*
   body = der gesamte sichtbare Bereich.
   font-family: Schriftart mit Fallback.
   background-color: helles Beige.
   color: dunkles Braun-Grau für guten Kontrast.
   line-height: 1.7 = guter Zeilenabstand für Lesbarkeit.
   padding: 0 20px = seitlicher Abstand zum Rand.
*/
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f2eb;
    color: #2d2a24;
    line-height: 1.7;
    padding: 0 20px;
}

/*
   a = Links.
   color: braun.
   text-decoration: none = keinen Unterstrich.
   :hover = wenn Maus drüber: Unterstrich erscheint.
*/
a {
    color: #6b4c2a;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ============================================================
   2. CONTAINER
   ============================================================ */

/*
   .container = zentriert den Inhalt auf max. 1100px.
   margin: 0 auto = horizontal zentriert.
   padding: 20px 0 = oben/unten Abstand.
*/
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ============================================================
   3. HEADER
   ============================================================ */

/*
   header = Kopfbereich der Seite.
   dunkler Hintergrund, helle Schrift, abgerundete untere Ecken,
   Schatten nach unten.
*/
header {
    background: #2d2a24;
    color: #f5f2eb;
    padding: 30px 20px 20px 20px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*
   header h1 = Hauptüberschrift im Header.
   groß, fett, etwas Buchstabenabstand.
*/
header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/*
   .subtitle = Untertitel unter der Überschrift.
   etwas heller, dünner.
*/
header .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #c4b8a8;
    margin-bottom: 16px;
}

/*
   .hinweis = die "Kein Verein"-Box im Header.
   halbtransparenter gelber Hintergrund, goldener linker Rand.
*/
header .hinweis {
    background: rgba(255, 200, 100, 0.15);
    border-left: 4px solid #d4a15a;
    padding: 10px 16px;
    font-size: 0.95rem;
    color: #e8dccc;
    border-radius: 4px;
    max-width: 700px;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */

/*
   nav = Navigationsleiste.
   Flexbox für flexible Anordnung, Zeilenumbruch bei Bedarf.
   Trennlinie nach oben.
*/
nav {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

/*
   nav a = einzelne Navigationslinks.
   helles Beige, halbfett, unsichtbarer Unterstrich.
   transition = sanfter Übergang bei Hover.
*/
nav a {
    color: #d4c8b8;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

/*
   nav a:hover = Maus drüber: weiße Schrift, goldener Unterstrich.
*/
nav a:hover {
    color: #ffffff;
    border-bottom-color: #d4a15a;
    text-decoration: none;
}

/*
   nav a.aktiv = aktuell besuchte Seite.
   weiße Schrift, goldener Unterstrich.
*/
nav a.aktiv {
    color: #ffffff;
    border-bottom-color: #d4a15a;
}

/* ============================================================
   5. MAIN CONTENT
   ============================================================ */

/*
   main = Hauptinhaltsbereich.
   weißer Hintergrund, abgerundete Ecken, leichter Schatten.
   großzügiger Innenabstand für bessere Lesbarkeit.
*/
main {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 45px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

/*
   main h2 = Seitenüberschrift.
   groß, fett, goldener Unterstrich (nur so breit wie der Text).
*/
main h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d2a24;
    margin-bottom: 10px;
    border-bottom: 3px solid #d4a15a;
    padding-bottom: 8px;
    display: inline-block;
}

/*
   main h3 = Unterüberschrift.
*/
main h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #3d362e;
    margin-top: 28px;
    margin-bottom: 10px;
}

/*
   main p = Absätze.
   margin-bottom für Abstand zum nächsten Element.
*/
main p {
    margin-bottom: 16px;
}

/*
   main ul, main ol = Listen.
   Einrückung nach links für Aufzählungszeichen.
*/
main ul,
main ol {
    margin: 10px 0 18px 25px;
}
main li {
    margin-bottom: 6px;
}

/* ============================================================
   6. PRIVATHINWEIS (Box)
   ============================================================ */

/*
   .privathinweis = Box, die betont, dass es kein Verein ist.
   heller Hintergrund, goldener linker Rand, kursiv.
*/
.privathinweis {
    background: #f0ebe3;
    border-left: 5px solid #d4a15a;
    padding: 14px 20px;
    border-radius: 4px;
    margin: 20px 0;
    font-style: italic;
    color: #3d362e;
}
.privathinweis strong {
    color: #6b4c2a;
}

/* ============================================================
   7. PERSONEN-GRID (Über uns)
   ============================================================ */

/*
   .personen-grid = Raster für die 5 Personen / Traktoren.
   auto-fit = passt sich der Bildschirmbreite an.
   minmax(240px, 1fr) = jede Karte mind. 240px, dehnt sich bei Platz.
*/
.personen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 20px 0 10px 0;
}

/*
   .person-karte = einzelne Karte für eine Person.
   heller Hintergrund, abgerundet, Rand, zentrierter Text.
*/
.person-karte {
    background: #f8f5f0;
    border-radius: 10px;
    padding: 16px 18px 18px 18px;
    border: 1px solid #e3ddd4;
    text-align: center;
    transition: box-shadow 0.2s;
}
.person-karte:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/*
   .name = Name der Person (fett, dunkel).
   .traktor = Traktor-Modell (mittelbraun).
   .traktor-jahr = Baujahr (heller, kleiner).
*/
.person-karte .name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #2d2a24;
}
.person-karte .traktor {
    font-size: 0.95rem;
    color: #6b5e4e;
    margin-top: 4px;
}
.person-karte .traktor-jahr {
    font-size: 0.85rem;
    color: #8a7b6a;
}

/* ============================================================
   8. TERMINLISTE (Ausfahrten)
   ============================================================ */

/*
   .termin-liste = Liste der Termine ohne Aufzählungszeichen.
*/
.termin-liste {
    list-style: none;
    padding: 0;
    margin: 15px 0 10px 0;
}

/*
   .termin-liste li = einzelner Termin.
   heller Hintergrund, goldener linker Rand, Flexbox für Layout.
*/
.termin-liste li {
    background: #f8f5f0;
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid #d4a15a;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/*
   .datum = fett und dunkel.
   .beschreibung = normal, nimmt flexiblen Platz ein.
   .ort = kursiv, heller.
*/
.termin-liste .datum {
    font-weight: 600;
    color: #2d2a24;
    margin-right: 15px;
}
.termin-liste .beschreibung {
    color: #3d362e;
    flex: 1;
}
.termin-liste .ort {
    color: #6b5e4e;
    font-style: italic;
    font-size: 0.95rem;
}

/* ============================================================
   9. BILDER
   ============================================================ */

/*
   .bild-container = Galerie-Container.
   Flexbox mit Zeilenumbruch.
*/
.bild-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 10px 0;
}

/*
   .bild-container img = Bilder in der Galerie.
   responsive, abgerundet, gleichmäßig verteilt.
   max-height: 180px = alle Bilder gleich hoch.
*/
.bild-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 200px;
    object-fit: cover;
    max-height: 180px;
}

/*
   .bild-container img.breit = besonders breites Bild (Startseite).
*/
.bild-container img.breit {
    flex: 1 1 300px;
    max-height: 220px;
}

/*
   .bildunterschrift = Text unter dem Bild.
   klein, mittelbraun, zentriert.
*/
.bildunterschrift {
    font-size: 0.85rem;
    color: #6b5e4e;
    text-align: center;
    margin-top: 4px;
}

/* ============================================================
   10. KONTAKT-BLOCK
   ============================================================ */

/*
   .kontakt-block = Box mit E-Mail-Adresse.
   heller Hintergrund, Rand, Innenabstand.
*/
.kontakt-block {
    background: #f8f5f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0 10px 0;
    border: 1px solid #e3ddd4;
}

/*
   .kontakt-block .email = große, fette E-Mail-Adresse.
   word-break: break-all = bei langen Adressen umbrechen.
*/
.kontakt-block .email {
    font-size: 1.4rem;
    font-weight: 600;
    color: #6b4c2a;
    word-break: break-all;
}

/* ============================================================
   11. IMPRESSUM / DATENSCHUTZ
   ============================================================ */

/*
   .rechtliches = kleinere Schrift für Impressum und Datenschutz.
*/
.rechtliches {
    font-size: 0.92rem;
    color: #3d362e;
}
.rechtliches p {
    margin-bottom: 10px;
}

/*
   .rechtliches .betreiber = hervorgehobene Box für Betreiber-Daten.
*/
.rechtliches .betreiber {
    background: #f8f5f0;
    padding: 12px 18px;
    border-radius: 6px;
    border-left: 4px solid #6b4c2a;
    margin: 12px 0;
}

/* ============================================================
   12. FOOTER
   ============================================================ */

/*
   footer = Fußbereich.
   zentriert, kleinere Schrift, Trennlinie oben.
*/
footer {
    text-align: center;
    padding: 25px 10px 30px 10px;
    font-size: 0.9rem;
    color: #6b5e4e;
    border-top: 1px solid #ddd6cc;
    margin-top: 10px;
}
footer a {
    color: #6b4c2a;
}

/*
   .footer-links = Links im Footer (Impressum, Datenschutz, Kontakt).
*/
footer .footer-links {
    margin-top: 8px;
}
footer .footer-links a {
    margin: 0 12px;
}

/* ============================================================
   13. NEU: TRAKTOR-DETAIL-ANSICHT (Seite "Unsere Traktoren")
   ============================================================ */

/*
   .traktor-detail = Container für einen einzelnen Traktor.
   Flexbox: Bild links, Text rechts.
   heller Hintergrund, abgerundet, Rand, Abstand nach unten.
*/
.traktor-detail {
    display: flex;
    gap: 30px;
    background: #f8f5f0;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    border: 1px solid #e3ddd4;
    align-items: flex-start;  /* Bilder und Text oben ausrichten */
    transition: box-shadow 0.2s;
}
.traktor-detail:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/*
   .traktor-bild = Container für das Bild (linke Seite).
   flex: 0 0 250px = fixe Breite von 250px, weder wachsen noch schrumpfen.
*/
.traktor-bild {
    flex: 0 0 250px;
    max-width: 250px;
}

/*
   .traktor-bild img = das Bild selbst.
   volle Breite, Höhe automatisch, abgerundet, Schatten.
   max-height: 200px = alle Bilder gleich hoch.
   object-fit: cover = Bild füllt den Bereich aus, wird bei Bedarf zugeschnitten.
*/
.traktor-bild img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: block;
    max-height: 200px;
    object-fit: cover;
}

/*
   .traktor-info = rechter Teil mit Text.
   flex: 1 = nimmt den restlichen Platz ein.
*/
.traktor-info {
    flex: 1;
}

/*
   .traktor-info h3 = Traktor-Name.
   groß, fett, goldener Unterstrich.
*/
.traktor-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d2a24;
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #d4a15a;
    padding-bottom: 6px;
    display: inline-block;
}

/*
   .traktor-info p = alle Textabsätze in der Detail-Ansicht.
   etwas Abstand nach unten.
*/
.traktor-info p {
    margin-bottom: 6px;
    line-height: 1.6;
}

/*
   .besitzer = Name des Besitzers (etwas größer).
*/
.traktor-info .besitzer {
    font-size: 1.05rem;
    color: #3d362e;
}

/*
   .baujahr, .motor, .hubraum, .gewicht = technische Daten.
   etwas kleiner, mittelbraun.
*/
.traktor-info .baujahr,
.traktor-info .motor,
.traktor-info .hubraum,
.traktor-info .gewicht {
    font-size: 0.95rem;
    color: #5a4e3e;
}

/*
   .geschichte = die Geschichte des Traktors.
   abgesetzt mit Trennlinie, etwas größer.
*/
.traktor-info .geschichte {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d4c8b8;
    font-size: 0.98rem;
    color: #3d362e;
}

/* ============================================================
   14. RESPONSIVE DESIGN
   ============================================================ */

/*
   @media = bei Bildschirmen unter 700px Breite.
   Anpassungen für Tablets und große Handys.
*/
@media (max-width: 700px) {

    /* Weniger seitlicher Abstand */
    body {
        padding: 0 12px;
    }

    /* Kleinere Überschrift */
    header h1 {
        font-size: 1.8rem;
    }

    /* Kleinerer Untertitel */
    header .subtitle {
        font-size: 1rem;
    }

    /* Weniger Innenabstand im Hauptbereich */
    main {
        padding: 24px 18px;
    }

    /* Kleinere Seitenüberschrift */
    main h2 {
        font-size: 1.6rem;
    }

    /* Navigation kompakter */
    nav {
        gap: 6px 14px;
    }
    nav a {
        font-size: 0.95rem;
    }

    /* Personen-Grid: 2 Spalten statt 3+ */
    .personen-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Termine: untereinander statt nebeneinander */
    .termin-liste li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Kleinere E-Mail */
    .kontakt-block .email {
        font-size: 1.1rem;
    }

    /* ===== TRAKTOR-DETAILS: Bild ÜBER Text ===== */
    .traktor-detail {
        flex-direction: column;
        align-items: center;
        padding: 18px 16px;
    }

    /* Bild wird voll breit */
    .traktor-bild {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
    .traktor-bild img {
        max-height: 260px;
        width: 100%;
        object-fit: cover;
    }

    /* Kleinere Traktor-Überschrift */
    .traktor-info h3 {
        font-size: 1.4rem;
    }
    .traktor-info p {
        font-size: 0.95rem;
    }
}

/*
   @media = bei Bildschirmen unter 450px Breite.
   Anpassungen für kleine Handys.
*/
@media (max-width: 450px) {

    /* Personen: 1 Spalte (untereinander) */
    .personen-grid {
        grid-template-columns: 1fr;
    }

    /* Noch kleinere Überschrift */
    header h1 {
        font-size: 1.5rem;
    }

    /* Traktor-Details kompakter */
    .traktor-detail {
        padding: 14px 12px;
    }
    .traktor-info h3 {
        font-size: 1.2rem;
    }
    .traktor-bild img {
        max-height: 180px;
    }
}/* ============================================================
   NEU: LOGO IM HEADER
   ============================================================ */

/*
   .header-inhalt = Flexbox-Container für Logo + Text.
   Vertikal ausgerichtet, Abstand zwischen Logo und Text.
*/
.header-inhalt {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

/*
   .logo-container = Container für das Logo-Bild.
   flex: 0 0 auto = das Logo behält seine Größe.
*/
.logo-container {
    flex: 0 0 auto;
}

/*
   .logo = das Logo-Bild selbst.
   max-height: 70px = Begrenzung der Höhe, damit es nicht zu groß wird.
   width: auto = Seitenverhältnis bleibt erhalten.
   border-radius: 6px = leicht abgerundete Ecken für das Logo.
   box-shadow = leichter Schatten für bessere Sichtbarkeit.
*/
.logo {
    max-height: 70px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/*
   .header-text = Container für Titel und Untertitel.
   flex: 1 = nimmt den restlichen Platz ein.
*/
.header-text {
    flex: 1;
}

/*
   Anpassung für kleinere Bildschirme.
   Bei unter 700px Breite: Logo etwas kleiner, Text zentriert.
*/
@media (max-width: 700px) {
    .header-inhalt {
        flex-direction: column;  /* Logo ÜBER dem Text */
        text-align: center;
        gap: 10px;
    }
    .logo {
        max-height: 55px;
    }
    .header-text h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 450px) {
    .logo {
        max-height: 45px;
    }
    .header-text h1 {
        font-size: 1.3rem;
    }
}