/* flohwerk.ch – Gestaltung siehe README.md (Abschnitt „Gestaltung“).
   Ein Raster für alle Seiten: links die schmale Spalte für Bezeichnungen,
   rechts die Lesespalte. Keine Schatten, keine Verläufe, keine Animation. */

/* Schibsted Grotesk, SIL Open Font License 1.1 (schriften/LICENSE-SchibstedGrotesk.txt) */
@font-face { font-family: "Flohwerk Text"; font-weight: 400; font-display: swap; src: url("/schriften/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Flohwerk Text"; font-weight: 600; font-display: swap; src: url("/schriften/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Flohwerk Text"; font-weight: 800; font-display: swap; src: url("/schriften/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --papier: #f5f4f0;
  --tinte: #161616;
  --grau: #5c5a55;       /* 6,3:1 auf Papier */
  --linie: #161616;
  --signal: #c8301a;     /* 4,9:1 auf Papier: Hover, Fokus, Punkt der Wortmarke */
  --entwurf: #f2e15c;

  --schrift: "Flohwerk Text", "Helvetica Neue", Arial, sans-serif;
  --klein: 0.875rem;
  --text: 1.125rem;
  --gross: clamp(1.25rem, 0.9rem + 1.1vw, 1.5rem);
  --titel: clamp(2.25rem, 1rem + 5.2vw, 4.25rem);

  --rand: 0;             /* Breite der Bezeichnungs-Spalte, ab 52rem gesetzt */
  --lesespalte: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.blatt { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 52rem) {
  :root { --rand: 13rem; }
  .blatt { padding: 0 2.5rem; }
}

/* Links: unterstrichen in Tinte, Signalfarbe nur beim Darüberfahren */
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--signal); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 1px; }

.sprung { position: absolute; left: -999px; top: 0; background: var(--tinte); color: var(--papier); padding: 0.5rem 0.75rem; }
.sprung:focus { left: 0.5rem; top: 0.5rem; z-index: 2; }

.entwurf { background: var(--entwurf); font-size: var(--klein); padding: 0.5rem 1.25rem; text-align: left; }

/* Kopf: Wortmarke links, Navigation rechts, auf einer Grundlinie */
.kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.5rem 0 1.25rem; }
.marke { font-weight: 800; font-size: 1.625rem; letter-spacing: -0.035em; line-height: 1; text-decoration: none; }
.marke:hover { color: var(--tinte); }
.marke .punkt { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.07em; background: var(--signal); }
.kopf nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 1rem; }
.kopf nav a { text-decoration: none; }
.kopf nav a:hover, .kopf nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Abschnitte im Raster: Bezeichnung links (h2), Inhalt rechts */
.abschnitt {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 0;
  border-top: 1px solid var(--linie);
  padding: 1.75rem 0 2.5rem;
}
@media (min-width: 52rem) {
  .abschnitt { grid-template-columns: var(--rand) minmax(0, var(--lesespalte)); column-gap: 0; }
  .abschnitt > :not(.marginalie) { grid-column: 2; }
}
.marginalie { font-size: var(--klein); font-weight: 600; color: var(--grau); line-height: 1.55; margin: 0.3rem 0 0; padding-right: 1.5rem; }

/* Auftakt der Startseite */
.auftakt { border-top: 2px solid var(--linie); padding: 2.5rem 0 3.5rem; }
@media (min-width: 52rem) { .auftakt { padding: 4rem 0 5rem; } }
h1 { font-weight: 800; font-size: var(--titel); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 1.75rem; max-width: 13em; }
.auftakt .vorspann { font-size: var(--gross); line-height: 1.45; max-width: 34em; margin: 0; }
@media (min-width: 52rem) { .auftakt .vorspann { margin-left: var(--rand); } }

/* Unterseiten: Titel im gleichen Raster */
.seitentitel { border-top: 2px solid var(--linie); padding: 2.5rem 0 2.5rem; }
.seitentitel h1 { font-size: clamp(2rem, 1rem + 3.5vw, 3.25rem); margin-bottom: 1.25rem; }
.seitentitel .vorspann { font-size: var(--gross); line-height: 1.45; max-width: 34em; margin: 0; }
@media (min-width: 52rem) { .seitentitel .vorspann { margin-left: var(--rand); } }

h3 { font-weight: 800; font-size: var(--gross); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
.abschnitt p:last-child, .abschnitt ul:last-child { margin-bottom: 0; }
ul { margin: 0 0 1rem; padding-left: 1.1em; }
li { margin-bottom: 0.35rem; }
.leise { color: var(--grau); font-size: var(--klein); }
sub { font-size: 0.7em; line-height: 0; }

/* Steckbrief: Begriffe stehen in der Bezeichnungs-Spalte */
.steckbrief { margin: 0; border-top: 1px solid var(--linie); padding: 0.75rem 0 2.5rem; }
.steckbrief div { display: grid; grid-template-columns: 1fr; padding: 0.55rem 0; border-bottom: 1px solid #d9d7d0; }
.steckbrief div:last-child { border-bottom: 0; }
@media (min-width: 52rem) { .steckbrief div { grid-template-columns: var(--rand) minmax(0, var(--lesespalte)); } }
.steckbrief dt { font-size: var(--klein); font-weight: 600; color: var(--grau); padding-top: 0.2rem; }
.steckbrief dd { margin: 0; }

/* Weiterführende Links als Liste mit Pfeil aus der Schrift */
.wege { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.wege li { margin: 0; border-top: 1px solid #d9d7d0; }
.wege li:last-child { border-bottom: 1px solid #d9d7d0; }
.wege a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; text-decoration: none; font-weight: 600; }
.wege a::after { content: "→"; }
.wege a:hover { text-decoration: none; }
.wege .adresse { display: block; font-weight: 400; color: var(--grau); font-size: var(--klein); }

/* Bilder; im Entwurf Platzhalter in der Grösse des späteren Bildes */
figure { margin: 1.5rem 0 0; }
figcaption { font-size: var(--klein); color: var(--grau); margin-top: 0.5rem; }
.platzhalter { display: grid; place-items: center; text-align: center; padding: 1rem; border: 1px dashed var(--grau); color: var(--grau); font-size: var(--klein); }
.platzhalter.hoch { aspect-ratio: 4 / 5; max-width: 18rem; }
.platzhalter.handy { aspect-ratio: 9 / 16; max-width: 15rem; }
/* Screenshot der App: flach, dünne Linie, keine Schatten oder Handy-Attrappe */
.bildschirm { display: block; width: 100%; max-width: 16rem; height: auto; border: 1px solid var(--linie); }
.offen { background: var(--entwurf); padding: 0 0.15em; }

/* Werte auf der Startseite: Titel und Absatz untereinander, ruhiger Abstand */
.wert { margin-bottom: 1.75rem; }
.wert:last-child { margin-bottom: 0; }
.wert h3 { margin-bottom: 0.35rem; }

/* Kontakt gross, damit niemand suchen muss */
.kontakt { font-size: var(--gross); line-height: 1.5; }

.unterschrift { margin-top: 1.25rem; font-weight: 600; }

/* Rechtliche Seiten */
.recht h2 { font-size: var(--klein); }

/* Fuss */
.fuss { border-top: 1px solid var(--linie); padding: 1.25rem 0 3rem; font-size: var(--klein); color: var(--grau); display: grid; gap: 0.5rem; }
@media (min-width: 52rem) { .fuss { grid-template-columns: var(--rand) 1fr auto; align-items: baseline; } }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 1.25rem; }

@media print {
  body { background: #fff; font-size: 11pt; }
  .kopf nav, .sprung, .entwurf { display: none; }
  .abschnitt, .steckbrief div { break-inside: avoid; }
  a { text-decoration: none; }
}
