/* ==========================================================================
   Frauenarzt.net – Dr. Linda Tamme, Wien

   Farbwelt: ein gedämpftes Aubergine als Leitfarbe, dazu warme Neutraltöne.
   Bewusst ohne Rosa: Eine Ordination für Frauenheilkunde ist keine
   Wellness-Einrichtung, und die Themen – Vorsorge, Verhütung, Kinderwunsch,
   Wechseljahre – vertragen keine Verniedlichung.

   Typografie durchgehend aus Systemschriften. Dadurch wird keine einzige
   Verbindung zu einem fremden Server aufgebaut, es gibt kein Nachladen und
   keinen Schriftsprung beim Aufbau der Seite.
   ========================================================================== */

:root {
    --farbe-haupt:        #7a3f5c;
    --farbe-haupt-dunkel: #5c2e45;
    --farbe-haupt-hell:   #a9648a;
    --farbe-akzent:       #b8823c;
    --farbe-text:         #2a2429;
    --farbe-text-leise:   #665c63;
    --farbe-linie:        #e4dcdf;
    --farbe-flaeche:      #ffffff;
    --farbe-flaeche-warm: #faf7f5;
    --farbe-flaeche-ton:  #f4eef0;
    --farbe-erfolg:       #2f6b4f;
    --farbe-warnung:      #a8611a;
    --farbe-gefahr:       #a3352f;

    --breite:      1180px;
    --breite-text: 44rem;
    --radius:      10px;
    --radius-klein: 6px;
    --schatten:    0 1px 2px rgba(42, 36, 41, .06), 0 6px 20px rgba(42, 36, 41, .06);

    --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --schrift-titel: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 17px;
    line-height: 1.65;
    color: var(--farbe-text);
    background: var(--farbe-flaeche-warm);
    text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }

/* --- Sprungmarke für Tastaturbedienung ----------------------------------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--farbe-haupt); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-klein) 0;
}
.skip-link:focus { left: 0; }

/* --- Kopfbereich ---------------------------------------------------------- */
.site-header {
    background: var(--farbe-flaeche);
    border-bottom: 1px solid var(--farbe-linie);
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.logo { text-decoration: none; color: inherit; display: block; line-height: 1.25; }
.logo-name { display: block; font-family: var(--schrift-titel); font-size: 1.4rem; color: var(--farbe-haupt); letter-spacing: .01em; }
.logo-sub  { display: block; font-size: .78rem; color: var(--farbe-text-leise); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--farbe-haupt); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a {
    display: block; padding: .55rem .7rem; text-decoration: none; color: var(--farbe-text);
    font-size: .95rem; border-radius: var(--radius-klein);
}
.nav-item > a:hover, .nav-item > a:focus-visible { background: var(--farbe-flaeche-ton); color: var(--farbe-haupt); }
.nav-item > a[aria-current="page"] { color: var(--farbe-haupt); font-weight: 600; }

.nav-sub {
    position: absolute; top: 100%; left: 0; min-width: 15rem;
    background: var(--farbe-flaeche); border: 1px solid var(--farbe-linie); border-radius: var(--radius);
    box-shadow: var(--schatten); list-style: none; margin: 0; padding: .4rem;
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-children:hover .nav-sub,
.has-children:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a { display: block; padding: .45rem .7rem; text-decoration: none; color: var(--farbe-text); border-radius: var(--radius-klein); font-size: .93rem; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--farbe-flaeche-ton); color: var(--farbe-haupt); }

/* Die hinteren Aufklappmenüs öffnen nach innen statt nach rechts. Sonst ragt
   das letzte über den Fensterrand hinaus – und weil ein absolut gesetztes
   Element die Seite verbreitert, bekam die gesamte Website einen waagrechten
   Rollbalken, auch dort, wo das Menü gar nicht aufgeklappt war. */
.nav-item.has-children:nth-last-of-type(-n+2) .nav-sub { left: auto; right: 0; }

.nav-lang > a { border: 1px solid var(--farbe-linie); margin-left: .4rem; font-size: .85rem; }

/* --- Grundgerüst der Seite ------------------------------------------------ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; padding: 2rem 1.25rem 3.5rem; align-items: start; }
.layout.is-wide { grid-template-columns: minmax(0, 1fr); }
.layout-main { min-width: 0; }

/* --- Typografie ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.25; color: var(--farbe-haupt-dunkel); margin: 2.2rem 0 .8rem; }
h1 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.6rem); margin-top: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.03rem; font-family: var(--schrift); }

p, ul, ol, dl, table { margin: 0 0 1.1rem; }
.layout-main p, .layout-main li { max-width: var(--breite-text); }

a { color: var(--farbe-haupt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--farbe-haupt-dunkel); }

strong { font-weight: 650; }
small, .small { font-size: .875rem; color: var(--farbe-text-leise); }

.lead { font-size: 1.13rem; line-height: 1.6; color: var(--farbe-text-leise); max-width: var(--breite-text); }

blockquote {
    margin: 1.5rem 0; padding: .2rem 0 .2rem 1.25rem;
    border-left: 3px solid var(--farbe-haupt-hell); color: var(--farbe-text-leise); font-style: italic;
}

hr { border: 0; border-top: 1px solid var(--farbe-linie); margin: 2.5rem 0; }

img { max-width: 100%; height: auto; border-radius: var(--radius-klein); }

/* --- Seitenspalte --------------------------------------------------------- */
.layout-side { display: grid; gap: 1.25rem; position: sticky; top: 92px; }
.side-box {
    background: var(--farbe-flaeche); border: 1px solid var(--farbe-linie);
    border-radius: var(--radius); padding: 1.15rem 1.25rem;
}
.side-box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .8rem; color: var(--farbe-text-leise); font-family: var(--schrift); font-weight: 600; }
.side-contact { border-top: 3px solid var(--farbe-haupt); }
.contact-name { font-family: var(--schrift-titel); font-size: 1.15rem; margin: 0; color: var(--farbe-haupt-dunkel); }
.contact-role { font-size: .85rem; color: var(--farbe-text-leise); margin: .15rem 0 .8rem; }
.side-box address { font-style: normal; font-size: .93rem; line-height: 1.7; margin-bottom: .9rem; }
.contact-note { font-size: .82rem; color: var(--farbe-text-leise); border-top: 1px solid var(--farbe-linie); padding-top: .8rem; }
.side-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.side-list li { padding: .3rem 0; border-bottom: 1px solid var(--farbe-linie); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { text-decoration: none; }
.side-list a:hover { text-decoration: underline; }
.side-emergency { background: var(--farbe-flaeche-ton); }
.side-emergency strong { color: var(--farbe-gefahr); font-variant-numeric: tabular-nums; }

/* --- Schaltflächen -------------------------------------------------------- */
.button {
    display: inline-block; padding: .65rem 1.2rem; border-radius: var(--radius-klein);
    text-decoration: none; font-size: .95rem; font-weight: 600; border: 1px solid transparent;
    cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s;
}
.button-primary { background: var(--farbe-haupt); color: #fff; }
.button-primary:hover { background: var(--farbe-haupt-dunkel); color: #fff; }
.button-secondary { background: var(--farbe-flaeche); color: var(--farbe-haupt); border-color: var(--farbe-linie); }
.button-secondary:hover { border-color: var(--farbe-haupt-hell); }
.side-contact .button { width: 100%; text-align: center; }

/* --- Formulare ------------------------------------------------------------ */
.form-grid { display: grid; gap: 1.1rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: end; }
.feld { display: flex; flex-direction: column; gap: .35rem; }
.feld label { font-size: .9rem; font-weight: 600; color: var(--farbe-text); }
.feld .hilfe { font-size: .8rem; color: var(--farbe-text-leise); font-weight: 400; }
input[type="text"], input[type="date"], input[type="number"], input[type="email"],
input[type="password"], input[type="search"], select, textarea {
    font: inherit; font-size: 1rem; padding: .6rem .75rem;
    border: 1px solid var(--farbe-linie); border-radius: var(--radius-klein);
    background: var(--farbe-flaeche); color: inherit; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--farbe-haupt-hell); outline-offset: 2px;
}
.feld-inline { display: flex; align-items: center; gap: .5rem; }
.feld-inline input[type="checkbox"], .feld-inline input[type="radio"] { width: auto; accent-color: var(--farbe-haupt); }

fieldset { border: 1px solid var(--farbe-linie); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
legend { font-weight: 600; font-size: .95rem; padding: 0 .4rem; color: var(--farbe-haupt-dunkel); }

.wahl-liste { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl {
    display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem;
    border: 1px solid var(--farbe-linie); border-radius: 999px; background: var(--farbe-flaeche);
    font-size: .9rem; cursor: pointer;
}
.wahl:has(input:checked) { border-color: var(--farbe-haupt); background: var(--farbe-flaeche-ton); color: var(--farbe-haupt-dunkel); font-weight: 600; }
.wahl input { accent-color: var(--farbe-haupt); }

/* --- Werkzeuge ------------------------------------------------------------ */
.werkzeug-kopf { border-bottom: 1px solid var(--farbe-linie); padding-bottom: 1.25rem; margin-bottom: 1.75rem; }
.werkzeug-icon { font-size: 2rem; line-height: 1; display: block; margin-bottom: .5rem; }

.rechner {
    background: var(--farbe-flaeche); border: 1px solid var(--farbe-linie);
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--schatten);
}
.rechner-aktion { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

.ergebnis {
    border: 1px solid var(--farbe-haupt-hell); border-left: 4px solid var(--farbe-haupt);
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; background: var(--farbe-flaeche);
}
.ergebnis > h2:first-child { margin-top: 0; }
.ergebnis-zahl { font-family: var(--schrift-titel); font-size: clamp(2rem, 1.4rem + 2.5vw, 2.9rem); color: var(--farbe-haupt); line-height: 1.1; margin: 0; }
.ergebnis-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--farbe-text-leise); margin: 0 0 .2rem; }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.kennzahl { border-top: 2px solid var(--farbe-linie); padding-top: .7rem; }
.kennzahl.ist-hervorgehoben { border-top-color: var(--farbe-haupt); }
.kennzahl-wert { font-size: 1.5rem; font-family: var(--schrift-titel); color: var(--farbe-haupt-dunkel); line-height: 1.2; }
.kennzahl-label { font-size: .8rem; color: var(--farbe-text-leise); text-transform: uppercase; letter-spacing: .05em; }

/* Zeitstrahl für Zyklus und Schwangerschaft */
.zeitstrahl { list-style: none; margin: 1.5rem 0; padding: 0; position: relative; }
.zeitstrahl::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 2px; background: var(--farbe-linie); }
.zeitstrahl li { position: relative; padding: 0 0 1.1rem 2rem; }
.zeitstrahl li::before {
    content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 16px;
    border-radius: 50%; background: var(--farbe-flaeche); border: 3px solid var(--farbe-haupt-hell);
}
.zeitstrahl li.ist-jetzt::before { border-color: var(--farbe-haupt); background: var(--farbe-haupt); }
.zeitstrahl li.ist-vorbei::before { border-color: var(--farbe-linie); }
.zeitstrahl-datum { font-size: .82rem; color: var(--farbe-text-leise); font-variant-numeric: tabular-nums; }
.zeitstrahl-titel { font-weight: 650; display: block; }

/* Kacheln der Werkzeugübersicht */
.kachel-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.1rem; margin: 1.25rem 0 2.5rem; }
.kachel {
    display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem;
    background: var(--farbe-flaeche); border: 1px solid var(--farbe-linie); border-radius: var(--radius);
    text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.kachel:hover { border-color: var(--farbe-haupt-hell); transform: translateY(-2px); box-shadow: var(--schatten); }
.kachel-icon { font-size: 1.6rem; line-height: 1; }
.kachel-titel { font-family: var(--schrift-titel); font-size: 1.1rem; color: var(--farbe-haupt-dunkel); }
.kachel-text { font-size: .89rem; color: var(--farbe-text-leise); margin: 0; }

/* --- Tabellen ------------------------------------------------------------- */
.tabelle-rahmen { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--farbe-linie); border-radius: var(--radius); background: var(--farbe-flaeche); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0; }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--farbe-linie); vertical-align: top; }
thead th { background: var(--farbe-flaeche-ton); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--farbe-text-leise); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sicherheitsbalken im Verhütungsvergleich */
.balken { display: block; height: 6px; border-radius: 3px; background: var(--farbe-linie); overflow: hidden; min-width: 4rem; }
.balken span { display: block; height: 100%; border-radius: 3px; }
.stufe-sehr-hoch span   { background: #2f6b4f; }
.stufe-hoch span        { background: #6b8f3f; }
.stufe-mittel span      { background: #b8823c; }
.stufe-niedrig span     { background: #c2662f; }
.stufe-sehr-niedrig span{ background: #a3352f; }

/* --- Hinweisboxen --------------------------------------------------------- */
.hinweis, .alert {
    border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.25rem 0;
    border: 1px solid var(--farbe-linie); background: var(--farbe-flaeche-ton); font-size: .95rem;
}
.hinweis > :last-child, .alert > :last-child { margin-bottom: 0; }
.hinweis-titel { font-weight: 650; display: block; margin-bottom: .3rem; }
.hinweis-ok      { border-color: #b8d4c3; background: #f1f8f3; }
.hinweis-achtung { border-color: #e8cfa8; background: #fdf7ec; }
.hinweis-warnung { border-color: #e2b9b6; background: #fbf0ef; }
.hinweis-grenze  { background: var(--farbe-flaeche); border-style: dashed; color: var(--farbe-text-leise); }
.alert-success { border-color: #b8d4c3; background: #f1f8f3; color: var(--farbe-erfolg); }
.alert-error   { border-color: #e2b9b6; background: #fbf0ef; color: var(--farbe-gefahr); }

/* --- Brotkrumen ----------------------------------------------------------- */
.breadcrumbs { margin-bottom: 1.25rem; font-size: .85rem; color: var(--farbe-text-leise); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--farbe-linie); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --- Startseite ----------------------------------------------------------- */
/* --- Kopf der Startseite --------------------------------------------------
   Text und Bild nebeneinander, ab 60rem zweispaltig. Darunter steht das Bild
   unter dem Text: In der schmalen Ansicht soll zuerst kommen, worum es geht,
   nicht die Abbildung. */
.hero { padding: 3rem 0 2.5rem; display: grid; gap: 2rem; align-items: center; }
.hero h1 { max-width: 20ch; margin-top: 0; }
.hero .lead { font-size: 1.2rem; }
.hero-aktionen { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-bild {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    background: var(--farbe-flaeche-ton);
}

/* Das Portrait ist mit 334 Pixeln Breite deutlich kleiner als die Zeichnung.
   Auf volle Spaltenbreite gezogen würde es unscharf; deshalb bleibt es bei
   seiner eigenen Größe und steht mittig in der Spalte. */
.hero-portrait { max-width: 20rem; margin-inline: auto; display: block; }

/* Portrait im Fließtext, etwa auf der Seite über die Ärztin. Rechts neben dem
   Text, sobald Platz ist; darunter bleibt es in der schmalen Ansicht. */
.portrait { margin: 0 0 1.5rem; max-width: 16rem; }
.portrait img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--schatten); display: block; }
@media (min-width: 45rem) {
    .portrait { float: right; margin: .3rem 0 1.25rem 1.75rem; max-width: 14rem; }
}

@media (min-width: 60rem) {
    .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; }
}

.abschnitt { margin: 3rem 0; }
.abschnitt > h2 { margin-top: 0; }

.leistungs-gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; list-style: none; padding: 0; }
.leistungs-gitter li { border-top: 2px solid var(--farbe-haupt-hell); padding-top: .8rem; }
.leistungs-gitter h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.leistungs-gitter p { font-size: .9rem; color: var(--farbe-text-leise); margin: 0; }

/* --- Artikel -------------------------------------------------------------- */
.artikel-meta { font-size: .85rem; color: var(--farbe-text-leise); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--farbe-linie); }
.artikel-inhalt h2 { padding-top: .5rem; }
.artikel-inhalt ul, .artikel-inhalt ol { padding-left: 1.4rem; }
.artikel-inhalt li { margin-bottom: .4rem; }

.inhaltsverzeichnis { background: var(--farbe-flaeche); border: 1px solid var(--farbe-linie); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 2rem; }
.inhaltsverzeichnis h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .7rem; font-family: var(--schrift); color: var(--farbe-text-leise); }
.inhaltsverzeichnis ol { margin: 0; padding-left: 1.2rem; font-size: .93rem; }
.inhaltsverzeichnis li { margin-bottom: .3rem; }

.faq { margin: 2.5rem 0; }
.faq details { border: 1px solid var(--farbe-linie); border-radius: var(--radius); background: var(--farbe-flaeche); margin-bottom: .6rem; }
.faq summary { padding: .85rem 1.15rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--farbe-haupt); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.15rem 1.1rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* --- Gebrauchsinformation ------------------------------------------------
   Der Wortlaut des Herstellers, wörtlich wiedergegeben. Er ist deutlich vom
   eigenen Text abgesetzt, damit auf einen Blick erkennbar ist, wer hier
   spricht – und etwas kleiner gesetzt, weil er zum Nachschlagen da ist und
   nicht zum Durchlesen. */
.beipackzettel {
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--farbe-flaeche-warm);
    border: 1px solid var(--farbe-linie);
    border-left: 4px solid var(--farbe-haupt-hell);
    border-radius: var(--radius);
    font-size: .92rem;
}
.beipackzettel > h2 { margin-top: 0; }
.beipackzettel h3 { font-size: 1.05rem; }
.beipackzettel h4, .beipackzettel h5, .beipackzettel h6 { font-size: .98rem; font-family: var(--schrift); }
.beipackzettel-herkunft {
    font-size: .85rem;
    color: var(--farbe-text-leise);
    border-bottom: 1px solid var(--farbe-linie);
    padding-bottom: .9rem;
    margin-bottom: 1.2rem;
}

.quellen { margin: 2.5rem 0; font-size: .88rem; color: var(--farbe-text-leise); }
.quellen h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--schrift); }
.quellen ol { padding-left: 1.3rem; }
.quellen li { margin-bottom: .45rem; }

/* --- Fußbereich ----------------------------------------------------------- */
.site-footer { background: var(--farbe-haupt-dunkel); color: #e9dfe4; margin-top: 4rem; padding: 3rem 0 1.5rem; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--schrift); margin: 0 0 .8rem; }
.site-footer a { color: #e9dfe4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .22rem 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: .84rem; color: #c9b7c0; }
.footer-bottom p { margin: 0; max-width: 60ch; }

/* --- Suche ---------------------------------------------------------------- */
.such-formular { display: flex; gap: .6rem; margin-bottom: 2rem; }
.such-treffer { list-style: none; padding: 0; }
.such-treffer li { padding: 1.1rem 0; border-bottom: 1px solid var(--farbe-linie); }
.such-treffer h2 { margin: 0 0 .3rem; font-size: 1.12rem; }

/* --- Schmale Bildschirme -------------------------------------------------- */
@media (max-width: 1000px) {
    .layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-side { position: static; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}

@media (max-width: 780px) {
    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--farbe-flaeche); border-bottom: 1px solid var(--farbe-linie);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .site-nav.ist-offen { max-height: 80vh; overflow-y: auto; }
    .nav-list { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
    .nav-item { border-bottom: 1px solid var(--farbe-linie); }
    .nav-item > a { padding: .8rem .2rem; }
    .nav-sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: 0; box-shadow: none; padding: 0 0 .5rem .9rem; min-width: 0;
    }
    .nav-sub a { padding: .4rem .2rem; font-size: .9rem; color: var(--farbe-text-leise); }
    .nav-lang > a { display: inline-block; margin: .8rem 0 0; }
    .layout { padding-top: 1.5rem; }
    .hero { padding: 2rem 0 1.5rem; }
}

/* --- Druck ---------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .layout-side, .rechner-aktion, .nav-toggle, .breadcrumbs { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .layout { display: block; padding: 0; }
    .ergebnis, .rechner { border: 1px solid #999; box-shadow: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
