/* Beute · Website-Varianten (01.10.2026)
   EINE Token-Quelle für alle drei Entwürfe. Werte aus DESIGN.md §2 und §13
   („Das Jahr"): Papier, Tinte, Lindengrün als einzige Marke, Raps nur im
   Honigraum. Schrift ist die App-Schrift SF Pro (Apple-Systemschrift),
   gleiche Rollen wie Theme.swift. Inter springt nur ein, wo kein Apple-Gerät
   liest (Windows, Android). SF Pro darf nicht als Webfont ausgeliefert werden
   (Apple-Lizenz), deshalb der System-Stapel. */

@font-face {
  font-family: "Inter Ersatz";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Fläche */
  --papier: #FBFAF7;
  --blatt: #FFFFFF;
  --vertieft: #F2F0E8;
  --linie: #E2E0D8;
  /* Schrift */
  --tinte: #1C1B18;
  --text-sek: #6E6B62;
  --knopf: #2A2925;
  /* Die eine Marke: Linde */
  --marke: #7FA05A;
  --marke-text: #54703A;
  /* Nur im Aufriss */
  --honig: #E3C13C;
  --holz: #DCD8CC;
  --holz-strich: #8F8A7C;
  /* Ampel, nur semantisch */
  --ok: #2E7D46;
  --warn: #BE7B00;
  --alarm: #C23B22;
  /* Jahresfarben der Königin (genormt) */
  --jf-weiss: #F4F2EA;
  --jf-gelb: #E8C547;
  --jf-rot: #C9412B;
  --jf-gruen: #2E7D46;
  --jf-blau: #2F6DB5;

  --papier-rgb: 251, 250, 247;   /* für Verläufe und durchscheinende Leisten */

  /* Die Nacht: papier im Dunkelmodus, kein Schwarz */
  --nacht: #191813;
  --nacht-blatt: #22211B;
  --nacht-vertieft: #2A2922;
  --nacht-linie: #3A382F;
  --auf-nacht: #F4F2EA;
  --auf-nacht-sek: #A5A197;
  --marke-nacht: #9DBF78;
  --nacht-schattenwort: #36352C;  /* das stille Wort hinter Überschriften, auf Nacht */
  --schattenwort: #E6DCC3;
  --graphit: #55534C;           /* Kapitelwort über Überschriften (Variante C, 02.10.) */        /* dasselbe auf Papier: kräftiges Beige (Maltes Wunsch 02.10.) */

  /* Typografie: die App-Stimme */
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Inter Ersatz", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --laufweite-titel: -0.03em;     /* Theme.titelLaufweite */
  --laufweite-etikett: 0.1em;     /* Theme.etikettLaufweite */

  --fs-riese: clamp(3rem, 9vw, 8.5rem);
  --fs-display: clamp(2.5rem, 6vw, 5.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-gross: 1.25rem;
  --fs-text: 1.125rem;            /* 18 px: Lesebrille, Altersschnitt 54 */
  --fs-klein: 1rem;
  --fs-etikett: 0.8125rem;

  /* Raster (8er) und Formen (DESIGN §6) */
  --r-karte: 16px;
  --r-knopf: 14px;
  --r-chip: 12px;
  --rand: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --elevation: 0 8px 24px rgba(31, 28, 24, .12);
  --federnd: cubic-bezier(.22, 1, .36, 1);
}

/* Dunkelmodus: folgt der Einstellung des Geräts. Steht sie auf „Automatisch",
   wechselt die Seite abends mit dem System. Werte aus DESIGN.md §2 (Dunkel). */
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #191813;
    --papier-rgb: 25, 24, 19;
    --blatt: #22211B;
    --vertieft: #2A2922;
    --linie: #3A382F;
    --tinte: #F4F2EA;
    --text-sek: #A5A197;
    --knopf: #E8E5DB;
    --marke: #9DBF78;
    --marke-text: #9DBF78;
    --honig: #D8B93F;
    --holz: #484538;
    --ok: #58B36C;
    --warn: #E6A828;
    --alarm: #E56A50;
    --schattenwort: #3A3428;
    --graphit: #B9B5AA;
    --elevation: 0 8px 28px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sf);
  font-size: var(--fs-text);
  line-height: 1.55;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: var(--laufweite-titel); line-height: 1.02; }
p { margin: 0; }
.zahl { font-variant-numeric: tabular-nums; }

.etikett {
  font-size: var(--fs-etikett);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--laufweite-etikett);
}

/* Der Arbeitsknopf: Tinte ist die Handlung (DESIGN §6), Radius 14 statt Pille */
.knopf {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 1.4em;
  border-radius: var(--r-knopf);
  font: 600 1.0625rem/1 var(--sf);
  text-decoration: none;
  transition: transform .18s var(--federnd), background-color .18s var(--federnd);
}
.knopf:active { transform: scale(.98); }
.knopf .pfeil { transition: transform .18s var(--federnd); }
.knopf:hover .pfeil { transform: translateX(3px); }
.knopf.voll { background: var(--knopf); color: var(--papier); }
.knopf.voll:hover { background: var(--tinte); }
.knopf.umriss { border: 1.5px solid currentColor; }
.knopf.umriss:hover { background: rgba(244, 242, 234, .1); }
:focus-visible { outline: 3px solid var(--marke); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--papier); padding: 8px 12px; }

/* Ampelpunkt mit Zeichen (Status nie über Farbe allein) */
.ampel {
  display: inline-grid; place-items: center;
  width: 1.05em; height: 1.05em; border-radius: 50%;
  font: 800 .62em/1 var(--sf); vertical-align: -0.12em;
}
.ampel.ok { background: var(--ok); }
.ampel.warn { background: var(--warn); color: #1C1B18; }
.ampel.warn::after { content: "▲"; font-size: .7em; }
.ampel.alarm { background: var(--alarm); color: #fff; }
.ampel.alarm::after { content: "!"; }

/* Telefon-Rahmen gibt es nicht: echte Screenshots, nur gerundet */
.screenshot { border-radius: 28px; background: var(--vertieft); }

/* Aufriss (gezeichnet von basis.js) */
.aufriss-svg { width: 100%; height: auto; overflow: visible; }
.aufriss-svg .holz { fill: var(--holz); stroke: var(--holz-strich); stroke-width: 1.5; }
.aufriss-svg .zarge { fill: var(--blatt); stroke: var(--holz-strich); stroke-width: 1.5; }
.aufriss-svg .honig { fill: var(--honig); }
.aufriss-svg .gitter { stroke: var(--holz-strich); stroke-width: 1; stroke-dasharray: 3 2; }
.aufriss-svg .wabe { stroke: var(--tinte); stroke-width: 2; opacity: .72; }
.aufriss-svg .wabe.leer { stroke-width: 1.2; opacity: .16; }
.aufriss-svg .brett { stroke: var(--holz-strich); stroke-width: 2.5; }
.aufriss-svg .bein { stroke: var(--holz-strich); stroke-width: 2; }
.aufriss-svg .flugloch { fill: var(--tinte); opacity: .7; }
.aufriss-svg .alarm .zarge, .aufriss-svg .alarm .holz { stroke: var(--alarm); stroke-width: 2; }
.aufriss-svg .nummer { font: 700 15px var(--sf); fill: var(--tinte); text-anchor: middle; }
.aufriss-svg .koenigin { stroke: rgba(28, 27, 24, .35); stroke-width: 1; }
.aufriss-svg .honig-fuellung { transform-box: fill-box; transform-origin: center top; }
.aufriss-svg.zeichnen .honig-fuellung { animation: fuellen 1.4s var(--federnd) both; }
@keyframes fuellen { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .aufriss-svg.zeichnen .honig-fuellung { animation: none; } }

/* Beschriftung am Aufriss (technische Zeichnung) */
.aufriss-svg .b-punkt { fill: var(--tinte); }
.aufriss-svg .b-linie { fill: none; stroke: var(--tinte); stroke-width: 1; }
.aufriss-svg .b-text { font: 600 13px var(--sf); fill: var(--tinte); }

/* Bild-Notiz: Punkt auf dem Objekt, Linie zur Karte */
[data-notiz] { position: relative; overflow: hidden; }
[data-notiz] > video, [data-notiz] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.notiz-linie { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.notiz-linie line { stroke: var(--papier); stroke-width: 1.5; }
.notiz-punkt {
  position: absolute; z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--papier);
  box-shadow: 0 0 0 6px rgba(251, 250, 247, .35);
}
.notiz {
  position: absolute; z-index: 3;
  width: min(330px, calc(100% - 32px));
  padding: 18px 20px 14px; border-radius: var(--r-karte);
  background: var(--papier); color: var(--tinte); box-shadow: var(--elevation);
}
.notiz .etikett { color: var(--text-sek); }
.notiz h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 10px; }
.notiz dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.notiz dt, .notiz dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 1rem; }
.notiz dt { color: var(--text-sek); padding-right: 16px; }
.notiz dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.jf { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .35em; vertical-align: .02em; box-shadow: inset 0 0 0 1px rgba(28, 27, 24, .25); }

/* Screens erscheinen neben ihrem Foto (einmal, beim Hineinscrollen) */
.bewegt .erscheint { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--federnd), transform .7s var(--federnd); }
.bewegt .erscheint.sichtbar { opacity: 1; transform: none; }

/* Mehr erfahren: ein leiser Knopf, der bei Bedarf höchstens drei Punkte
   aufklappt. Geschlossen ist er nur eine Zeile, damit der Abschnitt ruhig bleibt. */
.mehr { position: relative; margin-top: 28px; max-width: 32em; }
.mehr summary {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  list-style: none; cursor: pointer; font-weight: 600; color: var(--tinte);
}
.mehr summary::-webkit-details-marker { display: none; }
.mehr summary::before {
  content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--vertieft); font-weight: 500; font-size: 1.25rem; line-height: 1;
  transition: transform .2s var(--federnd), background-color .2s var(--federnd);
}
.mehr summary:hover::before { background: var(--linie); }
.mehr[open] summary::before { transform: rotate(45deg); }
.mehr summary::before { transition: transform .45s var(--federnd), background-color .2s var(--federnd); }
.mehr ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mehr li { padding: 14px 0; border-top: 1px solid var(--linie); }
.mehr li b { display: block; font-weight: 600; margin-bottom: 2px; }
.mehr li p { color: var(--text-sek); font-size: 1rem; }
/* Pro als Kapsel: auf Maltes Wunsch vollrund (wie die Ampel-Pille, DESIGN §16) */
.pro {
  display: inline-block; margin-left: 8px; padding: 2px 9px 3px; vertical-align: 2px;
  border: 1.25px solid var(--marke-text); border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  color: var(--marke-text);
}
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mehr summary::before { transition: none; } }
/* Während das Skript auf- oder zuklappt, schneidet die Box ihren Inhalt ab */
details.klappt { overflow: hidden; }

/* Jahresfarben als Reihe */
.jahresfarben { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.jahresfarben span { display: flex; align-items: center; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jahresfarben i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28, 27, 24, .25); }
.mehr .zeilen { gap: 6px; margin-top: 10px; }
.mehr .zeile { padding: 10px 14px; font-size: 1rem; }

/* Filme sind Bühne, kein Player: iOS blendet einen Abspielknopf ein, wenn
   es Autoplay verweigert (etwa im Stromsparmodus). Dann bleibt das Standbild. */
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
