/* Webdesign Bernhardt – Gestaltungswerte. Gilt für Seite (seite.css) und Quiz (quiz.css). */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --stein: #eceae6;        /* Grundfläche: warmes, helles Steingrau */
  --stein-tief: #e2dfda;   /* abgesetzte Fläche */
  --papier: #faf9f6;       /* helle Ebene, Karten, Eingabefelder */
  --kiefer: #10241f;       /* Text und Handlung: fast schwarzes Kieferngrün */
  --kiefer-hell: #1d3a32;  /* Hover auf Kiefer */
  --moos: #56645e;         /* Nebentext auf hell (AA auf Stein und Papier) */
  --moos-tief: #4a5852;    /* Nebentext über Foto und Schleier (Hero, Quiz): gemessen AA auch über dunklen Bildstellen */
  --nebel: #a9b8b1;        /* Nebentext auf Kiefer */
  --sonne: #ffc061;        /* Licht, warm – nie als Textfarbe auf hell */
  --glut: #ff8558;         /* Licht, Sonnenaufgang – nie als Textfarbe auf hell */
  --fehler: #a2211a;       /* etwas dunkler als zuvor (#b3261e): AA auch direkt auf dem Quiz-Grund */
  --linie: rgba(16, 36, 31, 0.13);
  --linie-hell: rgba(250, 249, 246, 0.16);

  --anzeige: "Bricolage", "Avenir Next", "Segoe UI", sans-serif; /* Überschriften: Gewicht 620–660, Laufweite -0.04em */
  --text: "Hanken", "Avenir Next", "Segoe UI", sans-serif;       /* Fließtext 17px/1.55 */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-s: 14px; --radius-m: 22px; --radius-l: 32px; --radius-pille: 999px;
  --schatten-weich: 0 1px 2px rgba(16, 36, 31, 0.07), 0 14px 32px -14px rgba(16, 36, 31, 0.28);
  --schatten-tief: 0 2px 4px rgba(16, 36, 31, 0.1), 0 44px 80px -30px rgba(16, 36, 31, 0.55);
  --glas: rgba(250, 249, 246, 0.62);             /* mit backdrop-filter: blur(16px) saturate(1.4) */
  --glas-rand: rgba(255, 255, 255, 0.72);
  --licht: linear-gradient(90deg, var(--sonne), var(--glut)); /* Markierung, Fortschritt, Lichtstreifen */
  --rand: clamp(20px, 5vw, 56px);
}

/* Fotos stecken in <picture> (AVIF mit JPG als Rückfall). Das Element selbst bleibt ohne Kasten,
   damit alle Regeln für das <img> darin unverändert gelten. */
picture { display: contents; }

/* ---------- Wortmarke „bernhardt" mit Textcursor ----------
   <span class="wm"><span class="wm-wort">bernhardt<span class="wm-cursor"></span></span><span class="wm-zusatz">Webdesign</span></span>
   Größe über font-size am Elternelement. Der Cursor blinkt beim Laden viermal (unter 5 Sekunden, WCAG 2.2.2)
   und danach erneut, wenn man mit der Maus auf die Marke geht. Auf dunklem Grund: Klasse .wm-dunkel. */
.wm { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: inherit; --wm-cursor: #ffb43c; }
.wm-dunkel { --wm-cursor: var(--sonne); }
.wm-wort { font-family: var(--anzeige); font-weight: 720; font-size: 1em; letter-spacing: -0.045em; line-height: 0.9; white-space: nowrap; }
.wm-cursor { display: inline-block; width: max(2.5px, 0.105em); height: 0.86em; margin-left: 0.1em; vertical-align: -0.08em; border-radius: 2px; background: var(--wm-cursor); animation: wm-blinken 1.1s steps(1) 4; }
.wm-zusatz { margin-top: max(4px, 0.16em); padding-left: 0.06em; font-family: var(--text); font-weight: 600; font-size: max(9.5px, 0.24em); letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
a:hover > .wm .wm-cursor, a:focus-visible > .wm .wm-cursor { animation: wm-blinken-hover 1.1s steps(1) 2; }
@keyframes wm-blinken { 50% { opacity: 0; } }
@keyframes wm-blinken-hover { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wm-cursor { animation: none !important; } }
