/* Standardschriften aller Portale (Entscheidung Charles, 8. November 2026):
   Überschriften Source Serif 4, Text Source Sans 3. Dateien in /fonts, Lizenz SIL OFL 1.1. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* Portal-Grundgestaltung. Farben und Schriften kommen je Portal als CSS-Variablen aus der Datenbank. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--grund); color: var(--tinte);
    font-family: var(--schrift-text); font-size: 1.0625rem; line-height: 1.65;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--schrift-titel); line-height: 1.2; font-weight: 600; color: var(--tinte); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; }

.rahmen { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.rahmen.schmal { width: min(780px, 100% - 2rem); }
.unsichtbar, .sprungmarke:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sprungmarke:focus { position: fixed; top: .5rem; left: .5rem; z-index: 99; background: var(--kachel); padding: .5rem 1rem; }

/* Kopfleiste */
.kopfleiste { position: sticky; top: 0; z-index: 40; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopfleiste-innen { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.logo { text-decoration: none; color: var(--tinte); display: inline-flex; align-items: center; gap: .6rem; }
.logo-zeichen { border-radius: 9px; flex: none; }
.fuss-logo { display: flex; align-items: center; gap: .55rem; margin: 0 0 .5rem; }
.fuss-logo .logo-zeichen { border-radius: 7px; }
.fuss-name { font-family: var(--schrift-titel); font-size: 1.15rem; font-weight: 700; }
.logo-text { font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 700; }
.hauptmenue { display: flex; gap: 1.25rem; margin-left: auto; font-size: .95rem; }
.hauptmenue a { color: var(--tinte); text-decoration: none; }
.hauptmenue a:hover { color: var(--akzent); }
.suche input { border: 1px solid var(--linie); border-radius: 999px; padding: .35rem .9rem; font: inherit; font-size: .9rem; background: var(--kachel); width: 12rem; }
.menue-mobil { display: none; margin-left: auto; }
.menue-mobil summary { cursor: pointer; list-style: none; border: 1px solid var(--linie); border-radius: 6px; padding: .3rem .8rem; }
.menue-mobil nav { position: absolute; right: 1rem; top: 60px; background: var(--kachel); border: 1px solid var(--linie); border-radius: 8px; padding: .5rem 0; display: grid; min-width: 12rem; }
.menue-mobil nav a { padding: .5rem 1rem; color: var(--tinte); text-decoration: none; }
@media (max-width: 820px) {
    .hauptmenue, .suche { display: none; }
    .menue-mobil { display: block; }
}

/* Kopfbereich */
.kopf { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--kopf), var(--akzent)); color: #fff; min-height: clamp(220px, 32vw, 420px); display: flex; align-items: flex-end; }
.kopf-liste, .kopf-vergleich, .kopf-glossar, .kopf-wissen { min-height: clamp(180px, 22vw, 300px); }
.kopf-bild img, .kopf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kopf-mit-medien::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
.kopf-text { position: relative; z-index: 1; padding: 2rem 0 1.75rem; }
.kopf h1 { color: #fff; margin: 0; }
.kopf-unterzeile { margin: .4rem 0 0; font-size: 1.15rem; max-width: 40rem; }

/* Brotkrumen und Redaktionszeile */
.krumen { padding-top: 1.25rem; font-size: .85rem; }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.krumen li + li::before { content: "/"; margin-right: .4rem; color: var(--tinte-2); }
.krumen a { color: var(--tinte-2); }
.redaktion, .karte-meta { color: var(--tinte-2); font-size: .85rem; }
.karte-meta time { margin-left: .4rem; }

/* Magazin-Raster und Karten */
.block { margin-block: 3rem; } /* nur oben/unten, damit .rahmen zentriert bleibt */
.raster { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.karte { background: var(--kachel); border: 1px solid var(--linie); border-radius: 10px; padding: 1.1rem 1.2rem; }
.karte-bild img { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: .8rem; }
.karte-titel { font-size: 1.2rem; margin: .3rem 0; }
.karte-titel a { color: var(--tinte); text-decoration: none; }
.karte-titel a:hover { color: var(--akzent); }
.karte-anriss { margin: .4rem 0; color: var(--tinte-2); font-size: .95rem; }
.empfehlungen { background: var(--flaeche); margin-inline: calc(50% - 50vw); padding: 2rem calc(50vw - 50%); }
.mehr { font-size: .95rem; }
.leitartikel { display: grid; gap: 1.5rem; margin-top: 2rem; background: var(--kachel); border: 1px solid var(--linie); border-radius: 12px; padding: 1.5rem; }
.leitartikel h2 { margin-top: 0; }
.leitartikel h2 a { color: var(--tinte); text-decoration: none; }
.leitartikel-bild img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.linkliste { list-style: none; padding: 0; margin: 0; }
.linkliste li { padding: .45rem 0; border-bottom: 1px solid var(--linie); }
.linkliste .karte-meta { display: block; }
.zweispaltig { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.spalten { columns: 2 260px; }
.buchstaben { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.buchstaben a { padding: .2rem .6rem; border: 1px solid var(--linie); border-radius: 6px; text-decoration: none; }
.seiten { display: flex; gap: 1.5rem; justify-content: center; align-items: center; margin: 2rem 0; }
.einleitung { font-size: 1.1rem; }

/* Fließtext */
.prosa { max-width: 46rem; }
.prosa table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; background: var(--kachel); }
.prosa th, .prosa td { border: 1px solid var(--linie); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prosa th { background: var(--flaeche); }
.prosa blockquote { margin: 1.2rem 0; padding: .8rem 1.1rem; border-left: 4px solid var(--akzent); background: var(--hinweis); }

/* Artikel */
.artikel-kopf { max-width: 46rem; padding-top: 1rem; }
.artikel-bild { border-radius: 12px; margin: 1.25rem 0; }
.artikel-raster { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.inhaltsverzeichnis { background: var(--kachel); border: 1px solid var(--linie); border-radius: 10px; padding: 1rem 1.2rem; font-size: .92rem; align-self: start; }
.inhaltsverzeichnis ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.inhaltsverzeichnis li { margin: .25rem 0; }
@media (min-width: 1000px) {
    .artikel-raster { grid-template-columns: minmax(0, 46rem) 18rem; }
    .inhaltsverzeichnis { order: 2; position: sticky; top: 84px; }
}

/* Angebote */
.angebotsblock { margin: 2rem 0; }
.angebotsblock-titel { font-size: 1.3rem; }
.angebote { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.angebot { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.25rem; align-items: center; background: var(--kachel); border: 1px solid var(--linie); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; }
.angebote .angebot { margin: 0; }
.angebot-bild { width: 112px; height: 112px; object-fit: contain; }
.angebot-name { font-family: var(--schrift-titel); font-size: 1.15rem; margin: 0; font-weight: 600; }
.angebot-rang { color: var(--akzent); margin-right: .35rem; }
.angebot-haendler, .angebot-stand { margin: .2rem 0 0; color: var(--tinte-2); font-size: .85rem; }
.angebot-eigenschaften { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .88rem; }
.angebot-eigenschaften span { color: var(--tinte-2); }
.angebot-kauf { text-align: right; }
.angebot-preis { font-size: 1.3rem; font-weight: 700; margin: 0; }
.knopf { display: inline-flex; align-items: center; gap: .6rem; background: var(--akzent); color: #fff; text-decoration: none; padding: .7rem 1.1rem; border-radius: 8px; font-weight: 600; border: 0; font: inherit; cursor: pointer; white-space: nowrap; }
.knopf:hover { filter: brightness(1.1); }
.knopf.klein { padding: .5rem .8rem; font-size: .9rem; gap: .45rem; }
.tabelle-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.vergleichstabelle { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--kachel); }
.vergleichstabelle th, .vergleichstabelle td { border-bottom: 1px solid var(--linie); padding: .7rem .6rem; text-align: left; vertical-align: middle; }
.vergleichstabelle thead th { font-size: .82rem; color: var(--tinte-2); font-weight: 600; }
.vergleichstabelle tbody th { font-family: var(--schrift-titel); font-weight: 600; min-width: 11rem; }
.vergleichstabelle td:last-child { text-align: right; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.weiter { margin: 1.2rem 0; font-weight: 600; }
.ki-hinweis { font-size: .85rem; color: var(--tinte-2); margin: .2rem 0 0; }
.ki-hinweis a { color: inherit; }
.anzeige { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; opacity: .85; border: 1px solid currentColor; border-radius: 4px; padding: 0 .3rem; }
.anzeige-stern { font-size: .8em; vertical-align: super; }
.hinweis-partner, .hinweis-preis { font-size: .85rem; color: var(--tinte-2); background: var(--hinweis); border-radius: 8px; padding: .7rem 1rem; }
.entwurf-hinweis { font-size: .8rem; color: var(--fehler); margin: 0; }
@media (max-width: 640px) {
    .angebot { grid-template-columns: 1fr; }
    .angebot-kauf { text-align: left; }
}

/* Vergleich */
.vergleichsliste { list-style: none; padding: 0; }
.vergleichsliste li { border-bottom: 1px solid var(--linie); padding: .6rem 0; }
.vergleichsliste h2 { font-size: 1.2rem; margin: 0; }

/* Suche */
.suche-gross { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 2rem; }
.suche-gross input { flex: 1 1 16rem; padding: .6rem .8rem; border: 1px solid var(--linie); border-radius: 8px; font: inherit; }

/* Fußbereich */
.fuss { margin-top: 5rem; background: var(--boden); color: var(--boden-text); font-size: .92rem; }
.fuss-innen { padding: 2.5rem 0; display: grid; gap: 1.5rem; }
.fuss a { color: var(--boden-text); }
.fuss nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.fuss-marke { font-family: var(--schrift-titel); font-size: 1.3rem; margin: 0; }
.fuss-hinweis, .fuss-copy { opacity: .8; margin: 0; }
