/* Personalportal Bingium – Gestaltung nach DESIGN.md („Die gedeckte Tafel“) */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --navy: #1F2247; --navy-deep: #14162E; --navy-soft: #2B2F5C;
  --gold: #C99718; --gold-text: #8A6608; --gold-hauch: #FFFCF3;
  --weiss: #fff; --grund: #ECEEF4; --leinen: #E3E6EF; --linie: #DADDE8; --linie-fein: #E4E6EE;
  --tinte: #404040; --tinte-stark: #24263A; --tinte-leise: #5E6070;
  --auf-navy: #F4F4F8; --auf-navy-leise: #C5C8DA;
  --ok: #2F6B45; --ok-grund: #E7F1EA; --err: #A3262A; --err-grund: #F8E9E9; --warn: #8A5A00; --warn-grund: #FBF1DC;
  --kurve: cubic-bezier(.16, 1, .3, 1);
  --schatten-karte: 0 1px 0 var(--linie-fein), 0 22px 44px -26px rgba(20, 22, 46, .42);
  --rand: clamp(16px, 3.4vw, 40px);
  --nav-h: 66px;
  font-family: "Hanken Grotesk", system-ui, sans-serif; font-feature-settings: "lnum";
  color: var(--tinte); font-size: 16px; line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background-color: var(--grund);
  background-image: repeating-linear-gradient(45deg, rgba(31, 34, 71, .022) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px 6px); }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
h2 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); letter-spacing: .02em; }
h3 { font-size: 1.02rem; letter-spacing: .03em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.leise { color: var(--tinte-leise); }
.klein { font-size: .875rem; }
.tab-zahl { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.laeufer :focus-visible, .nav :focus-visible { outline-color: var(--gold); }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: .6em 1.25em; border: 1.5px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: #fff; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: background .2s, box-shadow .25s, transform .25s var(--kurve), color .2s; }
.knopf:hover { background: var(--navy-deep); box-shadow: 0 10px 22px -12px rgba(20, 22, 46, .7); transform: translateY(-1px); }
.knopf:active { transform: translateY(0); }
.knopf--geist { background: transparent; color: var(--navy); }
.knopf--geist:hover { background: var(--navy); color: #fff; }
.knopf--hell { background: #fff; color: var(--navy); border-color: #fff; }
.knopf--hell:hover { background: var(--leinen); }
.knopf--warn { background: transparent; color: var(--err); border-color: var(--err); }
.knopf--warn:hover { background: var(--err); color: #fff; }
.knopf--klein { min-height: 40px; padding: .35em .9em; font-size: .9rem; }
.knopf--voll { width: 100%; }
.knopf[disabled] { opacity: .45; pointer-events: none; }
.text-knopf { background: none; border: 0; padding: 6px 2px; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reihe--zw { justify-content: space-between; }
.reihe--ende { justify-content: flex-end; }
.stapel { display: grid; gap: 14px; }
.stapel--eng { gap: 8px; }

/* ---------- Karten ---------- */
.karte { background: var(--weiss); border-top: 5px double var(--navy); border-radius: 2px; box-shadow: var(--schatten-karte); padding: clamp(18px, 2.4vw, 30px); }
.karte--flach { border-top: 0; box-shadow: 0 1px 0 var(--linie-fein), 0 14px 30px -24px rgba(20, 22, 46, .4); }
.karte > h2 { margin-bottom: 14px; }
.karte__kopf { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.raster { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .raster--2 { grid-template-columns: 1.15fr 1fr; align-items: start; } .raster--2b { grid-template-columns: 1fr 1.25fr; align-items: start; } }

.nw { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (min-width: 1180px) { .raster--regeln { grid-template-columns: 1.2fr 1fr; align-items: start; } }

/* ---------- Marken und Chips ---------- */
.marke { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; background: var(--leinen); color: var(--tinte-stark); white-space: nowrap; }
.marke--ok { background: var(--ok-grund); color: var(--ok); }
.marke--warn { background: var(--warn-grund); color: var(--warn); }
.marke--err { background: var(--err-grund); color: var(--err); }
.marke--navy { background: var(--navy); color: #fff; }
.marke--rand { background: #fff; box-shadow: inset 0 0 0 1.5px var(--linie); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; margin: 0 calc(var(--rand) * -1); padding-inline: var(--rand); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linie); background: #fff; font-weight: 600; font-size: .92rem; color: var(--tinte-stark); transition: border-color .2s, background .2s, box-shadow .2s; }
.chip:hover { border-color: var(--navy); }
.chip.ist-an { border-color: var(--gold); background: var(--gold-hauch); box-shadow: 0 6px 14px -10px rgba(201, 151, 24, .9); }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--navy)); flex: none; }

/* ---------- Formulare ---------- */
.feld { display: grid; gap: 5px; font-weight: 700; font-size: .9rem; color: var(--tinte-stark); letter-spacing: .02em; }
.feld > span small { font-weight: 400; color: var(--tinte-leise); letter-spacing: 0; }
.feld input, .feld select, .feld textarea, .eingabe { width: 100%; min-height: 48px; padding: 9px 12px; background: #fff; border: 1.5px solid #C9CCD8; border-radius: 2px; font-weight: 400; font-size: 1rem; letter-spacing: 0; }
.feld textarea { min-height: 96px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus, .eingabe:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 34, 71, .15); }
.paar { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.paar > *, .raster > *, .stapel > * { min-width: 0; }
.paar--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .paar--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fehler { color: var(--err); font-weight: 700; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; }
.wahl span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linie); background: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; }
.wahl input:checked + span { border-color: var(--gold); background: var(--gold-hauch); }
.wahl input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.schalter { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.schalter input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: none; }

/* ---------- Anmeldung ---------- */
.login { min-height: 100dvh; display: grid; place-items: end center; padding: 30vh var(--rand) var(--rand); position: relative; background: var(--navy-deep); overflow: hidden; }
.login__szene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login__karte { position: relative; width: min(420px, 100%); display: grid; gap: 14px; }
.login__zeichen { display: block; }
@media (min-width: 860px) { .login { place-items: center end; padding: var(--rand) clamp(40px, 9vw, 150px) var(--rand) var(--rand); } }
.login form { display: grid; gap: 14px; margin-top: 4px; }
.demo { border-top: 1px dotted #B9BDCC; padding-top: 14px; display: grid; gap: 10px; }
.demo__titel { font-weight: 700; font-size: .9rem; color: var(--tinte-stark); }
.demo__reihe { display: grid; gap: 8px; }

/* ---------- Gerüst ---------- */
.app { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.buehne { min-width: 0; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--rand) 4px; max-width: 1240px; margin: 0 auto; }
.kopf__marke { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kopf__marke img { width: 26px; height: 28px; }
.kopf__titel { font-family: "Cinzel", Georgia, serif; font-weight: 600; color: var(--navy); letter-spacing: .04em; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.betrieb-wahl { min-height: 42px; padding: 0 34px 0 14px; border-radius: 999px; border: 1.5px solid var(--linie); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F2247' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 13px center; appearance: none; font-weight: 600; font-size: .92rem; max-width: 56vw; }
.inhalt { max-width: 1240px; margin: 0 auto; padding: 14px var(--rand) 0; display: grid; gap: clamp(16px, 2vw, 24px); outline: 0; }
.seitenkopf { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; }
.seitenkopf p { max-width: 62ch; }

.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy); display: flex; justify-content: space-around; box-shadow: 0 -14px 30px -20px rgba(20, 22, 46, .7);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px); }
.nav__marke, .nav__fuss { display: none; }
.nav__punkt { flex: 1; max-width: 120px; background: none; border: 0; color: var(--auf-navy-leise); display: grid; justify-items: center; align-content: center; gap: 3px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; position: relative; padding: 0 2px; }
.nav__punkt svg { width: 24px; height: 24px; }
.nav__punkt.ist-aktiv { color: #fff; }
.nav__punkt.ist-aktiv::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--gold); border-radius: 0 0 2px 2px; }
.nav__punkt i { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--navy-deep); font-style: normal; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.nav__punkt--mehr-nur { display: none; }
@media (max-width: 999px) { .nav__punkt--rest { display: none; } .nav__punkt--mehr-nur { display: grid; } }
@media (min-width: 1000px) {
  .app { grid-template-columns: 232px 1fr; }
  .buehne { padding-bottom: 60px; }
  .kopf__marke { visibility: hidden; }
  .nav { position: sticky; top: 0; height: 100dvh; flex-direction: column; justify-content: flex-start; padding: 22px 14px; gap: 4px; box-shadow: none; }
  .nav__marke { display: flex; align-items: center; gap: 10px; color: #fff; font-family: "Cinzel", Georgia, serif; font-weight: 600; letter-spacing: .05em; padding: 0 10px 18px; margin-bottom: 8px; border-bottom: 1px dashed rgba(255, 255, 255, .22); }
  .nav__marke img { width: 26px; height: 28px; filter: brightness(0) invert(1); }
  .nav__punkt { flex: none; max-width: none; grid-template-columns: 24px 1fr; justify-items: start; gap: 12px; padding: 0 12px; min-height: 46px; font-size: .95rem; border-radius: 2px; text-align: left; }
  .nav__punkt:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .nav__punkt.ist-aktiv { background: rgba(255, 255, 255, .1); }
  .nav__punkt.ist-aktiv::before { top: 10px; bottom: 10px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 2px 2px 0; }
  .nav__punkt i { position: static; justify-self: end; grid-column: 3; }
  .nav__punkt { grid-template-columns: 24px 1fr auto; }
  .nav__fuss { display: block; margin-top: auto; padding: 14px 12px 0; color: var(--auf-navy-leise); font-size: .85rem; border-top: 1px dashed rgba(255, 255, 255, .22); }
  .nav__fuss b { display: block; color: #fff; font-weight: 600; }
}

/* ---------- Läufer mit Rhein-Szene ---------- */
.laeufer { position: relative; background: var(--navy); color: var(--auf-navy); border-radius: 2px; overflow: hidden; min-height: clamp(210px, 30vw, 280px); display: grid; align-items: end;
  box-shadow: 0 30px 50px -30px rgba(20, 22, 46, .6); }
.laeufer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.laeufer::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(255, 255, 255, .2); border-left: 0; border-right: 0; pointer-events: none; }
.laeufer__text { position: relative; padding: clamp(20px, 3vw, 34px); display: grid; gap: 4px; background: linear-gradient(to top, rgba(20, 22, 46, .82), rgba(20, 22, 46, 0)); padding-top: 70px; }
.laeufer h1 { color: #fff; }
.laeufer p { color: var(--auf-navy-leise); }

/* ---------- Stempeluhr (Porzellanteller) ---------- */
.stempel { display: grid; gap: 18px; justify-items: center; text-align: center; }
.teller { width: clamp(168px, 44vw, 208px); aspect-ratio: 1; border-radius: 50%; border: 0; background: #fff; position: relative; display: grid; place-content: center; gap: 2px;
  box-shadow: 0 18px 30px -12px rgba(8, 10, 28, .45), 0 4px 8px -4px rgba(8, 10, 28, .3), inset 0 0 0 1px var(--linie); transition: transform .35s var(--kurve), box-shadow .35s; color: var(--navy); }
.teller::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid var(--navy-soft); transition: border-color .3s, border-width .3s, box-shadow .3s; }
.teller::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px solid var(--linie); }
.teller:hover { transform: translateY(-4px); box-shadow: 0 26px 36px -14px rgba(8, 10, 28, .5), 0 6px 10px -4px rgba(8, 10, 28, .3), inset 0 0 0 1px var(--linie); }
.teller:active { transform: translateY(-1px) scale(.985); }
.teller.ist-an::before { border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(201, 151, 24, .28); }
.teller.ist-pause::before { border-style: dashed; }
.teller b { font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 1.25rem; letter-spacing: .05em; position: relative; }
.teller span { font-size: .85rem; color: var(--tinte-leise); position: relative; }
.teller .uhr { font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--tinte-stark); }
.teller:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }

/* ---------- Listen ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { border-top: 1px dotted #B9BDCC; }
.liste > li:first-child { border-top: 0; }
.zeile { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; width: 100%; background: none; border: 0; text-align: left; min-height: 56px; }
button.zeile { transition: background .2s; margin: 0 -10px; padding-inline: 10px; width: calc(100% + 20px); border-radius: 2px; }
button.zeile:hover { background: #F6F7FA; }
.zeile__haupt { font-weight: 600; color: var(--tinte-stark); }
.zeile__neben { color: var(--tinte-leise); font-size: .9rem; grid-column: 1; }
.zeile__rechts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.leer { padding: 18px 0 6px; color: var(--tinte-leise); }
.aufgabe { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.aufgabe__zahl { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--warn-grund); color: var(--warn); font-variant-numeric: tabular-nums; }
.aufgabe__zahl.ist-ok { background: var(--ok-grund); color: var(--ok); }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; }
.kennzahl { padding: 6px 16px 6px 0; }
.kennzahl + .kennzahl { border-left: 1px dotted #B9BDCC; padding-left: 16px; }
.kennzahl b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--tinte-stark); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kennzahl span { font-size: .85rem; color: var(--tinte-leise); }

/* ---------- Wochenwahl, Tabs ---------- */
.kw { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--linie); border-radius: 999px; padding: 3px; }
.kw button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--navy); }
.kw button:hover { background: var(--leinen); }
.kw__text { padding: 0 8px; font-weight: 700; color: var(--tinte-stark); white-space: nowrap; text-align: center; min-width: 168px; font-variant-numeric: tabular-nums; }
.kw__text small { font-weight: 400; color: var(--tinte-leise); }
.tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--linie); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; padding: 12px 14px; min-height: 48px; font-weight: 600; color: var(--tinte-leise); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab.ist-aktiv { color: var(--navy); border-bottom-color: var(--gold); }
.tab i { font-style: normal; font-size: .75rem; font-weight: 800; background: var(--warn-grund); color: var(--warn); padding: 1px 7px; border-radius: 9px; margin-left: 6px; }

/* ---------- Wochenstatus ---------- */
.status { display: grid; gap: 0; }
@media (min-width: 760px) { .status { grid-template-columns: 1fr 1fr 1fr; } .status__teil + .status__teil { border-left: 1px dotted #B9BDCC; padding-left: 20px; border-top: 0; } }
.status__teil { padding: 10px 20px 10px 0; display: grid; gap: 4px; align-content: start; border-top: 1px dotted #B9BDCC; }
.status__teil:first-child { border-top: 0; }
.status__teil b { color: var(--tinte-stark); }
.status__teil .knopf, .status__teil .text-knopf { justify-self: start; margin-top: 4px; }

/* ---------- Tag im Wochenplan ---------- */
.tag { background: #fff; border-radius: 2px; box-shadow: 0 1px 0 var(--linie-fein), 0 14px 30px -24px rgba(20, 22, 46, .4); padding: 16px clamp(14px, 2vw, 22px); display: grid; gap: 10px; }
.tag.ist-heute { box-shadow: inset 4px 0 0 var(--navy), 0 1px 0 var(--linie-fein), 0 14px 30px -24px rgba(20, 22, 46, .4); }
.tag__kopf { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.tag__kopf h3 { font-size: 1.08rem; }
.tag--ruhe { box-shadow: none; background: transparent; border: 1px dashed #B9BDCC; padding-block: 12px; }
.skala { position: relative; height: 18px; font-size: .72rem; color: var(--tinte-leise); font-variant-numeric: tabular-nums; }
.skala span { position: absolute; top: 0; transform: translateX(-50%); }
.skala span:first-child { transform: none; }
.spur { position: relative; height: 30px; background: repeating-linear-gradient(90deg, transparent 0 calc(var(--h) - 1px), var(--linie-fein) calc(var(--h) - 1px) var(--h)); border-radius: 2px; }
.spur--quelle { height: 34px; background-color: #F3F4F8; }
.balken { position: absolute; top: 3px; bottom: 3px; left: var(--l); width: var(--w); min-width: 6px; border-radius: 2px; background: var(--c, var(--navy)); color: #fff; font-size: .78rem; font-weight: 600; padding: 0 7px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; transform-origin: left center; }
.balken--fahrt { background: var(--navy); }
.balken--event { background: var(--navy-deep); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.balken--option { background: repeating-linear-gradient(135deg, #8388ad 0 6px, #9a9fc0 6px 12px); }
.balken--offen { background: repeating-linear-gradient(135deg, #fff 0 5px, #F0F1F6 5px 10px); box-shadow: inset 0 0 0 1.5px var(--c, var(--navy)); color: var(--tinte-stark); }
.balken--entwurf { opacity: .55; }
.sch { display: grid; grid-template-columns: minmax(150px, 190px) 1fr minmax(120px, 190px); gap: 4px 14px; align-items: center; width: calc(100% + 16px); margin: 0 -8px; padding: 5px 8px; background: none; border: 0; text-align: left; border-radius: 2px; min-height: 48px; }
button.sch:hover { background: #F6F7FA; }
.sch__meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-variant-numeric: tabular-nums; }
.sch__meta b { color: var(--tinte-stark); font-weight: 700; white-space: nowrap; }
.sch__meta span { color: var(--tinte-leise); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch__wer { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; font-weight: 600; color: var(--tinte-stark); text-align: right; }
.sch__wer.ist-offen { color: var(--warn); }
.sch--kopf { align-items: end; min-height: 0; padding-block: 0 4px; }
.sch.ist-mein { background: var(--gold-hauch); box-shadow: inset 0 0 0 1.5px var(--gold); }
@media (max-width: 700px) {
  .sch { grid-template-columns: 1fr auto; padding-block: 8px; }
  .sch .spur, .sch .spur-huelle { grid-column: 1 / -1; grid-row: 2; }
  .sch > .spur { height: 10px; }
  .sch--kopf .spur--quelle { height: 30px; }
  .sch > .spur .balken { top: 0; bottom: 0; padding: 0; font-size: 0; }
  .spur--quelle .balken { font-size: .72rem; padding: 0 5px; }
}
.quelle-liste { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--tinte-leise); }
.quelle-liste b { color: var(--tinte-stark); font-weight: 600; }


/* ---------- Wochenübersicht als Raster ---------- */
.gitter-huelle { background: #fff; border-radius: 2px; box-shadow: 0 1px 0 var(--linie-fein), 0 14px 30px -24px rgba(20, 22, 46, .4); overflow-x: auto; overscroll-behavior-x: contain; }
.gitter { display: grid; grid-template-columns: 132px repeat(7, minmax(0, 1fr)); min-width: 980px; }
.gitter > * { border-bottom: 1px solid var(--linie-fein); border-right: 1px dotted #C9CCD8; padding: 8px; min-width: 0; }
.gitter > :nth-child(8n) { border-right: 0; }
.g-ecke, .g-kopf { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--linie); }
.g-ecke { font-size: .8rem; font-weight: 700; color: var(--tinte-leise); display: flex; align-items: flex-end; border-bottom: 1.5px solid var(--linie); }
.g-tag { display: grid; gap: 2px; align-content: start; border-bottom: 1.5px solid var(--linie); background: #fff; }
.g-tag b { font-family: "Cinzel", Georgia, serif; color: var(--navy); font-size: 1rem; letter-spacing: .04em; }
.g-tag span { color: var(--tinte-leise); font-size: .85rem; font-variant-numeric: tabular-nums; }
.g-tag small { display: block; font-size: .74rem; line-height: 1.3; background: var(--navy); color: #fff; padding: 2px 6px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }
.g-tag small.ist-feier { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.g-tag.ist-heute { box-shadow: inset 0 3px 0 var(--navy); }
.g-zelle.ist-heute { background: #F7F8FB; }
.g-kopf { display: grid; align-content: start; gap: 2px; border-left: 4px solid var(--c, transparent); }
.g-kopf b { color: var(--tinte-stark); }
.g-kopf small { color: var(--tinte-leise); font-size: .78rem; }
.g-kopf--leise, .g-zelle--leise { background: #FAFAFC; }
.g-kopf.ist-ich { background: var(--gold-hauch); }
.g-zelle { display: grid; gap: 6px; align-content: start; min-height: 64px; }
.g-karte { border: 1px solid var(--linie); border-left: 4px solid var(--c, var(--navy)); border-radius: 2px; background: #fff; display: grid; gap: 1px; padding: 5px 6px 6px; }
.g-karte.ist-luecke { background: repeating-linear-gradient(135deg, #fff 0 6px, #F3F4F8 6px 12px); }
.g-karte.ist-entwurf { border-style: dashed; border-left-style: solid; opacity: .8; }
.g-karte__kopf { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.g-karte__kopf b { font-size: .84rem; color: var(--tinte-stark); white-space: nowrap; }
.g-karte__kopf span { font-size: .74rem; font-weight: 800; color: var(--ok); }
.g-karte.ist-luecke .g-karte__kopf span { color: var(--warn); }
.g-entwurf { font-size: .7rem; color: var(--tinte-leise); font-weight: 700; }
.g-slot { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 4px; margin: 0; font-size: .86rem; font-weight: 600; color: var(--tinte-stark); border-radius: 2px; line-height: 1.25; min-height: 28px; overflow-wrap: anywhere; }
button.g-slot:hover { background: var(--leinen); }
.g-slot.ist-offen { color: var(--warn); font-weight: 700; }
.g-slot.ist-mein { background: var(--gold-hauch); box-shadow: inset 0 0 0 1.5px var(--gold); }
.g-karte--klein .g-slot b { display: block; font-size: .84rem; font-variant-numeric: tabular-nums; }
.g-karte--klein .g-slot span { font-weight: 400; color: var(--tinte-leise); font-size: .8rem; }
.g-m { font-style: normal; font-size: .68rem; font-weight: 800; padding: 1px 5px; border-radius: 8px; background: var(--warn-grund); color: var(--warn); white-space: nowrap; }
.g-m.ist-navy { background: var(--navy); color: #fff; } .g-m.ist-ok { background: var(--ok-grund); color: var(--ok); } .g-m.ist-err { background: var(--err-grund); color: var(--err); }
.g-abw { display: block; font-size: .78rem; color: var(--tinte-leise); font-style: italic; }
.g-plus { justify-self: start; width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed #B9BDCC; background: none; color: var(--tinte-leise); font-size: 1.1rem; line-height: 1; opacity: .55; }
.g-plus:hover, .g-plus:focus-visible { opacity: 1; border-color: var(--navy); color: var(--navy); border-style: solid; }
@media (hover: hover) { .g-zelle .g-plus { opacity: 0; } .g-zelle:hover .g-plus, .g-zelle .g-plus:focus-visible { opacity: 1; } }
@media (max-width: 700px) { .gitter { grid-template-columns: 96px repeat(7, 124px); min-width: 0; width: max-content; } .g-kopf, .g-ecke { font-size: .85rem; } }

/* ---------- Pläne der Reederei ---------- */
.reederei { display: grid; gap: 12px; }
.ablage { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px; border: 2px dashed #B9BDCC; border-radius: 2px; background: #FAFAFC; cursor: pointer; transition: border-color .2s, background .2s; }
.ablage input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ablage b { color: var(--navy); font-size: 1.05rem; }
.ablage span { color: var(--tinte-leise); font-size: .9rem; max-width: 52ch; }
.ablage:hover, .ablage.ist-drueber { border-color: var(--navy); background: #fff; }
.ablage:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.verlauf i { font-style: normal; color: var(--warn); }

/* ---------- Vorausschau ---------- */
.voraus { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 calc(var(--rand) * -1); padding-inline: var(--rand); scrollbar-width: thin; }
.wo { background: #fff; border: 1.5px solid var(--linie); border-radius: 2px; padding: 12px; display: grid; gap: 6px; text-align: left; align-content: start; transition: border-color .2s, transform .3s var(--kurve); }
.wo:hover { border-color: var(--navy); transform: translateY(-2px); }
.wo b { color: var(--tinte-stark); }
.wo small { color: var(--tinte-leise); }
.fuell { height: 6px; background: var(--leinen); border-radius: 3px; overflow: hidden; }
.fuell i { display: block; height: 100%; background: var(--navy); width: var(--p, 0%); border-radius: 3px; }

/* ---------- Tabelle ---------- */
.tabelle-huelle { overflow-x: auto; margin: 0 calc(clamp(18px, 2.4vw, 30px) * -1); padding: 0 clamp(18px, 2.4vw, 30px); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: .82rem; color: var(--tinte-leise); font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--linie); white-space: nowrap; }
td { padding: 10px 10px 10px 0; border-bottom: 1px dotted #B9BDCC; vertical-align: middle; }
td.r, th.r { text-align: right; padding-right: 0; padding-left: 10px; }
tr:last-child td { border-bottom: 0; }
td input.eingabe { min-height: 42px; padding: 6px 8px; min-width: 64px; }

/* ---------- Blatt (Dialog) ---------- */
.blatt { border: 0; padding: 0; background: transparent; color: inherit; width: min(560px, 100vw); max-width: 100vw; max-height: 92dvh; overflow: visible; }
.blatt__in { background: #fff; border-top: 5px double var(--navy); border-radius: 2px; max-height: 92dvh; box-shadow: 0 40px 80px -30px rgba(8, 10, 28, .7); overflow: hidden; display: flex; flex-direction: column; }
.blatt::backdrop { background: rgba(20, 22, 46, .5); }
.blatt__kopf { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 20px 22px 10px; }
.blatt__zu { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linie); background: #fff; flex: none; display: grid; place-items: center; margin: -6px -8px 0 0; }
.blatt__zu:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.blatt__leib { padding: 4px 22px 22px; overflow-y: auto; display: grid; gap: 16px; overscroll-behavior: contain; }
.blatt__fuss { padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie-fein); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: #FAFAFC; }
@media (max-width: 640px) { .blatt { margin: auto 0 0; width: 100vw; max-height: 94dvh; } .blatt__in { max-height: 94dvh; } .blatt__fuss .knopf { flex: 1; } }
.kandidat { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--linie); border-radius: 2px; background: #fff; text-align: left; width: 100%; min-height: 56px; }
.kandidat:hover:not([disabled]) { border-color: var(--navy); }
.kandidat.ist-an { border-color: var(--gold); background: var(--gold-hauch); }
.kandidat[disabled] { opacity: .55; cursor: default; }
.kandidat b { color: var(--tinte-stark); }
.kandidat small { grid-column: 1; color: var(--tinte-leise); }
.kandidat .marke { grid-row: 1 / span 2; grid-column: 2; }
details.klapp > summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 10px 0; min-height: 44px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.klapp > summary::before { content: "+"; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--navy); display: grid; place-items: center; font-weight: 600; flex: none; }
details.klapp[open] > summary::before { content: "–"; background: var(--navy); color: #fff; }
details.klapp > summary::-webkit-details-marker { display: none; }
.hinweis { padding: 12px 14px; border-left: 3px solid var(--navy); background: #F3F4F8; border-radius: 0 2px 2px 0; }
.hinweis--warn { border-color: var(--warn); background: var(--warn-grund); color: #5a3c00; }
.hinweis--ok { border-color: var(--ok); background: var(--ok-grund); }
.verlauf { font-size: .88rem; color: var(--tinte-leise); display: grid; gap: 4px; }

.toast { position: fixed; inset: auto; margin: 0; border: 0; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); transform: translate(-50%, 20px); background: var(--navy-deep); color: #fff; padding: 12px 18px; border-radius: 2px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 20px 40px -18px rgba(8, 10, 28, .8); }
.toast.ist-fehler { background: var(--err); }
@media (min-width: 1000px) { .toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .nav, .kopf, .knopf, .tabs, .laeufer { display: none !important; } body { background: #fff; } .karte { box-shadow: none; } }

/* Mails und Angebote */
.post .liste { margin-top: 4px; }
.angebot-teil { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--navy); display: grid; gap: 8px; }
.angebot-teil h3 { margin: 0; }
.angebot-kurz { padding: 12px 14px; background: var(--gold-hauch); border-left: 3px solid var(--gold); line-height: 1.5; }
.menue { padding: 10px 0 4px; border-top: 1px dotted #B9BDCC; }
.menue:first-of-type { border-top: 0; }
.menue h4 { margin: 0 0 6px; font-size: 1rem; }
.menue p { margin: 0 0 8px; line-height: 1.5; }
.menue p b { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.mailtext { padding: 12px 14px; background: #F6F7FA; font-size: .92rem; line-height: 1.5; max-height: 260px; overflow: auto; overflow-wrap: anywhere; }
.blatt select { width: 100%; min-height: 46px; }
