/* nj-hoffmann.de · gemeinsame Grundlage aller Seiten: Schriften, Farben, Sprunglink, Handy-Menü (L-052).
   Startseite lädt danach css/start.css, alle übrigen Seiten css/unterseiten.css.
   Farbrollen nach PLAN.md Abschnitt 4 (Grund 70 %, Graphit 20 %, Petrol 8 %).

   SEITENGRUND: eine Variable, --grund. Vorläufig Hellgrau (Entscheidung Grau oder Sand offen bei Noah).
   Die Stufen darunter sind aus --grund abgeleitet und müssen zu den Bildern passen: Die Posen und Bildfolgen haben
   ihren Studiogrund auf genau diesen Ton angeglichen (entwuerfe/01-drehbuehne/werkzeug/platzhalter.py und clips.py).
   Wechsel auf Sand: --grund auf #e9e5de, Werkzeuge im Entwurf laufen lassen, die neu geschriebenen Stufen und die neuen
   Bilder hierher übernehmen (STAND.md, Abschnitt „Seitengrund“). */

/* Überschriften: Prata (OFL 1.1, Fontsource; fonts/LICENSE-prata.txt), Noah 18.10.: „eine elegante Schriftart, die aktuelle
   gefällt mir nicht“, aus vier Kandidaten gewählt. Nur ein Schnitt (400); der Bereich 400 bis 700 verhindert, dass der
   Browser für font-weight 700 eine künstlich fette Fassung rechnet. */
@font-face { font-family: "Prata"; font-weight: 400 700; font-display: swap; src: url("/fonts/prata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("/fonts/lato-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("/fonts/lato-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --grund: #d1d3da;
  /* abgeleitet von --grund (platzhalter.py), nur zusammen mit den Bildern ändern */
  --grund-dunkel: #bcbec4; --grund-hell: #eaebee; --boden: #e2e4e8; --kante: #c7c8cf; --mitte: #d5d6dc;
  --boden-dunkel: #cccdd1; --kante-dunkel: #b3b4ba; --mitte-dunkel: #bfc1c6;
  /* Lage der Bodenkante im Bildrahmen, dieselben Werte wie STOPPS im Werkzeug */
  --hz-wand: 48%; --hz-kante: 74.4%; --hz-mitte: 84%; --hz-boden: 93%;

  --graphit: #23211e; --graphit-hell: #2e2b27;
  --leise: #42444b; --leise-dunkel: #a2a5ad;
  --petrol: #0f5f6b; --petrol-hover: #137482; --petrol-hell: #7cc4cc;
  --petrol-text: #0a4a54;   /* Petrol für Schrift, auch auf der dunklen Stufe mindestens 4,5 : 1 */
  --kopf-schrift: "Prata", Georgia, serif;
  --text-schrift: "Lato", system-ui, sans-serif;
  --kurve: cubic-bezier(.19, 1, .22, 1);
  --sanft: cubic-bezier(.33, 1, .68, 1);
  --vh: 1vh;
}
@supports (height: 1svh) { :root { --vh: 1svh; } }

/* Handy-Menü nach L-052: runder Knopf, Seitenpanel mit Kurvenkante, große Links, Kontaktblock (js/menue.js) */
.menue-knopf { display: none; }
.menue[hidden] { display: none; }
.menue { position: fixed; inset: 0; z-index: 40; }
.menue-flaeche { position: absolute; inset: 0; background: rgb(35 33 30 / .45); opacity: 0; transition: opacity .5s var(--kurve); }
.menue-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 460px); background: var(--graphit); color: var(--grund);
  padding: 96px 36px 36px; display: flex; flex-direction: column; gap: 36px; overflow-y: auto; transform: translateX(105%); transition: transform .8s var(--kurve); }
.menue-kante { position: absolute; top: 0; bottom: 0; left: -79px; width: 80px; height: 100%; fill: var(--graphit); pointer-events: none; }
.menue-kante path { d: path("M80 0 L80 800 Q-40 400 80 0 Z"); transition: d .8s var(--kurve); }
.menue.offen-zustand .menue-kante path { d: path("M80 0 L80 800 Q80 400 80 0 Z"); }
.menue.offen-zustand .menue-flaeche { opacity: 1; }
.menue.offen-zustand .menue-panel { transform: none; }
.menue-links { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.menue-links a { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--grund-hell); font: 700 clamp(34px, 9vw, 44px)/1.05 var(--kopf-schrift); text-decoration: none;
  opacity: 0; transform: translateX(40px); transition: opacity .5s var(--kurve), transform .7s var(--kurve); transition-delay: calc(.15s + var(--i, 0) * .06s); }
.menue-links a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--petrol-hell); opacity: .35; }
.menue-links a[aria-current]::before { opacity: 1; }
.menue.offen-zustand .menue-links a { opacity: 1; transform: none; }
.menue-links a:focus-visible, .menue-kontakt a:focus-visible { outline-color: var(--petrol-hell); }
.menue-kontakt { border-top: 1px solid var(--graphit-hell); padding-top: 24px; display: grid; gap: 6px; font-size: 17px; }
.menue-titel { margin: 0 0 6px; font: 700 22px/1 var(--kopf-schrift); color: var(--petrol-hell); }
.menue-kontakt a { color: var(--grund-hell); min-height: 32px; display: inline-flex; align-items: center; }
.menue-recht { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; color: var(--leise-dunkel); }
.menue-recht a { min-height: 32px; color: var(--leise-dunkel); }
.menue-recht span a { display: inline; min-height: 0; }

@media (max-width: 1023px) {
  .menue-knopf { display: grid; place-content: center; gap: 7px; position: absolute; right: 12px; top: 1px; width: 62px; height: 62px; border: 0; border-radius: 50%; z-index: 50;
    background: var(--graphit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--grund-hell) 70%, transparent); cursor: pointer; }
  .menue-knopf span { display: block; width: 24px; height: 2px; background: var(--grund-hell); transition: transform .35s var(--kurve); }
  .menue-knopf[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menue-knopf:focus-visible { outline: 2px solid var(--petrol-hell); outline-offset: 3px; }
  /* Offenes Menü: der Knopf (jetzt ein Kreuz) bleibt über dem Panel sichtbar und bedienbar, die übrige Leiste tritt zurück */
  .kopf:has(.menue-knopf[aria-expanded="true"]) { z-index: 45; transform: none; visibility: visible; }
  .kopf:has(.menue-knopf[aria-expanded="true"])::before { opacity: 0; }
  .kopf:has(.menue-knopf[aria-expanded="true"]) > :not(.menue-knopf) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .menue-flaeche, .menue-panel, .menue-kante path, .menue-links a, .menue-knopf span { transition: none; }
}
html.ruhig .menue-flaeche, html.ruhig .menue-panel, html.ruhig .menue-kante path, html.ruhig .menue-links a, html.ruhig .menue-knopf span { transition: none; }

/* Intros in den Vorschaukästen (js/intro-kaesten.js): Video über dem Bild, blendet ein, sobald es läuft */
.intro-rahmen { position: relative; display: block; }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.intro-rahmen.laeuft .intro-video { opacity: 1; }
.fenster-bild > .intro-rahmen { width: 100%; height: 100%; }
/* Anhalten der Videos, rechts in der Fensterleiste (WCAG 2.2.2) */
.mit-intro-knopf { position: relative; }
.mit-intro-knopf .fenster-leiste { padding-right: 44px; }
.intro-knopf { position: absolute; top: 6px; right: 8px; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(234 235 238 / .16); color: var(--grund-hell); cursor: pointer; }
.intro-knopf::before { content: ""; width: 8px; height: 10px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.intro-knopf.steht::before { width: 0; height: 0; border-inline: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) { .intro-knopf:hover { background: rgb(234 235 238 / .3); } }
.intro-knopf:focus-visible { outline: 3px solid var(--petrol-hell); outline-offset: 2px; }
html.arbeiten-blaettern .arbeiten .intro-knopf { display: none; }   /* Startseite: der Knopf unter dem Fenster hält alles an */
.ki-kasten { margin: 10px 0 0; font-size: 13px; color: var(--leise); text-align: right; }
