/* Öffentliche Seiten von Granit. Baukasten wie Belegberg: Commissioner, grosse fette Titel, schwebende Kopfleiste,
   stark gerundete Karten, weiche Bergformen, alles hell. Eigener Akzent: Glut und Apricot.
   Verboten: Kicker-Labels, Kursiv-Akzente, Pillen-Knöpfe, dunkle Flächen, Versalien, Deko-Pfeile, Laufbänder, Noise,
   nummerierte Kacheln, Zahlenblöcke. Bewegung nur über transform und opacity. */
@font-face { font-family: "Commissioner"; src: url("/fonts/commissioner-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("/fonts/commissioner-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("/fonts/commissioner-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --papier: #ffffff;
  --warmweiss: #fffaf3;
  --stein: #f2f0ea;
  --stein-tief: #e3e0d7;
  --linie: #e4e4de;
  --tinte: #111111;
  --grau: #6b6b66;
  --glut: #f04e12;
  --glut-tief: #c9340a;
  --glut-hell: #ffe6da;
  --apricot: #ffd9bd;
  --himmel-hell: #e2f0ff;
  --gletscher: #d9f1ea;
  --ok: #0d7a46;

  --r-knopf: 14px;
  --r-karte: 24px;
  --r-buehne: 36px;
  --schatten: 0 1px 2px rgba(40, 20, 10, .06), 0 18px 40px -18px rgba(60, 30, 10, .26);
  --schatten-weich: 0 1px 2px rgba(40, 20, 10, .05), 0 30px 60px -30px rgba(60, 30, 10, .3);
  --rand: 32px;
  --spalte: 1280px;
  --abschnitt: clamp(88px, 10vw, 152px);
  --rein: cubic-bezier(.2, .8, .2, 1);
  --t-held: clamp(44px, 6.6vw, 104px);
  --t-aussage: clamp(40px, 7vw, 104px);
  --t-h2: clamp(32px, 4vw, 56px);
  color-scheme: light;
}
@media (max-width: 720px) { :root { --rand: 20px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 18px/1.55 "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
b, strong { font-weight: 600; }
p { margin: 0 0 1em; max-width: 34em; }
a { color: inherit; }
.breit { max-width: var(--spalte); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.grau { color: var(--grau); }
.klein { font-size: 15px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 3px solid var(--glut); outline-offset: 3px; border-radius: 6px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: var(--r-knopf); border: 0;
  background: var(--glut-tief); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(201, 52, 10, .7);
  transition: background-color .15s, transform .15s var(--rein);
}
.knopf:hover { background: #a82a06; transform: translateY(-1px); }
.knopf:active { transform: scale(.97); }
.knopf.gross { height: 58px; padding: 0 30px; font-size: 18px; }
.textlink { color: var(--glut-tief); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; font-weight: 600; }
.aktionen { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 32px 0 16px; }

/* ---------- Kopf: schwebende Leiste ---------- */
.kopf { position: sticky; top: 0; z-index: 30; padding-top: 12px; pointer-events: none; }
.kopf-in {
  pointer-events: auto; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--spalte) - 2 * var(--rand) + 40px); width: calc(100% - 2 * var(--rand) + 40px); margin: 0 auto; padding: 0 12px 0 22px;
  background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 22px; box-shadow: 0 0 0 1px rgba(40, 20, 10, .06), 0 12px 32px -18px rgba(60, 30, 10, .3);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo svg { width: 30px; height: 30px; color: var(--glut); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav a:not(.knopf) { text-decoration: none; font-weight: 600; opacity: .72; }
.nav a:not(.knopf):hover, .nav a[aria-current="page"] { opacity: 1; color: var(--glut-tief); }
.nav .knopf { height: 46px; }
.hamburger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; border-radius: 12px; }
.hamburger span { position: absolute; left: 12px; right: 12px; border-top: 2px solid var(--tinte); transition: transform .2s, opacity .2s; }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menue {
  position: fixed; left: var(--rand); right: var(--rand); top: 88px; z-index: 29; display: flex; flex-direction: column;
  padding: 12px 20px 24px; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px rgba(40, 20, 10, .06), 0 30px 60px -20px rgba(60, 30, 10, .35);
}
.menue[hidden] { display: none; }
.menue a:not(.knopf) { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.menue .knopf { margin-top: 24px; height: 54px; }
@media (max-width: 860px) { .nav { display: none; } .hamburger { display: block; } }

/* ---------- Hero ---------- */
.held { position: relative; isolation: isolate; margin-top: -80px; padding-top: calc(80px + clamp(20px, 2.4vw, 40px)); padding-bottom: clamp(56px, 6vw, 96px); overflow: hidden; }
.held::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 50% at 6% 18%, rgba(255, 217, 189, .75), transparent 70%),
    radial-gradient(50% 55% at 88% 36%, rgba(217, 241, 234, .8), transparent 70%),
    var(--warmweiss);
}
.berge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: -1; pointer-events: none; }
.held-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; min-height: min(calc(100svh - 120px), 760px); }
.held-titel { font-size: var(--t-held); line-height: .96; letter-spacing: -0.055em; margin: 0 0 24px; }
.wechsel { display: grid; justify-items: start; color: var(--glut); }
.wechsel > span { grid-area: 1 / 1; white-space: nowrap; padding-bottom: .08em; opacity: 0; transform: translateY(.32em); transition: opacity .35s var(--rein), transform .35s var(--rein); }
.wechsel > span.aktiv { opacity: 1; transform: none; }
.wechsel > span.weg { opacity: 0; transform: translateY(-.32em); }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 30em; }

.buehne { position: relative; display: grid; justify-items: center; padding: 24px 0; }
.telefon {
  position: relative; width: min(320px, 78vw); aspect-ratio: 320 / 640; background: #fff; border-radius: 46px; padding: 14px;
  box-shadow: 0 0 0 1px rgba(40, 20, 10, .08), 0 0 0 10px #fff, 0 0 0 11px rgba(40, 20, 10, .1), 0 50px 80px -30px rgba(60, 30, 10, .45);
}
.schirm { height: 100%; border-radius: 34px; background: var(--warmweiss); display: flex; flex-direction: column; overflow: hidden; }
.schirm-kopf { padding: 22px 20px 14px; border-bottom: 1px solid var(--linie); background: #fff; }
.schirm-kopf b { display: block; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.schirm-kopf span { font-size: 12px; color: var(--grau); }
.verlauf { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px 14px; }
.blase { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.35; background: #fff; box-shadow: 0 0 0 1px rgba(40, 20, 10, .07); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .3s var(--rein), transform .3s var(--rein); }
.blase.ich { align-self: flex-end; background: var(--glut-hell); box-shadow: none; }
.blase.da { opacity: 1; transform: none; }
.eingabe { margin: 0 14px 16px; height: 44px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(40, 20, 10, .1); display: flex; align-items: center; padding: 0 14px; color: var(--grau); font-size: 14px; }
.schwebe { position: absolute; background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: var(--schatten); font-size: 14px; line-height: 1.35; max-width: 230px; animation: schweben 7s ease-in-out infinite; }
.schwebe b { display: block; font-weight: 800; letter-spacing: -0.02em; font-size: 15px; margin-bottom: 4px; }
.schwebe .mono { font-size: 11px; color: var(--grau); word-break: break-all; display: block; }
.schwebe.eins { left: -12%; top: 24%; }
.schwebe.zwei { right: -10%; top: 42%; animation-delay: -3.5s; }
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-top: var(--abschnitt); }
.abschnitt-kopf { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 900px; }
.abschnitt-kopf h2 { font-size: var(--t-h2); }
.abschnitt-kopf p { font-size: clamp(19px, 1.5vw, 22px); color: var(--grau); margin: 0; }
.aussage { font-size: var(--t-aussage); font-weight: 800; letter-spacing: -0.055em; line-height: .98; max-width: none; margin: 0 0 clamp(24px, 3vw, 40px); }
.aussage b { font-weight: 800; color: var(--glut); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.kachel { grid-column: span 2; border-radius: var(--r-buehne); padding: clamp(24px, 2.4vw, 36px); background: var(--stein); display: flex; flex-direction: column; gap: 10px; min-height: 360px; overflow: hidden; }
.kachel.weit { grid-column: span 4; }
.kachel.halb { grid-column: span 3; }
.kachel h3 { font-size: clamp(24px, 2.2vw, 32px); }
.kachel p { margin: 0; max-width: 26em; }
.kachel.apricot { background: var(--apricot); }
.kachel.himmel { background: var(--himmel-hell); }
.kachel.gletscher { background: var(--gletscher); }
.kachel.glut { background: var(--glut-hell); }
.szene { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.chip { background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 15px; box-shadow: var(--schatten); }
.chip.mono { font-size: 13px; }
.chip.leise { background: rgba(255, 255, 255, .55); box-shadow: none; color: var(--grau); }
.kreise { display: flex; }
.kreise span { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--schatten); margin-right: -10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.woerter { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 8px; }
.woerter span { background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 13px; box-shadow: 0 0 0 1px rgba(40, 20, 10, .06); }
@media (max-width: 960px) { .kachel, .kachel.weit, .kachel.halb { grid-column: span 6; min-height: 0; } }

/* ---------- Was das Relais sieht ---------- */
.sicht { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sicht > div { border-radius: var(--r-buehne); padding: clamp(24px, 3vw, 44px); }
.sicht h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 20px; }
.sicht .du { background: var(--glut-hell); }
.sicht .relais { background: var(--stein); }
.sicht .blase { opacity: 1; transform: none; font-size: 19px; max-width: none; display: inline-block; background: #fff; box-shadow: var(--schatten); padding: 12px 18px; }
.chiffrat { font-size: 14px; line-height: 1.6; color: var(--grau); word-break: break-all; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 0 0 1px rgba(40, 20, 10, .07); margin: 0 0 16px; max-width: none; min-height: 7.4em; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.liste li { padding-left: 22px; position: relative; }
.liste li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--glut); }
.liste.grau-punkt li::before { background: var(--stein-tief); }
@media (max-width: 860px) { .sicht { grid-template-columns: 1fr; } }

/* ---------- Merkmale: drei Reihen ---------- */
.reihen { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--linie); align-items: start; }
.reihe h3 { font-size: clamp(26px, 2.8vw, 40px); }
.reihe p { margin: 0 0 .8em; max-width: 32em; }
@media (max-width: 860px) { .reihe { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Passphrase ---------- */
.papier-buehne { border-radius: var(--r-buehne); background: var(--apricot); padding: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.papier-buehne h2 { font-size: var(--t-h2); margin-bottom: 20px; }
.zettel { background: #fffdf6; border-radius: 6px; width: min(340px, 100%); padding: 32px 36px 36px; box-shadow: var(--schatten-weich); transform: rotate(-2.2deg); max-width: 380px; justify-self: center; background-image: repeating-linear-gradient(#fffdf6 0 35px, rgba(40, 20, 10, .1) 35px 36px); }
.zettel span { display: block; font: 600 26px/36px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
@media (max-width: 860px) { .papier-buehne { grid-template-columns: 1fr; } }

/* ---------- Fragen ---------- */
.fragen { max-width: 860px; border-top: 1px solid var(--linie); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 800; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.025em; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--tinte); border-bottom: 2px solid var(--tinte); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.fragen details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fragen details > div { padding: 0 0 24px; }
.fragen p { max-width: 40em; }

/* ---------- Schluss und Fuss ---------- */
.schluss { margin-top: var(--abschnitt); border-radius: var(--r-buehne); background: var(--gletscher); padding: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.schluss h2 { font-size: var(--t-aussage); letter-spacing: -0.055em; line-height: .98; margin-bottom: 20px; }
.schluss .berge { height: 70%; opacity: .7; }
.fuss { margin-top: var(--abschnitt); padding: 40px 0 56px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 15px; color: var(--grau); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss a { text-decoration: none; font-weight: 600; }
.fuss a:hover { color: var(--glut-tief); }

/* ---------- Textseiten ---------- */
.seite-kopf { padding: clamp(40px, 6vw, 96px) 0 clamp(24px, 3vw, 48px); margin-top: -80px; padding-top: calc(80px + clamp(40px, 6vw, 96px)); background: radial-gradient(60% 80% at 10% 0%, rgba(255, 217, 189, .7), transparent 70%), var(--warmweiss); }
.seite-kopf h1 { font-size: clamp(44px, 6.4vw, 96px); letter-spacing: -0.055em; line-height: .98; max-width: 12em; }
.seite-kopf p { font-size: clamp(19px, 1.6vw, 23px); margin: 24px 0 0; max-width: 32em; }
.text { max-width: 860px; }
.text h2 { font-size: clamp(28px, 3vw, 40px); margin: clamp(48px, 5vw, 72px) 0 16px; }
.text h3 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.025em; }
.text p, .text li { max-width: 40em; }
.text ul { padding-left: 20px; margin: 0 0 1em; }
.text li { margin-bottom: 8px; }
.tabelle { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 600; color: var(--grau); font-size: 14px; }
.kasten { border-radius: var(--r-karte); background: var(--stein); padding: 24px 28px; margin: 24px 0; }
.kasten.glut { background: var(--glut-hell); }
.kasten p:last-child { margin-bottom: 0; }
.pruefsumme { font-size: 13px; word-break: break-all; background: #fff; border-radius: 12px; padding: 12px 14px; display: block; margin: 12px 0; box-shadow: 0 0 0 1px rgba(40, 20, 10, .08); }

/* ---------- Auftauchen beim Scrollen (nur mit JS) ---------- */
.js [data-auf] { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--rein), transform .6s var(--rein); }
.js [data-auf].da { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .held-raster { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .buehne { margin-top: 12px; }
  .schwebe.eins { left: 0; top: 22%; }
  .schwebe.zwei { right: 0; top: 40%; }
}
@media (max-width: 520px) { .schwebe { max-width: 200px; font-size: 13px; } .schwebe.eins { top: auto; bottom: -2%; } .schwebe.zwei { display: none; } .woerter { grid-template-columns: repeat(3, auto); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .schwebe { animation: none; }
  .js [data-auf], .blase, .wechsel > span { transition: none; }
}
