/* Arbeitsplan: ruhige Typografie, klare Terminzeilen und große Bedienflächen. */
:root {
  --primary: #275582;
  --primary-dunkel: #193f65;
  --heading: #123555;
  --gold: #886a32;
  --flaeche: #fff;
  --karte: #fff;
  --feature: #f0f4f7;
  --text: #182333;
  --text-2: #5d6571;
  --rand: #bec5cd;
  --linie: #dce0e5;
  --on-primary: #fff;
  --gefahr: #aa2821;
  --erfolg: #22683e;
  --radius: 6px;
  font-size: 20px;
  color-scheme: light;
}
:root[data-schrift="gross"] { font-size: 23px; }
:root[data-schrift="sehr-gross"] { font-size: 26px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.45; background: var(--flaeche); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3 { color: var(--heading); font-family: "Times New Roman", Georgia, serif; line-height: 1.16; }
h1 { font-size: 2.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.7rem; margin: 0 0 .9rem; }
h3 { font-size: 1.3rem; margin: 0; }
p { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eyebrow { margin: 0; color: var(--gold); font-family: "Times New Roman", Georgia, serif; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase; }
.container, .topbar-inner, .tabs { width: 84%; max-width: 1440px; margin-inline: auto; }
.container { padding-block: 1.6rem 3rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; font-weight: 500; line-height: 1.25; min-height: 2.5rem; padding: .55rem 1rem; border: 1.5px solid transparent; border-radius: var(--radius); cursor: pointer; text-align: center; }
.btn-primary { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dunkel); border-color: var(--primary-dunkel); }
.btn-secondary { background: var(--karte); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover, .btn-quiet:hover { background: var(--feature); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--rand); }
.btn-danger { background: var(--gefahr); color: #fff; }
.btn-block { width: 100%; margin-top: 1.4rem; }
.btn-klein { min-height: 2.4rem; padding: .35rem .7rem; font-size: .9rem; }
.gross { font-size: 1.25em; }
label { display: block; font-weight: 500; margin: 1rem 0 .35rem; }
.optional { font-weight: 400; color: var(--text-2); }
input, select, textarea { min-width: 0; width: 100%; min-height: 2.8rem; padding: .55rem .85rem; border: 1.5px solid var(--rand); border-radius: var(--radius); background: var(--karte); color: var(--text); }
input::placeholder, textarea::placeholder { color: #6c7380; opacity: 1; }
select { padding-right: 1.6rem; }
textarea { resize: vertical; line-height: 1.5; }
.hinweis { color: var(--text-2); font-size: .9rem; margin: .4rem 0 0; }
.fehler { color: var(--gefahr); font-weight: 600; margin: .8rem 0 0; }
.login { min-height: calc(100svh - 5rem); display: grid; place-items: center; padding: 2rem 20px; background: #f7f8fa; }
.login-card { width: 100%; max-width: 560px; padding: 2.4rem; background: var(--karte); border: 1px solid var(--linie); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.login h1 { margin: .3rem 0 1.5rem; }
.demo-hinweis { margin-top: 1.5rem; padding: .85rem; background: var(--feature); border-radius: var(--radius); font-size: .85rem; }
.topbar { background: var(--karte); border-bottom: 1px solid var(--linie); }
.topbar-inner { min-height: 5rem; padding-block: .65rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.marke-titel { font-family: "Times New Roman", Georgia, serif; font-size: 2.4rem; line-height: 1.05; font-weight: 700; color: var(--heading); margin: 0; }
.wer { margin: 0 .4rem 0 0; padding-right: 1.2rem; border-right: 1px solid var(--rand); font-size: .95rem; }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.topbar-actions .btn { white-space: nowrap; font-size: .85rem; }
.tabs { display: flex; gap: .9rem; }
.tab { font: inherit; color: var(--text-2); background: transparent; border: 0; border-bottom: 3px solid transparent; padding: .8rem .4rem .45rem; min-height: 2.5rem; }
.tab[aria-current="page"] { font-family: "Times New Roman", Georgia, serif; font-size: 1.15rem; color: var(--heading); border-bottom-color: var(--primary); font-weight: 700; }
.filter { padding: 0; }
.filter-details { display: contents; }
.filter-toggle, .kalender-kurz { display: none; }
.zeitraum { display: flex; gap: 2.3rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .4rem; }
.seg { font: inherit; font-weight: 600; min-height: 2.5rem; padding: .45rem .7rem; line-height: 1.25; border: 1.5px solid var(--primary); border-radius: var(--radius); background: var(--karte); color: var(--primary); cursor: pointer; }
.seg[aria-pressed="true"] { color: var(--on-primary); background: var(--primary); }
.zeitraum .seg { flex: none; color: var(--text-2); background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; font-family: "Times New Roman", Georgia, serif; font-size: 1.55rem; font-weight: 700; padding: .15rem 0 .45rem; }
.zeitraum .seg[aria-pressed="true"] { color: var(--heading); border-color: var(--gold); font-size: 2.4rem; }
.filter-felder { display: grid; grid-template-columns: 1fr .93fr 1fr; gap: 1rem; padding-block: 0 1rem; }
.filter-felder:has(#feld-jahr:not([hidden])) { grid-template-columns: 1.15fr 1fr .55fr 1.1fr; }
#f-suche { padding-right: 2.5rem; background-image: url("assets/search.svg"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; }
#f-suche::-webkit-search-cancel-button { margin-right: 1.3rem; }
.plan-werkzeuge { border-top: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: .6rem; }
.aktionen { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.plan-werkzeuge .aktionen { margin: 0; }
#btn-pdf { min-width: 12rem; }
.anzahl { color: var(--text-2); margin: 0; white-space: nowrap; }
.monat { font-size: 2.1rem; margin: .8rem 0 0; padding-bottom: .35rem; border-bottom: 2px solid var(--gold); }
.termin { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) 13.5rem; gap: 1.1rem; align-items: start; padding: .5rem 0; border-bottom: 1px solid var(--linie); min-height: 6rem; }
.termin-zeit { display: grid; grid-template-columns: 4.7rem 1fr; align-items: center; }
.datum-block { text-align: center; line-height: 1.12; padding-right: .7rem; border-right: 1px solid var(--linie); }
.datum-block .wt, .datum-block .mon { font-size: .88rem; color: var(--text-2); }
.datum-block .tag { font-size: 2.1rem; color: var(--text); font-weight: 700; font-family: "Times New Roman", Georgia, serif; }
.uhrzeit { font-size: .95rem; margin: 0; padding-left: 1rem; white-space: nowrap; }
.termin-inhalt { min-width: 0; padding-top: .1rem; }
.termin h3 { margin: 0 0 .2rem; }
.termin .kurz { font-size: .9rem; font-weight: 400; white-space: nowrap; }
.termin .loge, .termin .meta { margin: .1rem 0 0; font-size: .95rem; }
.termin .meta { color: var(--text-2); }
.termin .knoepfe { display: flex; flex-direction: column; gap: .35rem; }
.termin .knoepfe .btn { width: 100%; }
.beschreibung { border-top: 1px solid var(--linie); margin-top: .65rem; padding-top: .55rem; font-size: .95rem; }
.beschreibung .beschreibung-titel { font-weight: 600; font-size: .85rem; color: var(--text-2); margin: 0 0 .2rem; }
.beschreibung p { white-space: pre-wrap; margin: 0; }
.beschreibung-link { color: #194f82; background: #edf3f8; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1.5px; font-weight: 600; overflow-wrap: anywhere; border-radius: 2px; padding-block: .08em; }
.beschreibung-link:hover { background: #dbe9f4; }
.leer { padding: 2rem 1rem; text-align: center; color: var(--text-2); background: var(--feature); border-radius: var(--radius); }
.block { padding-block: 1.2rem 1.7rem; border-bottom: 1px solid var(--linie); }
.block-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.block-kopf h2 { margin: 0; }
#form-loge { max-width: 680px; }
.formular .btn-primary:not(.btn-block) { margin-top: 1rem; }
dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border: 1px solid var(--rand); border-radius: 8px; padding: 1.5rem; background: var(--karte); color: var(--text); }
dialog::backdrop { background: rgb(13 28 43 / .5); }
dialog h2 { font-size: 1.65rem; }
.dlg-knoepfe { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.dlg-knoepfe .btn { flex: 1 1 10rem; margin-top: 0 !important; }
.an { background: var(--feature); padding: .7rem .8rem; border-radius: var(--radius); margin: 0; }
.passwort { font-size: 1.8rem; font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .06em; text-align: center; background: var(--feature); padding: .8rem; border-radius: var(--radius); overflow-wrap: anywhere; }
.schritt-titel { font-weight: 600; margin: 1.2rem 0 .4rem; }
.geraete { display: flex; gap: .4rem; flex-wrap: wrap; }
.geraete .seg { flex: 1; }
.anleitung ol { padding-left: 1.4rem; margin: 1rem 0; }
.anleitung li { margin-bottom: .5rem; }
.anleitung .btn { width: 100%; margin-top: .8rem; }
.alternativ { margin-top: 1.4rem; }
.alternativ summary { cursor: pointer; font-weight: 600; color: var(--primary); min-height: 2.4rem; }
/* ---------- Halbjahresplaner ---------- */
dialog.breit { width: min(760px, calc(100vw - 32px)); }
.kopf-knoepfe { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.segs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.segs .seg { flex: 1 1 10rem; }
.wochentage .seg { flex: 1 1 3.2rem; }
.nr {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; margin-right: 0.4rem;
  border-radius: 50%; background: var(--gold); color: #fff; font-size: 0.85rem;
}
.regel label { margin-top: 0.8rem; }
.regel-zeile { display: flex; gap: 0.5rem; align-items: center; }
.regel-zeile select { flex: 1 1 auto; }
.regel-zeile input[type="time"] { flex: 0 0 7.5rem; }
.haken { display: flex; gap: 0.7rem; align-items: center; font-weight: 400; margin-top: 1.2rem; cursor: pointer; }
.haken input, .hj-zeile input[type="checkbox"] { width: 1.6rem; height: 1.6rem; min-height: 0; flex: none; accent-color: var(--primary); }
.hj-zusammenfassung { background: var(--feature); padding: 0.7rem 0.9rem; border-radius: 10px; margin: 0; }
.hj-vorschau { margin-top: 0.8rem; }
dialog.breit .dlg-knoepfe {
  position: sticky; bottom: -1.5rem;
  margin: 1rem -1.5rem -1.5rem; padding: 0.9rem 1.5rem;
  background: var(--karte); border-top: 1px solid var(--rand);
}
.hj-monat { font-weight: 700; margin: 1rem 0 0.3rem; color: var(--gold); }
.hj-zeile {
  display: grid;
  grid-template-columns: auto 9rem 6.5rem 1fr;
  gap: 0.5rem; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid var(--rand);
}
.hj-zeile select, .hj-zeile input[type="time"] { min-height: 2.6rem; padding: 0.3rem 0.5rem; }
.hj-zeile.aus .hj-datum, .hj-zeile.aus select, .hj-zeile.aus input[type="time"] { opacity: 0.45; }
.hj-zeile.belegt { grid-template-columns: auto 9rem 1fr; color: var(--text-2); }
.hj-belegt-text { font-style: italic; }

@media (max-width: 520px) {
  .hj-zeile { grid-template-columns: auto 1fr 6.5rem; }
  .hj-zeile select { grid-column: 2 / -1; }
  .hj-zeile.belegt { grid-template-columns: auto 1fr; }
  .hj-zeile.belegt .hj-belegt-text { grid-column: 2; }
  .regel-zeile { flex-wrap: wrap; }
  .regel-zeile select { flex: 1 1 100%; }
  .regel-zeile input[type="time"] { flex: 1 1 0; width: auto; min-width: 0; }
  dialog.breit .dlg-knoepfe { flex-wrap: nowrap; }
  dialog.breit .dlg-knoepfe .btn { flex: 1 1 0; padding-inline: 0.5rem; }
}


.toast { position: fixed; left: 16px; right: 16px; bottom: 1.2rem; margin: 0 auto; width: fit-content; text-align: center; background: var(--erfolg); color: #fff; padding: .85rem 1.2rem; border-radius: var(--radius); font-weight: 600; max-width: calc(100vw - 32px); z-index: 20; }
.toast.toast-fehler { background: var(--gefahr); }
.fuss { text-align: center; color: var(--text-2); font-size: .8rem; padding: 1.2rem 20px 2rem; }
@media (max-width: 1200px) {
  .container, .topbar-inner, .tabs { width: 92%; }
  .termin { grid-template-columns: 9rem minmax(0, 1fr) 12.5rem; gap: .8rem; }
  .termin-zeit { grid-template-columns: 3.2rem 1fr; }
  .uhrzeit { padding-left: .65rem; }
  .wer { max-width: 18rem; }
}
@media (max-width: 960px) {
  .topbar-inner { align-items: flex-start; }
  .topbar-actions { justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
  .wer { border: 0; padding: 0; max-width: none; width: 100%; text-align: right; }
  .zeitraum { gap: 1rem; }
  .zeitraum .seg[aria-pressed="true"] { font-size: 1.9rem; }
  .zeitraum .seg { font-size: 1.3rem; }
  .termin { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .termin .knoepfe { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .termin .knoepfe .btn { width: auto; flex: 1 1 10rem; }
  .filter-felder, .filter-felder:has(#feld-jahr:not([hidden])) { grid-template-columns: 1fr 1fr; }
  .filter-felder .feld-suche { grid-column: 1 / -1; }
  .filter-felder:has(#feld-jahr:not([hidden])) .feld-suche { grid-column: auto; }
  .plan-werkzeuge { align-items: flex-start; flex-direction: column; }
  .plan-werkzeuge .aktionen { width: 100%; }
  .plan-werkzeuge .btn { flex: 1; }
}
@media (max-width: 600px) {
  .container, .topbar-inner, .tabs { width: calc(100% - 32px); }
  .container { padding-top: 1rem; }
  .topbar-inner { flex-direction: column; gap: .8rem; padding-block: 1rem .5rem; }
  .marke-titel { font-size: 2rem; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .wer { text-align: left; font-size: .85rem; margin: 0 0 .2rem; }
  .topbar-actions .btn { min-height: 48px; }
  .tabs { gap: .6rem; }
  .tab { padding-inline: 0; font-size: .9rem; }
  .zeitraum { gap: .8rem; flex-direction: row; align-items: stretch; flex-wrap: nowrap; margin-bottom: .4rem; }
  .zeitraum .seg, .zeitraum .seg[aria-pressed="true"] { flex: 1; font-family: Arial, Helvetica, sans-serif; font-size: .95rem; min-height: 48px; text-align: left; }
  .zeitraum .seg[aria-pressed="false"] { font-size: .95rem; font-weight: 400; }
  .filter-felder, .filter-felder:has(#feld-jahr:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
  .filter-felder .feld-suche, .filter-felder:has(#feld-jahr:not([hidden])) .feld-suche { order: -2; grid-column: 1; }
  .filter-toggle { display: inline-flex; order: -1; align-self: end; min-height: 2.8rem; }
  .filter-details { display: none; grid-column: 1 / -1; gap: .6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter[data-filter-offen="true"] .filter-details { display: grid; }
  .filter-details .feld { min-width: 0; }
  .filter-details label { font-size: .85rem; }
  .filter-details select { padding-inline: .45rem; font-size: .9rem; }
  .filter-details #feld-jahr { grid-column: 1 / -1; }
  .kalender-lang { display: none; }
  .kalender-kurz { display: inline; }
  #btn-pdf { min-width: 0; }
  #f-suche { background-image: none; padding-right: .6rem; font-size: .9rem; }
  #f-suche::-webkit-search-cancel-button { margin-right: 0; }
  .filter-felder .feld-suche { grid-column: auto; }
  .filter-felder label { margin-top: .6rem; }
  .plan-werkzeuge .aktionen { gap: .5rem; }
  .plan-werkzeuge .btn { flex: 1 1 0; font-size: .85rem; padding-inline: .5rem; min-height: 48px; }
  .monat { font-size: 1.6rem; margin-top: 1.1rem; }
  .termin { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .7rem; padding-block: 1rem; }
  .termin-zeit { display: flex; flex-direction: column; gap: .4rem; }
  .datum-block { border: 0; padding: 0; }
  .datum-block .tag { font-size: 1.9rem; }
  .uhrzeit { white-space: normal; text-align: center; padding: 0; font-size: .8rem; }
  .termin h3 { font-size: 1.2rem; }
  .termin .kurz { font-size: .8rem; }
  .termin .loge, .termin .meta, .beschreibung { font-size: .9rem; }
  .termin .knoepfe { grid-column: 1 / -1; gap: .5rem; }
  .termin .knoepfe .btn { flex: 1 1 100%; min-height: 48px; }
  .login-card { padding: 1.3rem; }
  dialog { padding: 1rem; }
  dialog.breit .dlg-knoepfe { bottom: -1rem; margin-inline: -1rem; margin-bottom: -1rem; padding: .75rem 1rem; }
  .kopf-knoepfe, .block .aktionen { width: 100%; }
  .kopf-knoepfe .btn, .block .aktionen .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .filter-felder, .filter-felder:has(#feld-jahr:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { justify-self: start; }
  .filter-details { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Druck / PDF ---------- */
.druck { display: none; }
@media print {
  :root { font-size: 11pt; color-scheme: light; }
  body { background: #fff; color: #000; }
  body > *:not(#druck) { display: none !important; }
  .druck { display: block; }
  .druck h1 { font-size: 18pt; margin: 0 0 2pt; }
  .druck .unter { margin: 0 0 10pt; color: #444; }
  .druck table { width: 100%; border-collapse: collapse; }
  .druck th, .druck td { text-align: left; padding: 4pt 6pt; border-bottom: 0.5pt solid #bbb; vertical-align: top; }
  .druck th { border-bottom: 1pt solid #000; }
  .druck tr { break-inside: avoid; }
  .druck td:nth-child(-n+2) { white-space: nowrap; }
  .druck .monat-zeile td { font-weight: 700; padding-top: 10pt; border-bottom: 1pt solid #886a32; }
  @page { margin: 15mm; }
}

@media print {
  .druck-beschreibung { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4pt; }
  .druck .beschreibung-link { color: #000; background: transparent; }
}

/* Moderne Monatsübersicht */
:root { --primary: #245bcc; --primary-dunkel: #1849ab; --heading: #18243a; --gold: #245bcc; --text: #263247; --text-2: #606b7d; --rand: #c9d0db; --linie: #e2e6ec; --feature: #f3f6fb; --radius: 7px; font-size: 18px; }
:root[data-schrift="gross"] { font-size: 21px; }
:root[data-schrift="sehr-gross"] { font-size: 24px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
h1, h2, h3, .marke-titel, .eyebrow, .tab[aria-current="page"], .datum-block .tag { font-family: inherit; }
h1 { font-size: 2rem; letter-spacing: -.035em; }
h2 { font-size: 1.45rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; }
.container, .topbar-inner { width: calc(100% - 64px); max-width: 1600px; }
#screen-app { height: 100dvh; display: flex; flex-direction: column; }
.topbar-inner { min-height: 80px; padding-block: 0; gap: 2.5rem; }
.marke { flex: none; }
.marke-titel { font-size: 1.35rem; letter-spacing: -.03em; }
.eyebrow { font-size: .78rem; letter-spacing: 0; text-transform: none; color: var(--text-2); margin-top: .25rem; }
.tabs { width: auto; max-width: none; margin: 0; align-self: stretch; gap: 1.6rem; }
.tab, .tab[aria-current="page"] { font-size: .95rem; padding: .5rem .15rem; font-weight: 500; }
.tab[aria-current="page"] { color: var(--primary); font-weight: 600; }
.topbar-actions { margin-left: auto; gap: .65rem; flex-wrap: nowrap; }
.wer { font-size: .85rem; border: 0; padding: 0; margin-right: .5rem; max-width: none; }
.btn { min-height: 44px; font-size: .9rem; padding: .5rem .8rem; border-width: 1px; }
.btn-secondary { color: var(--text); border-color: var(--rand); }
.btn-text { color: var(--primary); background: transparent; border-color: transparent; }
.btn-text:hover { background: var(--feature); }
.menue { position: relative; }
.menue summary { list-style: none; white-space: nowrap; }
.menue summary::-webkit-details-marker { display: none; }
.menue[open] summary { background: var(--feature); border-color: var(--primary); }
.menue-inhalt { position: absolute; right: 0; top: calc(100% + 8px); min-width: 245px; background: white; padding: .4rem; border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 8px 24px #18243a18; z-index: 10; }
.menue-inhalt .btn { display: flex; width: 100%; justify-content: flex-start; text-align: left; border: 0; }
#view-plan { padding: 1.75rem 0 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.plan-kopf { display: flex; gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.plan-kopf h1 { margin: 0; min-width: 14rem; }
.monatsnavigation { display: flex; gap: .4rem; }
.filter-felder { display: grid; grid-template-columns: minmax(220px, 1.15fr) minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: .65rem; padding: 0 0 1.6rem; border-bottom: 1px solid var(--linie); }
.filter-felder input, .filter-felder select { min-height: 46px; height: 46px; font-size: .9rem; padding-block: .4rem; border-width: 1px; }
#f-suche { padding-left: 2.3rem; padding-right: .7rem; background-position: .8rem center; background-size: 1rem; }
.filter-felder .feld-suche { grid-column: auto; }
.export { justify-self: end; margin-left: 1.6rem; }
.export summary { height: 46px; }
.plan-inhalt { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr); flex: 1; min-height: 0; }
.listen-bereich { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--linie); }
.listen-kopf, .termin-zeile { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 4.6rem; gap: 1rem; padding-inline: .85rem 1.2rem; }
.listen-kopf { font-size: .8rem; color: var(--text-2); padding-block: 1rem .65rem; flex: none; }
.listen-kopf span:last-child { text-align: center; }
/* position: relative hält absolut positionierte Elemente (z. B. .sr-only) im Scrollbereich – sonst verlängern sie die Seite. */
#liste { position: relative; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.termin-zeile { align-items: center; min-height: 100px; padding-block: .8rem; border-bottom: 1px solid var(--linie); }
.termin-zeile:hover { background: #f8faff; }
.termin-zeile.ausgewaehlt { background: #eaf1fd; box-shadow: inset 3px 0 var(--primary); }
.zeilen-datum { align-self: start; padding-top: .1rem; font-size: .85rem; }
.zeilen-datum strong, .zeilen-datum span { display: block; }
.zeilen-datum strong { font-weight: 600; margin-bottom: .2rem; }
.zeilen-inhalt h3 { font-size: 1rem; letter-spacing: -.015em; margin: 0 0 .2rem; line-height: 1.3; font-weight: 600; }
.zeilen-inhalt p { margin: .1rem 0 0; font-size: .85rem; }
.zeilen-inhalt .meta { color: var(--text-2); font-size: .8rem; }
.termin-zeile .btn { font-size: .8rem; min-width: 0; padding-inline: .5rem; background: white; }
.termin-zeile .btn[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
#termin-details { position: relative; padding: 1rem 0 1.5rem 1.65rem; overflow-y: auto; min-width: 0; scrollbar-width: thin; }
.detail-label { font-size: .85rem; font-weight: 600; margin: 0 0 1.5rem; }
#detail-titel { font-size: 1.4rem; margin: 0 0 .5rem; line-height: 1.3; }
.detail-loge { margin: 0; }
.detail-fakten { margin: 1.4rem 0; }
.detail-fakten p { display: flex; align-items: flex-start; gap: .65rem; margin: .7rem 0; font-size: .9rem; }
.detail-fakten img { width: 19px; height: 19px; margin-top: .2rem; flex: none; opacity: .65; }
#termin-details .beschreibung { border: 0; font-size: .95rem; padding: 0; margin-top: 1.5rem; line-height: 1.6; }
.beschreibung h3 { margin-bottom: .65rem; font-size: .95rem; }
.beschreibung-link { color: #2052b3; background: #edf3ff; }
.detail-aktionen { margin-top: 1.6rem; display: grid; gap: .65rem; }
.detail-aktionen .btn { min-height: 46px; }
.plan-fuss { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--linie); padding: .8rem 0; flex: none; }
.anzahl { font-size: .85rem; }
.zurueck { display: none; }
#view-verwalten { position: relative; overflow-y: auto; flex: 1; }
.monat { font-size: 1.2rem; border-bottom: 1px solid var(--linie); padding: .8rem 0; }
.termin { grid-template-columns: 10rem minmax(0, 1fr) 9rem; padding-block: 1rem; }
.termin h3 { font-size: 1.1rem; }
.termin .meta, .termin .loge { font-size: .9rem; }
body:has(#screen-app:not([hidden])) > .fuss { display: none; }
@media (max-width: 1100px) {
 .container, .topbar-inner { width: calc(100% - 40px); }
 .topbar-inner { gap: 1.4rem; align-items: center; }
 .wer { display: none; }
 .filter-felder { grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; }
 .export { margin-left: 0; }
 .plan-inhalt { grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); }
 .listen-kopf, .termin-zeile { grid-template-columns: 5rem minmax(0, 1fr) 4rem; gap: .6rem; padding-inline: .65rem; }
 #termin-details { padding-left: 1.1rem; }
}
@media (max-width: 800px) {
 #screen-app { height: auto; min-height: 100dvh; }
 .topbar-inner { flex-wrap: wrap; flex-direction: row; gap: .5rem; padding: .75rem 0 0; }
 .marke-titel { font-size: 1.2rem; }
 .topbar-actions { width: auto; margin-left: auto; flex-wrap: nowrap; }
 .topbar-actions summary { font-size: .8rem; padding-inline: .6rem; }
 .tabs { order: 3; width: 100%; min-height: 48px; }
 .tab { min-height: 48px; }
 .container, .topbar-inner { width: calc(100% - 32px); }
 #view-plan { padding-top: 1.2rem; }
 .plan-kopf { flex-wrap: wrap; gap: .75rem; margin-bottom: .85rem; }
 .plan-kopf h1 { font-size: 1.7rem; width: 100%; }
 .monatsnavigation { width: 100%; }
 .monatsnavigation .btn { flex: 1; font-size: .8rem; padding: .5rem .35rem; }
 .filter-felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; padding-bottom: 1rem; }
 .filter-felder .feld-suche { grid-column: 1 / -1; order: 0; }
 .filter-felder .feld { order: 0; }
 .filter-felder input, .filter-felder select { font-size: .85rem; }
 .export { grid-column: 1 / -1; justify-self: stretch; }
 .export summary { width: 100%; justify-content: center; }
 .export .menue-inhalt { left: 0; right: 0; min-width: 0; }
 .plan-inhalt { display: block; }
 .listen-bereich { border: 0; }
 .listen-kopf { grid-template-columns: 5rem minmax(0, 1fr) 4rem; font-size: .7rem; }
 .termin-zeile { grid-template-columns: 5rem minmax(0, 1fr); gap: .4rem .75rem; padding: .9rem .55rem; }
 .zeilen-inhalt h3 { font-size: .95rem; }
 .termin-zeile > .btn { grid-column: 2; justify-self: start; min-width: 90px; margin-top: .4rem; }
 #liste, #termin-details { overflow: visible; }
 #termin-details { display: none; padding: 0 0 1.5rem; }
 #view-plan[data-details="true"] #termin-details { display: block; }
 #view-plan[data-details="true"] .listen-bereich, #view-plan[data-details="true"] > .filter-felder, #view-plan[data-details="true"] > .plan-kopf, #view-plan[data-details="true"] > .plan-fuss { display: none; }
 .zurueck { display: inline-flex; margin-bottom: 1.5rem; }
 .plan-fuss { flex-direction: column; align-items: flex-start; }
 .detail-aktionen .btn { min-height: 48px; }
 .termin { grid-template-columns: 4rem minmax(0, 1fr); }
 .termin .knoepfe { grid-column: 1 / -1; }
}
@media (min-width: 1101px) {
 .container, .topbar-inner { width: calc(100% - 96px); }
 .topbar-inner { gap: 5.5rem; min-height: 74px; }
 .marke-titel { font-size: 1.5rem; }
 .plan-kopf { margin-bottom: 1rem; }
 .plan-kopf h1 { font-size: 2.15rem; }
 .filter-felder { padding-bottom: 1.1rem; }
 .plan-inhalt { grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); }
 .listen-kopf, .termin-zeile { grid-template-columns: 10.4rem minmax(0, 1fr) 5.6rem; gap: 1rem; }
 .termin-zeile { min-height: 91px; padding-block: .65rem; }
 .zeilen-inhalt h3 { font-size: 1rem; }
 .zeilen-inhalt p { font-size: .9rem; }
 .zeilen-inhalt .meta { font-size: .85rem; }
 .zeilen-datum { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; align-self: stretch; font-size: .9rem; }
 .zeilen-datum > div { border-right: 1px solid var(--linie); }
 .zeilen-datum > span { padding-left: .7rem; }
 .zeilen-datum strong { margin: 0; }
 .zeilen-datum > div > span { color: var(--text-2); }
}
#termin-details .beschreibung { border-top: 1px solid var(--linie); padding-top: 1rem; }
.detail-loge { font-weight: 600; font-size: 1.1rem; }
.detail-aktionen { border-top: 1px solid var(--linie); padding-top: 1.2rem; }
.detail-aktionen .btn-secondary { color: var(--primary); border-color: var(--primary); }
.menue summary { padding-right: 2rem; background-image: url('assets/chevron-down.svg'); background-size: .7rem; background-repeat: no-repeat; background-position: right .7rem center; }
.menue[open] summary { background-image: url('assets/chevron-down.svg'); }
@media (max-width: 800px) {
 #f-suche { background-image: url('assets/search.svg'); }
 .listen-kopf span:last-child { display: none; }
}

/* Halbjahresplaner – ein Arbeitsblatt mit Raum für lange Beschreibungen. */
#view-halbjahr { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 1rem 0 0; }
.hj-kopf { flex: none; }
.hj-pfad { color: var(--text-2); font-size: .8rem; margin: 0 0 .65rem; }
.hj-pfad button { font: inherit; padding: 0; border: 0; cursor: pointer; }
.hj-kopf h1 { font-size: 1.9rem; margin: 0 0 .45rem; }
.hj-einleitung { color: var(--text-2); margin: 0 0 1rem; font-size: .9rem; }
.hj-werkzeuge { display: flex; gap: .8rem; align-items: center; margin: 1rem 0; }
.hj-werkzeuge label { margin: 0; font-size: .85rem; white-space: nowrap; }
.hj-werkzeuge select { width: auto; min-width: 12rem; min-height: 44px; font-size: .9rem; }
#hj-regeln-bearbeiten { margin-left: auto; }
.hj-regelband { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--feature); border-radius: 6px; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .8rem; }
.hj-regelband p { margin: 0; }
.hj-regelband .haken { margin: 0; font-size: .8rem; }
.hj-regelband .haken input { width: 20px; height: 20px; }
.hj-arbeitsblatt { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hj-tabelle-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--linie); border-radius: 6px; scrollbar-width: thin; }
.hj-tabelle { width: 100%; border-spacing: 0; table-layout: fixed; font-size: .85rem; }
.hj-col-datum { width: 10rem; }
.hj-col-beginn { width: 6.3rem; }
.hj-col-art { width: 16rem; }
.hj-col-aktion { width: 8rem; }
.hj-tabelle thead { position: sticky; top: 0; z-index: 2; }
.hj-tabelle thead th { background: #f3f5f9; padding: .7rem .7rem; text-align: left; font-weight: 500; border-bottom: 1px solid var(--rand); }
.hj-tabelle th, .hj-tabelle td { border-right: 1px solid var(--linie); }
.hj-tabelle th:last-child, .hj-tabelle td:last-child { border-right: 0; }
.hj-monatszeile th { text-align: left; background: #f7f9fc; font-size: .95rem; padding: .65rem .8rem; border-bottom: 1px solid var(--linie); }
.hj-monatszeile span { float: right; color: var(--text-2); font-size: .8rem; font-weight: 400; }
.hj-datenzeile > th, .hj-datenzeile > td { padding: .5rem; vertical-align: top; border-bottom: 1px solid var(--linie); }
.hj-datenzeile > th { text-align: left; padding: .95rem .75rem; font-weight: 400; white-space: nowrap; }
.hj-datenzeile:focus-within { background: #f0f5ff; }
.hj-tabelle input, .hj-tabelle select, .hj-tabelle textarea { font-size: .85rem; border-width: 1px; border-color: #d8dfe9; min-height: 42px; padding: .5rem; line-height: 1.45; }
.hj-tabelle input:focus, .hj-tabelle select:focus, .hj-tabelle textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); background: white; }
.hj-tabelle textarea { display: block; min-height: 76px; resize: vertical; field-sizing: content; max-height: 420px; }
.hj-tabelle textarea::placeholder { color: #737c8b; }
.hj-linkvorschau { font-size: .75rem; display: flex; flex-wrap: wrap; gap: .3rem; overflow-wrap: anywhere; }
.hj-linkvorschau:not(:empty) { margin-top: .35rem; }
.hj-linkvorschau a { max-width: 100%; }
.hj-datenzeile .btn { font-size: .8rem; width: 100%; padding-inline: .3rem; }
.hj-datenzeile.ausgelassen { background: #f8f9fb; }
.hj-datenzeile.ausgelassen input, .hj-datenzeile.ausgelassen select, .hj-datenzeile.ausgelassen textarea { color: var(--text-2); background: #f0f2f5; }
.hj-datenzeile small { display: block; font-size: .7rem; color: var(--text-2); }
.hj-belegt > * { padding: .8rem; font-weight: 400; text-align: left; color: var(--text-2); background: #f8f9fb; border-bottom: 1px solid var(--linie); }
.hj-blattfuss { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; }
#hj-monate { display: flex; overflow-x: auto; }
.hj-monatsbutton { font: inherit; font-size: .8rem; white-space: nowrap; background: white; border: 1px solid var(--linie); padding: .65rem .9rem; min-height: 44px; }
.hj-monatsbutton[aria-pressed="true"] { color: var(--primary); background: #eaf0fe; border-color: #d2def6; font-weight: 600; }
.hj-monatsbutton:first-child { border-radius: 5px 0 0 5px; }
.hj-monatsbutton:last-child { border-radius: 0 5px 5px 0; }
.hj-blattfuss p { font-size: .75rem; color: var(--text-2); margin: 0; }
.hj-abschluss { border-top: 1px solid var(--linie); padding: .8rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hj-abschluss p { margin: 0; font-size: .9rem; }
.hj-abschluss p span { margin-left: .75rem; color: var(--text-2); font-size: .8rem; }
.hj-abschluss > div { display: flex; gap: .7rem; }
#hj-anlegen { min-width: 13rem; }
@media (max-width: 1200px) {
 .hj-col-art { width: 12.5rem; }
 .hj-col-datum { width: 9rem; }
 .hj-col-aktion { width: 7rem; }
 .hj-regelband { flex-wrap: wrap; gap: .5rem; }
 .hj-blattfuss { align-items: flex-start; flex-direction: column; gap: .4rem; }
 .hj-abschluss p span { display: block; margin: .25rem 0 0; }
}
@media (max-width: 800px) {
 #view-halbjahr { padding-top: 1rem; }
 .hj-kopf h1 { font-size: 1.6rem; }
 .hj-werkzeuge { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; }
 .hj-werkzeuge select { width: 100%; min-width: 0; }
 #hj-regeln-bearbeiten { grid-column: 1 / -1; margin-left: 0; justify-self: start; }
 .hj-tabelle-scroll { flex: auto; overflow: visible; border: 0; }
 .hj-tabelle, .hj-tabelle tbody { display: block; }
 .hj-tabelle colgroup, .hj-tabelle thead { display: none; }
 .hj-monatszeile { display: block; position: sticky; top: 0; z-index: 1; }
 .hj-monatszeile th { display: block; padding-inline: 0; }
 .hj-datenzeile { display: grid; grid-template-columns: 6.3rem minmax(0, 1fr); gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--linie); }
 .hj-datenzeile > th, .hj-datenzeile > td { border: 0; padding: 0; }
 .hj-datenzeile > th { grid-column: 1 / -1; font-weight: 600; }
 .hj-datenzeile > .hj-beschreibung, .hj-datenzeile > td:last-child { grid-column: 1 / -1; }
 .hj-datenzeile .btn { width: auto; padding-inline: .7rem; }
 .hj-tabelle input, .hj-tabelle select, .hj-tabelle textarea { font-size: 16px; }
 .hj-datenzeile td:nth-child(2)::before { content: 'Beginn'; }
 .hj-datenzeile td:nth-child(3)::before { content: 'Terminart'; }
 .hj-datenzeile .hj-beschreibung::before { content: 'Beschreibung'; }
 .hj-datenzeile td::before { display: block; font-size: .8rem; margin-bottom: .3rem; }
 .hj-blattfuss { order: -1; padding-top: 0; }
 #hj-monate { width: 100%; }
 .hj-abschluss { position: sticky; bottom: 0; z-index: 3; background: white; flex-direction: column; align-items: stretch; gap: .5rem; }
 .hj-abschluss > div .btn { flex: 1; min-width: 0; }
 .hj-abschluss p { font-size: .85rem; }
 .hj-abschluss p span { display: inline; margin-left: .5rem; font-size: .7rem; }
 .hj-belegt { display: block; }
 .hj-belegt > * { display: block; }
}
.hj-zeilenstatus { display: block; font-size: .75rem; color: var(--text-2); padding: .7rem .2rem; }
.hj-datenzeile > th:has(input) { padding: .5rem; }
.hj-datenzeile input[type="date"] { padding-inline: .3rem; }
@media (min-width: 1201px) { .hj-col-art { width: 18.5rem; } }
@media (min-width: 801px) { .hj-tabelle { min-width: 1080px; } }
.hj-werkzeuge { flex-wrap: wrap; }
.hj-werkzeuge select { min-width: 9rem; }
#hj-vorbelegung { min-width: 12rem; }
#hj-termin-hinzufuegen { white-space: nowrap; }
@media (max-width: 800px) { #hj-termin-hinzufuegen { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 800px) {
 #hj-vorbelegung { min-width: 0; }
 .hj-tabelle-scroll:focus-visible { outline-offset: 0; }
}
.menue[open] summary { background-repeat: no-repeat; background-size: .7rem; background-position: right .7rem center; }
@media (max-width: 800px) {
 .hj-tabelle input, .hj-tabelle select, .hj-tabelle textarea { font-size: max(16px, .85rem); }
 .hj-datenzeile > th::before { content: 'Datum'; display: block; font-size: .8rem; font-weight: 400; margin-bottom: .3rem; }
 .hj-tabelle > tbody > tr > .leer { display: block; }
}
.hj-ort-button { display: block; border: 0; background: transparent; color: var(--text-2); padding: .5rem .2rem .1rem; font: inherit; font-size: .7rem; text-align: left; text-decoration: underline; text-underline-offset: .2em; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 800px) { .hj-ort-button { min-height: 44px; font-size: .8rem; } }
#hj-mobil-regeln { display: none; }
@media (max-width: 800px) {
 .hj-einleitung { display: none; }
 #hj-mobil-regeln { display: inline-flex; grid-column: 1 / -1; justify-self: start; }
 #view-halbjahr:not([data-einstellungen="true"]) #hj-vorbelegung-label,
 #view-halbjahr:not([data-einstellungen="true"]) #hj-vorbelegung,
 #view-halbjahr:not([data-einstellungen="true"]) #hj-wochentag-label,
 #view-halbjahr:not([data-einstellungen="true"]) #hj-wochentag,
 #view-halbjahr:not([data-einstellungen="true"]) #hj-regeln-bearbeiten,
 #view-halbjahr:not([data-einstellungen="true"]) #hj-regelband { display: none; }
 .hj-abschluss > div .btn:first-child { flex: 0 0 76px; padding-inline: .4rem; }
 #hj-anlegen { min-width: 0; font-size: .8rem; padding-inline: .4rem; flex: 1; }
}

/* Suche statt langer Logenliste bei der Anmeldung. */
.logen-suche { position: relative; }
.logen-suchfeld { position: relative; }
#login-loge { padding-left: 2.35rem; background-image: url('assets/search.svg'); background-repeat: no-repeat; background-size: 1rem; background-position: .8rem center; }
.logen-suchfeld:has(#login-loge-aendern:not([hidden])) #login-loge { padding-right: 5rem; }
#login-loge-aendern { position: absolute; right: .15rem; top: .15rem; bottom: .15rem; min-height: 0; font-size: .8rem; padding: .3rem .65rem; background: white; }
#login-logen-treffer { position: relative; margin-top: .35rem; border: 1px solid var(--rand); border-radius: 6px; max-height: 17rem; overflow-y: auto; background: white; }
#login-logen-treffer [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-align: left; width: 100%; min-height: 52px; padding: .65rem .8rem; border: 0; border-bottom: 1px solid var(--linie); background: white; color: var(--text); font-size: .9rem; }
#login-logen-treffer [role="option"]:last-child { border-bottom: 0; }
#login-logen-treffer strong { font-weight: 500; overflow-wrap: anywhere; }
#login-logen-treffer span { color: var(--text-2); font-size: .75rem; flex: none; }
#login-logen-treffer [aria-selected="true"], #login-logen-treffer [role="option"]:hover { background: #eaf1fd; color: var(--primary); }
#login-logen-hinweis { font-size: .8rem; margin-top: .55rem; }
@media (max-width: 600px) {
 #screen-login { align-items: start; padding-top: 1.2rem; }
 .login-card { padding: 1rem; }
 #login-loge { font-size: max(16px, .9rem); }
 #login-logen-treffer [role="option"] { padding-inline: .6rem; }
}

/* Tagesgruppen und direkt erreichbare Verwaltungsbereiche. */
.listen-kopf, .termin-zeile { grid-template-columns: 4rem minmax(0, 1fr) 5.6rem; }
.zeilen-zeit { align-self: start; padding-top: .1rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tageskopf { position: sticky; top: 0; z-index: 1; margin: 0; padding: .65rem .85rem; background: #f3f6fa; border-bottom: 1px solid var(--linie); font-size: .9rem; line-height: 1.4; font-weight: 600; }
#liste { scroll-padding-top: 3rem; }
#screen-app:has(#view-verwalten:not([hidden])) { position: fixed; inset: 0; height: 100dvh; min-height: 0; overflow: clip; }
html:has(#screen-app:not([hidden]) #view-verwalten:not([hidden])),
body:has(#screen-app:not([hidden]) #view-verwalten:not([hidden])) { height: 100%; overflow: hidden; }
#screen-app:has(#view-verwalten:not([hidden])) .topbar { flex: none; }
#view-verwalten { display: flex; flex-direction: column; overflow: clip; min-height: 0; padding: 1.4rem 0 0; }
.verwaltung-kopf { flex: none; border-bottom: 1px solid var(--linie); }
.verwaltung-kopf h1 { font-size: 1.8rem; margin-bottom: 1rem; }
#verwaltung-navigation { display: flex; gap: 1.5rem; }
#verwaltung-navigation .btn { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: .65rem .15rem; }
#verwaltung-navigation .btn[aria-pressed="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.verwaltung-panel { flex: 1; min-height: 0; }
#verwaltung-termine { display: flex; flex-direction: column; }
#verwaltung-termine .block-kopf { flex: none; padding: 1rem 0; margin: 0; }
#verwaltung-termine h2, .verwaltung-formular h2 { font-size: 1.2rem; margin: 0; }
#eigene-liste { overflow-y: auto; min-height: 0; padding: 0 .4rem 1rem; scrollbar-width: thin; overscroll-behavior-y: contain; }
.verwaltung-formular { overflow-y: auto; padding: 1.4rem .4rem 2rem; scrollbar-width: thin; overscroll-behavior-y: contain; }
.verwaltung-formular > p, .verwaltung-formular .formular { max-width: 38rem; }
#eigene-liste:focus-visible, .verwaltung-panel:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (max-width: 800px) {
 .listen-kopf { grid-template-columns: 3.4rem minmax(0, 1fr); }
 .termin-zeile { grid-template-columns: 3.4rem minmax(0, 1fr); }
 .tageskopf { padding-inline: .55rem; }
 #view-verwalten { padding-top: .8rem; }
 .verwaltung-kopf h1 { font-size: 1.45rem; margin-bottom: .55rem; }
 #verwaltung-navigation { gap: 0; justify-content: space-between; }
 #verwaltung-navigation .btn { font-size: .85rem; padding-inline: .3rem; }
 #verwaltung-termine .block-kopf { display: block; padding-block: .8rem; }
 #verwaltung-termine .kopf-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .6rem; }
 #verwaltung-termine .kopf-knoepfe .btn { min-width: 0; font-size: .78rem; padding-inline: .35rem; }
 #btn-neu { grid-column: 1 / -1; }
 .verwaltung-formular { padding-top: 1rem; }
 #verwaltung-zugaenge .aktionen { flex-direction: column; align-items: stretch; }
}

/* Trefferliste schwebt über dem Formular, damit die Anmeldebox ihre Größe behält. */
#login-logen-treffer { position: absolute; top: calc(100% + .35rem); left: 0; right: 0; z-index: 10; margin-top: 0; box-shadow: 0 8px 24px rgb(16 24 40 / .12); }
/* Platz für zwei Zeilen reservieren; der Text wechselt zwischen kurz und lang. */
#login-logen-hinweis { min-height: 2.9em; }
#login-hinweis { min-height: 3em; }

/* Admin-Leiste über „Meine Loge“ und Stilllegen im Bereich Zugänge */
#admin-leiste { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
#admin-leiste .hinweis { margin: 0; }
#block-aktiv { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--linie); }
/* Admin-Logenliste nutzt die Terminzeilen; die erste Spalte zeigt die Großloge. */
#admin-liste .zeilen-zeit { overflow-wrap: anywhere; font-weight: 600; }

/* Ganze Zeile anklickbar (Details bzw. Loge öffnen) */
#liste .termin-zeile, #admin-liste .termin-zeile { cursor: pointer; }

/* Alle Auswahlfelder: eigenes Chevron, etwas weiter nach innen gerückt */
select { appearance: none; -webkit-appearance: none; background-image: url('assets/chevron-down.svg'); background-repeat: no-repeat; background-size: .75rem; background-position: right 1.1rem center; padding-right: 2.6rem; }
/* In der Planertabelle ist wenig Platz: Chevron etwas näher am Rand */
.hj-tabelle select { background-position: right .75rem center; padding-right: 2.1rem; }
