/* SHŌTEN – Grundgestaltung der öffentlichen Seiten und der Verwaltung.
   Farbwelt: Washi-Papier, Sumi-Tusche, Zinnoberrot (Shu) als Akzent,
   Indigo (Ai) für die Wunschliste. Keine externen Schriften. */

:root {
  --papier: #f3efe6;
  --papier-2: #ebe5d8;
  --karte: #fbf9f4;
  --tusche: #1d1c1a;
  --tusche-2: #4a4741;
  --tusche-3: #8a857b;
  --linie: #d8d1c2;
  --shu: #c8402a;
  --shu-hell: #f3d8cf;
  --ai: #2f4a6d;
  --ai-hell: #d5dde8;
  --gruen: #3d6b4f;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(29, 28, 26, .06), 0 8px 24px rgba(29, 28, 26, .06);
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Hiragino Mincho ProN", "Noto Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #161514;
    --papier-2: #1f1d1b;
    --karte: #22201d;
    --tusche: #f0ebe1;
    --tusche-2: #c9c2b5;
    --tusche-3: #8d877c;
    --linie: #3a3732;
    --shu: #e0604a;
    --shu-hell: #4a2219;
    --ai: #8fb0d8;
    --ai-hell: #1f2b3a;
    --gruen: #79b08e;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tusche);
  font: 16px/1.6 var(--sans);
}
a { color: inherit; text-decoration-color: var(--shu); text-underline-offset: 3px; }
a:hover { color: var(--shu); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .2em 0 .4em; }
h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 2px; border-radius: 4px; }

/* Logo: Kanji im Stempelfeld (Hanko) + Schriftzug */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; letter-spacing: .14em; }
.logo-kanji {
  display: inline-grid; place-items: center;
  background: var(--shu); color: #fff8f0;
  font-family: var(--serif); font-size: .82rem; letter-spacing: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 6px;
  writing-mode: vertical-rl; line-height: 1;
}
.logo-text { font-size: 1.05rem; }

.kopfzeile {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(8px);
}
.hauptnav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); flex-wrap: wrap; }
.hauptnav a:not(.knopf) { text-decoration: none; color: var(--tusche-2); }
.hauptnav a:not(.knopf):hover { color: var(--shu); }
@media (max-width: 620px) { .hauptnav a:not(.knopf) { display: none; } }

#inhalt { padding: 0 clamp(1rem, 4vw, 3rem); max-width: 1180px; margin: 0 auto; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--karte); color: var(--tusche);
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.knopf:hover { color: var(--tusche); background: var(--papier-2); }
.knopf:active { transform: translateY(1px); }
.knopf-primaer { background: var(--tusche); color: var(--papier); border-color: var(--tusche); }
.knopf-primaer:hover { background: var(--shu); border-color: var(--shu); color: #fff; }
.knopf-leise { background: transparent; }
.knopf-gross { padding: .8rem 1.5rem; font-size: 1.05rem; }

/* Startseite */
.held { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(2rem, 7vw, 5.5rem) 0 3rem; }
@media (max-width: 860px) { .held { grid-template-columns: 1fr; } }
.vorzeile { color: var(--shu); font-weight: 600; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; margin: 0; }
.vorzeile a { text-decoration: none; }
.einleitung { font-size: 1.15rem; color: var(--tusche-2); max-width: 38em; }
.held-knoepfe { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 .6rem; }
.hinweis-klein { color: var(--tusche-3); font-size: .88rem; }
.held-bild { margin: 0; background: var(--karte); border-radius: 22px; padding: 1.2rem; box-shadow: var(--schatten); border: 1px solid var(--linie); }
.held-bild figcaption, .diagramm figcaption { color: var(--tusche-3); font-size: .85rem; margin-top: .4rem; }

/* SVG-Skalen (Startseite, Ratgeber, Vergleiche) */
.beispielskala, .skala-svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.achse line { stroke: var(--tusche-3); stroke-width: 1.2; }
.achse text { fill: var(--tusche-3); font-size: 12px; text-anchor: middle; font-family: var(--mono); }
.etikett { fill: var(--tusche-2); font-size: 13px; font-weight: 600; }
.balken.besitz, .punkt.besitz { fill: var(--tusche); }
.strich.besitz { stroke: var(--tusche); stroke-width: 3; }
.balken.wunsch, .punkt.wunsch { fill: var(--ai-hell); stroke: var(--ai); stroke-width: 2; stroke-dasharray: 6 4; }

.raster { display: grid; gap: 1.1rem; }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.kachel h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.kachel p { margin: 0; color: var(--tusche-2); }
.kachel-link { text-decoration: none; transition: border-color .15s; }
.kachel-link:hover { border-color: var(--shu); color: inherit; }

.preisblock { margin: 4rem 0; }
.preis { background: var(--karte); border: 1px solid var(--linie); border-radius: 22px; padding: 1.6rem 1.8rem; }
.preis-hervor { border: 2px solid var(--tusche); }
.preis .betrag { font-family: var(--serif); font-size: 2.4rem; margin: .2rem 0 .8rem; }
.preis .betrag small { font-size: 1rem; color: var(--tusche-3); }
.preis ul { padding-left: 1.2rem; margin: 0; }
.ratgeber-teaser { margin-bottom: 4rem; }

/* Textseiten */
.textseite { max-width: 760px; margin: 0 auto; padding: 2.5rem 0 4rem; }
.textseite.breit { max-width: 1180px; }
.textseite.schmal { max-width: 420px; }
.fliesstext { font-size: 1.05rem; }
.fliesstext h2 { font-size: 1.35rem; }
.fliesstext table, .datentabelle { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.fliesstext th, .fliesstext td, .datentabelle th, .datentabelle td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.fliesstext thead th, .datentabelle thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tusche-3); }
.diagramm { margin: 1.5rem 0; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; }
.aufruf { margin-top: 3rem; padding: 1.4rem; border-radius: var(--radius); background: var(--tusche); color: var(--papier); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.aufruf p { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.aufruf .knopf-primaer { background: var(--shu); border-color: var(--shu); color: #fff; }

.artikelliste { display: grid; gap: .6rem; margin-top: 2rem; }
.artikelzeile { display: grid; gap: .15rem; padding: 1rem 1.2rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; }
.artikelzeile:hover { border-color: var(--shu); color: inherit; }
.artikel-titel { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.artikel-unter { color: var(--tusche-3); font-size: .92rem; }

.neuigkeiten { list-style: none; padding: 0; border-left: 2px solid var(--linie); }
.neuigkeiten li { padding: 0 0 1.4rem 1.4rem; position: relative; }
.neuigkeiten li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--shu); }
.neuigkeiten time { font-family: var(--mono); color: var(--tusche-3); font-size: .85rem; }
.neuigkeiten h2 { margin: .1rem 0 .3rem; font-size: 1.2rem; }

details { border-bottom: 1px solid var(--linie); padding: .7rem 0; }
summary { cursor: pointer; font-weight: 600; }
.hinweis-kasten { background: var(--shu-hell); border-radius: var(--radius); padding: .9rem 1.1rem; }
.fehlermeldung { background: var(--shu-hell); color: var(--tusche); border-left: 4px solid var(--shu); padding: .6rem .9rem; border-radius: 6px; }
.schluessel { white-space: pre-wrap; word-break: break-all; background: var(--karte); border: 1px dashed var(--tusche-3); padding: .8rem; border-radius: 8px; font-size: .9rem; }
.karte-ansicht img { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }

/* Formulare */
.formular { display: grid; gap: .7rem; margin: 1rem 0; }
.formular.zeile, .formular .zeile { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.formular label { display: grid; gap: .3rem; font-weight: 600; }
input, select, textarea {
  font: inherit; color: var(--tusche); background: var(--karte);
  border: 1px solid var(--linie); border-radius: 10px; padding: .55rem .7rem; min-width: 0;
}
textarea { width: 100%; font-family: var(--mono); font-size: .88rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--shu); outline-offset: 0; }

/* Verwaltung */
.admin-kopf { display: flex; justify-content: space-between; align-items: center; }
.admin-nav { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 600; }
.admin .datentabelle { font-size: .88rem; }
.admin tr.widerrufen { opacity: .5; }
code.klein { font-size: .75rem; word-break: break-all; }
.zeilenknoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
form.inline { display: inline; }
.schlicht { list-style: none; padding: 0; }
.schlicht li { padding: .3rem 0; border-bottom: 1px solid var(--linie); }

.fusszeile { border-top: 1px solid var(--linie); padding: 2rem clamp(1rem, 4vw, 3rem); color: var(--tusche-3); font-size: .92rem; display: grid; gap: .5rem; justify-items: center; text-align: center; }
.fusszeile a { color: var(--tusche-2); text-decoration: none; }
.fuss-marke { display: flex; gap: .5rem; align-items: center; color: var(--tusche); font-weight: 600; }
.fuss-marke .logo-kanji { width: 1.6rem; height: 1.6rem; font-size: .62rem; }
.fuss-klein { font-size: .8rem; }
