/* DARUMeet: Farben und Flächen wie die anderen DARU-Programme (Schiefer, eckig, Metrophobic), Programmfarbe Grün */
@font-face { font-family: "Metrophobic"; src: url(/metrophobic.woff2) format("woff2"); font-display: swap; }
:root {
  --bg: #36454c; --panel: #42545c; --panel2: #4b5f68; --tief: #2d3a40; --tiefer: #263238; --line: #587077; --line2: #4a5f66;
  --fg: #e6eef0; --fg2: #d3dddf; --fg3: #a9b8bb; --akzent: #4cc38a; --akzent2: #7ff0b6; --akzent-text: #0c2a1d;
  --ja: #4cc38a; --ja-bg: rgba(76,195,138,.18); --vielleicht: #e0b44a; --vielleicht-bg: rgba(224,180,74,.18); --nein: #8a9a9e; --nein-bg: rgba(138,154,158,.10);
  --warn: #e0b44a; --rot: #ff8a7a; --blau: #6fb0e8; --violett: #a99bf0;
  --schatten: 0 18px 40px -22px rgba(0,0,0,.7);
}
.dl.generator.meet { --dl-farbe: #4cc38a; }
.dl.meet button[type=submit] { color: var(--akzent-text); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 "Noto Sans", "Segoe UI", Arial, sans-serif; }
h1, h2, h3 { font-family: "Metrophobic", "Segoe UI", Arial, sans-serif; font-weight: 400; letter-spacing: .02em; margin: 0; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
a { color: var(--akzent); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.leise { color: var(--fg3); }
.klein { font-size: 13px; }
.fett { font-weight: 600; }
.zeile { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.zeile.weit { justify-content: space-between; }
.stapel { display: flex; flex-direction: column; gap: 14px; }
.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.knopf.nur-mobil, .nur-mobil { display: none; }

/* ---- Rahmen */
.rahmen { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.leiste { background: var(--tiefer); border-right: 1px solid var(--line2); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.marke { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: inherit; text-decoration: none; font: 23px "Metrophobic", Arial, sans-serif; letter-spacing: .03em; }
.marke img { width: 32px; height: 32px; }
.marke b { font-weight: 400; color: var(--akzent); }
.neu-knopf { margin: 4px 14px 14px; }
.menue { list-style: none; margin: 0; padding: 0 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.menue a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: var(--fg2); text-decoration: none; border-left: 3px solid transparent; font-size: 14.5px; }
.menue a:hover { background: var(--tief); color: var(--fg); }
.menue a[aria-current="page"] { background: var(--panel); color: #fff; border-left-color: var(--akzent); }
.menue svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.menue .zahl { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--akzent); color: var(--akzent-text); font-size: 12px; font-weight: 700; text-align: center; }
.menue .trenner { margin: 10px 12px 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); }
.ich { padding: 12px 16px 16px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--fg3); }
.ich b { display: block; color: var(--fg); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.haupt { min-width: 0; padding: 26px 30px 60px; max-width: 1280px; width: 100%; }
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.seitenkopf p { margin: 4px 0 0; color: var(--fg3); }
.brotkrume { font-size: 13px; color: var(--fg3); margin-bottom: 6px; }
.brotkrume a { color: var(--fg3); }

/* ---- Bausteine */
.karte { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; box-shadow: var(--schatten); min-width: 0; }
.karte.flach { box-shadow: none; }
.karte > h2, .karte > h3, .karte > .zeile > h2, .karte > .zeile > h3 { margin-bottom: 12px; }
.karte.tief { background: var(--tief); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kachel { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--akzent); padding: 14px 16px; }
.kachel b { display: block; font: 34px/1.1 "Metrophobic", Arial, sans-serif; color: #fff; }
.kachel span { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); }
.kachel.warn { border-top-color: var(--warn); } .kachel.blau { border-top-color: var(--blau); } .kachel.violett { border-top-color: var(--violett); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line); background: var(--panel2); color: var(--fg); cursor: pointer; text-decoration: none; font-size: 14px; line-height: 1.2; white-space: nowrap; border-radius: 0; }
.knopf:hover { border-color: var(--fg3); background: #557079; }
.knopf.haupt-k { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.knopf.haupt-k:hover { background: var(--akzent2); }
.knopf.gefahr { color: var(--rot); }
.knopf.gefahr:hover { border-color: var(--rot); }
.knopf.klar { background: transparent; border-color: transparent; color: var(--fg2); }
.knopf.klar:hover { background: var(--tief); border-color: var(--line2); }
.knopf.klein { padding: 5px 10px; font-size: 13px; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf svg { width: 16px; height: 16px; }
.breit { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; font-size: 12px; border: 1px solid var(--line); color: var(--fg2); background: var(--tief); white-space: nowrap; }
.chip.gruen { border-color: var(--ja); color: var(--ja); } .chip.gelb { border-color: var(--vielleicht); color: var(--vielleicht); }
.chip.rot { border-color: var(--rot); color: var(--rot); } .chip.blau { border-color: var(--blau); color: var(--blau); } .chip.grau { color: var(--fg3); }
.punkt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--akzent); flex: none; }
.leer { padding: 26px 10px; text-align: center; color: var(--fg3); }
.leer b { display: block; font: 19px "Metrophobic", Arial, sans-serif; color: var(--fg2); margin-bottom: 4px; }
.balken { height: 6px; background: var(--tief); overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--akzent); }

/* ---- Formulare */
.feld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.feld > span, .feldname { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg2); }
.feld small { color: var(--fg3); font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; background: var(--tief); border: 1px solid var(--line); color: var(--fg); border-radius: 0; outline: none; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--akzent); }
input[type=date], input[type=time], input[type=datetime-local] { color-scheme: dark; }
textarea { resize: vertical; min-height: 80px; }
input::placeholder, textarea::placeholder { color: #8fa0a4; }
.wahl { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 8px 0; }
.wahl input { margin-top: 3px; accent-color: var(--akzent); width: 17px; height: 17px; flex: none; }
.wahl b { display: block; font-weight: 600; }
.wahl small { color: var(--fg3); }
.formraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.formraster .ganz { grid-column: 1 / -1; }
.segment { display: inline-flex; border: 1px solid var(--line); }
.segment button { padding: 7px 13px; background: var(--tief); border: 0; border-right: 1px solid var(--line); color: var(--fg2); cursor: pointer; font-size: 13.5px; }
.segment button:last-child { border-right: 0; }
.segment button[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.fehler { color: var(--rot); font-size: 14px; margin: 0; }
.ok { color: var(--ja); font-size: 14px; margin: 0; }
.hinweisbox { border-left: 4px solid var(--blau); background: rgba(111,176,232,.1); padding: 10px 14px; font-size: 14px; }
.hinweisbox.warn { border-left-color: var(--warn); background: rgba(224,180,74,.1); }
.hinweisbox.gruen { border-left-color: var(--ja); background: var(--ja-bg); }

/* ---- Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { border-bottom: 1px solid var(--line2); }
.liste > li:last-child { border-bottom: 0; }
.eintrag-l { display: flex; align-items: center; gap: 14px; padding: 11px 4px; color: inherit; text-decoration: none; min-width: 0; }
a.eintrag-l:hover { background: var(--tief); }
.eintrag-l .mitte { flex: 1; min-width: 0; }
.eintrag-l .mitte b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag-l .mitte small { color: var(--fg3); }
.datumblatt { width: 48px; flex: none; text-align: center; border: 1px solid var(--line); background: var(--tief); line-height: 1.1; }
.datumblatt i { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--akzent); color: var(--akzent-text); padding: 2px 0; font-weight: 700; }
.datumblatt b { display: block; font: 21px "Metrophobic", Arial, sans-serif; padding: 3px 0 1px; }
.datumblatt small { display: block; font-size: 10.5px; color: var(--fg3); padding-bottom: 3px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th { text-align: left; font-weight: 400; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tabelle td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tabelle tr:hover td { background: rgba(0,0,0,.08); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter input[type=search] { max-width: 300px; }
.reiter { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.reiter button { padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--fg3); cursor: pointer; white-space: nowrap; font-size: 14.5px; }
.reiter button[aria-selected="true"] { color: #fff; border-bottom-color: var(--akzent); }
.reiter .zahl { margin-left: 6px; font-size: 12px; color: var(--fg3); }

/* ---- Ergebnis-Matrix (wie Doodle) */
.matrix { border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line2); border-right: 1px solid var(--line2); padding: 0; text-align: center; }
.matrix thead th { background: var(--tief); vertical-align: bottom; padding: 8px 6px; min-width: 86px; font-weight: 400; }
.matrix thead th.beste { box-shadow: inset 0 3px 0 var(--akzent); background: #2f4a3e; }
.matrix thead th.final { box-shadow: inset 0 3px 0 var(--akzent2); background: #2b5a43; }
.matrix .kopf-monat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); }
.matrix .kopf-tag { font: 24px/1.1 "Metrophobic", Arial, sans-serif; color: #fff; }
.matrix .kopf-wt { font-size: 12px; color: var(--fg2); }
.matrix .kopf-zeit { font-size: 12.5px; color: var(--fg2); margin-top: 3px; white-space: nowrap; }
.matrix .kopf-text { font-size: 13.5px; color: #fff; max-width: 160px; white-space: normal; line-height: 1.3; }
.matrix .namezelle { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; padding: 8px 12px; min-width: 190px; max-width: 260px; }
.matrix thead .namezelle { background: var(--tief); z-index: 2; vertical-align: bottom; }
.matrix .namezelle b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix .namezelle small { color: var(--fg3); font-size: 12px; }
.matrix td.z { height: 40px; font-size: 17px; font-weight: 700; }
.matrix td.ja { background: var(--ja-bg); color: var(--ja); }
.matrix td.vielleicht { background: var(--vielleicht-bg); color: var(--vielleicht); }
.matrix td.nein { background: var(--nein-bg); color: #6d7d81; }
.matrix td.offen { color: var(--fg3); font-weight: 400; font-size: 13px; }
.matrix tr.ich-zeile td { background-color: rgba(76,195,138,.06); }
.matrix tr.ich-zeile .namezelle { background: #3b5551; }
.matrix tfoot td { background: var(--tief); padding: 7px 4px; font-size: 13px; }
.matrix tfoot .namezelle { background: var(--tief); }
.matrix .summe b { font: 19px "Metrophobic", Arial, sans-serif; color: #fff; }
.matrix .summe small { display: block; color: var(--vielleicht); }
.matrix .voll { color: var(--rot); font-size: 11.5px; }
.konflikt { display: block; margin-top: 3px; font-size: 11px; color: var(--warn); max-width: 120px; margin-inline: auto; line-height: 1.25; }
/* Antwort-Knopf in der Matrix */
.antwort { width: 100%; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--fg3); }
.antwort[data-wert="ja"] { background: var(--ja); color: var(--akzent-text); }
.antwort[data-wert="vielleicht"] { background: var(--vielleicht); color: #2b2006; }
.antwort[data-wert="nein"] { background: var(--nein-bg); color: #7f8f93; }
.antwort:hover { filter: brightness(1.12); }
.antwort:disabled { cursor: not-allowed; opacity: .4; }
.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fg3); }
.legende i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }

/* ---- Kalender */
.kal-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.kal-kopf h2 { min-width: 200px; }
.monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--tief); }
.monat .wt { padding: 6px 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tiefer); }
.monat .tag { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.monat .tag:hover { background: #33434a; }
.monat .tag.fremd { background: var(--tiefer); }
.monat .tag.fremd .nr { color: #6c7f84; }
.monat .tag.heute .nr { background: var(--akzent); color: var(--akzent-text); border-radius: 50%; }
.monat .tag.gewaehlt { box-shadow: inset 0 0 0 2px var(--akzent); }
.monat .nr { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; align-self: flex-start; }
.ev { display: block; width: 100%; text-align: left; font-size: 12px; line-height: 1.3; padding: 2px 6px; border: 0; border-left: 3px solid var(--blau); background: rgba(111,176,232,.16); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.ev.fest { border-left-color: var(--akzent); background: rgba(76,195,138,.22); }
.ev.vorschlag { border-left: 3px dashed var(--akzent); background: transparent; color: var(--fg2); outline: 1px dashed rgba(76,195,138,.5); outline-offset: -1px; }
.ev.vorgemerkt { border-left: 3px dashed var(--vielleicht); background: transparent; color: var(--fg2); outline: 1px dashed rgba(224,180,74,.5); outline-offset: -1px; }
.ev.belegt { border-left-color: var(--fg3); background: rgba(169,184,187,.15); }
.ev.abwesend { border-left-color: var(--rot); background: rgba(255,138,122,.15); }
.ev.privat { border-left-color: var(--violett); background: rgba(169,155,240,.16); }
.ev.buchung { border-left-color: #00a9bb; background: rgba(0,169,187,.2); }
.ev .uhr { color: var(--fg3); margin-right: 4px; }
.mehr { font-size: 11.5px; color: var(--fg3); padding-left: 6px; }
.woche { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--tief); }
.woche .wk { position: sticky; top: 0; z-index: 3; background: var(--tiefer); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line2); padding: 6px; text-align: center; font-size: 12.5px; color: var(--fg2); }
.woche .wk b { display: block; font: 21px "Metrophobic", Arial, sans-serif; color: #fff; }
.woche .wk.heute b { color: var(--akzent); }
.woche .ganztage { grid-column: 1 / -1; display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); min-height: 28px; }
.woche .ganztage > div { border-left: 1px solid var(--line2); padding: 2px; display: flex; flex-direction: column; gap: 2px; }
.woche .ganztage > div:first-child { border-left: 0; font-size: 10.5px; color: var(--fg3); padding: 6px 4px; }
.woche-koerper { grid-column: 1 / -1; display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); position: relative; max-height: 640px; overflow-y: auto; }
.stunden { position: relative; }
.stunden div { height: 48px; font-size: 11px; color: var(--fg3); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.wspalte { position: relative; border-left: 1px solid var(--line2); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--line2) 47px, var(--line2) 48px); cursor: pointer; }
.wspalte .ev { position: absolute; left: 2px; right: 2px; white-space: normal; overflow: hidden; z-index: 1; }
.jetzt-linie { position: absolute; left: 0; right: 0; height: 2px; background: var(--rot); z-index: 2; pointer-events: none; }
.agenda .tagkopf { padding: 12px 4px 4px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--akzent); border-bottom: 1px solid var(--line2); }
.agenda .aitem { display: flex; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--line2); align-items: baseline; cursor: pointer; }
.agenda .aitem:hover { background: var(--tief); }
.agenda .azeit { width: 110px; flex: none; color: var(--fg2); font-size: 13.5px; }
.kal-seite { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: start; }
.mini { font-size: 12.5px; }
.mini .monat .tag { min-height: 0; padding: 2px; align-items: center; }
.mini .monat .nr { width: 24px; height: 24px; align-self: center; }
.mini .monat .tag.hat::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--akzent); }
.farblegende { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.farblegende span { display: flex; align-items: center; gap: 8px; }
.farblegende i { width: 22px; height: 12px; display: inline-block; }

/* ---- Neue Umfrage: Assistent und Terminauswahl */
.schritte { display: flex; gap: 0; margin-bottom: 18px; counter-reset: s; overflow-x: auto; }
.schritte button { flex: 1; min-width: 130px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--tief); border: 1px solid var(--line2); border-right: 0; color: var(--fg3); cursor: pointer; text-align: left; font-size: 14px; }
.schritte button:last-child { border-right: 1px solid var(--line2); }
.schritte button::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; }
.schritte button[aria-current="step"] { background: var(--panel); color: #fff; box-shadow: inset 0 -3px 0 var(--akzent); }
.schritte button[aria-current="step"]::before, .schritte button.fertig::before { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.schritte button.fertig { color: var(--fg2); }
.wahl-kal .monat .tag { min-height: 74px; }
.wahl-kal .tag .anz { margin-top: auto; font-size: 11.5px; color: var(--akzent); font-weight: 600; }
.wahl-kal .tag.hat { background: rgba(76,195,138,.12); }
.wahl-kal .tag.vergangen { opacity: .4; cursor: not-allowed; }
.zeitliste { display: flex; flex-direction: column; gap: 10px; }
.zeittag { border: 1px solid var(--line2); background: var(--tief); padding: 10px 12px; }
.zeittag .kopf-z { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.slot { display: flex; align-items: center; gap: 6px; margin: 4px 0; flex-wrap: wrap; }
.slot input[type=time] { width: 112px; }
.slot input[type=number] { width: 80px; }
.slot .bis { color: var(--fg3); }
.schnell { display: flex; gap: 6px; flex-wrap: wrap; }
.optionen-text .slot input[type=text] { flex: 1; min-width: 180px; }
.wochenzeiten { display: flex; flex-direction: column; gap: 8px; }
.wochenzeiten .wtz { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.wochenzeiten .wtz:last-child { border-bottom: 0; }
.wochenzeiten .wtz label { display: flex; gap: 8px; align-items: center; padding-top: 6px; cursor: pointer; }

/* ---- Dialog und Meldung */
.schleier { position: fixed; inset: 0; background: rgba(15,22,25,.66); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--akzent); width: min(560px, 100%); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.dialog.gross { width: min(820px, 100%); }
.dialog > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line2); gap: 10px; }
.dialog > header h2 { font-size: 20px; }
.dialog > .inhalt { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.dialog > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line2); background: var(--tief); flex-wrap: wrap; }
.zu { background: none; border: 0; color: var(--fg3); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.zu:hover { color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: #1d272b; border: 1px solid var(--line); border-left: 4px solid var(--akzent); color: var(--fg); padding: 11px 18px; box-shadow: var(--schatten); max-width: calc(100% - 32px); font-size: 14.5px; }
.toast.rot { border-left-color: var(--rot); }
.kopierfeld { display: flex; }
.kopierfeld input { flex: 1; font-family: Consolas, monospace; font-size: 13px; }
.kopierfeld .knopf { border-left: 0; }
.laden { padding: 40px; text-align: center; color: var(--fg3); }
.laden::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border: 3px solid var(--line); border-top-color: var(--akzent); border-radius: 50%; animation: dreh .8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.status-kopf { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.infozeilen { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.infozeilen div { display: flex; gap: 10px; }
.infozeilen svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--fg3); }
.kommentar { padding: 10px 0; border-bottom: 1px solid var(--line2); }
.kommentar:last-child { border-bottom: 0; }
.kommentar .wer-k { font-size: 13px; color: var(--fg3); }
.kommentar .wer-k b { color: var(--fg); font-weight: 600; }
.kommentar p { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }
.finalbox { border: 1px solid var(--akzent); background: linear-gradient(135deg, rgba(76,195,138,.2), rgba(76,195,138,.05)); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.finalbox .datumblatt { width: 64px; }
.finalbox .datumblatt b { font-size: 28px; }
.finalbox h3 { font-size: 20px; }

/* ---- Gästeseiten (Teilnehmen, Buchen) */
.gast-kopf { background: url(https://daru-gruppe.ch/img/kopf-leitstand.jpg) center 45% / cover; position: relative; }
.gast-kopf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,50,56,.55), var(--bg)); }
.gast-kopf .in { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 22px 18px 54px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gast-kopf img { height: 28px; display: block; }
.gast-kopf .prog { font: 18px "Metrophobic", Arial, sans-serif; color: #fff; letter-spacing: .04em; }
.gast-haupt { max-width: 980px; margin: -36px auto 0; padding: 0 16px 50px; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
.gast-haupt .karte { border-left: 5px solid var(--akzent); }
.gast-titel h1 { font-size: 30px; line-height: 1.2; }
.gast-titel .von { color: var(--fg3); font-size: 14px; margin-bottom: 6px; }
.gast-fuss { max-width: 980px; margin: 0 auto; padding: 0 18px 30px; font-size: 12.5px; color: var(--fg3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gast-fuss a { color: var(--fg2); }
.wahlkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wahlkarte { border: 1px solid var(--line); background: var(--tief); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.wahlkarte.ja { border-color: var(--ja); box-shadow: inset 0 0 0 1px var(--ja); }
.wahlkarte.vielleicht { border-color: var(--vielleicht); box-shadow: inset 0 0 0 1px var(--vielleicht); }
.wahlkarte.voll-k { opacity: .55; }
.wahlkarte .wk-kopf { display: flex; gap: 12px; align-items: center; }
.wahlkarte .wk-info { min-width: 0; }
.wahlkarte .wk-info b { display: block; font-weight: 600; }
.wahlkarte .wk-info small { color: var(--fg3); }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.drei.zwei { grid-template-columns: repeat(2, 1fr); }
.drei button { padding: 8px 4px; background: var(--panel); border: 0; border-right: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--fg2); }
.drei button:last-child { border-right: 0; }
.drei button[aria-pressed="true"][data-w="ja"] { background: var(--ja); color: var(--akzent-text); font-weight: 700; }
.drei button[aria-pressed="true"][data-w="vielleicht"] { background: var(--vielleicht); color: #2b2006; font-weight: 700; }
.drei button[aria-pressed="true"][data-w="nein"] { background: #5b6c71; color: #fff; font-weight: 700; }
.drei button:disabled { cursor: not-allowed; opacity: .5; }
.stand-k { font-size: 12px; color: var(--fg3); display: flex; gap: 10px; }
.stand-k .j { color: var(--ja); } .stand-k .v { color: var(--vielleicht); }
.klebe { position: sticky; bottom: 0; z-index: 5; background: rgba(38,50,56,.96); border-top: 1px solid var(--line); padding: 12px 16px; margin: 0 -16px; backdrop-filter: blur(4px); }
.klebe .in2 { max-width: 948px; margin: 0 auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ansicht-umschalter { margin-left: auto; }
.tage-leiste { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.tagwahl { flex: none; width: 74px; padding: 8px 4px; text-align: center; border: 1px solid var(--line); background: var(--tief); cursor: pointer; color: var(--fg2); }
.tagwahl b { display: block; font: 22px "Metrophobic", Arial, sans-serif; color: #fff; }
.tagwahl small { display: block; font-size: 11.5px; }
.tagwahl[aria-pressed="true"] { border-color: var(--akzent); background: #2f4a3e; box-shadow: inset 0 -3px 0 var(--akzent); }
.platzliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.platz { padding: 10px 6px; border: 1px solid var(--akzent); background: transparent; color: var(--akzent); font-weight: 600; cursor: pointer; font-size: 15px; }
.platz:hover, .platz[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); }
.buchung-raster { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }

@media (max-width: 1250px) {
  .kal-seite { grid-template-columns: 1fr; }
  .kal-seite > aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
}
/* ---- Handy */
@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; }
  .leiste { position: sticky; top: 0; height: auto; z-index: 20; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line2); }
  .marke { padding: 10px 12px; font-size: 19px; }
  .marke span.lang { display: none; }
  .neu-knopf { margin: 0 8px 0 auto; padding: 7px 11px; }
  .menue, .ich { display: none; }
  .leiste.offen .menue { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--tiefer); border-bottom: 1px solid var(--line); padding: 8px; max-height: 75vh; }
  .knopf.nur-mobil, .nur-mobil { display: inline-flex; }
  .haupt { padding: 18px 16px 50px; }
  .kal-seite, .buchung-raster { grid-template-columns: 1fr; }
  .monat .tag { min-height: 74px; }
  .monat .ev { font-size: 10.5px; padding: 1px 3px; }
  .monat .ev .uhr { display: none; }
  .woche, .woche .ganztage, .woche-koerper { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
  .woche .wk { font-size: 10.5px; padding: 4px 1px; }
  .gast-titel h1 { font-size: 24px; }
  .wochenzeiten .wtz { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .monat .wt { font-size: 10px; padding: 4px 2px; text-align: center; }
  .monat .tag { min-height: 58px; padding: 2px; }
  .monat .ev { height: 6px; padding: 0; font-size: 0; border-left-width: 0; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .kachel b { font-size: 28px; }
  h1 { font-size: 23px; }
}
@media print {
  .leiste, .neu-knopf, .knopf, .reiter, .klebe { display: none !important; }
  body { background: #fff; color: #000; }
  .rahmen { display: block; }
  .karte { box-shadow: none; border-color: #999; background: #fff; color: #000; }
}
