/* =============================================================================
 * DATEI:        style.css
 * ZWECK:        Einheitliches, ruhiges Erscheinungsbild für alle Seiten der
 *               Mitfahrhilfe brothaus. Bewusst zurückhaltend gestaltet, da es
 *               sich um ein internes ehrenamtliches Hilfsangebot handelt,
 *               nicht um eine Werbeseite.
 *
 * @ROADMAP      Wird von allen Seiten über <link rel="stylesheet" ...>
 *               eingebunden. Farbwerte siehe auch Kommentar in config.php.
 * @CALLS        keine
 * @CALLED_BY    index.php, mitfahrwunsch.php, fahrer_registrieren.php,
 *               fahrer_login.php, fahrer_bereich.php, koordination.php
 * KID-MARKER:   MFH-CSS-001
 *
 * 🛑 STOP-BOX (Ampel: 🟢 GRÜN): Rein optisch, kein Sicherheitsrisiko.
 * 🧹 LÖSCHBARKEIT: Nicht löschen - ohne diese Datei wirken alle Seiten
 *    unformatiert (reines Browser-Standard-HTML).
 * ============================================================================= */

/* --- Farbpalette (siehe auch config.php) -----------------------------------
   --ink     dunkler Fließtext
   --muted   Nebentext/graue Hinweise
   --accent  Kirchgrün/Petrol - Hauptfarbe für Überschriften/Buttons
   --line    helle Rahmenlinie
   --soft    heller Kastenhintergrund
   --warn    Hinweis-Kasten (Datenschutz)
   --risk    Warn-Kasten (z. B. "ungeschützter Testbereich")
----------------------------------------------------------------------------- */
:root {
    --ink: #1f2933;
    --muted: #5f6c7b;
    --line: #d8dee7;
    --soft: #f6f8fb;
    --accent: #2f5d62;
    --warn: #fff4d6;
    --risk: #fdecec;
    --ok: #eaf7ee;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #eef3f6;
    line-height: 1.55;
    font-size: 16px;
}

.wrap {
    max-width: 760px;
    margin: 28px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    overflow: hidden;
}

header.kopf {
    padding: 26px 32px;
    color: #fff;
    background: linear-gradient(135deg, #24474b 0%, #2f5d62 60%, #8aa399 100%);
}

header.kopf h1 { margin: 0 0 6px 0; font-size: 24px; }
header.kopf p  { margin: 0; opacity: .9; font-size: 14px; }

main { padding: 26px 32px 34px 32px; }

nav.hauptnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px 0;
}

nav.hauptnav a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}
nav.hauptnav a:hover { background: #e8eff2; }

h2 { color: var(--accent); font-size: 20px; margin-top: 0; }
h3 { font-size: 16px; color: #263b40; }

.box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 0;
    background: var(--soft);
}
.box.warn { background: var(--warn); border-color: #ead28c; }
.box.risk { background: var(--risk); border-color: #efb5b5; }
.box.ok   { background: var(--ok);   border-color: #b6dfc2; }

label { display: block; font-weight: bold; margin: 14px 0 4px 0; font-size: 14px; }
input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=date], input[type=time], input[type=number], select, textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
textarea { min-height: 80px; resize: vertical; }

.radio-zeile, .checkbox-zeile {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0;
    font-size: 14px;
}
.radio-gruppe { margin: 6px 0 4px 0; }

button, .btn {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: #24474b; }
button.klein, .btn.klein { padding: 5px 10px; font-size: 13px; margin-top: 0; }
button.gefahr, .btn.gefahr { background: #b23c3c; }
button.gefahr:hover { background: #8f2e2e; }

table { width: 100%; border-collapse: collapse; margin: 14px 0 22px 0; font-size: 13.5px; }
th, td { border: 1px solid var(--line); padding: 8px 9px; text-align: left; vertical-align: top; }
th { background: #e8eff2; color: #1f3f44; }
tr:nth-child(even) td { background: #fafbfc; }

.hinweis-erfolg { padding: 12px 14px; background: var(--ok); border: 1px solid #b6dfc2; border-radius: 10px; margin-bottom: 18px; }
.hinweis-fehler { padding: 12px 14px; background: var(--risk); border: 1px solid #efb5b5; border-radius: 10px; margin-bottom: 18px; }

.small { font-size: 12.5px; color: var(--muted); }
footer.fuss { padding: 14px 32px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
