/* kern.css · gemeinsame Teile von index.html und signatur.html: Schriften, Farben, Größen, Bühne, Sektoren, Leinwand-Pizza, Roller, Sortenname.
 * Keine Verläufe, kein Glas, keine Mischmodi, kein filter, kein backdrop-filter (Intel-Grafik). Flächen wechseln hart. */

@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-wght-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: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --rot: #D2321E; --gruen: #7FA650; --glut: #E8641B; --gelb: #F0A81C; --weiss: #FFF4E0; --braun: #23120C;
  --grund: var(--weiss); --text: var(--braun); --text-2: #4a2f22; --text-3: #6b4a3a; --linie: #e6d6bd; --linie-feld: #7a6a5a;
  --akzent: var(--rot); --auf-akzent: var(--weiss); --fehler: #a8200f;
  --schrift-display: "Bricolage", system-ui, "Segoe UI", sans-serif;
  --schrift-text: "Bricolage", system-ui, "Segoe UI", sans-serif;
  --schrift-mono: "Courier Prime", ui-monospace, Consolas, monospace;
  /* Schrift-Ordnung (BAUPLAN 3); --g-name ist die Größe des Sortennamens neben der Pizza (Name muss links neben die Pizza passen) */
  --g-wort: min(20.8vw, 36svh);   /* nach Messung: ACH und TEL füllen 74 % der Breite, dazwischen steht der Bäcker (BAUPLAN nannte 25,5vw für das Wort ohne Lücke) */
  --g-zeile: clamp(2.25rem, min(5.4vw, 9.5svh), 5.6rem);
  --g-name: clamp(1.9rem, min(3.8vw, 6.4svh), 3.9rem);
  --g-ueber: clamp(1.625rem, 2.6vw, 2.75rem);
  --g-text: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --g-klein: 0.875rem;
  --a1: 8px; --a2: 16px; --a3: 24px; --a4: 40px; --a5: 64px; --a6: 104px; --a7: 168px;
  --rand: clamp(20px, 3.9vw, 56px);
  --kopf-hoehe: 72px;
  --aus: cubic-bezier(0.16, 1, 0.3, 1);
}
html { background: var(--braun); }
body { font-family: var(--schrift-text); font-weight: 480; font-size: var(--g-text); background: var(--grund); color: var(--text); }
h1, h2, h3 { font-family: var(--schrift-display); font-weight: 780; }

/* ---------- Bühne: angeheftet, 100svh. Pizza-Mitte (--cx, --cy) und Durchmesser (--D) gelten für Leinwand, Sektoren, Roller */
.buehne { position: sticky; top: 0; height: 100svh; overflow: clip; background: var(--rot); --D: min(74svh, 44vw); --cx: 50%; --cy: 50%; }
@media (max-width: 760px) and (max-aspect-ratio: 1/1) { .buehne { --D: min(86vw, 46svh); --cy: 56%; } }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) { .buehne { --D: min(74svh, 44vw); --cx: 66%; } }

.sektoren { position: absolute; inset: 0; opacity: var(--so, 1); }
.sek { position: absolute; inset: 0; background: var(--rot); }
.sek.s0 { background: var(--rot); } .sek.s1 { background: var(--gruen); } .sek.s2 { background: var(--glut); } .sek.s3 { background: var(--gelb); }
.sek0 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * 0.0000) calc(var(--cy) + 220vmax * -1.0000), calc(var(--cx) + 220vmax * 0.7108) calc(var(--cy) + 220vmax * -0.7034)); }
.sek1 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * 0.7071) calc(var(--cy) + 220vmax * -0.7071), calc(var(--cx) + 220vmax * 1.0000) calc(var(--cy) + 220vmax * 0.0052)); }
.sek2 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * 1.0000) calc(var(--cy) + 220vmax * 0.0000), calc(var(--cx) + 220vmax * 0.7034) calc(var(--cy) + 220vmax * 0.7108)); }
.sek3 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * 0.7071) calc(var(--cy) + 220vmax * 0.7071), calc(var(--cx) + 220vmax * -0.0052) calc(var(--cy) + 220vmax * 1.0000)); }
.sek4 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * 0.0000) calc(var(--cy) + 220vmax * 1.0000), calc(var(--cx) + 220vmax * -0.7108) calc(var(--cy) + 220vmax * 0.7034)); }
.sek5 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * -0.7071) calc(var(--cy) + 220vmax * 0.7071), calc(var(--cx) + 220vmax * -1.0000) calc(var(--cy) + 220vmax * -0.0052)); }
.sek6 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * -1.0000) calc(var(--cy) + 220vmax * 0.0000), calc(var(--cx) + 220vmax * -0.7034) calc(var(--cy) + 220vmax * -0.7108)); }
.sek7 { clip-path: polygon(var(--cx) var(--cy), calc(var(--cx) + 220vmax * -0.7071) calc(var(--cy) + 220vmax * -0.7071), calc(var(--cx) + 220vmax * 0.0052) calc(var(--cy) + 220vmax * -1.0000)); }

.pizza-ziel { position: absolute; left: var(--cx); top: var(--cy); width: var(--D); height: var(--D); transform: translate(-50%, -50%); pointer-events: none; visibility: hidden; }
.leinwand { position: absolute; left: var(--lx0, calc(var(--cx) - var(--D) * 1.15)); top: var(--ly0, calc(var(--cy) - var(--D) * 1.15)); width: var(--lw, calc(var(--D) * 2.3)); height: var(--lh, calc(var(--D) * 2.3)); transform-origin: var(--ox, 50%) var(--oy, 50%); transform: translate(var(--pdx, 0px), var(--pdy, 0px)) scale(var(--psx, 1), var(--psy, 1)); opacity: var(--po, 1); pointer-events: none; }
.roller { position: absolute; left: var(--cx); top: var(--cy); width: calc(var(--D) * 1.1); max-width: none; transform: translate(calc(-67.7% + var(--rx, -9999px)), -51.3%); visibility: hidden; pointer-events: none; }
.roller.an { visibility: visible; }
/* Roller: Griff und Achse stehen ruhig (.ra), die runde Klinge (.rd, kreisrund beschnitten) dreht sich mit dem Weg (--dr in Grad) */
.roller img, .s-roller img { display: block; width: 100%; height: auto; max-width: none; }
.roller .rd, .roller .ra, .s-roller .rd, .s-roller .ra { position: absolute; left: 0; top: 0; }
.rd { clip-path: circle(15.4% at 67.4% 51.2%); transform-origin: 67.4% 51.2%; transform: rotate(calc(var(--dr, 0) * 1deg)); }
.ra { clip-path: inset(44.5% 28% 42.5% 48.6%); }

/* Sortenname: kleine Zeile und großer Name, jede Zeile in einer Maske; --e: 0 = steht, -1 = nach oben weg, 1 = unten wartend */
.sname { --e: 1; --ea: 1; position: absolute; left: 0; top: 0; width: 100%; color: var(--braun); opacity: calc(1 - var(--ea)); }
.sname.hell { color: var(--weiss); }
.sname .sk { margin: 0 0 var(--a1); font-family: var(--schrift-mono); font-weight: 400; font-size: var(--g-klein); letter-spacing: 0.04em; }
.sname .zl { display: block; }   /* keine Maske mehr: der ganze Block blendet einmal aus und ein, keine halben Buchstaben */
.sname .sn { margin: 0; font-size: var(--g-name); line-height: 1; letter-spacing: -0.03em; }
.sname .st { margin: var(--a2) 0 0; max-width: 24rem; }
.sname .sp { margin: var(--a2) 0 0; font-family: var(--schrift-mono); font-size: var(--g-klein); }
.sname .sp b { font-weight: 700; }
.sname.aus { visibility: hidden; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
