/* Asia-Mittwoch – Look-and-feel angelehnt an assaabloy.com (Theme 2026), ohne Logo. */

:root {
  --navy: #0b1d47;
  --navy-hell: #2e3f66;
  --cyan: #09c3f1;
  --cyan-hell: #b9e1ef;
  --eis: #daf0f7;
  --eis-hell: #f2fafc;
  --sand: #f7f6f5;
  --weiss: #fff;
  --text: #0b1d47;
  --text-2: #474c57;
  --rand: #c0c8da;
  --rand-weich: #d8d8d8;
  --fehler: #b3261e;
  --fehler-hell: #fbe9e7;
  --gut: #0d6b5f;
  --gut-hell: #e3f4f1;
  --warn: #8a5a00;
  --warn-hell: #fff4dc;
  --radius: .25rem;
  --radius-gross: .5rem;
  --schatten: 0 1px 2px rgba(11, 29, 71, .06), 0 8px 24px rgba(11, 29, 71, .08);
  --schrift: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--weiss); color: var(--text); font-family: var(--schrift);
  font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.inhalt { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Kopfzeile */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--rand-weich); position: sticky; top: 0; z-index: 20; }
.kopf .inhalt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.marke-zeichen { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--cyan); display: grid; place-items: center; font-size: 1rem; }
.navi { display: flex; gap: 4px; align-items: center; }
.navi a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; color: var(--text-2); }
.navi a:hover, .navi a[aria-current="page"] { color: var(--navy); background: var(--eis-hell); }
.ich-knopf { border: 1px solid var(--rand); background: var(--weiss); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 500; white-space: nowrap; }
@media (max-width: 560px) {
  .navi a.optional { display: none; }
  .marke { font-size: 1rem; gap: 8px; }
  .ich-knopf { padding: 6px 10px; font-size: .9375rem; }
  .wok-buehne { max-width: 260px; }
}
@media (max-width: 380px) { .marke-text { display: none; } }

/* Typografie */
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.75rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 2vw + .75rem, 2.25rem); font-weight: 500; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.vorzeile { text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; font-weight: 600; color: var(--cyan); margin: 0 0 12px; }
.leise { color: var(--text-2); }
.klein { font-size: .875rem; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius); border: 2px solid var(--cyan); background: var(--cyan); color: var(--navy);
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.knopf:hover { background: var(--cyan-hell); border-color: var(--cyan-hell); }
.knopf:active { transform: translateY(1px); }
.knopf.zweit { background: transparent; color: inherit; border-color: currentColor; }
.knopf.zweit:hover { background: rgba(9, 195, 241, .12); }
.knopf.klein { min-height: 36px; padding: 0 14px; font-size: .9375rem; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.gefahr { background: var(--weiss); color: var(--fehler); border-color: var(--fehler); }

/* Abschnitte */
.abschnitt { padding: clamp(40px, 6vw, 80px) 0; }
.abschnitt.sand { background: var(--sand); }
.abschnitt.eis { background: var(--eis-hell); }
.karte { background: var(--weiss); border-radius: var(--radius-gross); box-shadow: var(--schatten); padding: 24px; }
.raster { display: grid; gap: 16px; }
@media (min-width: 760px) { .raster.zwei { grid-template-columns: 1fr 1fr; } .raster.drei { grid-template-columns: repeat(3, 1fr); } }

/* Hero */
.hero { background: var(--navy); color: #f2fafc; position: relative; overflow: hidden; }
.hero .inhalt { display: grid; gap: 32px; align-items: center; padding: clamp(40px, 7vw, 96px) 0; }
@media (min-width: 860px) { .hero .inhalt { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .leise { color: var(--eis); }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.countdown { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.countdown .einheit { background: rgba(255, 255, 255, .06); border: 1px solid rgba(9, 195, 241, .35); border-radius: var(--radius-gross); min-width: 76px; padding: 10px 12px; text-align: center; }
.countdown .zahl { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; color: #fff; }
.countdown .name { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan-hell); margin-top: 6px; }
.status-pille { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .875rem; background: rgba(9, 195, 241, .15); color: var(--cyan); }
.status-pille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pille.offen::before { animation: puls 1.6s ease-in-out infinite; }
.status-pille.zu { background: rgba(255, 255, 255, .1); color: var(--eis); }
@keyframes puls { 50% { opacity: .25; transform: scale(.7); } }

/* Wok-Animation */
.wok-buehne { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.wok-buehne svg { width: 100%; height: 100%; overflow: visible; }
.dampf path { fill: none; stroke: var(--cyan-hell); stroke-width: 6; stroke-linecap: round; opacity: 0; animation: dampf 3.6s ease-in-out infinite; }
.dampf path:nth-child(2) { animation-delay: 1.2s; }
.dampf path:nth-child(3) { animation-delay: 2.4s; }
@keyframes dampf { 0% { opacity: 0; transform: translateY(20px); } 30% { opacity: .7; } 100% { opacity: 0; transform: translateY(-60px); } }
.wok-schwung { transform-origin: 210px 260px; animation: schwenk 3s ease-in-out infinite; }
@keyframes schwenk { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.zutat { animation: hupf 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.zutat:nth-of-type(2) { animation-delay: .25s; } .zutat:nth-of-type(3) { animation-delay: .5s; } .zutat:nth-of-type(4) { animation-delay: .75s; }
@keyframes hupf { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-70px) rotate(160deg); } }
.staebchen { transform-origin: 330px 120px; animation: picken 3s ease-in-out infinite; }
@keyframes picken { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-8deg) translate(-6px, 10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Live-Tafel */
.tafel { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.tafel-karte { background: var(--weiss); border-radius: var(--radius-gross); padding: 16px; border-left: 4px solid var(--cyan); box-shadow: var(--schatten); animation: rein .5s ease-out both; }
.tafel-karte .wer { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.tafel-karte ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9375rem; color: var(--text-2); }
.tafel-karte li + li { margin-top: 4px; }
.tafel-karte .nr { display: inline-block; min-width: 2.6em; font-weight: 600; color: var(--navy); }
.tafel-leer { padding: 32px; text-align: center; border: 2px dashed var(--rand); border-radius: var(--radius-gross); color: var(--text-2); }
@keyframes rein { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Beliebt */
.balken { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); } /* Zeilen nie breiter als die Liste */
.balken-zeile .beschriftung { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; margin-bottom: 6px; }
.balken-spur { height: 12px; background: var(--eis); border-radius: 999px; overflow: hidden; }
.balken-fuellung { height: 100%; background: var(--navy); border-radius: 999px; width: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.balken-zeile:first-child .balken-fuellung { background: var(--cyan); }

.kennzahl { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.kennzahl-name { color: var(--text-2); margin-top: 8px; }

/* Hinweise */
.meldung { border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-weight: 500; }
.meldung.fehler { background: var(--fehler-hell); color: var(--fehler); }
.meldung.gut { background: var(--gut-hell); color: var(--gut); }
.meldung.info { background: var(--eis); color: var(--navy); }
.meldung.warn { background: var(--warn-hell); color: var(--warn); }

/* Formulare */
.feld { display: grid; gap: 6px; margin-bottom: 16px; }
.feld label { font-weight: 600; font-size: .9375rem; }
.eingabe { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--weiss); }
.eingabe:focus { border-color: var(--cyan); outline: 2px solid rgba(9, 195, 241, .35); outline-offset: 0; }

/* Dialog */
dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog { border: 0; border-radius: var(--radius-gross); padding: 0; width: min(520px, 100% - 32px); max-height: min(86vh, 760px); box-shadow: 0 24px 64px rgba(11, 29, 71, .35); color: var(--text); }
dialog::backdrop { background: rgba(11, 29, 71, .55); }
.dialog-kopf { padding: 20px 24px 8px; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-inhalt { padding: 8px 24px 24px; overflow: auto; flex: 1; min-height: 0; }
.dialog-fuss { position: sticky; bottom: -24px; margin: 16px -24px -24px; padding: 12px 24px 16px; background: var(--weiss); box-shadow: 0 -8px 16px rgba(255, 255, 255, .9); }
.schliessen { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; color: var(--text-2); }

.namen { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.namen button { min-height: 48px; border: 1px solid var(--rand); background: var(--weiss); border-radius: var(--radius); cursor: pointer; font-weight: 500; padding: 8px; }
.namen button:hover { border-color: var(--cyan); background: var(--eis-hell); }

.fuss { background: var(--navy); color: var(--eis); padding: 32px 0; font-size: .875rem; }
.fuss a { color: var(--cyan); }
.fuss .inhalt { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.versteckt { display: none !important; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.version { font-size: .75rem; opacity: .6; font-variant-numeric: tabular-nums; }
.kopf .version { color: var(--text-2); margin-left: 8px; }

/* Kompakter Team-Code-Dialog; die Position (unter dem Kopftext) setzt gemeinsam.js. */
dialog.klein-dialog { width: min(420px, 100% - 32px); }
dialog.klein-dialog::backdrop { background: rgba(11, 29, 71, .3); }

/* Mailfeld: nur der Teil vor dem @, die Firmendomain steht fest dahinter. */
.mail-feld { display: inline-flex; align-items: stretch; }
.mail-feld .eingabe { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mail-domain { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--rand); border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--sand); color: var(--text-2); font-size: .9375rem; white-space: nowrap; }
