/* Inter wie auf marcelmund.de, selbst gehostet (Fontsource, SIL Open Font License) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/schrift/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/schrift/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/schrift/inter-700.woff2") format("woff2"); }
:root {
  --primaer: #253943;
  --sekundaer: #344D5C;
  --highlight: #9EB0B9;
  --grund: #F6F6F6;
  --text: #2F2F2F;
  --papier: #FFFFFF;
  --linie: #DDE2E5;
  --zart: #EBEEF0;
  --font: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --hell: #F6F6F6;
  --eck: 4px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
a { color: var(--primaer); }
.kopf { background: var(--papier); box-shadow: 0 1px 6px rgba(37, 57, 67, .08); padding: 10px 24px; display: flex; align-items: center; }
.kopf .logo img { height: 48px; display: block; }
.kopf-nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.kopf-nav a { font-weight: 600; text-decoration: none; }
.kopf-nav form { margin: 0; }
.buehne { max-width: 1080px; margin: 48px auto; padding: 0 16px; }
.fuss { text-align: center; padding: 0 16px 32px; font-size: 13px; }
.karte { background: var(--papier); border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 8px rgba(37, 57, 67, .08); }
.zweispaltig { display: grid; grid-template-columns: 300px 1fr; min-height: 560px; max-width: 1060px; margin: 0 auto; }
/* Wie bei Calendly: ohne gewaehlten Tag schmal, mit Tag waechst die Karte nach rechts
   und bleibt zentriert. Der Kalender selbst behaelt seine Breite. */
.kalender-karte { max-width: 820px; transition: max-width .35s ease; }
.kalender-karte.hat-zeiten { max-width: 1060px; }
.info { padding: 32px; background: var(--primaer); color: var(--hell); }
.info .rund { border-color: rgba(246, 246, 246, .35); color: var(--hell); }
.info .beratername { color: var(--highlight); }
.info h1 { color: #FFFFFF; }
.info h1::after { content: ""; display: block; width: 40px; height: 1px; background: var(--highlight); margin-top: 14px; }
.info .fakten li { color: var(--linie); }
.info .icon { color: var(--highlight); }
.info .beschreibung { color: rgba(246, 246, 246, .82); }
.info .initialen, .profil-kopf .initialen { background: var(--highlight); color: var(--primaer); }
.auswahl { padding: 32px; }
.rund { display: inline-flex; width: 44px; height: 44px; border: 1px solid var(--linie); border-radius: 50%; align-items: center; justify-content: center; color: var(--primaer); margin-bottom: 20px; }
.portrait { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.initialen { background: var(--primaer); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 20px; }
.beratername { color: var(--sekundaer); font-weight: 600; margin: 12px 0 4px; }
h1 { font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0 0 20px; color: var(--primaer); }
h2 { font-weight: 700; font-size: 18px; margin: 0 0 20px; color: var(--primaer); }
.fakten { list-style: none; padding: 0; margin: 0 0 20px; }
.fakten li { display: flex; gap: 8px; align-items: flex-start; color: var(--sekundaer); font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.fakten span { white-space: pre-line; }
.icon { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.beschreibung { white-space: pre-line; }
.kalender-und-zeiten { display: flex; gap: 32px; }
.kalender { flex: 0 0 440px; min-width: 0; }
.monatsleiste { display: flex; justify-content: center; align-items: center; gap: 32px; margin-bottom: 16px; }
.monat { font-weight: 600; }
.pfeil-link { font-size: 22px; text-decoration: none; color: var(--primaer); padding: 0 8px; }
.pfeil-link.aus { color: var(--zart); }
.monat-tabelle { width: 100%; border-collapse: collapse; text-align: center; }
.monat-tabelle th { font-size: 11px; font-weight: 600; color: var(--sekundaer); padding-bottom: 8px; }
.monat-tabelle td { padding: 4px; }
.monat-tabelle .kw { font-size: 11px; font-weight: 600; color: var(--sekundaer); width: 28px; padding-right: 6px; }
.kalender-und-zeiten { min-height: 360px; }
[data-kalender][aria-busy="true"] .kalender-und-zeiten { opacity: .6; transition: opacity .15s; }
.tag { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--eck); color: #8A969C; }
.tag.frei { background: #E9EEF1; color: var(--primaer); font-weight: 700; text-decoration: none; }
.tag.frei:hover { background: var(--highlight); color: #FFFFFF; }
.tag.gewaehlt { background: var(--primaer); color: #FFFFFF; }
.zeitzone { display: flex; gap: 8px; align-items: center; margin-top: 20px; font-size: 13px; }
.zeiten { width: 200px; max-height: 440px; overflow-y: auto; animation: einblenden .35s ease; }
@keyframes einblenden { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.tagestitel { margin: 0 0 12px; font-weight: 600; }
.zeit { display: block; width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid var(--highlight); border-radius: var(--eck); background: var(--papier); color: var(--primaer); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.zeit:hover { border: 2px solid var(--primaer); padding: 9px; }
.zeit.ausnahme { border-style: dashed; border-color: #b7791f; color: #8a5a12; background: #fff8eb; }
.zeit.ausnahme:hover { border: 2px dashed #8a5a12; }
.ausnahmen-schalter { margin: 0 0 12px; }
.knopf-klein { display: inline-block; padding: 6px 14px; border: 1px dashed #b7791f; border-radius: 999px; color: #8a5a12; background: var(--papier); font-size: 13px; font-weight: 600; text-decoration: none; }
.knopf-klein:hover, .knopf-klein.aktiv { background: #fff8eb; }
.formular label { display: block; font-weight: 600; margin-bottom: 18px; }
.formular input, .formular select, .formular textarea, .schmal textarea, .schmal input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #B9C3C8; border-radius: var(--eck); font: inherit; font-weight: 400; color: var(--text); }
.zeile.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gaeste summary { display: inline-block; border: 1px solid var(--primaer); border-radius: var(--eck); padding: 6px 16px; color: var(--primaer); font-weight: 600; cursor: pointer; margin-bottom: 18px; list-style: none; }
.gaeste summary::-webkit-details-marker { display: none; }
.knopf { display: inline-block; background: var(--primaer); color: #FFFFFF; border: 0; border-radius: var(--eck); padding: 11px 24px; font: inherit; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--sekundaer); }
.knopf.hell { background: var(--papier); color: var(--primaer); border: 1px solid var(--primaer); }
.knopfleiste { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.klein { font-size: 12px; }
.fehler { display: block; color: #7A4B4B; font-weight: 400; font-size: 12px; margin-top: 4px; }
.hinweis { background: #F3EFE6; border-left: 3px solid #B08D57; padding: 10px 14px; }
.erfolg { background: #E8F0EC; border-left: 3px solid #2F5D50; padding: 10px 14px; }
.unsichtbar { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.profil-kopf { background: var(--primaer); color: var(--hell); padding: 40px 48px 36px; text-align: center; }
.profil-kopf .portrait { margin: 0 auto; }
.profil-kopf .beratername { color: var(--highlight); margin: 14px 0 6px; }
.profil-kopf h1 { color: #FFFFFF; margin-bottom: 0; }
.profil-kopf h1::after { content: ""; display: block; width: 40px; height: 1px; background: var(--highlight); margin: 14px auto 0; }
.begruessung { max-width: 460px; margin: 16px auto 0; color: rgba(246, 246, 246, .82); white-space: pre-line; }
.profil-inhalt { padding: 8px 48px 40px; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; text-align: left; }
.kachel { display: grid; grid-template-columns: 3px 1fr 20px; gap: 8px 12px; padding: 28px 12px; border-top: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.kachel:hover { background: var(--grund); }
.fenster { background: var(--papier); }
.buehne-fenster { margin: 0 auto; padding: 24px 16px; }
.fenster-titel { color: var(--primaer); margin: 0 0 8px; }
.team-fenster .profil-inhalt { padding: 0; }
.team .profil-kopf { padding: 32px 48px 28px; }
.team .profil-inhalt { padding-bottom: 24px; }
.team-kachel { grid-template-columns: 56px 1fr 20px; align-items: center; padding: 20px 12px; }
.team-kachel .portrait { width: 56px; height: 56px; }
.team-kachel .initialen { display: flex; align-items: center; justify-content: center; background: var(--highlight); color: var(--primaer); font-weight: 700; }
.team-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team-thema { font-size: 13px; color: var(--sekundaer); }
.team-kachel:focus-visible { outline: 2px solid var(--primaer); outline-offset: -2px; }
.punkt { width: 3px; height: 22px; align-self: center; }
.kachel-titel { font-weight: 700; font-size: 16px; color: var(--primaer); }
.pfeil { font-size: 20px; color: var(--primaer); }
.kachel-text { grid-column: 1 / -1; font-size: 13px; }
.schmal { max-width: 640px; margin: 0 auto; padding: 40px; border-top: 4px solid var(--primaer); }
.breit { padding: 32px; }
.zeit-gross { font-weight: 600; color: var(--primaer); white-space: pre-line; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 20px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.verwaltung-nav { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.verwaltung-nav form { margin-left: auto; }
.zeilenform { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.meetings { max-width: 1060px; margin: 0 auto; }
.meeting-filter, .meeting-leiste { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.meeting-filter input[name="q"] { flex: 1; min-width: 220px; }
.meeting-filter input, .meeting-filter select { padding: 9px 12px; border: 1px solid #B9C3C8; border-radius: var(--eck); font: inherit; }
.meeting-leiste .knopf.aktiv { background: var(--primaer); color: #FFFFFF; }
.meeting-anzahl { margin-left: auto; color: var(--sekundaer); }
.meeting-tag { margin: 28px 0 10px; }
.meeting-liste { overflow: hidden; }
.meeting-zeile { display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; align-items: center; padding: 18px 24px; border-top: 1px solid var(--linie); }
.meeting-zeile:first-child { border-top: 0; }
.meeting-zeile.abgesagt .meeting-titel { text-decoration: line-through; opacity: .6; }
.meeting-titel { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.meeting-titel .strich { width: 3px; height: 20px; }
.meeting-rechts { display: flex; gap: 10px; align-items: center; }
.marke { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--eck); background: var(--zart); color: var(--sekundaer); margin-right: 8px; }
.marke.laeuft { background: #E8F0EC; color: #2F5D50; }
.marke.naechstes { background: #E9EEF1; color: var(--primaer); }
.marke.warnung { background: #F3EFE6; color: #7A5A2F; }

.meeting-detail h3 { font-size: 14px; margin: 22px 0 8px; color: var(--primaer); }
.meeting-detail input, .meeting-detail textarea { padding: 9px 12px; border: 1px solid #B9C3C8; border-radius: var(--eck); font: inherit; }
.meeting-detail textarea { width: 100%; }
.meeting-detail .zeilenform input { flex: 1; }
.protokoll { list-style: none; padding: 0; margin: 0; }
.protokoll li { padding: 6px 0; border-bottom: 1px solid var(--linie); }

.bestaetigung { border: 0; border-radius: 6px; padding: 28px 32px 24px; max-width: 420px; width: calc(100% - 32px); color: var(--text); background: var(--papier); box-shadow: 0 12px 40px rgba(37, 57, 67, .25); }
.bestaetigung[open] { animation: auftauchen .2s ease-out; }
.bestaetigung::backdrop { background: rgba(37, 57, 67, .45); animation: abdunkeln .2s ease-out; }
.bestaetigung-text { margin: 0 0 20px; font-size: 15px; font-weight: 600; color: var(--primaer); }
.bestaetigung .knopfleiste { justify-content: flex-end; margin-top: 0; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes abdunkeln { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 800px) {
  .meeting-zeile { grid-template-columns: 1fr; gap: 6px; }
  .zweispaltig { grid-template-columns: 1fr; }
  .kalender-karte, .kalender-karte.hat-zeiten { max-width: none; }
  .kalender { flex: 1 1 auto; }
  .kalender-und-zeiten { flex-direction: column; }
  .zeiten { width: 100%; }
  .kacheln, .zeile.zwei { grid-template-columns: 1fr; }
  .buehne { margin: 16px auto; }
  .info, .auswahl, .schmal, .breit, .profil-kopf { padding: 24px 16px; }
  .profil-inhalt { padding: 8px 16px 24px; }
  .tag { width: 38px; height: 38px; }
}

.qr svg { width: 200px; height: 200px; display: block; margin: 16px 0; }
.codes { columns: 2; list-style: none; padding: 0; font-size: 1.05em; }

.haken { display: flex; gap: 8px; align-items: center; margin: 8px 0 16px; }

.wochenstunden { margin-top: 12px; }
.ws-tag { display: flex; align-items: flex-start; gap: 16px; padding: 10px 0; }
.ws-kuerzel { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--primaer); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.ws-fenster { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-zeile { display: flex; align-items: center; gap: 10px; }
.ws-zeile input[type="time"] { width: 110px; padding: 8px 10px; border: 0; border-radius: var(--eck); background: #f6f7f8; font: inherit; text-align: center; }
.ws-frei { color: #5b6b75; line-height: 40px; }
.ws-weg, .ws-plus { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--primaer); cursor: pointer; padding: 8px; }
.ws-plus { margin-top: 2px; }
.ws-plus:disabled { opacity: .3; cursor: default; }
@media (max-width: 600px) { .ws-zeile input[type="time"] { width: 92px; } }

.farbpunkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

.gedimmt { opacity: .55; }
.haken-liste { border: 0; padding: 0; margin: 8px 0 16px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.haken-liste legend { font-weight: 600; margin-bottom: 6px; }

.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.schalter { display: flex; align-items: center; gap: 12px; margin: 8px 0; cursor: pointer; font-weight: 500; }
.schalter input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 44px; height: 24px; margin: 0; border-radius: 12px; background: #cfd6db; position: relative; cursor: pointer; transition: background .15s; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.schalter input:checked { background: var(--primaer); }
.schalter input:checked::after { left: 23px; }
.schalter input:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
.schalter-liste { border: 0; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.schalter-liste legend, .auswahl-karten legend { font-weight: 600; margin-bottom: 6px; }
.auswahl-karten { border: 0; padding: 0; margin: 8px 0 16px; display: grid; gap: 10px; }
.auswahl-karten label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 14px; border: 1px solid #d5dbdf; border-radius: var(--eck); cursor: pointer; }
.auswahl-karten label .klein { grid-column: 2; }
.punktliste { display: block; }
.punktliste::before { content: "•"; color: var(--primaer); margin-right: 8px; }
