/* Kleine Ergaenzungen fuer die Unterseiten (Entwurf 27.10.2026).
   Bewusst eine eigene Datei: An style.css arbeiten mehrere Sitzungen, und
   faellt eine Unterseite wieder weg, kann diese Datei mit raus.
   Alles hier baut auf den Variablen und Panels aus style.css auf - die
   Unterseiten sehen deshalb aus wie die Startseite, nicht wie ein Fremdkoerper. */

/* Kopfbereich: eine Spur luftiger als eine normale Sektion, damit die
   Ueberschrift den Platz der Hero-Ueberschrift der Startseite einnimmt. */
.unterseite-kopf .section-head { margin-bottom: 0; }
.unterseite-kopf h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 5.4vw, 76px);
    line-height: .98;
    text-transform: uppercase;
}
.unterseite-kopf p {
    font-size: clamp(17px, 1.6vw, 23px);
    line-height: 1.5;
    font-weight: 700;
    margin: 0;
}

/* Fliesstext in einer Sektion. Ohne Begrenzung laufen Zeilen auf grossen
   Bildschirmen ueber 1400 px - das liest niemand gern. */
.u-text { max-width: 78ch; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.65; font-weight: 500; }
.u-text p { margin: 0 0 14px; }
.u-text p:last-child { margin-bottom: 0; }
.u-text strong { font-weight: 900; }

.u-zwischen {
    margin: 34px 0 10px;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.05;
    text-transform: uppercase;
}

/* Eckdaten als zweispaltige Liste. Auf dem Handy untereinander. */
.u-tabelle { width: 100%; border-collapse: collapse; margin: 18px 0 6px; }
.u-tabelle th,
.u-tabelle td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid rgba(20, 20, 20, .14);
    vertical-align: top;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.5;
}
.u-tabelle th { width: 34%; white-space: nowrap; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.u-tabelle tr:last-child th,
.u-tabelle tr:last-child td { border-bottom: 0; }

/* Karten im Stil der About-Karten der Startseite. */
.u-karten { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 22px 0 6px; }
.u-karte {
    border: 3px solid var(--line);
    border-radius: 16px;
    background: rgba(246, 243, 239, .95);
    box-shadow: 6px 6px 0 var(--line);
    padding: 20px 22px;
}
.u-karte h3 { margin: 0 0 8px; font-size: clamp(18px, 1.4vw, 22px); text-transform: uppercase; line-height: 1.1; }
.u-karte p { margin: 0; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; font-weight: 500; }

/* Termin-Chips. */
.u-termine { list-style: none; padding: 0; margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.u-termine li {
    border: 3px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--line);
    padding: 8px 18px;
    font-weight: 900;
    font-size: 15px;
}

/* Knopf im Stil der Startseite, aber nur so breit wie noetig. */
.u-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 18px 10px 4px 0;
    padding: 14px 30px;
    border: 4px solid var(--line);
    border-radius: 999px;
    background: var(--yellow);
    box-shadow: 0 6px 0 var(--line);
    color: var(--ink);
    font-weight: 900;
    font-size: clamp(16px, 1.2vw, 20px);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.u-knopf:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--line); }
.u-knopf.still { background: var(--paper); }

.u-klein { font-size: 14px; font-weight: 700; opacity: .72; margin-top: 10px; }

/* Rot gestrichelter Kasten: steht fuer "hier fehlt noch etwas von Bashaar".
   Faellt beim Durchblaettern sofort auf und geht live nie mit raus. */
.u-platzhalter {
    border: 3px dashed var(--pink);
    border-radius: 16px;
    background: rgba(227, 38, 29, .07);
    padding: 18px 22px;
    margin: 18px 0 6px;
    max-width: 78ch;
}
.u-platzhalter p { margin: 0 0 10px; font-weight: 500; line-height: 1.6; }
.u-platzhalter p:last-child { margin-bottom: 0; }
.u-platzhalter strong { font-weight: 900; }

/* Die FAQ-Aufklapper der Startseite laufen hier unveraendert mit
   (.faq-item / .faq-answer aus style.css). */

/* Verweis-Leiste am Fuss jeder Unterseite - und dieselbe Leiste steht
   auf der Startseite ueber dem Fuss. */
.quer-liste { display: flex; flex-wrap: wrap; gap: 12px; }
.quer-liste a {
    border: 3px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--line);
    padding: 9px 20px;
    font-weight: 900;
    font-size: 15px;
    text-decoration: none;
    color: var(--ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.quer-liste a:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); background: var(--yellow); }

.unterseite-quer .section-head { margin-bottom: 18px; }
.unterseite-quer .section-head h2 { font-size: clamp(24px, 2.6vw, 38px); }

@media (max-width: 560px) {
    .u-tabelle th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
    .u-tabelle td { display: block; padding-top: 4px; }
}

/* --- Menue "Mehr" im Kopf (27.10.2026) --------------------------------
   Im Kopf stehen schon vier Eintraege. Die Unterseiten kommen deshalb in
   ein Klappmenue - ohne JavaScript, nur mit <details>. Auf dem Rechner
   schwebt die Liste als Karte unter dem Kopf, im Handy-Menue klappt sie
   einfach in der gestapelten Liste mit auf. */
.nav-mehr { position: relative; }

.nav-mehr > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 3px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 2px 0 var(--line);
    color: var(--ink);
    user-select: none;
}
.nav-mehr > summary::-webkit-details-marker { display: none; }
.nav-mehr > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
}
.nav-mehr[open] > summary { background: var(--yellow); box-shadow: 0 1px 0 var(--line); }
.nav-mehr[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

.nav-mehr-liste {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    min-width: 240px;
    padding: 10px;
    border: 3px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 8px 8px 0 var(--line);
}
.nav-mehr-liste a {
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}
.nav-mehr-liste a:hover { background: var(--yellow); }
.nav-mehr-liste a[aria-current="page"] { background: var(--yellow); }

@media (max-width: 820px) {
    /* Im Handy-Menue ist die Leiste selbst schon eine gestapelte Karte -
       eine zweite schwebende Karte darin waere nicht zu treffen. */
    .nav-mehr > summary { border-radius: 10px; justify-content: space-between; }
    .nav-mehr-liste {
        position: static;
        min-width: 0;
        margin-top: 10px;
        padding: 6px;
        border-width: 2px;
        border-radius: 12px;
        box-shadow: none;
    }
    .nav-mehr-liste a { white-space: normal; border-bottom: 0; }
}

/* --- Verweise im Fuss -------------------------------------------------
   Laufen auf jeder Seite mit. Fuer Google ist das der Weg, auf dem die
   Unterseiten ueberhaupt gefunden werden. */
.fuss-links {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
}
.fuss-links a { color: inherit; }
.fuss-links a[aria-current="page"] { text-decoration: none; opacity: .65; }
