/* kannstewetter.de – Gestaltung nach Gestaltungsleitfaden V1 (Farben, Schriften, Wortmarke wie in der App). Keine Dritten. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --limette: #B6E94E; --gelb: #FFC23D; --orange: #FF7A45; --nachtblau: #16213E;
  --papier: #F5F7F0; --flaeche: #FFFFFF; --tinte: #16213E; --grau: #4A5468; --linie: #DDE2D4;
  --gruen-bg: #EEF6DC; --gelb-bg: #FFF0BF; --hinweis-bg: #F0F4E6; --link: #2B6CB0;
  --kopf: "Bricolage Grotesque", system-ui, sans-serif; --text: "DM Sans", system-ui, sans-serif;
  --radius: 22px; --schatten: 0 1px 2px rgba(22,33,62,.06), 0 6px 18px rgba(22,33,62,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --papier: #0E1424; --flaeche: #18223A; --tinte: #EEF2E6; --grau: #A7B1C2; --linie: #2C3852;
    --gruen-bg: #1F2D24; --gelb-bg: #3A3218; --hinweis-bg: #202C46; --link: #8DBAF2; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--text); font-size: 17px; line-height: 1.6; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--kopf); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.breite { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.klein { font-size: .9rem; color: var(--grau); }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 16px; top: 8px; background: var(--flaeche); padding: 6px 10px; border-radius: 8px; z-index: 10; }

.wortmarke { font-family: var(--kopf); font-weight: 800; letter-spacing: -0.04em; color: var(--tinte); }
.ausruf { color: var(--orange); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .breite { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.marke { text-decoration: none; font-size: 1.6rem; }
.kopf nav { display: flex; gap: 18px; font-weight: 600; font-size: .95rem; }
.kopf nav a { color: var(--tinte); text-decoration: none; }
.kopf nav a:hover { text-decoration: underline; }
@media (max-width: 560px) { .kopf nav { gap: 14px; font-size: .9rem; width: 100%; justify-content: space-between; padding-bottom: 10px; } }

/* Startseite */
.held { padding: 48px 0 40px; }
.held .breite { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.held .unterzeile { font-family: var(--kopf); font-weight: 500; font-size: 1.25rem; color: var(--grau); margin-bottom: .2em; }
.held .lead { font-size: 1.2rem; max-width: 34em; }
.frosch-buehne { background: radial-gradient(circle at 50% 45%, var(--gelb-bg), var(--gruen-bg) 70%); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 14%; }
.frosch-buehne img { width: 100%; height: auto; }
@media (max-width: 760px) { .held .breite { grid-template-columns: 1fr; } .frosch-buehne { max-width: 260px; margin: 0 auto; grid-row: 1; } .held { padding-top: 28px; } }

.antworten { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.antworten li { font-family: var(--kopf); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 1rem; color: #16213E; }
.a-gruen { background: var(--limette); } .a-gelb { background: var(--gelb); } .a-rot { background: #FFB59A; }

.bald { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 14px 16px; display: inline-block; margin: 0; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf { display: inline-block; background: var(--nachtblau); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .knopf { background: var(--limette); color: #16213E; } }

.abschnitt { padding: 44px 0; }
.abschnitt.hell { background: var(--flaeche); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.einleitung { max-width: 40em; color: var(--grau); font-size: 1.05rem; }

.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; padding: 0; list-style: none; margin: 24px 0 0; }
.schritte li { background: var(--papier); border-radius: var(--radius); padding: 20px; counter-increment: s; }
.abschnitt:not(.hell) .schritte li { background: var(--flaeche); box-shadow: var(--schatten); }
.schritte li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--limette); color: #16213E; font-family: var(--kopf); font-weight: 800; margin-bottom: 10px; }
@media (max-width: 760px) { .schritte { grid-template-columns: 1fr; } }

.beispiel { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.karte { background: var(--flaeche); border-radius: var(--radius); padding: 18px; box-shadow: var(--schatten); border-left: 6px solid var(--limette); }
.karte.k-gelb { border-left-color: var(--gelb); } .karte.k-rot { border-left-color: var(--orange); }
.karte .frage { color: var(--grau); font-size: .9rem; margin: 0; }
.karte .wort { font-family: var(--kopf); font-weight: 800; font-size: 1.35rem; margin: 2px 0; }
.karte .achte { background: var(--hinweis-bg); border-radius: 12px; padding: 8px 10px; font-size: .92rem; margin: 10px 0 0; }
@media (max-width: 860px) { .beispiel { grid-template-columns: 1fr; } }

.kategorien { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.kategorie { background: var(--papier); border-radius: var(--radius); padding: 18px; }
.kategorie h3 { margin-bottom: .35em; }
.kategorie p { margin: 0; color: var(--grau); font-size: .95rem; }
@media (max-width: 860px) { .kategorien { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kategorien { grid-template-columns: 1fr; } }

.vergleich { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--flaeche); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.vergleich th, .vergleich td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.vergleich thead th { font-family: var(--kopf); background: var(--gruen-bg); }
.vergleich td:nth-child(n+2), .vergleich th:nth-child(n+2) { text-align: center; width: 22%; }
.vergleich tr:last-child td { border-bottom: 0; }
.ja { font-weight: 800; color: #3B7A12; } @media (prefers-color-scheme: dark) { .ja { color: var(--limette); } }
.preis { margin-top: 16px; }

.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .zweispaltig { grid-template-columns: 1fr; } }
.kasten { background: var(--flaeche); border-radius: var(--radius); padding: 22px; box-shadow: var(--schatten); }
.kasten.wichtig { border: 2px solid var(--gelb); }

/* Textseiten (Recht, Hilfe) */
.textseite main { padding: 36px 0 48px; }
.text { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.text h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.text h2 { font-size: 1.35rem; margin-top: 1.6em; }
.text h3 { font-size: 1.1rem; margin-top: 1.2em; }
.text .stand { color: var(--grau); }
.text table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0 20px; display: block; overflow-x: auto; }
.text th, .text td { border: 1px solid var(--linie); padding: 8px 10px; text-align: left; vertical-align: top; }
.text th { background: var(--gruen-bg); }
.text ul { padding-left: 1.2em; }
.text details { background: var(--flaeche); border-radius: 16px; padding: 14px 18px; margin: 10px 0; box-shadow: var(--schatten); }
.text summary { font-weight: 600; cursor: pointer; }
.text details[open] summary { margin-bottom: 8px; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 32px 0 40px; margin-top: 12px; }
.fuss .breite { display: grid; gap: 10px; }
.fuss-marke { font-size: 1.4rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fuss-marke p { margin: 0; font-size: 1rem; color: var(--grau); font-family: var(--kopf); font-weight: 500; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.fuss nav a { color: var(--tinte); }
.fuss .klein { margin: 0; }
.abstand { margin-top: 12px; }
@media (max-width: 560px) {
  .vergleich th, .vergleich td { padding: 10px 7px; font-size: .9rem; hyphens: auto; overflow-wrap: anywhere; }
  .vergleich td:nth-child(n+2), .vergleich th:nth-child(n+2) { width: 24%; }
}
.abschnitt:not(.hell) .kategorie { background: var(--flaeche); box-shadow: var(--schatten); }
