/* Gemeinsames Aussehen der Unterseiten.
   Farben wie in der App: Pfirsich, Creme, Radicchio. */

:root {
    color-scheme: light dark;
    --bg: #edc7b3;
    --card: #fdf6f1;
    --text: #23201e;
    --muted: #6b5f57;
    --accent: #8e1c4c;
    --accent-a: #efa077;
    --accent-b: #ea98ab;
    --line: rgba(35, 32, 30, .12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #241d1a;
        --card: #2f2724;
        --text: #f4efec;
        --muted: #bdaea5;
        --accent: #d9779f;
        --line: rgba(244, 239, 236, .14);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
}

a { color: var(--accent); }

/* ------------------------------------------------------------- Kopfzeile */

.bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.brand img { border-radius: 8px; }

.bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .92rem;
}

.bar nav a { text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
.bar nav .lang { color: var(--muted); }

/* ---------------------------------------------------------------- Inhalt */

.wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.crumbs a { color: var(--muted); }

h1 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 12px;
}

h2 {
    font-size: 1.35rem;
    margin: 40px 0 12px;
}

h3 { font-size: 1.05rem; margin: 0 0 6px; }

.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; }
.lead strong { color: var(--text); }

.note {
    font-size: .86rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 40px;
}

/* ---------------------------------------------------------------- Knöpfe */

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}

.btn:hover { filter: brightness(1.08); }

.soon { font-size: .88rem; color: var(--muted); }

/* --------------------------------------------------------------- Tabellen */

.facts {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.facts th, .facts td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { font-weight: 500; color: var(--muted); }
.facts td { font-variant-numeric: tabular-nums; }
.facts.list thead th { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------------- Listen */

.places, .ticks, .steps, .index { padding-left: 0; list-style: none; }

.places li {
    display: flex;
    flex-direction: column;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.places span { font-size: .88rem; color: var(--muted); }

.ticks li { padding: 5px 0 5px 26px; position: relative; }
.ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.steps { counter-reset: step; }
.steps li { padding: 7px 0 7px 36px; position: relative; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .8rem;
    display: grid;
    place-items: center;
}

.index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2px 18px;
}

.index li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.index span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Karten */

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
}

.card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* -------------------------------------------------------------------- FAQ */

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- Fußzeile */

.foot {
    border-top: 1px solid var(--line);
    padding: 24px 20px 40px;
    color: var(--muted);
    font-size: .86rem;
    text-align: center;
}

.foot a { color: inherit; }

/* ------------------------------------------------------------- Karte */

.mapbox {
    position: relative;
    margin: 18px 0 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
    /* Feste Höhe über das Seitenverhältnis: so springt die Seite nicht,
       wenn die Karte nachlädt. */
    aspect-ratio: 16 / 10;
}

.mapbox iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 600px) {
    .mapbox { aspect-ratio: 4 / 3; }
}

.maphint {
    font-size: .88rem;
    color: var(--muted);
    margin-top: 0;
}

/* Lange Aufzählung mit Erklärung je Punkt (Themenseiten) */
.places-long {
    padding-left: 0;
    list-style: none;
    counter-reset: pl;
}

.places-long li {
    position: relative;
    padding: 12px 0 12px 38px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.places-long li strong { color: var(--text); }

.places-long li::before {
    counter-increment: pl;
    content: counter(pl);
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    display: grid;
    place-items: center;
}
