/* Weihnachten allein? Nein, das muss nicht sein! */

:root {
  --tanne-1: #17352a;
  --tanne-2: #224a3b;
  --creme: #f8f3e8;
  --papier: #fffdf8;
  --gold: #c9a24a;
  --gold-hell: #ecd598;
  --gold-dunkel: #8a6a1f;
  --angebot: #2f7d52;
  --angebot-hell: #e6f1ea;
  --anfrage: #b3343f;
  --anfrage-hell: #f7e7e8;
  --text: #1d2a23;
  --text-leise: #4f5b54;
  --linie: #e4d9c2;
  --rahmen: #d3c5a6;
  --fehler: #a3202c;
  --schatten: 0 1px 2px rgba(23, 53, 42, .06), 0 8px 24px rgba(23, 53, 42, .09);
  --schatten-hoch: 0 2px 4px rgba(23, 53, 42, .08), 0 14px 34px rgba(23, 53, 42, .14);
  --rund: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

body:has(dialog[open]) { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--tanne-2); text-underline-offset: 2px; }
a:hover { color: var(--tanne-1); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.innen { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.klein { font-size: .9rem; }
.leise { color: var(--text-leise); }

/* ---------- Kopf ---------- */
.kopf {
  position: relative;
  color: #fdf9ef;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .16) 1.4px, transparent 2px) 0 0 / 46px 46px,
    radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.6px) 23px 17px / 46px 46px,
    radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.6px) 9px 31px / 31px 31px,
    linear-gradient(165deg, var(--tanne-1) 0%, var(--tanne-2) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
}

.kopf .innen { padding-top: 38px; padding-bottom: 44px; }

.kopf-vorzeile {
  margin: 0 0 10px;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-hell);
}

.kopf h1 {
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  letter-spacing: -.005em;
}

.kopf h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-hell);
}

.kopf-einleitung {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: 1.05rem;
  color: #eef1e9;
}

.kopf-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 22px;
}

.kopf-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zaehler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  font-size: .98rem;
  color: #e7ebe3;
}

.zaehler b {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: #fff;
  margin-right: 6px;
}

.zaehler .punkt {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.punkt-angebot { background: var(--angebot); }
.punkt-anfrage { background: var(--anfrage); }

.kopf-schmal .innen { padding-top: 26px; padding-bottom: 22px; }
.kopf-schmal h1 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); max-width: none; }
.kopf-schmal h1 em { display: inline; }
.zurueck {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-hell); text-decoration: none; font-size: .95rem; margin-bottom: 10px;
}
.zurueck:hover { color: #fff; text-decoration: underline; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  color: #fff;
  background: var(--tanne-2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 6px 16px rgba(0, 0, 0, .14);
}
.knopf:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 3px 0 rgba(0, 0, 0, .12), 0 10px 22px rgba(0, 0, 0, .18); }
.knopf:active { transform: translateY(0); }
.knopf svg { width: 22px; height: 22px; flex: none; }
.knopf-angebot { background: var(--angebot); }
.knopf-angebot:hover { background: #276b46; }
.knopf-anfrage { background: var(--anfrage); }
.knopf-anfrage:hover { background: #9c2b35; }
.knopf-gold { background: var(--gold); color: #1b2a22; }
.knopf-gold:hover { background: #d6b25d; color: #1b2a22; }
.knopf-leise {
  background: var(--papier); color: var(--tanne-1);
  box-shadow: inset 0 0 0 1.5px var(--rahmen);
}
.knopf-leise:hover { color: var(--tanne-1); background: #fff; box-shadow: inset 0 0 0 1.5px var(--tanne-2); }
.knopf-gefahr { background: var(--anfrage); }
.knopf[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Filter ---------- */
.filter {
  margin-top: -22px;
  position: relative;
  z-index: 2;
  background: var(--papier);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.segmente {
  display: inline-flex;
  background: #f1eadb;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  flex-wrap: wrap;
}
.segmente button {
  border: 0; background: transparent; font: inherit; font-size: .95rem; font-weight: 600;
  color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.segmente button[aria-pressed="true"] { background: var(--tanne-2); color: #fff; }
.segmente button[data-typ="Angebot"][aria-pressed="true"] { background: var(--angebot); }
.segmente button[data-typ="Anfrage"][aria-pressed="true"] { background: var(--anfrage); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--rahmen); background: #fff; color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1b2a22; }

.suche { flex: 1 1 220px; min-width: 0; position: relative; }
.suche input {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 10px 14px 10px 40px; min-height: 44px;
  border: 1.5px solid var(--rahmen); border-radius: 999px; background: #fff; color: var(--text);
}
.suche input:focus { outline: none; border-color: var(--tanne-2); box-shadow: 0 0 0 3px rgba(201, 162, 74, .35); }
.suche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-leise); }

/* ---------- Karte ---------- */
.karte-rahmen {
  margin-top: 18px;
  border-radius: var(--rund);
  overflow: hidden;
  box-shadow: var(--schatten);
  background: #e9e4d6;
  border: 1px solid var(--linie);
}
#karte { height: clamp(360px, 62vh, 620px); width: 100%; }
.karte-hinweis { margin: 8px 4px 0; font-size: .88rem; color: var(--text-leise); }
@media (pointer: coarse) { .nur-maus { display: none; } }

.leaflet-container { font-family: var(--sans); font-size: 14px; background: #e9e4d6; }
.leaflet-control-attribution { font-size: 11px; }

.nadel { background: none; border: 0; }
.nadel svg { width: 34px; height: 44px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); transition: transform .12s ease; transform-origin: 50% 100%; }
.nadel:hover svg { transform: scale(1.12); }

.buendel {
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid #fff;
}
.buendel-angebot { background: var(--angebot); box-shadow: 0 0 0 5px rgba(47, 125, 82, .28), 0 2px 6px rgba(0, 0, 0, .25); }
.buendel-anfrage { background: var(--anfrage); box-shadow: 0 0 0 5px rgba(179, 52, 63, .28), 0 2px 6px rgba(0, 0, 0, .25); }

.leaflet-tooltip { font-family: var(--sans); font-size: 14px; border-radius: 8px; }

/* ---------- Listen ---------- */
.listen {
  display: grid;
  gap: 28px;
  margin: 36px 0 44px;
}
@media (min-width: 880px) { .listen { grid-template-columns: 1fr 1fr; } }

.liste-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.liste-kopf h2 { font-size: 1.55rem; }
.liste-kopf .anzahl {
  margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--text-leise);
  background: #efe7d6; padding: 3px 11px; border-radius: 999px; white-space: nowrap;
}
.liste-symbol {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff;
}
.liste-symbol svg { width: 22px; height: 22px; }
.liste-angebot .liste-symbol { background: var(--angebot); }
.liste-anfrage .liste-symbol { background: var(--anfrage); }

.karten { display: grid; gap: 12px; }

.eintrag {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--angebot);
  border-radius: 14px;
  padding: 12px 14px 12px 12px;
  box-shadow: var(--schatten);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.eintrag:hover { transform: translateY(-1px); box-shadow: var(--schatten-hoch); }
.eintrag-anfrage { border-left-color: var(--anfrage); }

.eintrag-bild, .monogramm {
  width: 68px; height: 68px; border-radius: 12px; object-fit: cover; background: #eee6d4;
}
.monogramm {
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: #fff;
  background: var(--angebot);
}
.eintrag-anfrage .monogramm { background: var(--anfrage); }
.eintrag-text { min-width: 0; }
.eintrag-name { display: block; font-weight: 700; font-size: 1.06rem; overflow-wrap: anywhere; }
.eintrag-ort { display: block; color: var(--text-leise); font-size: .95rem; overflow-wrap: anywhere; }

.marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.marke {
  font-size: .82rem; font-weight: 650; line-height: 1.2;
  padding: 4px 9px; border-radius: 999px;
  background: #f3ead2; color: #5a4512; border: 1px solid #e5d4a4;
  overflow-wrap: anywhere;
}

.leer {
  background: var(--papier); border: 1.5px dashed var(--rahmen); border-radius: 14px;
  padding: 18px; color: var(--text-leise); text-align: center;
}

/* ---------- Detailansicht ---------- */
dialog.detail {
  width: min(660px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--papier);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop { background: rgba(12, 28, 21, .62); }

.detail-kopf {
  position: relative;
  color: #fff;
  padding: 22px 64px 20px 22px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .14) 1.3px, transparent 2px) 0 0 / 38px 38px,
    var(--angebot);
}
.detail-kopf.anfrage {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .14) 1.3px, transparent 2px) 0 0 / 38px 38px,
    var(--anfrage);
}
.detail-art {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 6px;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fdf3d8;
}
.detail-art svg { width: 18px; height: 18px; }
.detail-kopf h2 { font-size: 1.8rem; overflow-wrap: anywhere; }
.detail-ort { margin: 4px 0 0; font-size: 1.05rem; color: #fbf6ea; overflow-wrap: anywhere; }

.detail-zu {
  position: absolute; right: 14px; top: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .2); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.detail-zu:hover { background: rgba(255, 255, 255, .32); }

.detail-rumpf { padding: 20px 22px 24px; }

.galerie { margin-bottom: 16px; }
.galerie-gross {
  display: block; width: 100%; padding: 0; border: 0; background: #eee6d4;
  border-radius: 14px; overflow: hidden; cursor: zoom-in;
}
.galerie-gross img { width: 100%; aspect-ratio: 3 / 2; max-height: 44vh; object-fit: cover; }
.galerie-leiste { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.galerie-leiste button {
  flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent;
  border-radius: 10px; overflow: hidden; background: #eee6d4; cursor: pointer;
}
.galerie-leiste button[aria-current="true"] { border-color: var(--gold); }
.galerie-leiste img { width: 100%; height: 100%; object-fit: cover; }

.angaben {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0;
  margin: 16px 0;
  border-top: 1px solid var(--linie);
}
.angaben dt, .angaben dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.angaben dt { color: var(--text-leise); padding-right: 12px; }
.angaben dd { font-weight: 600; overflow-wrap: anywhere; }

.detail-text { white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 18px; font-size: 1.04rem; }

.detail-kontakt { display: grid; gap: 8px; justify-items: start; margin-top: 4px; }
.detail-kontakt p { margin: 0; overflow-wrap: anywhere; }

.tipp {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #f4ecd9; border: 1px solid #e6d6ad; font-size: .95rem; color: #3f3418;
}

dialog.grossbild {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: rgba(8, 16, 12, .94);
}
dialog.grossbild::backdrop { background: rgba(8, 16, 12, .94); }
.grossbild-innen { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 12px; }
.grossbild img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.grossbild button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; cursor: pointer;
}
.grossbild button:hover { background: rgba(255, 255, 255, .3); }
.grossbild .gb-zu { right: 12px; top: 12px; }
.grossbild .gb-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.grossbild .gb-weiter { right: 12px; top: 50%; transform: translateY(-50%); }
.grossbild .gb-zaehler { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #e9e4d6; font-size: .95rem; }

/* ---------- Formular ---------- */
.formular-seite { padding: 26px 0 50px; }

.formular {
  max-width: 760px;
  margin: 0 auto;
}

.abschnitt {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  padding: 22px 20px 24px;
  margin-bottom: 18px;
}

.abschnitt-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.nummer {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--tanne-1); background: #f6ecd0; border: 2px solid var(--gold);
}
.abschnitt-kopf h2 { font-size: 1.4rem; }

.kacheln { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .kacheln { grid-template-columns: 1fr; } }

.kachel { position: relative; display: block; cursor: pointer; }
.kachel input { position: absolute; opacity: 0; pointer-events: none; }
.kachel-innen {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  min-height: 96px; padding: 16px; border-radius: 16px;
  border: 2px solid var(--rahmen); background: #fff;
  transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.kachel-symbol { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.kachel-symbol svg { width: 30px; height: 30px; }
.kachel-angebot .kachel-symbol { background: var(--angebot); }
.kachel-anfrage .kachel-symbol { background: var(--anfrage); }
.kachel-titel { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.kachel-unter { display: block; color: var(--text-leise); font-size: .95rem; }
.kachel:hover .kachel-innen { border-color: var(--tanne-2); }
.kachel-angebot input:checked + .kachel-innen { border-color: var(--angebot); background: var(--angebot-hell); box-shadow: 0 0 0 3px rgba(47, 125, 82, .18); }
.kachel-anfrage input:checked + .kachel-innen { border-color: var(--anfrage); background: var(--anfrage-hell); box-shadow: 0 0 0 3px rgba(179, 52, 63, .16); }
.kachel input:focus-visible + .kachel-innen { outline: 3px solid var(--gold); outline-offset: 2px; }

.feld { margin-bottom: 18px; }
.feld:last-child { margin-bottom: 0; }
.feld > label:not(.ablage):not(.einwilligung), .feld > .feld-titel, fieldset > legend {
  display: block; font-weight: 700; margin-bottom: 6px; font-size: 1.02rem; padding: 0;
}
.feld .hilfe { display: block; margin: -2px 0 8px; color: var(--text-leise); font-size: .93rem; font-weight: 400; }
.optional { font-weight: 400; color: var(--text-leise); }

fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
fieldset:last-child { margin-bottom: 0; }

.eingabe, textarea.eingabe {
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--rahmen);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
}
textarea.eingabe { min-height: 140px; resize: vertical; line-height: 1.5; }
.eingabe:focus { outline: none; border-color: var(--tanne-2); box-shadow: 0 0 0 3px rgba(201, 162, 74, .38); }
.eingabe-plz { max-width: 11ch; letter-spacing: .06em; }
.eingabe-zahl { max-width: 9ch; }

.reihe { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .reihe-plz { grid-template-columns: 150px 1fr; } }

.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--rahmen); background: #fff;
  font-weight: 600; font-size: .98rem;
  transition: background-color .1s ease, border-color .1s ease;
}
.wahl label:hover span { border-color: var(--tanne-2); }
.wahl input:checked + span { background: var(--tanne-2); border-color: var(--tanne-2); color: #fff; }
.wahl input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.wahl-termine input:checked + span { background: var(--gold); border-color: var(--gold); color: #1b2a22; }
.wahl small { font-weight: 400; margin-left: 6px; opacity: .9; }

.zaehler-woerter { display: block; text-align: right; margin-top: 6px; font-size: .9rem; color: var(--text-leise); }
.zaehler-woerter.zu-viel { color: var(--fehler); font-weight: 700; }

.ablage {
  display: grid; place-items: center; text-align: center; gap: 6px;
  padding: 24px 16px; border: 2px dashed #cfb979; border-radius: 16px;
  background: #fffaf0; cursor: pointer; transition: background-color .12s ease, border-color .12s ease;
}
.ablage:hover, .ablage.ueber { background: #f8efd8; border-color: var(--gold-dunkel); }
.ablage svg { width: 34px; height: 34px; color: var(--gold-dunkel); }
.ablage strong { font-size: 1.02rem; }
.ablage input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.vorschau { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.vorschau:empty { display: none; }
.vorschau-bild { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee6d4; }
.vorschau-bild img { width: 100%; height: 100%; object-fit: cover; }
.vorschau-bild.laedt { display: grid; place-items: center; color: var(--text-leise); font-size: .85rem; }
.vorschau-bild button {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(20, 30, 25, .78); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.vorschau-bild button:hover { background: var(--anfrage); }

.einwilligung {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 16px; border-radius: 14px; background: #f6efdf; border: 1px solid var(--linie);
  cursor: pointer;
}
.einwilligung input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--tanne-2); }

.falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.fehler-text { display: block; color: var(--fehler); font-weight: 600; font-size: .93rem; margin-top: 6px; }
.fehler-text:empty { display: none; }
.hat-fehler .eingabe, .hat-fehler .ablage { border-color: var(--fehler); }
.hat-fehler .wahl span, .hat-fehler .kachel-innen { border-color: #d98c93; }

.meldung {
  padding: 14px 16px; border-radius: 14px; margin: 0 0 16px; font-weight: 600;
  background: #fbe9ea; color: #7d1720; border: 1px solid #efc2c6;
}
.meldung[hidden] { display: none; }

.absenden { display: grid; gap: 12px; justify-items: center; margin-top: 8px; text-align: center; }
.absenden .knopf { min-width: min(100%, 320px); font-size: 1.1rem; min-height: 54px; }

.erfolg { max-width: 680px; margin: 0 auto; text-align: center; }
.erfolg .abschnitt { padding: 30px 22px; }
.erfolg-symbol {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--angebot); color: #fff;
}
.erfolg-symbol svg { width: 38px; height: 38px; }
.erfolg h2 { font-size: 1.8rem; margin-bottom: 8px; }
.loeschlink {
  text-align: left; margin: 22px 0 6px; padding: 16px; border-radius: 14px;
  background: #fff8e6; border: 1.5px solid #e2cd8f;
}
.loeschlink p { margin: 0 0 10px; }
.kopierzeile { display: flex; gap: 8px; flex-wrap: wrap; }
.kopierzeile input { flex: 1 1 220px; min-width: 0; font-size: .95rem; }
.erfolg-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---------- Löschen / Verwaltung ---------- */
.mittig { max-width: 620px; margin: 0 auto; }
.zusammenfassung { margin: 14px 0 18px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--linie); }
.zusammenfassung strong { overflow-wrap: anywhere; }

.werkzeuge {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--rund);
  box-shadow: var(--schatten); padding: 14px; margin: 22px 0 16px;
}
.werkzeuge .suche { flex: 1 1 240px; }
.schalter-zeile { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.schalter-zeile input { width: 22px; height: 22px; accent-color: var(--tanne-2); }
.werkzeuge .knopf { min-height: 42px; padding: 8px 16px; font-size: .95rem; }

.tabelle-rahmen {
  overflow-x: auto; background: var(--papier); border: 1px solid var(--linie);
  border-radius: var(--rund); box-shadow: var(--schatten); margin-bottom: 40px;
}
table.verwaltung { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 860px; }
.verwaltung th, .verwaltung td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.verwaltung th { background: #f3ecdc; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.verwaltung tr.ausgeblendet td { background: #f7f2e8; color: #5e5a50; }
.verwaltung td.name { font-weight: 700; overflow-wrap: anywhere; max-width: 220px; }
.art { display: inline-block; white-space: nowrap; padding: 3px 10px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .82rem; }
.art-angebot { background: var(--angebot); }
.art-anfrage { background: var(--anfrage); }
.aktionen { display: flex; gap: 6px; flex-wrap: nowrap; }
.aktionen button {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--rahmen); background: #fff; color: var(--text); min-height: 36px;
}
.aktionen button:hover { border-color: var(--tanne-2); }
.aktionen button.loeschen { color: var(--anfrage); border-color: #e4b4b8; }
.aktionen button.loeschen:hover { background: var(--anfrage); color: #fff; border-color: var(--anfrage); }

.umschalter { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; }
.umschalter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.umschalter span { position: absolute; inset: 0; border-radius: 999px; background: #cbbfa5; transition: background-color .15s ease; }
.umschalter span::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s ease;
}
.umschalter input:checked + span { background: var(--angebot); }
.umschalter input:checked + span::after { transform: translateX(22px); }
.umschalter input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Fuß ---------- */
.fuss {
  background: var(--tanne-1);
  color: #dfe5dc;
  border-top: 3px solid var(--gold);
  padding: 26px 0 30px;
  font-size: .93rem;
}
.fuss a { color: var(--gold-hell); }
.fuss a:hover { color: #fff; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.fuss p { margin: 4px 0; }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .kopf .innen { padding-top: 24px; padding-bottom: 38px; }
  .kopf-vorzeile { margin-bottom: 6px; }
  .kopf-knoepfe .knopf { flex: 1 1 100%; }
  .filter { padding: 12px; gap: 10px; }
  .segmente { width: 100%; }
  .segmente button { flex: 1 1 auto; padding: 8px 10px; }
  .abschnitt { padding: 18px 14px 20px; }
  .detail-kopf { padding: 18px 60px 16px 18px; }
  .detail-kopf h2 { font-size: 1.5rem; }
  .detail-rumpf { padding: 16px 16px 20px; }
  .angaben dt { font-size: .93rem; }
  .kopf h1 { font-size: 1.85rem; }
  .kopf-einleitung { font-size: 1rem; margin-top: 12px; }
  .kopf-aktionen { margin-top: 18px; gap: 14px; }
}
.abstand-oben { margin-top: 10px; }

/* --- Impressum und Datenschutz --------------------------------------------------- */
.rechtstext { max-width: 780px; margin: 0 auto; }
.rechtstext h2 { font-size: 1.3rem; margin: 26px 0 8px; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p, .rechtstext li, .rechtstext address { line-height: 1.6; }
.rechtstext p { margin: 0 0 10px; }
.rechtstext ul { margin: 0 0 12px; padding-left: 1.3em; }
.rechtstext li { margin-bottom: 4px; }
.rechtstext address { font-style: normal; margin: 0 0 10px; }
.rechtstext a { overflow-wrap: anywhere; }
.rechtstext .stand { margin-top: 26px; }
