/* Gastgeberforum Wangerland
   Farbwelt aus dem wangerland.live-Markenkonzept:
   Nordsee-Blau #1F6F8B, Dunkelblau #0E3A5A, Weiss.
   Bewusst ruhig und funktional — ein Arbeitswerkzeug, keine Werbeseite. */

:root {
  --blau:        #1F6F8B;
  --blau-dunkel: #0E3A5A;
  --blau-hell:   #E8F1F5;
  --blau-rand:   #C5DCE5;

  --text:        #1B2A33;
  --text-leise:  #5F7280;
  --grund:       #F7F9FA;
  --flaeche:     #FFFFFF;
  --rand:        #DFE6EA;

  --warn:        #8A5A00;
  --warn-grund:  #FFF6E5;
  --fehler:      #96281B;
  --fehler-grund:#FDECEA;
  --gut:         #1E6B45;
  --gut-grund:   #E8F5EE;

  --radius:      10px;
  --schatten:    0 1px 2px rgba(14,58,90,.06), 0 2px 8px rgba(14,58,90,.05);
  --breite:      1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grund);
}

a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }

h1, h2, h3 { line-height: 1.25; color: var(--blau-dunkel); margin: 0 0 .5em; }
h1 { font-size: 1.75rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

/* ---------------------------------------------------------- Kopf */
.kopf {
  background: var(--blau-dunkel);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.kopf__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}
.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
/* Das Signet: drei gleich grosse Ringe, siehe signet() in src/symbole.php. */
.signet { flex: none; display: block; }
.signet--kopf { color: #8FB6C8; }
.marke:hover .signet--kopf { color: #fff; }
.marke__text { display: flex; flex-direction: column; line-height: 1.1; }
.marke__text small {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9FC4D3;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #D6E6EE;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: .94rem;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav a.ist-aktiv { background: var(--blau); color: #fff; }

/* Navigationspunkte, die nur als Symbol erscheinen. Die Beschriftung bleibt im
   Quelltext und wird nur optisch ausgeblendet — Screenreader lesen sie weiter
   vor, und auf schmalen Geräten steht sie sichtbar daneben (Umbruch bei 900px).
   Diese Regeln stehen bewusst VOR dem Umbruch: gleiche Spezifität, es gewinnt
   die spätere Regel. */
.nav__symbol {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0 !important;
}
.nav__symbol > span {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.kuerzel {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blau);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}
.punkt {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: #E8A33D;
  color: #3A2400;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.nav-schalter { display: none; }

/* ------------------------------------------------------- Inhalt */
.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.inhalt--offen { max-width: 460px; padding-top: 56px; }

.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 22px;
  margin-bottom: 18px;
}
.karte--eng { padding: 16px 18px; }

.kopfzeile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kopfzeile h1 { margin-bottom: .2em; }
.kopfzeile p { margin: 0; color: var(--text-leise); }

.leise { color: var(--text-leise); font-size: .9rem; }
.mini  { font-size: .82rem; color: var(--text-leise); }

/* ------------------------------------------------------ Formular */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.feld { margin-bottom: 16px; }
.feld__hinweis { font-size: .84rem; color: var(--text-leise); margin: 4px 0 0; }

/* Datums- und Zeitfelder fehlten hier — sie blieben deshalb schmal und ohne
   Rahmen, auch im Formular der Buchungsboerse. */
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=tel], input[type=date], input[type=time], input[type=number],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blau);
  outline-offset: 1px;
  border-color: var(--blau);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.knopf {
  display: inline-block;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blau);
  border: 1px solid var(--blau);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
.knopf--leise {
  background: transparent;
  color: var(--blau-dunkel);
  border-color: var(--rand);
}
.knopf--leise:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.knopf--klein { padding: 6px 12px; font-size: .88rem; }
.knopf--gefahr { background: transparent; color: var(--fehler); border-color: #E8C4BF; }
.knopf--gefahr:hover { background: var(--fehler-grund); color: var(--fehler); }

/* ------------------------------------------------------ Meldungen */
.meldung {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  font-size: .94rem;
}
.meldung--info   { background: var(--blau-hell);  border-color: var(--blau-rand); color: var(--blau-dunkel); }
.meldung--gut    { background: var(--gut-grund);  border-color: #BFE0CD; color: var(--gut); }
.meldung--warn   { background: var(--warn-grund); border-color: #F0DBB0; color: var(--warn); }
.meldung--fehler { background: var(--fehler-grund); border-color: #F2C7C1; color: var(--fehler); }

/* ------------------------------------------------------- Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li {
  padding: 14px 0;
  border-top: 1px solid var(--rand);
}
.liste > li:first-child { border-top: 0; }

.zeile {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.zeile__haupt { flex: 1 1 320px; min-width: 0; }
/* Knopfleiste am rechten Rand einer Listenzeile. Die Knoepfe stecken meist in
   je einem eigenen <form> — ohne Flex stellt der Browser die untereinander.
   Steht hier bei .zeile und nicht bei einem einzelnen Modul: Sie wird von der
   Einladungsliste, den Stellen, den Neuigkeiten und der Zeitungspflege benutzt. */
.werkzeug {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex: none;
}
.werkzeug form { display: inline; }
.zeile__haupt a { text-decoration: none; font-weight: 600; }
.zeile__haupt a:hover { text-decoration: underline; }

.marker {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--blau-hell);
  color: var(--blau-dunkel);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  /* Ein Etikett darf nie schrumpfen. In einer Flex-Zeile neben einer langen
     Überschrift wird es sonst schmaler als sein eigener Text — und weil der
     nicht umbrechen darf, laeuft er aus der Karte heraus. */
  flex: none;
}
.marker--warn { background: var(--warn-grund); color: var(--warn); }
.marker--gut  { background: var(--gut-grund);  color: var(--gut); }

/* -------------------------------------------------- Kategorien */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.kachel {
  display: block;
  padding: 18px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--schatten);
}
.kachel:hover { border-color: var(--blau); color: inherit; }
.kachel h3 { margin-bottom: .25em; }

/* Eine Kachel, die nicht verlinkt, sondern nur zeigt — Entwicklertagebuch.
   Sie soll sich nicht wie ein Knopf anfuehlen, also kein Zeiger, kein Anheben. */
.kachel--ruhig { cursor: default; }
.kachel--ruhig:hover { transform: none; }

/* Merkmalsliste in der Netzwerk-Kachel: Name links, Anzahl rechts. */
.kachel__liste {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: .86rem;
}
.kachel__liste li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px solid var(--rand);
  color: var(--text);
}
.kachel__liste li:last-child { border-bottom: 0; }
.kachel__liste em { font-style: normal; font-weight: 700; color: var(--blau); }

/* Entwicklertagebuch: Datum klein darueber, Titel darunter. */
.tagebuch { list-style: none; margin: 10px 0 0; padding: 0; }
.tagebuch li { padding: 6px 0; border-bottom: 1px solid var(--rand); font-size: .88rem; }
.tagebuch li:last-child { border-bottom: 0; }
.tagebuch .mini { display: block; margin-bottom: 1px; }
.tagebuch a { color: var(--blau-dunkel); }
.kachel p { margin: 0; font-size: .89rem; color: var(--text-leise); }
.kachel__fuss { margin-top: 12px; font-size: .82rem; color: var(--text-leise); }

/* --------------------------------------------------- Beiträge */
.beitrag { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--rand); }
.beitrag:first-child { border-top: 0; padding-top: 0; }
.beitrag__wer { flex: none; }
.beitrag__wer .kuerzel { width: 40px; height: 40px; font-size: .9rem; }
.beitrag__koerper { flex: 1; min-width: 0; }
.beitrag__kopf { margin-bottom: 6px; font-size: .9rem; }
.beitrag__kopf strong { color: var(--blau-dunkel); }
.beitrag__text { overflow-wrap: break-word; }
.beitrag__text p:first-child { margin-top: 0; }

/* Ausgezeichneter Beitragstext. Was die Zeichen bedeuten, steht in
   src/beitrag_text.php — hier steht nur, wie das Ergebnis aussieht. */
.beitrag__text p { margin: 0 0 10px; }
.beitrag__text > :last-child { margin-bottom: 0; }
.beitrag__text ul,
.beitrag__text ol { margin: 0 0 10px; padding-left: 22px; }
.beitrag__text li { margin: 3px 0; }
/* Eine lange Adresse darf die Karte nicht auseinanderschieben. */
.beitrag__text a { overflow-wrap: anywhere; }

/* Anhänge unter dem Beitrag: Bilder als gleich hohe Vorschaureihe, PDFs als
   schmale Dateizeile mit Name und Größe. Ein Klick öffnet die volle Datei. */
.anhaenge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: flex-start;
}
.anhang-bild {
  display: block;
  border: 1px solid var(--rand);
  border-radius: 8px;
  overflow: hidden;
  background: var(--blau-hell);
}
.anhang-bild img {
  display: block;
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}
.anhang-bild:hover { border-color: var(--blau); }
.anhang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--rand);
  border-radius: 8px;
  background: var(--flaeche);
  font-size: .87rem;
  text-decoration: none;
  color: var(--blau-dunkel);
}
a.anhang:hover { border-color: var(--blau); }
.anhang .symbol { flex: none; color: var(--blau); }
.anhang__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.anhang--weg { color: var(--text-leise); background: transparent; border-style: dashed; }
.anhang--weg .symbol { color: var(--text-leise); }

.anhang-feld__titel { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 6px; }
.anhang-feld__titel .mini { font-weight: 400; }
.anhang-feld input[type=file] { font-size: .88rem; max-width: 100%; }
.anhang-weg { display: flex; align-items: center; gap: 7px; font-size: .87rem; margin-top: 5px; font-weight: 400; }
.anhang-weg input { width: auto; margin: 0; }

/* Vorschau unter dem Eingabefeld. Dasselbe Sandgelb wie in der Gästezeitung:
   Diese Farbe heisst im ganzen Haus „so wird es aussehen". */
.schreib-vorschau {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--rand);
  border-radius: 8px;
  background: #FFF9EC;
}
.schreib-vorschau[hidden] { display: none; }
.schreib-vorschau::before {
  content: "Vorschau";
  display: block;
  margin-bottom: 8px;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-leise);
}

/* ------------------------------------------------------ Profil */
.paare { margin: 0; }
.paare > div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rand);
  flex-wrap: wrap;
}
.paare > div:first-child { border-top: 0; }
.paare dt { flex: 0 0 190px; font-weight: 600; color: var(--text-leise); font-size: .9rem; margin: 0; }
.paare dd { flex: 1 1 300px; margin: 0; min-width: 0; overflow-wrap: break-word; }

.hinweis-kasten {
  padding: 14px 16px;
  background: var(--blau-hell);
  border-left: 3px solid var(--blau);
  border-radius: 0 8px 8px 0;
  font-size: .92rem;
  margin-bottom: 18px;
}

.leer {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-leise);
}

/* -------------------------------------------------------- Fuss */
.fuss {
  border-top: 1px solid var(--rand);
  background: var(--flaeche);
  padding: 24px 20px;
  text-align: center;
}
.fuss p { margin: 0; font-size: .85rem; color: var(--text-leise); }
.fuss a { color: var(--text-leise); }

/* Instagram im Fuß (Forum, Stellenportal, Gäste-App): Zeichen und Kanalname
   als ein Link, das Zeichen in der Textfarbe. */
.insta-link { white-space: nowrap; }
.insta-link .symbol { display: inline-block; vertical-align: -3px; margin-right: 4px; stroke-width: 1.8; }

/* ------------------------------------------------------- Mobil */
/* Die Navigation klappt frueher zusammen als der Rest des Layouts: Sechs
   Punkte plus Zahnrad und Ausgang brauchen neben der Wortmarke rund 860px.
   Auf einem iPad im Hochformat (768px) waere die Zeile sonst zu eng. */
@media (max-width: 900px) {
  .nav-schalter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 9px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav-schalter span { display: block; height: 2px; background: #fff; border-radius: 2px; }

  .nav {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--blau-dunkel);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  body.nav-offen .nav { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav__ich { display: none !important; }

  /* Im aufgeklappten Menü ist Platz — dort steht die Beschriftung wieder dabei. */
  .nav__symbol { display: flex; gap: 11px; width: auto; height: auto; padding: 12px 14px !important; }
  .nav__symbol > span {
    position: static; width: auto; height: auto;
    margin: 0; overflow: visible; clip: auto; clip-path: none;
  }
}

@media (max-width: 760px) {
  .paare dt { flex-basis: 100%; }
  h1 { font-size: 1.45rem; }
  .karte { padding: 18px 16px; }
}

/* ------------------------------------------- Merkmale & Kapazitäten */
.gruppe {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  background: #FCFDFD;
}
.gruppe legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--blau-dunkel);
}

.haken {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px 14px;
}
.haken__feld {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 8px;
  margin: 0;
  border-radius: 7px;
  font-weight: 400;
  font-size: .93rem;
  line-height: 1.4;
  cursor: pointer;
}
.haken__feld:hover { background: var(--blau-hell); }
.haken__feld input[type=checkbox] {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--blau);
  cursor: pointer;
}
.haken__feld span { min-width: 0; }

/* Zustimmungs-Haken vor einem laengeren Text — Netiquette, AGG, Einwilligung,
   Sammelnachricht.

   Eigene Groesse, weil der Browser-Standard auf dem Handy zu einem Punkt
   zusammenfaellt: Steht der Haken in einem flex-Kasten neben viel Text, darf
   flex ihn schrumpfen, und ohne feste Breite tut es das auch. 22 px ist die
   Groesse, die sich mit dem Daumen sicher treffen laesst. */
/* Ein Wert, der feststeht und nicht geaendert werden kann — sieht aus wie ein
   Feld, ist aber keines. */
.fest-feld {
  padding: 11px 13px;
  background: var(--blau-hell);
  border: 1px solid var(--rand);
  border-radius: 8px;
  font-weight: 600;
  color: var(--blau-dunkel);
}

.optin {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.optin input[type=checkbox] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--blau);
  cursor: pointer;
}
.haken__feld .mini { display: inline-block; line-height: 1.3; }
/* Angekreuztes hervorheben, damit man den Überblick behält */
.haken__feld:has(input:checked) { background: var(--blau-hell); font-weight: 600; }

.zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px 16px;
}
.zahlen__feld label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.zahlen__feld label .mini { font-weight: 400; }
.zahlen__feld input { padding: 8px 10px; }

/* Merkmale als Aufzählung in der Betriebsansicht */
.merkmalliste {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.merkmalliste li {
  padding: 3px 10px;
  border: 1px solid var(--blau-rand);
  border-radius: 20px;
  background: var(--blau-hell);
  color: var(--blau-dunkel);
  font-size: .84rem;
}

/* Kapazitäten als Kennzahlen */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
}
.kennzahl {
  padding: 12px 14px;
  border: 1px solid var(--rand);
  border-radius: 8px;
  background: var(--flaeche);
}
.kennzahl__wert {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blau-dunkel);
  line-height: 1.1;
}
.kennzahl__was { font-size: .82rem; color: var(--text-leise); }

/* Filterleiste im Netzwerk */
.filter { margin-bottom: 18px; }
.filter__zeile {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter__feld { flex: 1 1 200px; }
.filter__feld label { font-size: .85rem; }
.filter__aktiv {
  margin-top: 12px;
  font-size: .88rem;
  color: var(--text-leise);
}

@media (max-width: 760px) {
  .haken { grid-template-columns: 1fr; }
  .gruppe { padding: 14px; }
}

/* --------------------------------------------------- Aktivitätenfeed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed__eintrag {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rand);
}
.feed__eintrag:first-child { border-top: 0; padding-top: 0; }
.feed__zeichen { flex: none; width: 20px; text-align: center; font-size: .95rem; }
.feed__text { flex: 1; min-width: 0; font-size: .93rem; line-height: 1.5; }
.feed__text a { font-weight: 600; text-decoration: none; }
.feed__text a:hover { text-decoration: underline; }
.feed__text strong { color: var(--blau-dunkel); font-weight: 600; }

/* ------------------------------------------- Dashboard: unterer Bereich */
.dashboard-unten {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.15fr);
  gap: 16px;
  align-items: start;
}
.dashboard-unten__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dashboard-unten__links .kachel { margin: 0; }
.dashboard-unten__links .karte { margin: 0; }
/* Beide Spalten gleich aufgebaut: Abstand kommt vom gap, nicht vom Rand der
   Karten. Die alte Regel „margin-bottom: 0" stammte aus der Zeit, als rechts
   nur eine einzige Karte stand — mit der zweiten klebten sie aneinander. */
.dashboard-unten__rechts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dashboard-unten__rechts .karte,
.dashboard-unten__rechts .kachel { margin: 0; }

@media (max-width: 760px) {
  .dashboard-unten { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- Moderation */
.beitrag--entfernt { opacity: .85; }
.beitrag--entfernt .kuerzel { background: var(--text-leise); }
.beitrag--entfernt .beitrag__text {
  padding: 12px 14px;
  background: var(--warn-grund);
  border-left: 3px solid #E8A33D;
  border-radius: 0 8px 8px 0;
  font-size: .92rem;
}

.mod-leiste {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rand);
}
.mod-leiste summary {
  cursor: pointer;
  color: var(--text-leise);
  font-size: .82rem;
  list-style: none;
}
.mod-leiste summary::-webkit-details-marker { display: none; }
.mod-leiste summary::before { content: "⚙ "; }
.mod-leiste summary:hover { color: var(--fehler); }
.mod-form { margin-top: 10px; }
.mod-form input[type=text] { padding: 7px 10px; font-size: .9rem; }

/* ------------------------------------------------------ Anmeldeseite */
.inhalt--anmeldung { max-width: 1040px; padding-top: 40px; }
.inhalt--lesen     { max-width: 740px; }

.anmeldung {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  align-items: stretch;
  border-radius: 14px;
  /* clip statt hidden: schneidet genauso an den runden Ecken ab, macht aber
     keinen eigenen Scrollbereich auf — sonst klebt das Anmeldefeld rechts
     (position: sticky) nicht. Ältere Browser nehmen hidden und zeigen das
     Feld dann eben oben fest statt mitlaufend. */
  overflow: hidden;
  overflow: clip;
  box-shadow: 0 4px 24px rgba(14,58,90,.13);
}

/* Linke Seite: dunkler Block. Der harte Kontrast zur weissen Anmeldekarte
   ist der eigentliche Blickfang — Farbe wirkt stärker als jede Schriftgrösse. */
.anmeldung__werbung {
  background: var(--blau-dunkel);
  background-image:
    radial-gradient(circle at 88% 8%, rgba(31,111,139,.55) 0, transparent 46%),
    radial-gradient(circle at 4% 96%, rgba(31,111,139,.32) 0, transparent 42%);
  color: #E4EEF3;
  padding: 40px 38px;
}

.anmeldung__marke { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
/* Auf dem dunklen Feld der Anmeldeseite braucht das Signet einen hellen Ton —
   der Markenblauton verschwindet dort fast. */
.signet--anmeldung { color: #8FB6C8; }
.anmeldung__wort {
  font-size: 1.28rem; font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -.01em;
}
.anmeldung__zusatz {
  font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: #8FB6C8; padding-top: 3px;
}

.anmeldung__titel {
  font-size: 1.62rem;
  line-height: 1.24;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  max-width: 22ch;
}

.anmeldung__vorspann {
  font-size: .97rem;
  line-height: 1.6;
  color: #BCD4E0;
  margin: 0 0 26px;
  max-width: 46ch;
}

.anmeldung__zwischen {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #8FB6C8; margin: 0 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
/* Mehrere Gruppen untereinander: der Abstand kommt vom Listenende, die
   Zwischenüberschrift selbst bleibt bündig. */
.leistungen + .anmeldung__zwischen { margin-top: 6px; }

/* Die Module als schlichte Liste. Bewusst ohne Nummern: Es ist eine Aufzählung
   dessen, was da ist, keine Rangfolge. */
.leistungen {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  /* Zweispaltig, sobald Platz ist: Neun Punkte untereinander machen die Spalte
     so lang, dass der Anmeldekasten daneben in die Seitenmitte rutscht. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0 26px;
}
.leistungen li {
  padding: 0 0 13px;
  font-size: .87rem;
  line-height: 1.5;
  color: #A9C6D5;
}

.leistungen strong {
  display: block;
  color: #fff;
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -.005em;
}

.anmeldung__fussnote {
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border-left: 3px solid var(--blau);
  border-radius: 0 9px 9px 0;
  font-size: .83rem;
  line-height: 1.55;
  color: #BCD4E0;
}

/* Das Anmeldefeld steht oben und läuft beim Scrollen mit: Seit links vierzehn
   Punkte in Gruppen stehen, ist die Spalte zu lang, um das Feld wie früher
   senkrecht in die Mitte zu setzen — es rutschte unter den ersten Bildschirm. */
.anmeldung__eingang {
  background: var(--flaeche);
  display: flex;
  align-items: flex-start;
  padding: 40px 32px;
}
.anmeldung__eingang .karte {
  margin: 0; width: 100%; border: 0; box-shadow: none; padding: 0;
}
/* Anmeldung und „Schon dabei“ kleben zusammen, sonst schöbe sich die Karte
   beim Scrollen über die Logos. */
.anmeldung__stapel {
  position: sticky; top: 40px;
  width: 100%;
  display: grid;
  gap: 30px;
}

@media (max-width: 880px) {
  .inhalt--anmeldung { max-width: 460px; padding-top: 24px; }
  .anmeldung { grid-template-columns: 1fr; box-shadow: 0 2px 14px rgba(14,58,90,.10); }
  /* Auf dem Handy zuerst das Anmeldefeld: Wer hierher kommt, ist meist Mitglied
     und will sich anmelden, nicht lesen, was die Plattform kann. */
  .anmeldung__eingang { order: 1; padding: 26px 22px; }
  .anmeldung__werbung { order: 2; padding: 32px 24px; }
  .anmeldung__titel { font-size: 1.42rem; max-width: none; }
  .anmeldung__vorspann { font-size: .92rem; margin-bottom: 22px; }
  .anmeldung__marke { margin-bottom: 22px; }
}


/* --------------------------------------------- Zahnrad-Menü und Ausgang */
.symbol { display: block; flex: none; }
/* Dasselbe Symbol mitten im Fliesstext — sonst reisst das display:block die Zeile auf. */
.symbol-inline { display: inline-block; vertical-align: -3px; color: var(--blau); }
.symbol-inline .symbol { display: inline-block; }

.nav__ausgang {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0 !important;
  color: #A9C6D5 !important;
}
.nav__ausgang:hover { color: #fff !important; background: rgba(255,255,255,.10); }

/* Als <details> gebaut: klappt ohne JavaScript auf und zu. */
.menue { position: relative; }
.menue > summary {
  display: grid;
  place-items: center;
  position: relative;
  width: 38px; height: 38px;
  border-radius: 7px;
  color: #D6E6EE;
  cursor: pointer;
  list-style: none;
}
.menue > summary::-webkit-details-marker { display: none; }

/* Klappmenü mit Beschriftung statt Symbol — für "Gästeservice" in der
   Hauptzeile. Dieselbe Klappe wie beim Zahnrad, nur ein breiterer Auslöser,
   der sich wie die übrigen Navigationspunkte liest. */
.menue--text > summary {
  width: auto; height: auto;
  padding: 9px 12px;
  grid-auto-flow: column;
  gap: 6px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}
.menue--text > summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.menue--text[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
/* Nach links aufklappen wäre hier falsch: Der Punkt steht mitten in der Zeile. */
.menue--text .menue__klappe { right: auto; left: 0; }

/* Suche: auf breiten Bildschirmen nur die Lupe, wie .nav__symbol — die
   Beschriftung bleibt im Quelltext und wird nur optisch versteckt. */
.menue--suche > summary > span {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.menue > summary:hover { background: rgba(255,255,255,.10); color: #fff; }
.menue[open] > summary,
.menue.ist-aktiv > summary { background: var(--blau); color: #fff; }
/* Zahnrad dreht sich beim Öffnen — kleine Rückmeldung, dass etwas passiert ist */
.menue > summary .symbol { transition: transform .25s ease; }
.menue[open] > summary .symbol { transform: rotate(45deg); }

.punkt--klein {
  position: absolute;
  top: 5px; right: 5px;
  min-width: 9px; width: 9px; height: 9px;
  padding: 0; margin: 0;
  border-radius: 50%;
  background: #E8A33D;
  border: 2px solid var(--blau-dunkel);
  box-sizing: content-box;
}

.menue__klappe {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 262px;
  padding: 7px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 11px;
  box-shadow: 0 8px 28px rgba(14,58,90,.18);
  z-index: 40;
}
.menue__kopf {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px 13px;
  border-bottom: 1px solid var(--rand);
  margin-bottom: 6px;
}
.menue__kopf strong { display: block; color: var(--blau-dunkel); font-size: .94rem; }
.menue__kopf span:not(.kuerzel) { display: block; font-size: .82rem; color: var(--text-leise); }

.menue__klappe a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px !important;
  border-radius: 7px;
  color: var(--text) !important;
  font-size: .92rem !important;
  text-decoration: none;
  white-space: normal !important;
}
.menue__klappe a:hover { background: var(--blau-hell); color: var(--blau-dunkel) !important; }
.menue__klappe a .symbol { color: var(--text-leise); }
.menue__klappe a:hover .symbol { color: var(--blau); }
.menue__klappe .punkt { margin-left: auto; }
.menue__trenner { height: 1px; background: var(--rand); margin: 6px 4px; }

@media (max-width: 900px) {
  /* Dieselbe Grenze wie oben: Sobald die Navigation zusammenklappt, muss
     auch das Untermenü in der Liste stehen. */
  /* Im aufgeklappten Mobilmenü passt kein schwebendes Untermenü —
     dort steht alles untereinander in der Liste. */
  .menue { width: 100%; }
  .menue > summary {
    /* Von Raster auf Flex umstellen: Im Raster stünde der Text unter dem
       Symbol statt daneben. */
    display: flex;
    align-items: center;
    width: 100%; height: auto;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    font-size: .94rem;
  }
  /* Nur das Zahnrad bekommt hier seine Beschriftung. Ohne das :not() erwischte
     die Regel auch „Gästeservice" und "Suchen" — dort hing dann das Wort
     „Einstellungen" am Pfeil und drehte sich beim Aufklappen mit. */
  .menue:not(.menue--text):not(.menue--suche) > summary::after { content: "Einstellungen"; }
  /* Beschriftete Klappmenüs stehen mobil ohnehin mit ihrem Namen in der Liste;
     der Pfeil rutscht ans Ende der Zeile. */
  .menue--text > summary { justify-content: space-between; }
  .menue--text > summary::after { margin-right: 4px; }
  /* Suche: mobil wie Termine/Einladen — Lupe und Wort direkt hintereinander,
     statt wie beim Zahnrad rechtsbündig auseinandergezogen (space-between
     kommt schon von der allgemeinen .menue > summary-Regel oben, die für
     "Suchen" nicht gilt: kein ::after-Pfeil, also bleibt es bei flex-start). */
  .menue--suche > summary > span {
    position: static;
    width: auto; height: auto;
    margin: 0; padding: 0;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
  }
  .menue__klappe {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
  }
  .menue__kopf { border-bottom-color: rgba(255,255,255,.14); }
  .menue__kopf strong { color: #fff; }
  .menue__kopf span:not(.kuerzel) { color: #9FC4D3; }
  .menue__klappe a { color: #D6E6EE !important; }
  .menue__klappe a:hover { background: rgba(255,255,255,.10); color: #fff !important; }
  .menue__trenner { background: rgba(255,255,255,.14); }
  .nav__ausgang {
    display: flex;
    align-items: center;
    width: 100%; height: auto;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px !important;
  }
  .nav__ausgang::after { content: "Abmelden"; font-size: .94rem; }
}

/* ------------------------------------------------------ Buchungsbörse */
.anfrage__eck {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.anfrage__eck span {
  padding: 2px 9px;
  border: 1px solid var(--rand);
  border-radius: 6px;
  background: var(--grund);
  font-size: .82rem;
  color: var(--text);
}
/* Der Block mit den Gästedaten hebt sich ab — er ist der heikle Teil der Seite. */
.gruppe--warnung {
  border-color: #F0DBB0;
  background: #FFFCF5;
}
.gruppe--warnung legend { color: var(--warn); }

/* ---------------------------------------------------------- Termine */
.termine { list-style: none; margin: 0; padding: 0; }
.termin {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rand);
}
.termin:first-child { border-top: 0; padding-top: 4px; }

/* Der Datumsblock: auf einen Blick erkennbar, ohne den Titel zu verdrängen. */
.termin__tag {
  flex: none;
  /* Nicht auf die Hoehe des Eintrags dehnen — sonst wird aus dem Datumsblock
     bei laengeren Beschreibungen ein Balken. */
  align-self: flex-start;
  width: 58px;
  padding: 7px 0 8px;
  text-align: center;
  background: var(--blau-hell);
  border: 1px solid var(--blau-rand);
  border-radius: 8px;
  line-height: 1.15;
}
.termin__wochentag {
  display: block;
  font-size: .7rem;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blau);
}
.termin__zahl { display: block; font-size: 1.35rem; font-weight: bold; color: var(--blau-dunkel); }
.termin__monat { display: block; font-size: .72rem; color: var(--text-leise); }

.termin__inhalt { flex: 1; min-width: 0; }
.termin__inhalt strong { display: block; color: var(--blau-dunkel); }
.termin__text { margin: 6px 0 0; font-size: .92rem; }
.termin__werkzeug { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.termin__loeschen { display: inline; margin: 0; }

.termin--heute .termin__tag { background: var(--gut-grund); border-color: #BEE0CD; }
.termin--heute .termin__wochentag,
.termin--heute .termin__zahl { color: var(--gut); }
.termin__heute { font-weight: bold; color: var(--gut); }

.termine--vergangen .termin { opacity: .72; }

.termin-form summary { cursor: pointer; }
.termin-form summary .mini { margin-left: 8px; }
.termin-form[open] summary { margin-bottom: 14px; }

/* Kachel auf der Übersicht — knapper als die Terminseite. */
.termin-kachel { list-style: none; margin: 0; padding: 0; }
.termin-kachel li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--rand);
}
.termin-kachel li:first-child { border-top: 0; padding-top: 0; }
.termin-kachel__wann {
  flex: none;
  min-width: 62px;
  font-size: .82rem;
  font-weight: bold;
  color: var(--blau);
}
.termin-kachel__was { min-width: 0; }
.termin-kachel__was a { color: var(--blau-dunkel); }
/* Uhrzeit und Ort in die zweite Zeile — in der schmalen Spalte bricht
   sonst mitten in "19:00 Uhr" um. */
.termin-kachel__meta { display: block; margin-top: 1px; }

/* ------------------------------------------------------ Gästezeitung */
.zeitung-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.zeitung-leiste__tage,
.zeitung-leiste__dateien { display: flex; gap: 8px; flex-wrap: wrap; }

/* Die Vorschau ahmt das Faltblatt nach: vier A5-Seiten nebeneinander,
   damit man auf einen Blick sieht, was der Gast bekommt. */
/* Der Bogen: vier Kacheln in Falzreihenfolge — Seite 1 links oben, Seite 2
   rechts oben, Seite 3 links unten, Seite 4 rechts unten. So liegt das
   gefaltete Blatt vor einem. */
.bogen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .bogen { grid-template-columns: 1fr; }
}

.blatt {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 10px;
  overflow: hidden;
}
.blatt__nummer {
  padding: 7px 14px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--blau-dunkel);
}
/* Die Papierfläche. A5 hat das Verhältnis 1:1,41 — das lässt sich am Bildschirm
   nicht erzwingen, ohne Text abzuschneiden. Stattdessen eine Mindesthöhe, damit
   die vier Kacheln nicht unterschiedlich hoch springen. */
.blatt__flaeche {
  background: #fff;
  padding: 16px 18px 18px;
  min-height: 420px;
  font-size: .82rem;
  line-height: 1.5;
}

/* Zweispaltig wie im Druck. Nur ungefähr: Der Browser bricht anders um als FPDF. */
.kurier-spalten { columns: 2; column-gap: 16px; }
@media (max-width: 1180px) {
  .kurier-spalten { columns: 1; }
}
.kurier-eintrag { break-inside: avoid; margin-bottom: 11px; }
.kurier-eintrag--eng { margin-bottom: 7px; }
.kurier-text { margin-top: 3px; }
.kurier-text p { margin: 0 0 5px; }

.kurier-h {
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blau-dunkel);
  line-height: 1.3;
}
.kurier-h--blau {
  color: var(--blau);
  margin: 12px 0 6px;
  font-size: .95rem;
  break-after: avoid;
}
.kurier-spalten > .kurier-h--blau:first-child { margin-top: 0; }

/* Titelkopf */
.kurier-kopf { text-align: center; border-bottom: 2px solid var(--blau-dunkel); padding-bottom: 6px; }
.kurier-kopf__herausgeber {
  font-size: .55rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-leise);
}
.kurier-kopf__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem; font-weight: 700; color: var(--blau-dunkel); line-height: 1.1;
}
.kurier-kopf__datum { font-size: .72rem; color: var(--text-leise); }

.kurier-wetter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 10px 0; padding: 10px 12px;
  background: #F0F6F9; border: 1px solid #C5DCE5; border-radius: 8px;
}
.kurier-wetter__wann {
  font-size: .58rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blau);
}
.kurier-wetter__zeile { display: flex; gap: 7px; align-items: center; }
.kurier-wetter__grad { font-size: 1.3rem; font-weight: 700; color: var(--blau-dunkel); line-height: 1.05; }
.kurier-wetter__grad span { font-size: .75rem; font-weight: 400; color: var(--text-leise); }
.kurier-wetter__text { font-size: .74rem; font-weight: 600; }

.kurier-gezeiten { width: 100%; border-collapse: collapse; font-size: .74rem; margin-bottom: 10px; }
.kurier-gezeiten th {
  text-align: left; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blau); padding: 0 0 3px; border-bottom: 1px solid var(--rand);
}
.kurier-gezeiten th + th, .kurier-gezeiten td + td { text-align: right; }
.kurier-gezeiten td { padding: 2px 0; border-bottom: 1px solid var(--rand); }
.kurier-gezeiten tr:last-child td { border-bottom: 0; }
.kurier-gezeiten .ist-hoch { font-weight: 700; color: var(--blau-dunkel); }
.kurier-warnung {
  margin: 0 0 10px; padding: 5px 8px; font-size: .72rem; font-weight: 700;
  color: var(--fehler); background: var(--fehler-grund); border-radius: 5px;
}

.kurier-rubrik {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blau); border-bottom: 2px solid var(--blau);
  padding-bottom: 4px; margin-bottom: 10px;
}
.kurier-rubrik span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-leise); }

.kurier-kasten {
  margin-top: 10px; padding: 9px 11px;
  background: #E8F1F5; border: 1px solid #C5DCE5; border-radius: 7px;
  font-size: .78rem;
}
.kurier-kasten strong { color: var(--blau-dunkel); }

.kurier-tagname {
  margin-top: 8px; font-size: .58rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blau); break-after: avoid;
}

.kurier-impressum {
  margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--rand);
  font-size: .64rem; line-height: 1.45; color: var(--text-leise); text-align: center;
}

/* Die beiden Flächen, die dem Haus gehören */
.kurier-eigen, .kurier-tipp {
  position: relative;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--blau-hell);
  border-left: 3px solid var(--blau);
  border-radius: 0 8px 8px 0;
}
.kurier-tipp { margin: 12px 0 0; background: #FFFAF0; border-left-color: var(--blau); }
.kurier-eigen__marke {
  font-size: .56rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blau);
}
.kurier-eigen h3 { margin: 1px 0 5px; font-size: .92rem; color: var(--blau-dunkel); }
.kurier-tipp > strong { display: block; color: var(--blau-dunkel); margin-bottom: 3px; }
.kurier-eigen__link {
  position: absolute; top: 8px; right: 10px;
  font-size: .66rem; color: var(--blau); text-decoration: none;
}
.kurier-eigen__link:hover { text-decoration: underline; }

/* Noch nichts eingetragen: die Fläche zeigt sich trotzdem, damit sichtbar ist,
   wo sie im Blatt liegt. */
.kurier-platzhalter {
  display: block;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px dashed var(--blau);
  border-radius: 8px;
  background: rgba(31,111,139,.04);
  color: var(--text-leise);
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
}
.kurier-platzhalter--gross { min-height: 78px; }
.kurier-platzhalter--tipp { margin: 12px 0 0; }
.kurier-platzhalter strong { display: block; color: var(--blau-dunkel); font-size: .88rem; margin-bottom: 2px; }
.kurier-platzhalter span { display: inline-block; margin-top: 5px; color: var(--blau); font-weight: 600; }
.kurier-platzhalter:hover { background: rgba(31,111,139,.08); }

/* Der Würfel-Knopf sitzt hinter der Überschrift des Beitrags, den er tauscht. */
.wuerfel { display: inline; }
.wuerfel button {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  margin-left: 5px;
  vertical-align: -5px;
  padding: 0;
  border: 1px solid var(--rand);
  border-radius: 50%;
  background: var(--flaeche);
  color: var(--blau);
  cursor: pointer;
}
.wuerfel button:hover { background: var(--blau); color: #fff; border-color: var(--blau); }

.wetter-symbol { flex: none; }

/* ------------------------------------------- Eigene Beiträge im Kurier */

/* Überschrift und Seitenwahl nebeneinander, solange Platz ist. */
.feld-paar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(200px, 1fr);
  gap: 0 16px;
}
@media (max-width: 620px) {
  .feld-paar { grid-template-columns: 1fr; }
}

.textwerkzeug {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 5px 6px;
  border: 1px solid var(--rand);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--flaeche);
}
.textwerkzeug button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 30px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: .86rem;
  line-height: 1;
  cursor: pointer;
}
.textwerkzeug button:hover { background: var(--blau-hell); border-color: var(--rand); }
.textwerkzeug button span { font-size: .74rem; color: var(--text-leise); }
.textwerkzeug__trenner { width: 1px; height: 18px; margin: 0 3px; background: var(--rand); }
.textwerkzeug + textarea { border-radius: 0 0 8px 8px; }

/* Auf dem Telefon wird die Leiste mit dem Daumen bedient. 26 Pixel hohe
   Schaltflächen trifft man dort nicht zuverlässig — deshalb dort größer. */
@media (max-width: 640px) {
  .textwerkzeug { gap: 6px; padding: 6px; }
  .textwerkzeug button { min-height: 40px; min-width: 40px; padding: 8px 10px; }
}

/* Anriss von nebenan. Bewusst zurueckhaltend: Es ist ein Hinweis auf einen
   fremden Text, keine eigene Meldung — deshalb kein Bild, keine Farbflaeche,
   nur Ueberschrift, Anriss und die Quelle darunter. */
.nachbar__titel {
  display: block;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blau-dunkel);
  text-decoration: none;
}
.nachbar__titel:hover { text-decoration: underline; }
.nachbar__auszug { margin: 6px 0 0; color: var(--text-leise); font-size: .93rem; }
.nachbar__quelle { margin: 8px 0 0; }

.zaehler { font-variant-numeric: tabular-nums; }
.zaehler.ist-knapp { color: var(--warn); font-weight: 600; }

/* Arbeitsfläche: links geschrieben, rechts gezeigt.

   Nebeneinander statt untereinander, weil beim Schreiben genau das gebraucht
   wird — man tippt einen Stern und will sofort sehen, was er anrichtet. Unter
   dem Formular lag die Vorschau ausserhalb des Blicks. Auf schmalen Geräten
   rutscht sie wieder darunter; dort ist kein Platz für zwei Spalten. */
.eigen-arbeit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}
.eigen-arbeit__form { min-width: 0; }

@media (max-width: 860px) {
  .eigen-arbeit { grid-template-columns: 1fr; }
}

.eigen-vorschau {
  position: sticky;
  top: 16px;
  padding: 14px 16px;
  /* Farblich abgesetzt: Der warme Ton ist derselbe, in dem die eigenen Felder
     auch im gedruckten Blatt stehen — die Vorschau sieht damit aus wie das,
     was sie zeigt. */
  background: #FFF9EC;
  border: 1px solid #EBDDBE;
  border-left: 3px solid var(--blau);
  border-radius: 8px;
}
.eigen-vorschau__marke {
  margin-bottom: 6px;
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--blau);
}

/* So wie im Blatt: Serifen, enge Zeilen, Leerzeilen bleiben stehen. */
.eigen { font-family: Georgia, "Times New Roman", serif; font-size: .92rem; line-height: 1.45; }
.eigen__zeile { margin: 0; }
.eigen__zeile.ist-rechts { text-align: right; }
.eigen__zeile.ist-mitte  { text-align: center; }
.eigen__zeile.ist-block  { text-align: justify; hyphens: auto; }


/* Reichweite des Inhaltsvorrats */
.reichweite { width: 100%; border-collapse: collapse; font-size: .88rem; }
.reichweite th {
  text-align: left; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--blau); padding: 0 8px 5px 0; border-bottom: 1px solid var(--rand);
}
.reichweite td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--rand); }
.reichweite th + th, .reichweite td + td { text-align: right; }
.reichweite tr:last-child td { border-bottom: 0; }
.reichweite .ist-knapp td { color: var(--warn); font-weight: 600; }

/* Füllbalken in der Kopfzeile einer Blattkachel */
.blatt__nummer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fuellbalken { display: flex; align-items: center; gap: 7px; flex: none; }
.fuellbalken__spur {
  display: block;
  width: 62px; height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.22);
  overflow: hidden;
}
.fuellbalken__spur > span { display: block; height: 100%; border-radius: 3px; background: currentColor; }
.fuellbalken__zahl { font-size: .62rem; font-variant-numeric: tabular-nums; letter-spacing: 0; opacity: .95; }
.fuellbalken.ist-voll  { color: #7FD1A0; }
.fuellbalken.ist-gut   { color: #9FD4E8; }
.fuellbalken.ist-leer  { color: #FFD27A; }

/* QR-Code unter einem Eintrag */
.kurier-qr {
  display: flex; align-items: center; gap: 9px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid var(--rand);
  font-size: .68rem; line-height: 1.35; color: var(--text-leise);
  break-inside: avoid;
}
.kurier-qr .qr { flex: none; display: block; }
.kurier-qr strong { color: var(--blau); text-transform: uppercase; letter-spacing: .06em; font-size: .6rem; }
.kurier-qr span { min-width: 0; overflow-wrap: anywhere; }

/* „Gelesen von" — das Auge zählt Mitglieder, nicht Seitenaufrufe */
.gelesen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gelesen .symbol { display: inline-block; opacity: .75; }
.zeile__zahlen { text-align: right; display: grid; gap: 2px; }
.zeile__zahlen .gelesen { margin-left: 8px; }

/* Beitrittsanfragen auf der Übersicht — nur für die Verwaltung sichtbar.
   Bewusst abgesetzt: Wer hier etwas liegen lässt, lässt jemanden warten. */
.karte--anfragen {
  border-color: var(--blau);
  box-shadow: inset 3px 0 0 var(--blau);
}
.karte--anfragen h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--blau-dunkel);
}
.karte--anfragen h2 .symbol { color: var(--blau); }

/* Die Zugänge eines Hauses */
.haus-konten { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.haus-konten li {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--rand); border-radius: 7px; background: var(--flaeche);
}
.fest { margin: 0; font-weight: 600; color: var(--blau-dunkel); }

/* Gleichbehandlungshinweis beim Ausschreiben */
.agg-kasten {
  padding: 12px 14px;
  border: 1px solid var(--blau-rand);
  border-radius: 8px;
  background: var(--blau-hell);
}
.agg-kasten .feld__hinweis { margin-top: 8px; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopf:disabled:hover { background: var(--blau); }

/* Der Hinweis unter einer veröffentlichten Anzeige */
.agg-hinweis {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--rand);
  font-size: .86rem;
  line-height: 1.55;
  color: var(--text-leise);
}

/* Symbol im Ankreuzfeld der Arbeitgebermerkmale */
.haken__feld .symbol { display: inline-block; vertical-align: -3px; margin-right: 5px; color: var(--blau); }

/* Was der Betrieb bietet — dieselben Chips wie in der Anzeige, damit beim
   Schreiben sichtbar ist, was ohnehin schon drunter steht. */
.bietet { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.bietet li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border: 1px solid var(--blau-rand);
  border-radius: 999px;
  background: var(--blau-hell);
  font-size: .84rem;
  line-height: 1.2;
  cursor: help;
}
.bietet li .symbol { color: var(--blau); flex: none; }
.bietet--klein li { font-size: .8rem; padding: 5px 10px 5px 8px; }

/* ---------------------------------------------- Entwürfe prüfen */
.pruef-eintrag summary { cursor: pointer; }
.pruef-eintrag summary .mini { margin-left: 8px; }
.pruef-eintrag[open] summary { margin-bottom: 10px; }
.pruef-eintrag__text { font-size: .94rem; white-space: pre-line; }
.pruef-rubrik { margin: 22px 0 4px; }
.pruef-rubrik:first-of-type { margin-top: 4px; }

/* --------------------------------------------- Deckungsbeitragsrechnung */
.bwa-stufen {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
}
.bwa-stufen li {
  padding: 8px 14px;
  border-top: 1px solid var(--rand);
  font-size: .94rem;
}
.bwa-stufen li:first-child { border-top: 0; }
.bwa-stufen li strong { color: var(--blau-dunkel); }
.bwa-stufen .mini { display: block; margin-top: 2px; }


/* --------------------------------------------- Siegel für die Homepage */
.siegel-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.siegel-karte { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.siegel-karte h3, .siegel-karte p { margin: 0; }
.siegel-karte__buehne {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  padding: 20px 16px;
  margin-bottom: 6px;
  border: 1px solid var(--rand);
  border-radius: 8px;
}
.siegel-karte__buehne img { display: block; width: 100%; max-width: 240px; height: auto; }
.siegel-karte__buehne--grund  { background: var(--grund); }
.siegel-karte__buehne--hell   { background: #fff; }
.siegel-karte__buehne--dunkel { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
.siegel-karte .knopf { align-self: flex-start; margin-top: auto; }
.siegel-code {
  min-height: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.5;
}

/* -------------------------------------------------------- Umfragen
   Im Bereich „Umfragen“ trägt jedes Thema eine Abstimmung (src/forum.php).
   Die Antworten sind große, ganz anklickbare Flächen — auf dem Handy trifft
   man sonst den kleinen Kreis nicht. Das Ergebnis als Balken in Forumsblau,
   die eigene Wahl eine Stufe dunkler. */
.umfrage-felder {
  margin: 0 0 16px;
  padding: 14px 16px 6px;
  border: 1px solid var(--rand);
  border-radius: 8px;
}
.umfrage-felder legend { padding: 0 6px; font-weight: 600; font-size: .92rem; }
.umfrage-felder__vorspann { margin: 0 0 12px; }
.umfrage-felder__antworten { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.umfrage-felder .knopf--klein { margin-bottom: 14px; }
.umfrage-felder .optin { margin-bottom: 14px; }
.umfrage-felder__laufzeit select { max-width: 240px; }

.umfrage__kopf { margin-bottom: 14px; }
.umfrage__kopf h2 { margin: 0 0 4px; }
.umfrage__kopf .mini { margin: 0; }
.umfrage__wahl { margin: 0 0 14px; padding: 0; border: 0; display: grid; gap: 8px; }
.umfrage__wahl legend { margin-bottom: 4px; padding: 0; }
.umfrage__option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 14px;
  font-weight: 400;
  line-height: 1.35;
  border: 1px solid var(--rand);
  border-radius: 8px;
  cursor: pointer;
}
.umfrage__option:hover { border-color: var(--blau-rand); }
.umfrage__option:has(input:checked) { background: var(--blau-hell); border-color: var(--blau); font-weight: 600; }
.umfrage__option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blau); cursor: pointer; }
.umfrage__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.umfrage__ergebnis { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.umfrage__zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.umfrage__zahl { flex: none; color: var(--text-leise); font-size: .88rem; font-variant-numeric: tabular-nums; }
.umfrage__balken { height: 10px; border-radius: 99px; background: var(--blau-hell); overflow: hidden; }
.umfrage__balken span { display: block; height: 100%; border-radius: 99px; background: var(--blau); }
.umfrage__ergebnis .ist-meine .umfrage__balken span { background: var(--blau-dunkel); }
.umfrage__fuss { margin: 14px 0 0; }
.umfrage__beenden { margin-top: 12px; }

/* -------------------------------------------- Anmeldeseite: Schon dabei
   Je Mitgliedsbetrieb ein Kreis wie im Profil — mit Logo, sonst mit Kürzel.
   Die Kreise treiben wie Metallblättchen auf dem Wasser und folgen der Maus
   wie einem Magneten (assets/magnet.js); ohne Skript oder bei „Bewegung
   reduzieren“ liegen sie still. Ein heller Glanz oben links macht aus der
   Fläche ein Blättchen. */
.mitglieder { border-top: 1px solid var(--rand); padding-top: 18px; }
.mitglieder__titel {
  margin: 0 0 14px;
  text-align: center;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.mitglieder__schwarm {
  position: relative;           /* Bezug für die Ruheplätze im Skript */
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  touch-action: pan-y;          /* waagerecht wischen zieht, senkrecht scrollt */
}
.mitglied {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--flaeche);
  box-shadow: 0 2px 5px rgba(14,58,90,.16), 0 6px 14px rgba(14,58,90,.08);
  will-change: transform;
  user-select: none;
}
.mitglied::after {                            /* Glanz */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.42), rgba(255,255,255,0) 52%);
  pointer-events: none;
}
.mitglied img,
.mitglied__zeichen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--rand);
  object-fit: cover;
}
.mitglied__zeichen {
  display: grid;
  place-items: center;
  border-color: rgba(255,255,255,.35);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.mitglied__zeichen--0 { background: var(--blau-dunkel); }
.mitglied__zeichen--1 { background: var(--blau); }
.mitglied__zeichen--2 { background: #3E8FA8; }
.mitglied__zeichen--3 { background: #2F5D73; }
.mitglied__zeichen--4 { background: #4F7F93; }

/* -------------------------------------------- Module der Gäste-App
   Pflegeseite (?seite=app-modul): je Punkt drei Knöpfe — weglassen,
   Mustertext, eigener Text. Der Mustertext steht darunter zum Lesen, das
   Textfeld erscheint nur bei „Eigener Text“. Gesteuert über :has, damit es
   auch ohne Skript stimmt (assets/modul.js füllt nur den Mustertext vor). */
.modul-form__schalter { margin-bottom: 20px; }
.modul-form__abschnitt { margin: 26px 0 12px; font-size: 1.1rem; }
.modul-absatz {
  margin: 0 0 12px;
  padding: 12px 16px 14px;
  border: 1px solid var(--rand);
  border-radius: 8px;
}
.modul-absatz legend { padding: 0 6px; font-weight: 700; color: var(--blau-dunkel); }
.modul-absatz__wahl { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.modul-absatz__knopf { margin: 0; font-weight: 400; cursor: pointer; }
.modul-absatz__knopf input { position: absolute; opacity: 0; pointer-events: none; }
.modul-absatz__knopf span {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--rand);
  border-radius: 99px;
  font-size: .86rem;
}
.modul-absatz__knopf input:checked + span { background: var(--blau); border-color: var(--blau); color: #fff; font-weight: 600; }
.modul-absatz__knopf input:focus-visible + span { outline: 2px solid var(--blau); outline-offset: 2px; }
.modul-absatz__muster { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--text); }
.modul-absatz__eigen { display: none; margin-top: 4px; }
.modul-absatz:has(input[value="aus"]:checked) .modul-absatz__muster { color: var(--text-leise); text-decoration: line-through; opacity: .7; }
.modul-absatz:has(input[value="eigen"]:checked) .modul-absatz__muster { display: none; }
.modul-absatz:has(input[value="eigen"]:checked) .modul-absatz__eigen { display: block; }
.modul-absatz:has(input[value="aus"]:checked) { background: var(--grund); }
.modul-eigen { display: grid; gap: 6px; margin-bottom: 12px; }
.module-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.module-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rand); }
.module-liste li:last-child { border-bottom: 0; }
.module-liste__name { display: flex; align-items: center; gap: 10px; font-weight: 600; }

/* Reihenfolge der Elemente in der Gäste-App (?seite=gaeste-app) */
.reihenfolge { list-style: none; margin: 0; padding: 0; counter-reset: platz; }
.reihenfolge li {
  counter-increment: platz;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--rand);
}
.reihenfolge li:last-child { border-bottom: 0; }
.reihenfolge li::before {
  content: counter(platz);
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blau-hell); color: var(--blau-dunkel); font-size: .78rem; font-weight: 700;
}
.reihenfolge__art {
  flex: none; min-width: 64px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise);
}
.reihenfolge__titel { flex: 1; font-weight: 600; }
.reihenfolge__knoepfe { display: flex; gap: 6px; margin: 0; }
.reihenfolge__knoepfe .knopf { min-width: 38px; }
.reihenfolge__knoepfe .knopf:disabled { opacity: .35; cursor: default; }

/* ------------------------------------------------------ Welcome-Desk */
.welcome-avv {
  max-height: 340px; overflow-y: auto;
  margin: 14px 0 6px; padding: 4px 18px 10px;
  border: 1px solid var(--rand); border-radius: 8px; background: #FCFDFD;
  font-size: .9rem; line-height: 1.55;
}
.welcome-avv:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
.welcome-avv h3 { font-size: 1.02rem; margin: 14px 0 8px; }
.welcome-avv h4 { font-size: .92rem; margin: 16px 0 4px; color: var(--blau-dunkel); }
.welcome-avv p, .welcome-avv ul { margin: 0 0 8px; }

.welcome-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-left: 4px solid var(--warn); }
.welcome-status.ist-an { border-left-color: var(--gut); }
.welcome-status h2 { margin: 0 0 4px; }
.welcome-status p { margin: 0 0 4px; }
.welcome-status__text { flex: 1 1 360px; }

.welcome-mails > li { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.welcome-mails__name .marker { margin-left: 6px; }
.welcome-mails__knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-mails__knoepfe form { margin: 0; }

/* Zwölf Spalten: Anrede schmal, Namen breit; darunter E-Mail und die beiden Daten. */
.welcome-gast {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 12px;
  padding: 14px 16px 4px; margin-bottom: 18px;
  background: var(--grund); border: 1px solid var(--rand); border-radius: 8px;
}
.welcome-gast > .feld { grid-column: span 3; }
.welcome-gast > .welcome-gast__anrede { grid-column: span 2; }
.welcome-gast > .feld:nth-of-type(2), .welcome-gast > .feld:nth-of-type(3) { grid-column: span 5; }
.welcome-gast > .welcome-gast__mail { grid-column: span 6; }
.welcome-gast__haken, .welcome-gast__knopf { grid-column: 1 / -1; }
.welcome-gast__knopf { margin: 6px 0 12px; }
@media (max-width: 620px) {
  .welcome-gast > .feld, .welcome-gast > .welcome-gast__anrede,
  .welcome-gast > .feld:nth-of-type(2), .welcome-gast > .feld:nth-of-type(3),
  .welcome-gast > .welcome-gast__mail { grid-column: 1 / -1; }
}

.welcome-tabelle { overflow-x: auto; margin-bottom: 12px; }
.welcome-tabelle table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.welcome-tabelle th { text-align: left; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-leise); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rand); }
.welcome-tabelle td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rand); vertical-align: top; }
.welcome-tabelle td form { margin: 0; }
.welcome-tabelle__zeit { white-space: nowrap; font-variant-numeric: tabular-nums; }
.welcome-tabelle tr.ist-abgemeldet td { color: var(--text-leise); }
.welcome-tabelle tr.ist-fehler td { background: var(--warn-grund); }

.welcome-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.welcome-chip {
  display: inline-block; padding: 2px 8px; border-radius: 20px; white-space: nowrap;
  font-size: .76rem; background: var(--blau-hell); color: var(--blau-dunkel);
  font-variant-numeric: tabular-nums;
}
.welcome-chip b { font-weight: 600; }
.welcome-chip--gut  { background: var(--gut-grund); color: var(--gut); }
.welcome-chip--warn { background: var(--warn-grund); color: var(--warn); }
.welcome-chip--aus  { background: transparent; color: var(--text-leise); border: 1px dashed var(--rand); }

.welcome-zeile { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.welcome-zeile form { margin: 0; }

/* Pflichtangaben im Betriebsprofil fehlen (src/views/layout.php) */
.pflichtangaben { border-left: 4px solid var(--fehler); }
.pflichtangaben a { color: var(--fehler); font-weight: 700; margin-left: 4px; }

/* Gästezeitung: Texte mit Datum (src/views/zeitung-texte.php) */
.tagestexte > li { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px 16px; align-items: start; }
.tagestexte__tag strong { display: block; }
.tagestexte .werkzeug { display: flex; gap: 6px; }
.tagestexte .werkzeug form { margin: 0; }
@media (max-width: 620px) { .tagestexte > li { grid-template-columns: 1fr; } }
.tagestexte > li.ist-aus .tagestexte__tag,
.tagestexte > li.ist-aus .tagestexte__text { opacity: .5; }
.tagestexte .werkzeug { align-items: center; }

/* Ein/Aus-Schalter für eigene Texte (seit 25.10.2026): ein Knopf, der wie ein
   Kippschalter aussieht. Ein Klick schaltet um, ohne den Text zu löschen. */
.schalter-zeile { margin: -4px 0 12px; }
.schalter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 10px 3px 4px; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 600;
  background: var(--grund); color: var(--text-leise); border: 1px solid var(--rand);
}
.schalter__knopf {
  position: relative; flex: none; width: 34px; height: 20px; border-radius: 99px;
  background: #C9D2D8; transition: background .15s ease;
}
.schalter__knopf::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s ease;
}
.schalter.ist-an { color: var(--gut); border-color: #BFE0CD; background: var(--gut-grund); }
.schalter.ist-an .schalter__knopf { background: var(--gut); }
.schalter.ist-an .schalter__knopf::after { transform: translateX(14px); }
.schalter:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .schalter__knopf, .schalter__knopf::after { transition: none; } }

/* ------------------------------------------------- Zwei-Faktor-Anmeldung */
.zf-schritt h1 { margin-top: 0; }
.zf-code {
  font-size: 1.5rem !important; letter-spacing: .25em; text-align: center;
  font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.zf-code--klein { font-size: 1rem !important; letter-spacing: .12em; width: 11em !important; text-align: left; }
.zf-hilfe { margin-top: 18px; font-size: .9rem; color: var(--text-leise); }
.zf-hilfe summary { cursor: pointer; font-weight: 600; color: var(--blau-dunkel); }
.zf-schritte { padding-left: 1.3em; margin: 0 0 14px; }
.zf-schritte li { margin-bottom: 8px; }
.zf-einrichten__raster { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.zf-qr svg { display: block; border: 1px solid var(--rand); border-radius: 8px; }
.zf-schluessel {
  display: inline-block; padding: 6px 10px; border-radius: 6px; background: var(--grund);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; overflow-wrap: anywhere;
}
.zf-codes { border: 2px solid #E8A33D; }
.zf-codes__liste {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px;
  padding-left: 1.6em; margin: 14px 0 16px; font-size: 1.05rem;
}
.zf-codes__liste code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.zf-zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zf-zeile select { width: auto; max-width: 100%; }
.zf-aus summary { cursor: pointer; font-weight: 600; color: var(--fehler); }
.punkt--hinweis { background: var(--grund); color: var(--text-leise); border: 1px solid var(--rand); }
.zf-team__liste { list-style: none; margin: 14px 0; padding: 0; }
.zf-team__liste li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--rand);
}
.zf-team__liste li:last-child { border-bottom: 0; }
.zf-team__wahl { display: grid; gap: 6px; }
.zf-team__auswahl { border: 1px solid var(--rand); border-radius: 8px; padding: 8px 12px 10px; margin: 4px 0 10px 26px; }
.zf-team__wahl .knopf { justify-self: start; }
@media (max-width: 620px) {
  .zf-einrichten__raster { grid-template-columns: 1fr; }
  .zf-codes__liste { grid-template-columns: 1fr; }
}
/* Drucken auf der Seite mit den Wiederherstellungscodes: nur die Codes. */
@media print {
  body:has(.zf-codes) * { visibility: hidden; }
  .zf-codes, .zf-codes * { visibility: visible; }
  .zf-codes { position: absolute; left: 0; top: 0; border: 0; }
  .zf-codes button { display: none; }
}
