/* Gemeinsamer Stil für Impressum und Datenschutzerklärung.
   Bewusst eine eigene Datei statt zweimal Inline-CSS — die Rechtsseiten
   sind textlastig und teilen dasselbe Grundgerüst. Tokens gespiegelt
   aus index.html; die Startseite bleibt absichtlich selbstgenügsam. */

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

:root {
    --bg: #1a1e24;
    --surface: #232830;
    --surface-2: #2a3040;
    --border: #2f3640;
    --accent: #3dd9a8;
    --accent-hover: #2bc49a;
    --accent-glow: rgba(61, 217, 168, 0.15);
    --text: #e4e8ec;
    --text-secondary: #8b95a0;
    --text-dim: #5a6370;
    --warn: #e8b84b;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(21, 24, 29, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-brand span { color: var(--accent); }
.nav-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.nav-back:hover { color: var(--accent); }

main {
    max-width: 780px;
    margin: 0 auto;
    padding: 3.5rem 2rem 5rem;
}

h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}
.lead {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.updated {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-dim);
    font-size: 0.84rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2.75rem 0 0.85rem;
    padding-top: 0.5rem;
}
h2:first-of-type { margin-top: 0; }
h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.5rem;
}

p { margin-bottom: 0.95rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem 1.35rem; }
li { margin-bottom: 0.45rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 600; }

address {
    font-style: normal;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

dl {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}
dt {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-top: 0.85rem;
}
dt:first-child { margin-top: 0; }
dd {
    margin-left: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Offene Angabe — muss vor Veröffentlichung ersetzt werden. */
.todo {
    display: inline-block;
    background: rgba(232, 184, 75, 0.14);
    border: 1px dashed var(--warn);
    border-radius: 5px;
    padding: 0.05rem 0.45rem;
    color: var(--warn);
    font-size: 0.86rem;
    font-weight: 600;
}
/* Vorschlag, der nur noch bestätigt werden muss — abgesetzt von .todo,
   damit auf einen Blick klar ist, wo etwas fehlt und wo nur ein Haken fehlt. */
.confirm {
    display: inline-block;
    background: rgba(88, 166, 255, 0.12);
    border: 1px dashed #58a6ff;
    border-radius: 5px;
    padding: 0.05rem 0.45rem;
    color: #58a6ff;
    font-size: 0.86rem;
    font-weight: 600;
}

.draft-banner {
    background: rgba(232, 184, 75, 0.1);
    border: 1px solid var(--warn);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--warn);
    font-size: 0.9rem;
}
.draft-banner strong { display: block; margin-bottom: 0.3rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
}
th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

/* ---------- Formular (kontakt.php) ---------- */
.field { margin-bottom: 1.25rem; }
.field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.field .hint {
    display: block;
    font-weight: 400;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 170px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e8685b; }
.field-error {
    display: block;
    color: #e8685b;
    font-size: 0.82rem;
    margin-top: 0.3rem;
}
.required { color: var(--accent); }

/* Honigtopf: für Menschen unsichtbar, für Formular-Bots ein Pflichtfeld.
   Nicht display:none — manche Bots überspringen unsichtbare Felder gezielt. */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

button[type="submit"] {
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
button[type="submit"]:hover { background: var(--accent-hover); transform: translateY(-1px); }

.alert {
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.93rem;
}
.alert-ok {
    background: rgba(61, 217, 168, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}
.alert-err {
    background: rgba(232, 104, 91, 0.1);
    border: 1px solid #e8685b;
    color: #e8685b;
}
.alert strong { display: block; margin-bottom: 0.3rem; }

.form-note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
}
footer nav {
    position: static;
    background: none;
    border: none;
    height: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    nav { padding: 0 1rem; }
    main { padding: 2.5rem 1.25rem 3.5rem; }
}
