/* Roomtide – Oberfläche */

@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500; font-display: swap; src: url('fonts/bricolage-grotesque-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }

:root {
  --tide: #2C47D6; --tide-dunkel: #1E33A8; --mist: #E8ECFF; --mist-rand: #C9D1FF;
  --ink: #15171C; --ink2: #3E4250; --muted: #5B6070; --hell: #A9ADB8;
  --shore: #F5F5F2; --weiss: #FFFFFF; --linie: #E3E4E8; --linie2: #EEF0F3; --flaeche: #F7F7F9;
  --kelp: #1F7A4D; --kelp-hell: #E2F2EA; --kelp-text: #17533A; --kelp-rand: #BFE2CF;
  --coral: #C2410C; --coral-hell: #FFF1E6; --coral-text: #9A3412; --coral-rand: #F6CDA8;
  --r: 14px; --r-s: 10px;
  --schatten: 0 10px 30px rgba(21, 23, 28, .12);
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --text: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --tab-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--shore); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--tide); }
a:hover { color: var(--tide-dunkel); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.klein { font-size: 13px; }
.fett { font-weight: 700; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zeile.zwischen { justify-content: space-between; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf (Desktop) und Leiste (Handy) ---------- */
#kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px 24px; padding: 10px 24px; background: var(--weiss); border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.marke svg { width: 32px; height: 32px; }
.marke span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.marke:hover { color: var(--ink); }
.ort { color: var(--muted); font-weight: 500; padding-left: 14px; border-left: 1px solid var(--linie); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 9px; color: var(--ink2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--flaeche); color: var(--ink); }
.nav a.an { background: var(--mist); color: var(--tide); font-weight: 600; }
.zahl { background: var(--tide); color: #fff; border-radius: 20px; font-size: 11px; font-weight: 700; padding: 1px 7px; line-height: 1.5; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar.hell { background: #FDE9D7; color: #7A340A; }
.avatar.s { width: 32px; height: 32px; font-size: 12px; background: #F0F1F4; color: var(--ink2); }

#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--weiss); border-top: 1px solid var(--linie); display: none; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); gap: 4px; }
#tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; position: relative; }
#tabbar a.an { color: var(--tide); font-weight: 700; }
#tabbar a svg { width: 22px; height: 22px; }
#tabbar .zahl { position: absolute; top: 0; left: 55%; font-size: 10px; padding: 0 5px; }
#tabbar .gross { height: 50px; padding: 0 18px; border-radius: 25px; border: 0; background: var(--tide); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 6px 16px rgba(44, 71, 214, .35); white-space: nowrap; cursor: pointer; }

#support { background: var(--ink); color: #fff; padding: 8px 24px; display: flex; gap: 12px; align-items: center; font-size: 14px; flex-wrap: wrap; }
#support b { color: #9FB0FF; }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: #FFF7DB; border: 1px solid #F1DE9B; margin-bottom: 16px; flex-wrap: wrap; }

#view { padding: 24px 24px 56px; max-width: 1480px; margin: 0 auto; min-height: 60vh; }

@media (max-width: 860px) {
  #kopf { padding: 10px 14px; gap: 10px; }
  #kopf .nav, #kopf .ort, #kopf .nur-desktop { display: none; }
  #tabbar:not([hidden]) { display: grid; }
  body.mit-tabbar #view { padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom)); }
  #view { padding: 16px 14px 40px; }
  #support { padding: 8px 14px; }
}
@media (min-width: 861px) { .nur-handy { display: none !important; } }
@media (max-width: 860px) { .nur-desktop { display: none !important; } }

/* ---------- Bausteine ---------- */
.ueber { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.h1 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.h2 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 15px; font-weight: 700; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
@media (max-width: 860px) { .h1 { font-size: 26px; } }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--linie); background: var(--weiss); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.knopf:hover { border-color: #C9CCD3; color: var(--ink); }
.knopf:disabled { opacity: .55; cursor: default; }
.knopf.primaer { background: var(--tide); border-color: var(--tide); color: #fff; }
.knopf.primaer:hover { background: var(--tide-dunkel); color: #fff; }
.knopf.dunkel { background: var(--ink); border-color: var(--ink); color: #fff; }
.knopf.mist { background: var(--mist); border-color: var(--mist-rand); color: var(--tide); }
.knopf.warn { color: var(--coral-text); }
.knopf.leise { border-color: transparent; background: transparent; color: var(--tide); padding: 0 8px; }
.knopf.klein { min-height: 36px; padding: 0 12px; font-size: 14px; }
.knopf.rund { width: 42px; padding: 0; }
.knopf.breit { width: 100%; }
.knopf.gross { min-height: 52px; font-size: 16px; border-radius: var(--r); }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 18px 20px; }
.karte.dicht { padding: 14px 16px; }
.karte.warn { background: #FFF6EE; border-color: var(--coral-rand); }
.karte.blau { border: 2px solid var(--tide); }
.karte.dunkel { background: var(--ink); color: #fff; border-color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #ECEDEF; color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--kelp-hell); color: var(--kelp-text); }
.pill.warn { background: var(--coral-hell); color: var(--coral-text); }
.pill.blau { background: var(--mist); color: var(--tide); }
.pill.voll { background: var(--tide); color: #fff; }
.pill.dunkel { background: var(--ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 22px; border: 1px solid #D9DBE0; background: var(--weiss); color: var(--ink2); font-weight: 600; cursor: pointer; }
.chip svg { width: 14px; height: 14px; }
.chip:hover { border-color: var(--tide); }
.chip.an { background: var(--tide); border-color: var(--tide); color: #fff; }
.chip.wunsch { background: var(--mist); border-color: var(--mist-rand); color: var(--tide); }
.tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 20px; background: #F3F4F6; color: var(--ink2); }
.tag.muss { background: var(--ink); color: #fff; font-weight: 600; }
.tag.wunsch { background: #fff; border: 1px solid #D9DBE0; font-weight: 600; }

.statchips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.statchip { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; background: var(--weiss); border: 1px solid var(--linie); }
.statchip b { font-size: 15px; }
.statchip span { color: var(--muted); }
.statchip.warn { background: var(--coral-hell); border-color: var(--coral-rand); color: var(--coral-text); }
.statchip.warn svg { width: 15px; height: 15px; color: var(--coral); }

.segment { display: inline-flex; padding: 3px; border-radius: 11px; background: #E9EAEE; }
.segment button { min-height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--ink2); font-weight: 500; cursor: pointer; }
.segment button.an { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 5px; }
.feld > span { font-size: 13px; font-weight: 600; color: var(--ink2); }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #D9DBE0; border-radius: var(--r-s); background: #fff; font-size: 16px; line-height: 24px; color: var(--ink); }
/* Safari: eigene Darstellung abschalten, damit Auswahl-, Datums- und Zeitfelder genauso aussehen wie Textfelder */
.feld select, .feld input[type=date], .feld input[type=time], .feld input[type=number] { -webkit-appearance: none; appearance: none; height: 46px; }
.feld select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6070' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.feld input[type=date], .feld input[type=time] { display: block; text-align: left; }
.feld input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.feld input::-webkit-datetime-edit { padding: 0; }
.feld textarea { min-height: 90px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--mist-rand); border-color: var(--tide); }
.feld small { color: var(--muted); font-size: 12px; }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .felder { grid-template-columns: minmax(0, 1fr); } }
.felder .voll { grid-column: 1 / -1; }
.schalter { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: var(--r-s); background: #fff; cursor: pointer; }
.schalter input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tide); flex: none; }
.schalter b { display: block; }
.schalter small { color: var(--muted); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 5px; max-width: 220px; }
.stepper button { width: 46px; height: 42px; border-radius: 9px; border: 0; background: #F3F4F6; font-size: 22px; font-weight: 600; cursor: pointer; }
.stepper output { font-family: var(--display); font-size: 26px; font-weight: 700; min-width: 50px; text-align: center; }
.meldung { padding: 10px 12px; border-radius: var(--r-s); font-size: 14px; }
.meldung.fehler { background: var(--coral-hell); color: var(--coral-text); }
.meldung.gut { background: var(--kelp-hell); color: var(--kelp-text); }
.meldung.info { background: var(--mist); color: #1F2A80; }
.schritt-titel { font-size: 13px; font-weight: 700; margin: 4px 0 2px; }

/* Blatt (Dialog) */
#sheet { position: fixed; inset: 0; z-index: 50; background: rgba(21, 23, 28, .45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.blatt { background: var(--shore); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 20px 22px 22px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 14px; }
.blatt.breit { width: min(760px, 100%); }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blatt-kopf h2 { font-family: var(--display); font-size: 21px; }
.blatt .reihe { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 860px) {
  #sheet { align-items: flex-end; padding: 0; }
  .blatt, .blatt.breit { width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .blatt .reihe .knopf { flex: 1; }
}

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: transform .25s, opacity .25s, visibility .25s; opacity: 0; visibility: hidden; max-width: calc(100% - 28px); box-shadow: var(--schatten); display: flex; align-items: center; gap: 12px; }
#toast.zeigen { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
#toast.fehler { background: var(--coral-text); }
#toast button { background: transparent; border: 0; color: #9FB0FF; font-weight: 700; cursor: pointer; padding: 0; }
body.mit-tabbar #toast { bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); }

.boot { display: flex; justify-content: center; padding: 80px 0; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--linie); border-top-color: var(--tide); border-radius: 50%; animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.leer { text-align: center; padding: 40px 20px; color: var(--muted); }
.leer .h2 { color: var(--ink); margin-bottom: 6px; }

/* ---------- Anmeldung ---------- */
body.tor { background: var(--shore); }
body.tor #view { max-width: none; padding: 0; }
.tor-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.tor-bild { background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.tor-bild .marke { color: #fff; }
.tor-bild .marke:hover { color: #fff; }
.tor-bild h2 { font-family: var(--display); font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.tor-bild h2 span { color: #9FB0FF; }
.tor-bild p { color: #D4D6DD; font-size: 17px; max-width: 440px; }
.tor-bild ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: #D4D6DD; }
.tor-bild li { display: flex; gap: 10px; align-items: center; }
.tor-bild li svg { color: #7CE0A8; width: 18px; height: 18px; }
.tor-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.tor-box { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; }
.tor-box.breit { width: min(600px, 100%); }
.tor-box h1 { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.tor-box .fuss { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tor-box .fuss a { cursor: pointer; font-weight: 600; }
.fortschritt { display: flex; gap: 6px; }
.fortschritt i { flex: 1; height: 5px; border-radius: 3px; background: var(--linie); }
.fortschritt i.an { background: var(--tide); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .tor-wrap { grid-template-columns: 1fr; }
  .tor-bild { padding: 22px 20px; }
  .tor-bild h2, .tor-bild p, .tor-bild ul { display: none; }
  .tor-form { padding: 24px 16px 40px; align-items: flex-start; }
}

/* ---------- Plan ---------- */
.plan-raster { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.plan-haupt { flex: 999 1 700px; min-width: 0; }
.plan-seite { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.zeitleiste { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; overflow: hidden; }
.zl-scroll { overflow-x: auto; }
.zl-innen { min-width: 980px; position: relative; }
.zl-kopf { display: flex; border-bottom: 1px solid var(--linie); background: #FAFAFB; }
.zl-raumkopf { width: 200px; flex: none; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.zl-stunden { flex: 1; display: grid; }
.zl-stunden div { padding: 12px 0 12px 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; border-left: 1px solid var(--linie2); }
.zl-reihe { display: flex; border-bottom: 1px solid var(--linie2); }
.zl-raum { width: 200px; flex: none; padding: 11px 16px; text-align: left; background: none; border: 0; cursor: pointer; }
.zl-raum b { display: block; }
.zl-raum small { color: var(--muted); font-size: 12px; }
.zl-spur { flex: 1; position: relative; height: 66px; cursor: copy; }
.blk { position: absolute; box-sizing: border-box; border-radius: 8px; padding: 6px 9px; overflow: hidden; font-size: 12px; line-height: 1.3; text-align: left; cursor: pointer; border: 1px solid; top: 7px; height: 52px; }
.blk b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.blk span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.blk.oben { top: 5px; height: 27px; padding: 4px 8px; }
.blk.unten { top: 34px; height: 27px; padding: 4px 8px; }
.blk.vorschlag { background: #fff !important; color: var(--tide) !important; border: 1.5px dashed var(--tide) !important; }
.blk.konflikt { background: #FFF6EE !important; color: var(--coral-text) !important; border: 2px solid var(--coral) !important; }
.jetzt { position: absolute; top: 42px; bottom: 0; width: 2px; background: var(--coral); pointer-events: none; }
.jetzt::before { content: ''; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-top: 1px solid var(--linie); font-size: 12px; color: var(--ink2); align-items: center; }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid; }

.f-blau { background: #E6EAFF; color: #1F2A80; border-color: #C9D1FF; }
.f-gruen { background: #E2F2EA; color: #17533A; border-color: #BFE2CF; }
.f-orange { background: #FDE9D7; color: #7A340A; border-color: #F6CDA8; }
.f-lila { background: #EFE6FA; color: #4E2577; border-color: #DCCAF2; }
.f-rosa { background: #FBE4EE; color: #7A1F48; border-color: #F3C3D8; }
.f-tuerkis { background: #DDF3F3; color: #145A5C; border-color: #B5E2E2; }
.f-grau { background: #ECEDEF; color: #3E4250; border-color: #D9DBE0; }

/* Woche */
.woche-tab { width: 100%; border-collapse: collapse; min-width: 900px; }
.woche-tab th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 10px; border-bottom: 1px solid var(--linie); background: #FAFAFB; }
.woche-tab th.heute { color: var(--tide); }
.woche-tab td { vertical-align: top; padding: 6px; border-bottom: 1px solid var(--linie2); border-left: 1px solid var(--linie2); min-width: 110px; }
.woche-tab td:first-child { border-left: 0; min-width: 170px; padding: 10px 14px; }
.wblk { display: block; width: 100%; text-align: left; border-radius: 7px; padding: 4px 7px; margin-bottom: 4px; font-size: 12px; line-height: 1.3; border: 1px solid; cursor: pointer; }
.wblk b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Raumkarten fürs Handy */
.raumkarte { display: block; width: 100%; text-align: left; background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.raumkarte .status { font-size: 13px; font-weight: 600; margin-top: 3px; }
.balken { position: relative; height: 14px; border-radius: 7px; background: #F0F1F4; margin-top: 10px; overflow: hidden; }
.balken i { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: #8EA0FF; }
.balken i.v { background: transparent; border: 1.5px dashed var(--tide); }
.balken i.k { background: var(--coral); }
.balken .jetzt-s { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--coral); }
.tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tage button { height: 54px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--linie); background: #fff; cursor: pointer; }
.tage button small { font-size: 11px; font-weight: 600; opacity: .8; }
.tage button b { font-family: var(--display); font-size: 18px; }
.tage button.an { background: var(--ink); color: #fff; border-color: var(--ink); }
.tage button.heute:not(.an) { border-color: var(--tide); color: var(--tide); }

.hinweiskarte { display: flex; align-items: center; gap: 12px; background: var(--tide); color: #fff; border-radius: 16px; padding: 14px; text-decoration: none; }
.hinweiskarte:hover { color: #fff; background: var(--tide-dunkel); }
.hinweiskarte .n { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--tide); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px; flex: none; }

.anfrage-mini { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; }
.anfrage-mini .fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--linie); }

/* ---------- Anfragen ---------- */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split-liste { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
.split-detail { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) { .split-liste { max-width: none; } .split.mit-detail .split-liste { display: none; } }
.listeneintrag { display: block; text-decoration: none; color: var(--ink); background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 14px 16px; }
.listeneintrag:hover { color: var(--ink); border-color: #C9CCD3; }
.listeneintrag.an { border: 2px solid var(--tide); padding: 13px 15px; }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fakt { background: var(--flaeche); border-radius: 12px; padding: 12px 14px; }
.fakt small { display: block; font-size: 12px; color: var(--muted); }
.fakt b { display: block; margin-top: 2px; }
.notiz { color: var(--ink2); background: var(--flaeche); border-radius: 10px; padding: 10px 12px; margin: 0; white-space: pre-line; }
.kriterien { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.kriterien span { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.kriterien svg { width: 16px; height: 16px; }
.kriterien .ja svg { color: var(--kelp); }
.kriterien .nein { color: var(--coral-text); }
.kriterien .nein svg { color: var(--coral); }
.punkte { display: flex; flex-wrap: wrap; gap: 5px; }
.punkt { min-width: 30px; height: 30px; padding: 0 4px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--kelp-hell); color: var(--kelp-text); border: 1.5px solid var(--kelp-rand); }
.punkt.belegt { background: var(--coral-hell); color: var(--coral-text); border-color: var(--coral); }
.trenner { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--linie); }
.nachricht { background: var(--flaeche); border-radius: 12px; padding: 10px 12px; }
.nachricht small { color: var(--muted); display: block; margin-bottom: 2px; }
.aktionsleiste { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 860px) {
  .aktionsleiste.klebt { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); background: var(--weiss); margin: 0 -14px; padding: 12px 14px; border-top: 1px solid var(--linie); box-shadow: 0 -6px 18px rgba(21, 23, 28, .06); }
  .aktionsleiste.klebt .knopf { flex: 1; }
}

/* ---------- Dozierende ---------- */
.doz-raster { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.doz-haupt { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.doz-seite { flex: 1 1 380px; }
.naechster { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 24px; }
.naechster .wann { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #C9D1FF; text-transform: uppercase; letter-spacing: .06em; }
.naechster .wann i { width: 8px; height: 8px; border-radius: 50%; background: #7CE0A8; }
.naechster h2 { font-family: var(--display); font-size: 27px; margin-top: 8px; letter-spacing: -0.01em; line-height: 1.15; }
.naechster .sub { color: #D4D6DD; }
.naechster .kasten { background: #23262E; border-radius: 14px; padding: 14px 16px; }
.naechster .kasten small { font-size: 12px; color: #A9ADB8; }
.naechster .raumname { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; margin-top: 2px; }
.naechster .tags span { font-size: 12px; padding: 3px 9px; border-radius: 20px; background: #2F3440; }
.naechster .knopf { border-color: #474B57; background: transparent; color: #fff; }
.naechster .knopf.hell { background: #fff; color: var(--ink); border-color: #fff; }
.terminzeile { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--linie2); }
.terminzeile:last-child { border-bottom: 0; }
.datumblock { flex: none; width: 46px; text-align: center; }
.datumblock small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; display: block; }
.datumblock b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.ergebnis { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie2); margin-bottom: 8px; }
.ergebnis.gewaehlt { background: #F3FAF6; border-color: var(--kelp-rand); }

/* ---------- Räume & Personen ---------- */
.kartenraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.raum-k { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left; }
.raum-k:hover { border-color: #C9CCD3; }
.raum-k.aus { opacity: .6; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--weiss); }
.tabelle th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--linie); background: #FAFAFB; }
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--linie2); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.klick { cursor: pointer; }
.tabelle tr.klick:hover td { background: #FAFAFB; }
.tabellenrahmen { border: 1px solid var(--linie); border-radius: 16px; overflow: hidden; overflow-x: auto; background: #fff; }

/* Plattform */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 14px 16px; }
.kpi b { font-family: var(--display); font-size: 30px; display: block; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.warn { background: #FFF7DB; border-color: #F1DE9B; }

.checkliste { display: flex; flex-direction: column; gap: 8px; }
.checkliste a, .checkliste div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--flaeche); text-decoration: none; color: var(--ink); }
.checkliste .k { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C9CCD3; display: flex; align-items: center; justify-content: center; flex: none; }
.checkliste .fertig .k { background: var(--kelp); border-color: var(--kelp); color: #fff; }
.checkliste .k svg { width: 14px; height: 14px; }

/* ---------- Phase 2 ---------- */
.zl-spur .blk { touch-action: none; user-select: none; -webkit-user-select: none; }
.blk.zieht { z-index: 5; cursor: grabbing; box-shadow: 0 8px 20px rgba(21, 23, 28, .22); opacity: .95; }
.semester td { padding: 4px; min-width: 64px; }
.sem-zelle { width: 100%; min-height: 46px; border-radius: 8px; border: 1px solid var(--linie2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12px;
  background: #fff;
  background: color-mix(in srgb, var(--tide) calc(var(--p) * 0.85%), #fff); color: var(--ink); }
.sem-zelle small { font-size: 11px; opacity: .8; }
.sem-zelle.dunkel { color: #fff; }
.verf-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.verf-tag { background: var(--flaeche); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
