/* Floremo – Oberfläche nach Markenleitfaden.
   Farben nur als Variablen. Farbwelt per data-farbwelt am <html>,
   Seitenleiste per data-seitenleiste. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.657ceef57276.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.885576a6f4c8.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.4f54d6c65e11.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.bf5e25824fd7.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.9e00056eb42e.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.edfa21ab8b94.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.a65fe668cb2c.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.384df4e18d92.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.20f04746d8b4.woff2") format("woff2"); }

/* ---------- Farbwelt E „Sand & Salbei“ (Standard) ---------- */
:root {
  --sand: #EFE8DC;
  --papier: #FBF8F2;
  --feld: #FFFFFF;
  --linie: #BFB19A;        /* Rahmen, Trennlinien: ca. 2:1 auf Papier */
  --linie-feld: #968873;   /* Eingabefelder und Auswahlknöpfe: mind. 3:1 (WCAG 1.4.11) */
  --tinte: #2A251E;
  --gedaempft: #625A4F;
  --platzhalter: #756D60;
  --salbei: #4D6A58;
  --salbei-weich: rgba(77, 106, 88, 0.12);
  --salbei-text: #FFFFFF;
  --terrakotta: #A0502C;
  --terrakotta-weich: rgba(160, 80, 44, 0.09);
  --dunkelgruen: #2C4438;
  /* Kalender: Rahmenfarbe je Anlass (Wunsch Patrick 16.11.2026), alle mind. 5:1 auf Papier */
  --anlass-rosenkranz: #5B4A8A;  /* Violett: Farbe der Trauer in der Kirche */
  --anlass-hochzeit: #9B3F62;
  --anlass-bestellung: #2F6DB0;  /* klares Blau; das gedeckte #3E6079 wirkte fast schwarz */
  --creme: #F5F1E8;
  --creme-gedaempft: #C2CEC5;
  --schatten: 0 1px 2px rgba(42, 37, 30, 0.06);

  --leiste: var(--papier);
  --leiste-linie: var(--linie);
  --leiste-text: var(--tinte);
  --leiste-gedaempft: var(--gedaempft);
  --leiste-aktiv: var(--salbei-weich);

  --schrift: "Plus Jakarta Sans", system-ui, sans-serif;
  --schrift-namen: "Cormorant Garamond", Georgia, serif;
  --schrift-schleife: "Times New Roman", "Liberation Serif", Tinos, serif;
  --rund: 10px;
  --rund-gross: 14px;
}

/* ---------- Farbwelt G „Mehr Kontrast“ ---------- */
:root[data-farbwelt="kontrast"] {
  --sand: #E7DECF;
  --papier: #FFFDF8;
  --linie: #A89A82;
  --linie-feld: #7E715E;
  --tinte: #16130E;
  --gedaempft: #4B443A;
  --platzhalter: #6E6558;
  --salbei: #38584A;
  --salbei-weich: rgba(56, 88, 74, 0.14);
  --terrakotta: #933F1C;
  --terrakotta-weich: rgba(147, 63, 28, 0.10);
  --anlass-rosenkranz: #4B3C77;
  --anlass-hochzeit: #86324F;
  --anlass-bestellung: #2563A6;
}

:root[data-seitenleiste="dunkel"] {
  --leiste: var(--dunkelgruen);
  --leiste-linie: var(--dunkelgruen);
  --leiste-text: var(--creme);
  --leiste-gedaempft: var(--creme-gedaempft);
  --leiste-aktiv: rgba(245, 241, 232, 0.14);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; zoom: var(--zoom); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.5;
}
a { color: var(--salbei); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.icon { width: 20px; height: 20px; stroke-width: 1.7; flex: none; vertical-align: middle; }
.icon-klein { width: 16px; height: 16px; }
.name { font-family: var(--schrift-namen); font-weight: 600; }
.gedaempft { color: var(--gedaempft); }
.klein { font-size: 0.875rem; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.versteckt, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--salbei); outline-offset: 2px; }
.leiste :focus-visible { outline-color: var(--leiste-text); }
.sprunglink {
  position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 16px; border-radius: var(--rund);
  background: var(--salbei); color: var(--salbei-text); font-weight: 700;
}
.sprunglink:focus { top: 12px; }

/* ---------- Grundaufbau ---------- */
.app { display: flex; min-height: calc(100vh / var(--zoom)); }
/* Probebetrieb o. Ä.: FLOREMO_HINWEISLEISTE */
/* Fangfeld der Selbst-Anmeldung: für Menschen unsichtbar, auch für Vorleseprogramme */
.fangfeld { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hinweisleiste { padding: 6px 16px; text-align: center; font-size: 0.875rem; font-weight: 600; background: var(--terrakotta-weich); color: var(--tinte); border-bottom: 1px solid var(--terrakotta); text-wrap: balance; }
.leiste {
  width: 248px; flex: none;
  position: sticky; top: 0; height: calc(100vh / var(--zoom)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px 16px;
  background: var(--leiste); color: var(--leiste-text);
  border-right: 1px solid var(--leiste-linie);
}
.leiste-logo { display: block; padding: 0 8px; }
.leiste-logo img { display: block; width: 100%; max-width: 196px; height: auto; }
.leiste-logo .logo-dunkel { display: none; }
:root[data-seitenleiste="dunkel"] .leiste-logo .logo-hell { display: none; }
:root[data-seitenleiste="dunkel"] .leiste-logo .logo-dunkel { display: block; }
.leiste nav { display: flex; flex-direction: column; gap: 4px; }
.leiste nav a {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 12px; border-radius: var(--rund);
  color: var(--leiste-gedaempft); font-weight: 500;
}
.leiste nav a:hover { background: var(--leiste-aktiv); color: var(--leiste-text); text-decoration: none; }
.leiste nav a[aria-current="page"] { background: var(--leiste-aktiv); color: var(--leiste-text); font-weight: 700; box-shadow: inset 4px 0 0 var(--salbei); }
.leiste .knopf-anruf { width: 100%; justify-content: center; min-height: 52px; font-size: 1.0625rem; }
:root[data-seitenleiste="dunkel"] .leiste .knopf-anruf { background: var(--creme); color: var(--dunkelgruen); }
.leiste-fuss { margin-top: auto; padding: 0 12px; display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; }
.leiste-fuss strong { color: var(--leiste-text); }
.angemeldet { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.angemeldet .icon { flex: none; width: 16px; height: 16px; }
.leiste-fuss button, .app-fuss button { all: unset; cursor: pointer; color: var(--leiste-gedaempft); min-height: 44px; display: inline-flex; align-items: center; }
.leiste-fuss button:focus-visible, .app-fuss button:focus-visible, .checkpunkt button:focus-visible { outline: 3px solid var(--salbei); outline-offset: 2px; }
.leiste-fuss button:hover, .app-fuss button:hover { color: var(--leiste-text); text-decoration: underline; }
.nav-kurz { display: none; }
.app-fuss { display: none; }

.haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kopfzeile {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 40px; border-bottom: 1px solid var(--linie); background: var(--sand);
  position: sticky; top: 0; z-index: 5;
}
.suchfeld {
  display: flex; align-items: center; gap: 8px; flex: 0 1 460px;
  min-height: 46px; padding: 0 14px; border-radius: var(--rund);
  background: var(--papier); border: 1px solid var(--linie); color: var(--gedaempft);
}
.suchfeld input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--tinte); font: inherit; }
.suchfeld kbd { font: inherit; font-size: 0.8125rem; padding: 1px 7px; border: 1px solid var(--linie); border-radius: 6px; color: var(--gedaempft); }
.kopfzeile-datum { color: var(--gedaempft); font-weight: 500; white-space: nowrap; }
.inhalt { padding: 28px 40px 56px; display: flex; flex-direction: column; gap: 24px; width: 100%; }

.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.seitenkopf h1 { font-family: var(--schrift-namen); font-size: 2.75rem; font-weight: 600; }
.seitenkopf .ueber { font-size: 0.9375rem; color: var(--gedaempft); }
.zurueck { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }

/* ---------- Hinweisleiste ---------- */
.meldungen { display: flex; flex-direction: column; gap: 8px; }
.meldung {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--rund);
  background: var(--salbei-weich); color: var(--tinte); border: 1px solid transparent;
}
.meldung.fehler, .meldung.warnung { background: var(--terrakotta-weich); border-color: var(--terrakotta); }
.meldung .icon { color: var(--salbei); }
.meldung.fehler .icon, .meldung.warnung .icon { color: var(--terrakotta); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: var(--rund);
  border: 1px solid var(--linie); background: var(--papier); color: var(--tinte);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.knopf:hover { text-decoration: none; border-color: var(--gedaempft); }
.knopf-haupt { background: var(--salbei); border-color: var(--salbei); color: var(--salbei-text); }
.knopf-haupt:hover { filter: brightness(1.08); border-color: var(--salbei); }
.knopf-warnung { background: var(--terrakotta); border-color: var(--terrakotta); color: var(--salbei-text); }
.knopf-leise { background: transparent; border-color: transparent; color: var(--gedaempft); }
.knopf-leise:hover { color: var(--tinte); border-color: var(--linie); }
.knopf-klein { min-height: 44px; padding: 0 12px; font-size: 0.9375rem; }
/* Gewählt: volle Akzentfarbe, damit die Auswahl sofort erkennbar ist */
.knopf[aria-pressed="true"], .knopf.an { background: var(--salbei); border: 1.5px solid var(--salbei); color: var(--salbei-text); font-weight: 700; }
.knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.knopf-symbol { min-width: 44px; padding: 0 10px; }
form.inline { display: inline; }

/* ---------- Flächen ---------- */
.flaeche { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--rund-gross); padding: 22px; box-shadow: var(--schatten); }
.flaeche-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.flaeche-kopf h2 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; }
.flaeche-warnung { background: var(--terrakotta-weich); border-color: var(--terrakotta); }
.leer { color: var(--gedaempft); padding: 8px 0; }
.raster-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; align-items: start; }
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.kachel { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--rund-gross); background: var(--papier); border: 1px solid var(--linie); color: var(--tinte); }
.kachel:hover { text-decoration: none; border-color: var(--gedaempft); }
.kachel-titel { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--gedaempft); font-weight: 600; }
.kachel-zahl { font-size: 2.25rem; font-weight: 700; line-height: 1; }
.kachel-warnung { background: var(--terrakotta-weich); border-color: var(--terrakotta); }
.kachel-warnung .kachel-titel { color: var(--terrakotta); }

/* Listen mit Trennlinien */
.liste { display: flex; flex-direction: column; }
.liste > * { border-top: 1px solid var(--linie); }
.zeile { display: flex; align-items: center; gap: 16px; padding: 12px 0; min-height: 56px; color: var(--tinte); }
a.zeile:hover { text-decoration: none; background: var(--salbei-weich); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.zeile-zeit { width: 84px; flex: none; font-weight: 700; white-space: nowrap; }
.zeile-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.zeile-haupt .name { font-size: 1.3125rem; line-height: 1.2; }
.zeile-neben { font-size: 0.9375rem; color: var(--gedaempft); }
.zeile-person { flex-wrap: wrap; row-gap: 8px; }
.link-weitergeben { overflow-wrap: anywhere; font-weight: 600; }

/* Pillen / Status */
.pille { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: 0.9375rem; font-weight: 600; background: var(--salbei-weich); color: var(--salbei); white-space: nowrap; }
.pille .icon { width: 16px; height: 16px; }
.pille-warnung { background: var(--terrakotta-weich); color: var(--terrakotta); border: 1px solid var(--terrakotta); font-weight: 700; }
.pille-neutral { background: transparent; border: 1px solid var(--linie); color: var(--gedaempft); }
.punkt { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--salbei); }
.punkt-offen { background: transparent; border: 2px solid var(--gedaempft); }
.punkt-warnung { background: var(--terrakotta); }

/* ---------- Formulare ---------- */
.formular { display: flex; flex-direction: column; gap: 22px; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gedaempft); }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > label, .feld-titel { font-size: 0.9375rem; font-weight: 600; }
.feld .hilfe, .feld .optional { font-weight: 400; color: var(--gedaempft); font-size: 0.875rem; }
.feld .fehler-text { color: var(--terrakotta); font-size: 0.875rem; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="time"],
input[type="number"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: var(--rund); border: 1px solid var(--linie-feld);
  background: var(--feld); color: var(--tinte); font: inherit;
}
/* Datum/Uhrzeit nie breiter als ihre Spalte (Safari auf iPad hat sonst eine feste Mindestbreite
   und schiebt sich über das Nachbarfeld; leer zeigt es außerdem keine Höhe/keinen Text) */
input[type="date"], input[type="time"] { display: block; min-width: 0; max-width: 100%; }
@supports (-webkit-touch-callout: none) {
  input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; line-height: 46px; text-align: left; }
  input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; min-height: 46px; }
}
textarea { padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--platzhalter); }
/* Auswahllisten überall gleich hoch wie Textfelder: Safari auf iPad zeichnet sie sonst in
   eigener, kleiner Form (Rückmeldung Patrick 16.11.2026). Pfeil als eigenes Symbol. */
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; line-height: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23625A4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--salbei); outline-offset: 0; border-color: var(--salbei); }
.feld-fehler input, .feld-fehler select, .feld-fehler textarea { border-color: var(--terrakotta); }
.feld-gross input { font-size: 1.125rem; font-weight: 500; border: 1.5px solid var(--salbei); }
.felder-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.felder-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Datum/Uhrzeit: je Feld mind. 220 px, sonst untereinander (Safari am iPad braucht die Breite) */
.felder-termin { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.felder-termin > .feld { max-width: 320px; }
.felder-adresse { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 12px; }
/* schmale Formulare (Einrichtung): PLZ schmal, Ort breit */
.felder-plz-ort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
/* Positionen für die Rechnung: eine Zeile je Position, am Handy untereinander */
.positionen { display: flex; flex-direction: column; gap: 14px; }
/* zwei Zeilen: oben Artikel und Bezeichnung, darunter die Zahlen (sonst abgeschnitten) */
/* jede Position eine Karte: Rahmen in --linie-feld (mind. 3:1), klar voneinander getrennt */
.position { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; align-items: end; padding: 12px 14px 14px; background: var(--feld); border: 1px solid var(--linie-feld); border-radius: var(--rund); }
.position.feld-fehler { border-color: var(--terrakotta); border-width: 2px; }
.position-kopf { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--linie); }
.position-nr { font-weight: 700; }
.position-summe { font-weight: 700; font-variant-numeric: tabular-nums; }
.positionen-gesamt { font-weight: 600; }
.positionen-gesamt output { font-weight: 800; font-variant-numeric: tabular-nums; }
.budget-vergleich { color: var(--gedaempft); font-variant-numeric: tabular-nums; }
.budget-vergleich.ueber-budget { color: var(--terrakotta); font-weight: 600; }
.schnellknoepfe { display: flex; flex-direction: column; gap: 6px; }
.position-artikel { grid-column: span 2; }
.position-bezeichnung { grid-column: span 4; }
.position .feld > label { font-size: 1rem; }
.position-entfernen { font-size: 1rem; }
.position-fehler { grid-column: 1 / -1; margin: 0; padding-left: 18px; }
.rechnung:has(input[name="rechnung_wie_besteller"]:checked) .rechnung-empfaenger { display: none; }
.rechnung-empfaenger { display: flex; flex-direction: column; gap: 12px; }
.tabelle.summen td, .tabelle.summen th { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle.summen td:first-child, .tabelle.summen th:first-child { text-align: left; }
/* Rechnungsvorschau: Steuerzeilen zurückhaltend, Gesamtbetrag deutlich (Kontrast gedämpft ≥ 4,5:1) */
.tabelle.steuern tbody td { color: var(--gedaempft); }
.tabelle .summe-gesamt th, .tabelle .summe-gesamt td {
  border-top: 2px solid var(--tinte); border-bottom: 0; padding-top: 14px;
  color: var(--tinte); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0; text-transform: none;
}
.tabelle .summe-gesamt td:last-child { font-size: 1.375rem; }
.gesamtbetrag {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0;
  padding-top: 14px; border-top: 2px solid var(--tinte); font-weight: 700; font-size: 1.0625rem;
}
.gesamtbetrag span:last-child { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.maengel { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.haken { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.haken input { flex: none; width: 22px; height: 22px; accent-color: var(--salbei); }
/* Deutlich sichtbares Auswahlkästchen (Rahmen in --gedaempft, über 3:1 auf Weiß) */
.haken input.wahl { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--gedaempft); border-radius: 6px; background: var(--feld) center / 18px no-repeat; cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease; }
.haken input.wahl:checked { background-color: var(--salbei); border-color: var(--salbei); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.haken input.wahl[type="radio"] { border-radius: 50%; }
.wahl-platz { flex: none; width: 26px; }
@media (prefers-reduced-motion: reduce) { .haken input.wahl { transition: none; } }
.auswahlgruppe { display: flex; flex-wrap: wrap; gap: 8px; }
.auswahlgruppe label { position: relative; display: inline-flex; }
.auswahlgruppe input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.auswahlgruppe span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--rund);
  border: 1px solid var(--linie-feld); color: var(--gedaempft); font-weight: 600; font-size: 0.9375rem;
}
.auswahlgruppe input:checked + span { border: 1.5px solid var(--salbei); background: var(--salbei); color: var(--salbei-text); font-weight: 700; }
.auswahlgruppe input:focus-visible + span { outline: 3px solid var(--salbei); outline-offset: 2px; }
.bestellung-mehr { display: flex; flex-direction: column; gap: 12px; }
fieldset:has(input[name="b-art"][value=""]:checked) .bestellung-mehr:not(.offen) { display: none; }
.formular-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linie); }
details.mehr > summary { cursor: pointer; font-weight: 600; color: var(--salbei); min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
details.mehr > summary::-webkit-details-marker { display: none; }
details.mehr[open] > summary { margin-bottom: 12px; }
details.mehr > summary > svg:first-child { transition: transform 0.15s; }
details.mehr[open] > summary > svg:first-child { transform: rotate(180deg); }
/* Zugeklappte Fläche: Überschrift als Klickzeile, Inhalt erst auf Wunsch */
.nebenbei details.mehr > summary { justify-content: space-between; color: var(--tinte); font-size: 1.125rem; font-weight: 700; }
.nebenbei details.mehr > summary > span:first-child { display: flex; align-items: center; gap: 10px; }
.fehlerliste { margin: 0; padding: 12px 16px; list-style: none; border-radius: var(--rund); background: var(--terrakotta-weich); color: var(--terrakotta); font-weight: 600; }

/* Schnellerfassung */
.schmal { max-width: 860px; width: 100%; }
/* Dublettenwarnung: groß und in Warnfarbe, damit kein Fall doppelt angelegt wird */
.dublette { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; border-radius: 12px; background: var(--terrakotta-weich); border: 2px solid var(--terrakotta); }
.dublette + .dublette { margin-top: 10px; }
.dublette > .icon { width: 32px; height: 32px; flex: none; color: var(--terrakotta); }
.dublette-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; font-size: 1.0625rem; }
.dublette strong { color: var(--terrakotta); font-size: 1.25rem; }
.dublette .name { font-size: 1.625rem; line-height: 1.15; }
/* Hinweise auf „Heute“: deutlich, sobald es welche gibt */
.hinweise-da { border: 2px solid var(--terrakotta); }
.nebenbei details.hinweise-da > summary { color: var(--terrakotta); font-size: 1.3125rem; }
.hinweise-da .zeile-haupt strong { font-size: 1.125rem; }
.hinweise-da .zeile-neben { font-size: 1rem; }

/* ---------- Trauerfall ---------- */
.fallkopf { display: flex; flex-direction: column; gap: 20px; }
.fallkopf-oben { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fallkopf h1 { font-family: var(--schrift-namen); font-size: 3rem; font-weight: 600; line-height: 1.05; }
.fallkopf .art { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--salbei); }
.termine { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.termin { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--sand); }
.termin a { display: inline-flex; align-items: center; gap: 6px; }
.termin-titel { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gedaempft); }
.termin-wert { font-size: 1.0625rem; font-weight: 700; }
.termin-warnung { background: var(--terrakotta-weich); }
.termin-warnung .termin-titel { color: var(--terrakotta); }
.fallkopf-fuss { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--gedaempft); font-size: 0.9375rem; }
.fallkopf-fuss strong { color: var(--tinte); font-weight: 600; }
.fall-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.seitenspalte { display: flex; flex-direction: column; gap: 20px; }

.auftrag { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--rund-gross); background: var(--papier); border: 1px solid var(--linie); }
.auftrag-kopf { display: flex; align-items: flex-start; gap: 14px; }
.auftrag-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.auftrag-titel { font-size: 1.0625rem; }
.auftrag-titel strong { font-size: 1.3125rem; }
.auftrag-preis { font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.auftrag-wunsch { font-size: 1.0625rem; }
.auftrag-wunsch { color: var(--gedaempft); }
.schleife-vorschau { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 14px; border-radius: 10px; background: var(--sand); font-family: var(--schrift-schleife); font-size: 1.0625rem; }
a.schleife-vorschau { color: inherit; text-decoration: none; border: 1px solid transparent; }
a.schleife-vorschau:hover, a.schleife-vorschau:focus-visible { border-color: var(--salbei); }
.schleife-vorschau .seite { font-family: var(--schrift); font-size: 0.8125rem; font-weight: 600; color: var(--gedaempft); padding-top: 2px; }
.schleife-warnung { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 10px; background: var(--terrakotta-weich); border: 1px solid var(--terrakotta); color: var(--terrakotta); font-weight: 600; }
.statuszeile { display: flex; flex-wrap: wrap; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--linie); color: var(--gedaempft); }
.status.erledigt { background: var(--salbei-weich); border-color: transparent; color: var(--salbei); }
.status.warnung { background: var(--terrakotta-weich); border-color: var(--terrakotta); color: var(--terrakotta); }
.auftrag-aktionen { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 12px; border-top: 1px solid var(--linie); }
.aktionsgruppe { display: flex; flex-direction: column; gap: 6px; }
.gruppen-titel { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gedaempft); }
.rechnung-stand { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
/* Kompakte Fallseite: Auftrag als aufklappbare Zeile */
details.auftrag { gap: 0; padding: 12px 20px; }
details.auftrag > summary { list-style: none; cursor: pointer; min-height: 44px; align-items: center; }
details.auftrag > summary::-webkit-details-marker { display: none; }
details.auftrag[open] > summary { padding-bottom: 12px; }
details.auftrag:not([open]):hover { border-color: var(--salbei); }
.auftrag-inhalt { display: flex; flex-direction: column; gap: 12px; }
.auftrag-stand { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.auftrag-schleife-kurz { font-family: var(--schrift-schleife); color: var(--gedaempft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.auftrag[open] .auftrag-schleife-kurz { display: none; }
.auftrag-pfeil { display: inline-flex; color: var(--gedaempft); transition: transform 0.15s; }
details.auftrag[open] .auftrag-pfeil { transform: rotate(180deg); }
.verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.verlauf li { display: flex; flex-direction: column; gap: 2px; font-size: 0.9375rem; overflow-wrap: anywhere; }
.schleifen-laenge .zu-lang { color: var(--terrakotta); font-weight: 600; }
.fotos { display: flex; flex-wrap: wrap; gap: 8px; }
.fotos a, .fotos img { display: block; width: 88px; height: 88px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.checkpunkt { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.checkpunkt button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; flex: 1; min-height: 44px; }
.checkbox { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--gedaempft); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--salbei-text); }
.checkpunkt.erledigt .checkbox { background: var(--salbei); border-color: var(--salbei); }
.checkpunkt.erledigt .text { color: var(--gedaempft); text-decoration: line-through; }
.checkbox .icon { width: 16px; height: 16px; stroke-width: 3; }
.gefahrzone { border-color: var(--terrakotta); }

/* ---------- Schleifen-Editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr) 300px; gap: 20px; align-items: start; }
.editor textarea { font-family: var(--schrift-schleife); font-size: 1.25rem; min-height: 120px; }
.vorschau { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.baender { display: flex; justify-content: center; gap: 28px; padding: 20px; border-radius: 12px; background: var(--sand); }
.band-spalte { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.band {
  --breite: 96px;
  width: var(--breite); height: 440px; position: relative;
  background: var(--bandfarbe, #F8F6F1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 93%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.band-text {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--schrift-schleife); color: var(--druckfarbe, #1C1C1C);
  white-space: pre; text-align: center; line-height: 1.15;
}
.band-mass { font-size: 0.8125rem; color: var(--gedaempft); }
.band-mass.zu-lang { color: var(--terrakotta); font-weight: 700; }
.farbwahl { display: flex; flex-wrap: wrap; gap: 10px; }
.farbwahl label { position: relative; display: block; }
.farbwahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.farbwahl span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); }
.farbwahl input:checked + span { box-shadow: 0 0 0 3px var(--papier), 0 0 0 5px var(--salbei); }
.farbwahl input:focus-visible + span { outline: 3px solid var(--salbei); outline-offset: 4px; }
.sprueche { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh / var(--zoom) - 140px); overflow: hidden; position: sticky; top: 96px; }
.sprueche-liste { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.spruch { all: unset; cursor: pointer; display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie); font-family: var(--schrift-schleife); font-size: 1.0625rem; white-space: pre-line; min-height: 24px; background: var(--feld); }
.spruch:hover, .spruch:focus-visible { border-color: var(--salbei); background: var(--salbei-weich); }
.spruch-eigen { border-style: dashed; }
.reiter { display: flex; flex-wrap: wrap; gap: 6px; }
.reiter .knopf { min-height: 44px; padding: 0 12px; font-size: 0.875rem; }

/* ---------- Kalender ---------- */
.kalender-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Zeitraum groß unter den Knöpfen zum Weiterschalten (Rückmeldung Patrick 17.11.2026) */
.kalender-steuerung { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.kalender-zeitraum { display: flex; align-items: baseline; gap: 12px; margin: 0; font-family: var(--schrift-namen); font-size: 2.75rem; font-weight: 600; line-height: 1.05; color: var(--tinte); font-variant-numeric: tabular-nums; text-wrap: balance; text-align: right; }
.zeitraum-zusatz { font-family: var(--schrift); font-size: 1.0625rem; font-weight: 700; color: var(--gedaempft); }
.zeitraum-zusatz.ist-heute { color: var(--salbei); }
.legende { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.875rem; color: var(--gedaempft); }
.legende span, .legende a { display: inline-flex; align-items: center; gap: 6px; }
.kalender-filter { gap: 6px 8px; align-items: center; }
.filter-knopf { min-height: 36px; padding: 4px 12px 4px 8px; border-radius: 999px; border: 1px solid var(--linie-feld); background: var(--feld); color: var(--tinte); font-weight: 600; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.filter-knopf:hover { border-color: var(--salbei); text-decoration: none; }
.filter-knopf.an { background: var(--salbei); border-color: var(--salbei); color: var(--papier); }
.legende-text { padding: 0 6px; }
.filter-alle { min-height: 36px; padding: 4px 10px; color: var(--salbei); font-weight: 600; }
.filter-alle svg { width: 16px; height: 16px; }
.woche { display: grid; align-items: start; }
.kal-tag { min-height: 340px; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--linie); background: var(--papier); }
/* heute nur umrahmt: grüne Fläche würde die leisen Lieferkarten verschlucken */
.kal-tag.heute { border: 2px solid var(--salbei); background: var(--papier); }
.kal-tag h2 { display: flex; align-items: baseline; gap: 8px; font-size: 0.9375rem; color: var(--gedaempft); }
.kal-tag h2 .tagnr { font-size: 1.375rem; font-weight: 700; color: var(--tinte); }
.kal-tag.heute h2, .kal-tag.heute h2 .tagnr { color: var(--salbei); }
/* Wochenansicht: Wochentag ausgeschrieben und groß, darunter Tag und Monat */
.kal-tag h2.kal-kopf { flex-direction: column; align-items: flex-start; gap: 0; margin: 0 0 4px; }
.kal-kopf .wochentag { font-size: 1.25rem; font-weight: 700; color: var(--tinte); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-tag h2.kal-kopf .tagnr { font-size: 1rem; font-weight: 600; color: var(--gedaempft); white-space: nowrap; }
.kal-tag.heute .kal-kopf .wochentag { color: var(--salbei); }
.monat-kurz { font-size: 0.8125rem; font-weight: 600; }
.eintrag { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 9px; background: var(--feld); border: 1px solid var(--linie); border-left-width: 1px; color: var(--tinte); font-size: 0.875rem; }
.eintrag { overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.eintrag:hover { text-decoration: none; border-color: var(--salbei); }
.eintrag .name { font-size: 1.125rem; line-height: 1.15; }
.eintrag-kopf { display: flex; align-items: flex-start; gap: 2px 6px; font-weight: 700; font-size: 0.8125rem; }
/* Symbol bleibt vorn stehen, auch wenn der Text umbricht (Bestellungen, Rückmeldung 16.11.2026) */
.eintrag-kopf > svg { flex: none; margin-top: 1px; }
.eintrag-kopf-text { min-width: 0; flex: 0 1 auto; }
/* Beerdigung/Urne ist der Haupttermin: kräftiger Rahmen, großer Name.
   Lieferung leise in Salbei (Arbeitstermin), Rosenkranz zurückhaltend gestrichelt. */
.eintrag-beerdigung { border: 2px solid var(--tinte); }
.eintrag-beerdigung .name { font-size: 1.25rem; }
.eintrag-lieferung { background: var(--salbei-weich); border-color: transparent; }
.eintrag-lieferung .eintrag-kopf { color: var(--salbei); }
/* Rosenkranz, Beratung: feste Termine – durchgezogener Rahmen (gestrichelt wirkte „unbestätigt“, Patrick 16.11.2026) */
.eintrag-termin { background: transparent; border: 1px solid var(--gedaempft); }
.eintrag-termin .eintrag-kopf { color: var(--gedaempft); }
.eintrag-termin-zusatz { font-weight: 700; font-size: 0.8125rem; }
.kal-eintraege { display: flex; flex-direction: column; gap: 8px; }
/* Anlass bestimmt die Rahmenfarbe, die Art (Haupttermin, Lieferung, Termin) Stärke und Fläche */
.eintrag.anlass-trauer.eintrag-lieferung { border-color: var(--tinte); }
.eintrag.anlass-rosenkranz, .eintrag.anlass-hochzeit, .eintrag.anlass-bestellung { border-width: 2px; border-style: solid; }
.eintrag.anlass-rosenkranz { border-color: var(--anlass-rosenkranz); }
.eintrag.anlass-rosenkranz .eintrag-kopf { color: var(--anlass-rosenkranz); }
.eintrag.anlass-hochzeit { border-color: var(--anlass-hochzeit); }
.eintrag.anlass-hochzeit .eintrag-kopf { color: var(--anlass-hochzeit); }
.eintrag.anlass-bestellung { border-color: var(--anlass-bestellung); }
.eintrag.anlass-bestellung .eintrag-kopf { color: var(--anlass-bestellung); }
/* Bestellung: schlicht, Name in normaler Schrift statt der Trauer-Schrift */
.eintrag-bestellung { border: 1px solid var(--linie-feld); }
.eintrag-bestellung .eintrag-kopf { color: var(--gedaempft); }
.eintrag-bestellung .name { font-family: var(--schrift); font-size: 1rem; font-weight: 600; }
.eintrag-info { color: var(--gedaempft); }
/* offene Schleifen: ruhig, kein Warnzeichen mehr (Rückmeldung Sandra 16.11.2026) */
.schleifen-zahl { margin-left: 4px; display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--gedaempft); font-weight: 600; font-variant-numeric: tabular-nums; }
.schleifen-zahl svg { width: 14px; height: 14px; }
.monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.monat .kopf { text-align: center; font-size: 0.8125rem; font-weight: 700; color: var(--gedaempft); padding: 4px; }
.monat .kal-tag { min-height: 132px; padding: 8px; gap: 4px; }
.monat .kal-tag.fremd { opacity: 0.45; }
.monat .eintrag { padding: 4px 6px; font-size: 0.8125rem; }
.monat .eintrag .name { font-size: 0.9375rem; }
.tag-ansicht { display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
/* Tagesansicht als Tagesliste: Uhrzeit groß links, alles andere in klaren Zeilen daneben */
.tag-eintrag { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; padding: 14px 18px; font-size: 1rem; }
.tag-zeit { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tag-zeit .gedaempft { font-size: 0.9375rem; font-weight: 600; }
.tag-mitte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tag-eintrag .eintrag-kopf { font-size: 0.875rem; }
.tag-eintrag .name { font-size: 1.375rem; }
.tag-eintrag.eintrag-bestellung .name { font-size: 1.125rem; }
.tag-rechts { font-weight: 700; font-size: 0.9375rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offen-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Suche / Archiv ---------- */
.treffer { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; }
.treffer .name { font-size: 1.375rem; }
.treffer-details { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9375rem; color: var(--gedaempft); }
/* Ganzer Treffer ist anklickbar (Name-Link überdeckt die Fläche), Knopf und Auftrags-Links liegen darüber */
.treffer { position: relative; }
.treffer-link::after { content: ""; position: absolute; inset: 0; }
.treffer:hover .treffer-link { text-decoration: underline; }
.treffer-knopf { margin-left: auto; position: relative; z-index: 1; }
.treffer-details a { position: relative; z-index: 1; color: inherit; }
.treffer-details a:hover { color: var(--salbei); }
mark { background: var(--salbei-weich); color: inherit; padding: 0 2px; border-radius: 3px; }
.suchleiste { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.suchleiste input[type="search"] { flex: 1 1 360px; }

table.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle th { font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gedaempft); }

/* ---------- Einstellungen ---------- */
.einstellungen { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.einstellungen-menue { display: flex; flex-direction: column; gap: 4px; }
.einstellungen-menue a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--rund); color: var(--gedaempft); font-weight: 600; }
.einstellungen-menue a[aria-current="page"] { background: var(--salbei-weich); color: var(--salbei); }

/* ---------- Anmelden ---------- */
.anmelden { min-height: calc(100vh / var(--zoom)); display: flex; align-items: center; justify-content: center; padding: 24px; }
.anmelden .flaeche { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; padding: 32px; }
.anmelden img { width: 240px; max-width: 100%; height: auto; align-self: center; }

/* HTMX: Ladezustand */
.htmx-request .lade-hinweis { display: inline-flex; }
.lade-hinweis { display: none; }

/* ---------- Hersteller („floremo by Pezac“) ----------
   Klein und zurückhaltend wie die Herstellerzeile großer Programme. Die Wortmarke
   ist so hoch wie die Kleinbuchstaben samt Unterlänge, damit sie in der Zeile sitzt. */
.hersteller { display: inline-block; font-size: 0.8125rem; font-weight: 600; color: var(--gedaempft); white-space: nowrap; }
.hersteller-by { font-weight: 400; }
/* Wortmarke reicht von der x-Höhe bis zur Unterlänge (0,758 em, davon 0,2 em unter der Grundlinie):
   so haben „pezac“ und „floremo“ dieselbe Buchstabenhöhe und stehen auf derselben Linie. */
.hersteller img { height: 0.758em; width: auto; vertical-align: -0.2em; margin-left: 0.1em; }
.leiste-hersteller { margin-top: 10px; opacity: 0.75; color: inherit; }
@media (max-width: 1024px) { .leiste-hersteller { margin-top: 0; } }
.leiste-hersteller:hover { opacity: 1; text-decoration: none; }
.leiste .hersteller { color: var(--leiste-gedaempft); }
.anmelden-hersteller { display: flex; justify-content: center; padding-top: 4px; opacity: 0.75; }
.ueber-floremo { display: flex; flex-direction: column; gap: 18px; }
.ueber-logo { width: 220px; height: auto; }
.ueber-daten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; align-items: center; }
.ueber-daten dt { color: var(--gedaempft); font-weight: 600; }
.ueber-daten dd { margin: 0; font-weight: 600; }
.ueber-daten .hersteller { font-size: 1rem; color: var(--tinte); }
.ueber-bausteine { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Kleinere Bildschirme (Tablet quer 1280 px, Hochformat) ---------- */
@media (max-width: 1440px) {
  .editor { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); }
  /* Sammlung unter die Vorschau statt ganz ans Seitenende (Rückmeldung Sandra 16.11.2026) */
  .editor .sprueche { grid-column: 2; position: static; max-height: 520px; }
  .sprueche-liste { max-height: 360px; }
}
@media (max-width: 1360px) {
  .leiste { width: 212px; padding: 20px 12px; }
  .kopfzeile, .inhalt { padding-left: 28px; padding-right: 28px; }
  .fall-raster { grid-template-columns: minmax(0, 1fr) 300px; }
  .termine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woche { gap: 6px; }
  .kal-tag { padding: 10px 8px; }
}
@media (max-width: 1024px) {
  .app { flex-direction: column; }
  /* Oben nur Logo und „Neuer Anruf“, das Menü sitzt als fester Balken am unteren Rand. */
  .leiste { width: auto; height: auto; position: static; overflow: visible; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-right: 0; border-bottom: 1px solid var(--leiste-linie); }
  .leiste-logo { padding: 0; }
  .leiste-logo img { width: 132px; }
  .leiste .knopf-anruf { width: auto; min-height: 46px; font-size: 1rem; }
  .leiste nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: var(--leiste); border-top: 1px solid var(--leiste-linie);
  }
  .leiste nav a { flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 2px; font-size: 0.8125rem; text-align: center; }
  .leiste-fuss { display: none; }
  .haupt { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .app-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 28px 16px; font-size: 0.875rem; border-top: 1px solid var(--linie); color: var(--gedaempft); }
  .app-fuss strong { color: var(--tinte); }
  .app-fuss form { margin-left: auto; }
  .app-fuss .leiste-hersteller { width: 100%; display: flex; }
  .suchfeld kbd { display: none; }
  .kal-tag { min-height: 0; }
  .fall-raster, .editor, .einstellungen { grid-template-columns: minmax(0, 1fr); }
  .vorschau, .einstellungen-menue { position: static; }
  .woche { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .raster-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .tag-eintrag { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; }
  .tag-zeit { font-size: 1.125rem; }
  .tag-rechts { grid-column: 2; text-align: left; }
  .kopfzeile, .inhalt, .app-fuss { padding-left: 16px; padding-right: 16px; }
  .kopfzeile { padding-top: 8px; padding-bottom: 8px; }
  .leiste nav a.nur-gross { display: none; }
  .nav-lang { display: none; }
  .nav-kurz { display: inline; }
  .woche { grid-template-columns: minmax(0, 1fr); }
  .auftrag-kopf { flex-wrap: wrap; gap: 6px 10px; }
  .auftrag-titel { flex: 1 1 calc(100% - 34px); }
  .auftrag-pfeil { order: 1; }
  .auftrag-stand { order: 2; flex: 1 1 100%; justify-content: flex-start; }
  .auftrag-preis { order: 3; }
  .felder-2, .felder-3, .felder-adresse, .termine { grid-template-columns: minmax(0, 1fr); }
  .position { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .position-artikel, .position-bezeichnung { grid-column: 1 / -1; }
  .seitenkopf h1, .fallkopf h1 { font-size: 2.125rem; }
  .kopfzeile-datum { display: none; }
  .monat { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; }
}

/* Wochenansicht: jeder Tag eine Zeile, die Termine nebeneinander als Karten. Sieben schmale
   Spalten waren am iPad (16.11.2026) und seit 17.11.2026 auch am Laden-Bildschirm (24 Zoll Full HD)
   zu eng – Uhrzeit, Name und Beerdigung wurden abgeschnitten. Gilt jetzt für alle Breiten. */
.woche { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.woche .kal-tag { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 12px; min-height: 0; padding: 12px 14px; }
.woche .kal-kopf { margin: 0; }
.woche .kal-eintraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.woche .kal-eintraege > .gedaempft { align-self: center; padding-top: 4px; }
@media (max-width: 1440px) {
  .woche .kal-eintraege { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 700px) {
  .woche .kal-tag { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* Fingerbedienung: auch kleine Verweise bekommen 44 px Fläche */
@media (pointer: coarse) {
  a.pille, .termin a, .fallkopf-fuss a, .leiste-hersteller, .kal-kopf a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- Band- und Druckfarben (Vorschau, Farbwahl) ---------- */
:root {
  --band-weiss: #F8F6F1; --band-creme: #EFE2C6; --band-rosa: #E7C1C8; --band-flieder: #B7A1C7;
  --band-bordeaux: #6B1E2B; --band-gruen: #3D5A47; --band-schwarz: #1E1E1E;
  --band-gelb: #F2C94C; --band-hellgruen: #A9CF7A; --band-erika: #A23E6C; --band-blau: #2F5FA8; --band-rot: #B3261E;
  /* zweifarbige Bänder sind längs geteilt – das ist die Bandfarbe selbst, kein Schmuck */
  --band-blau-weiss: linear-gradient(90deg, var(--band-blau) 50%, var(--band-weiss) 50%);
  --band-gruen-weiss: linear-gradient(90deg, var(--band-gruen) 50%, var(--band-weiss) 50%);
  --band-rot-weiss: linear-gradient(90deg, var(--band-rot) 50%, var(--band-weiss) 50%);
  --druck-schwarz: #1C1C1C; --druck-gold: #C29D45; --druck-silber: #B9BDC2; --druck-weiss: #FAFAFA;
}
.farbe-wei { background: var(--band-weiss); }
.farbe-creme { background: var(--band-creme); }
.farbe-rosa { background: var(--band-rosa); }
.farbe-flieder { background: var(--band-flieder); }
.farbe-bordeaux { background: var(--band-bordeaux); }
.farbe-grun { background: var(--band-gruen); }
.farbe-schwarz { background: var(--band-schwarz); }
.farbe-gold { background: var(--druck-gold); }
.farbe-silber { background: var(--druck-silber); }
.band-wei { --bandfarbe: var(--band-weiss); }
.band-creme { --bandfarbe: var(--band-creme); }
.band-rosa { --bandfarbe: var(--band-rosa); }
.band-flieder { --bandfarbe: var(--band-flieder); }
.band-bordeaux { --bandfarbe: var(--band-bordeaux); }
.band-grun { --bandfarbe: var(--band-gruen); }
.band-schwarz { --bandfarbe: var(--band-schwarz); }
.druck-schwarz { --druckfarbe: var(--druck-schwarz); }
.druck-gold { --druckfarbe: var(--druck-gold); }
.druck-silber { --druckfarbe: var(--druck-silber); }
.druck-wei { --druckfarbe: var(--druck-weiss); }
.farbwahl .farbe-wei { background: var(--band-weiss); }
.farbe-gelb { background: var(--band-gelb); }
.farbe-hellgrun { background: var(--band-hellgruen); }
.farbe-erika { background: var(--band-erika); }
.farbe-blau { background: var(--band-blau); }
.farbe-blau-wei { background: var(--band-blau-weiss); }
.farbe-grun-wei { background: var(--band-gruen-weiss); }
.farbe-rot-wei { background: var(--band-rot-weiss); }
.band-gelb { --bandfarbe: var(--band-gelb); }
.band-hellgrun { --bandfarbe: var(--band-hellgruen); }
.band-erika { --bandfarbe: var(--band-erika); }
.band-blau { --bandfarbe: var(--band-blau); }
.band-blau-wei { --bandfarbe: var(--band-blau-weiss); }
.band-grun-wei { --bandfarbe: var(--band-gruen-weiss); }
.band-rot-wei { --bandfarbe: var(--band-rot-weiss); }

/* ---------- Schleife in der Erfassung (Besprechung im Laden, Tablet) ---------- */
.schleife-erfassung { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: start; }
.schleife-eingabe { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.schleife-eingabe textarea { font-family: var(--schrift-schleife); font-size: 1.1875rem; }
.schleife-eingabe .sprueche-liste { max-height: 320px; overflow-y: auto; }
/* Vorschau bleibt beim Scrollen neben Text und Farbwahl stehen */
.schleife-live { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 260px; position: sticky; top: 96px; }
/* Beispieltext blasser, damit er nicht mit echtem Text verwechselt wird; Längenangaben ausgeblendet */
.schleife-beispiel .band-text { opacity: 0.55; }
.schleife-beispiel .band-mass { visibility: hidden; }
.schleife-hinweis { max-width: 260px; text-align: center; }
.schleife-live .schleife-leer { max-width: 260px; padding: 20px; border-radius: 12px; background: var(--sand); text-align: center; }
.farbwahl-namen { gap: 12px 14px; margin-top: 6px; }
.farbwahl-namen label { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; }
.farbwahl-namen .farbname { all: unset; display: block; font-size: 0.8125rem; line-height: 1.2; text-align: center; color: var(--gedaempft); }
.farbwahl-namen input:checked ~ .farbname { color: var(--tinte); font-weight: 700; }
dialog.schleife-gross { border: 0; padding: 24px; width: 100vw; height: 100vh; max-width: none; max-height: none; background: var(--sand); }
dialog.schleife-gross[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
dialog.schleife-gross .baender { background: transparent; padding: 0; }
@media (max-width: 760px) {
  .schleife-erfassung { grid-template-columns: minmax(0, 1fr); }
  .schleife-live { min-width: 0; position: static; }
}
/* Einstellungen → Bandfarben */
.farbliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.farbzeile { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.farbzeile .inline { margin-left: auto; }
.farbmuster { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linie-feld); flex: none; }
input[type="color"] { min-height: 44px; width: 96px; padding: 4px; cursor: pointer; }
.zweite-farbe { display: none; }
form:has(input[name="zweifarbig"]:checked) .zweite-farbe { display: grid; }
/* „Neuer Auftrag“: Trauerfall oder Bestellung */
.auswahl-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.auswahl-kachel { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; border-radius: var(--rund-gross); background: var(--papier); border: 2px solid var(--linie-feld); color: var(--tinte); min-height: 180px; }
.auswahl-kachel:hover, .auswahl-kachel:focus-visible { text-decoration: none; border-color: var(--salbei); }
button.auswahl-kachel { width: 100%; height: 100%; font: inherit; text-align: left; cursor: pointer; }
.auswahl-kachel > .icon { width: 36px; height: 36px; color: var(--salbei); }
.auswahl-titel { font-family: var(--schrift-namen); font-size: 2rem; font-weight: 600; line-height: 1.1; }
@media (max-width: 700px) { .auswahl-kacheln { grid-template-columns: minmax(0, 1fr); } }
/* Lieferadresse nur bei „Wir liefern“ */
.lieferadresse:not(.offen) { display: none; }
fieldset:has(input[name="abholung"][value="0"]:checked) .lieferadresse { display: block; }
/* Uhrzeit-Rad: zwei Räder (Stunde, Viertelstunde) statt des minutengenauen Safari-Rads */
.zeitrad { position: relative; }
.zeitrad select { display: none; }
.zeitrad-feld {
  width: 100%; min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: var(--rund); border: 1px solid var(--linie-feld); background: var(--feld); color: var(--tinte);
  font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; text-align: left;
}
.zeitrad-feld .leer { color: var(--platzhalter); }
.zeitrad-feld:focus-visible { outline: 2px solid var(--salbei); border-color: var(--salbei); }
.zeitrad-panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 260px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--papier); border: 1px solid var(--linie-feld); border-radius: var(--rund-gross); box-shadow: 0 8px 24px rgba(42, 37, 30, 0.16);
}
.zeitrad-panel[hidden] { display: none; }
.zeitrad-raeder { position: relative; display: flex; align-items: center; gap: 4px; }
/* das Band in der Mitte markiert die gewählte Zeile */
.zeitrad-raeder::before { content: ""; position: absolute; left: 0; right: 0; top: 88px; height: 44px; border-radius: 8px; background: var(--salbei-weich); pointer-events: none; }
.zeitrad-trenner { font-size: 1.375rem; font-weight: 700; }
.zeitrad-spalte { position: relative; flex: 1; height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 88px 0; scrollbar-width: none; overscroll-behavior: contain; }
.zeitrad-spalte::-webkit-scrollbar { display: none; }
.zeitrad-spalte button {
  all: unset; box-sizing: border-box; display: block; width: 100%; height: 44px; line-height: 44px; text-align: center;
  scroll-snap-align: center; font-size: 1.375rem; font-variant-numeric: tabular-nums; color: var(--gedaempft); cursor: pointer;
}
.zeitrad-spalte button[aria-selected="true"] { color: var(--tinte); font-weight: 700; }
.zeitrad-spalte button:focus-visible { outline: 2px solid var(--salbei); outline-offset: -2px; border-radius: 8px; }
.zeitrad-fuss { display: flex; justify-content: space-between; gap: 8px; }

/* Druckauftrag (Absender) und öffentliche Druckseite */
/* Nummern wie „D-0042“ in gerader Schrift; die Namensschrift hat Mediävalziffern */
.kennung { font-family: var(--schrift); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: 0.8em; }
.druck-angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.druck-angaben dt { color: var(--gedaempft); }
.druck-angaben dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.druck-seite { background: var(--sand); }
.einladungscode { font-size: 2rem; letter-spacing: 0.08em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.druck-blatt { max-width: 980px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.druck-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--tinte); }
.druck-kopf h1 { font-size: 2.75rem; font-variant-numeric: tabular-nums; }
.druck-fertig { display: flex; flex-direction: column; align-items: flex-end; }
.druck-fertig strong { font-size: 1.375rem; }
.druck-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.druck-text { display: flex; flex-direction: column; gap: 16px; }
.druck-band-text p { margin: 4px 0 0; font-family: var(--schrift-schleife); font-size: 1.5rem; line-height: 1.3; }
.druck-bild { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.druck-fuss { padding-top: 12px; border-top: 1px solid var(--linie); }
@media (max-width: 760px) { .druck-raster { grid-template-columns: minmax(0, 1fr); } .druck-fertig { align-items: flex-start; } }
@media print {
  .druck-seite { background: var(--feld); }
  .druck-knoepfe, .druck-hinweis, .druck-seite .meldung { display: none; }
  .druck-blatt { max-width: none; padding: 0; }
}

/* Beschreibung nur bei „Sonstiges“ */
.art-freitext:not(.offen) { display: none; }
.abhol-termin:not(.offen) { display: none; }
fieldset:has(input[name="wohin"][value="abholung"]:checked) .abhol-termin { display: grid; }
fieldset:has(input[value="sonstiges"]:checked) .art-freitext { display: block; }

/* ---------- Große Bildschirme (2K, 4K) ----------
   Alles wird gleichmäßig vergrößert, als hätte man im Browser hineingezoomt.
   So bleibt der Aufbau wie am Full-HD-Laden-PC, nur größer. Bildschirmhöhen (vh)
   werden durch --zoom geteilt, sonst ragten Seitenleiste und Anmeldung über den Rand. */
:root { --zoom: 1; }
@media (min-width: 2300px) { :root { --zoom: 1.2; } }
@media (min-width: 2800px) { :root { --zoom: 1.4; } }
@media (min-width: 3400px) { :root { --zoom: 1.75; } }
@media print { :root { --zoom: 1; } }

/* Kunde im aufgeklappten Auftrag: Name, Telefon, Adresse in einer ruhigen Zeile */
.auftrag-kunde { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--gedaempft); }
.auftrag-kunde > * { display: inline-flex; align-items: center; gap: 6px; }
.auftrag-kunde svg { width: 16px; height: 16px; flex: none; }

/* Spruch aus der Sammlung: Knopf direkt unter dem Spruchfeld */
details.spruch-wahl { margin-top: -4px; }
details.spruch-wahl > summary { list-style: none; width: fit-content; cursor: pointer; }
details.spruch-wahl > summary::-webkit-details-marker { display: none; }
details.spruch-wahl[open] > summary { margin-bottom: 10px; }

/* „Schleifen offen“ auf Heute: Zeile verlinkt, Knopf daneben zum Abhaken */
.zeile-schleife { gap: 12px; }
.zeile-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; color: inherit; }
.zeile-link:hover { text-decoration: none; }
.zeile-link:hover strong { color: var(--salbei); }
.zeile-schleife.erledigt .zeile-link { opacity: 0.6; }

/* Wochenkarte in fester Form: drei einzeilige Zeilen, alle Karten gleich hoch (Rückmeldung Sandra 16.11.2026) */
.eintrag-fest { gap: 2px; }
.eintrag-fest .eintrag-kopf { align-items: center; }
.eintrag-fest .eintrag-kopf-text, .eintrag-fest .name, .eintrag-fest .eintrag-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; hyphens: none; }
.eintrag-fest .name, .eintrag-beerdigung.eintrag-fest .name { font-size: 1.125rem; line-height: 1.25; }
.eintrag-bestellung.eintrag-fest .name { font-size: 1rem; }

/* Schleife im aufgeklappten Auftrag: beide Bänder quer als kleines Bild (Wunsch Patrick 16.11.2026) */
.mini-baender { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--sand); color: inherit; border: 1px solid transparent; width: fit-content; max-width: 100%; }
.mini-baender:hover, .mini-baender:focus-visible { text-decoration: none; border-color: var(--salbei); }
.mini-band { display: flex; align-items: center; gap: 14px; min-width: 280px; max-width: 100%; min-height: 52px; padding: 8px 44px 8px 12px; background: var(--bandfarbe, var(--band-weiss)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%); }
.mini-band-seite { flex: none; font-family: var(--schrift); font-size: 0.75rem; font-weight: 600; color: var(--druckfarbe, var(--druck-schwarz)); opacity: 0.7; }
.mini-band-text { font-family: var(--schrift-schleife); font-size: 1.125rem; line-height: 1.2; white-space: pre-line; color: var(--druckfarbe, var(--druck-schwarz)); text-align: center; flex: 1; }
.mini-band-farben { font-size: 0.8125rem; color: var(--gedaempft); }

/* weitere Ansprechpartner im Fall-Kopf */
.weiterer-ap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--linie); }
details.ap-neu { margin-top: 6px; }
details.ap-neu > summary { list-style: none; width: fit-content; cursor: pointer; }
details.ap-neu > summary::-webkit-details-marker { display: none; }

/* Hochzeit: was zu einem Blumenschmuck gehört (20 × Bankgesteck …) */
.bestandteile { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.bestandteile .menge { display: inline-block; min-width: 3.5em; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Monatsansicht: zwei einzeilige Zeilen, alle Karten gleich hoch */
.eintrag-monat { gap: 0; padding: 4px 6px; font-size: 0.8125rem; }
.eintrag-monat .eintrag-kopf { align-items: center; gap: 4px; font-size: 0.75rem; }
.eintrag-monat .eintrag-kopf > svg, .eintrag-monat .schleifen-zahl svg { width: 13px; height: 13px; }
.eintrag-monat .schleifen-zahl { margin-left: auto; }
.eintrag-monat .eintrag-kopf-text, .eintrag-monat .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; hyphens: none; }
.monat .eintrag-monat .name, .monat .eintrag-beerdigung.eintrag-monat .name { font-size: 0.875rem; line-height: 1.3; }
.monat .eintrag-bestellung.eintrag-monat .name { font-size: 0.8125rem; }
.zeile-schleife .zeile-haupt .pille { align-self: flex-start; margin-top: 4px; max-width: 100%; }
.zeile-schleife form, .zeile-schleife > .knopf { flex: none; }
/* Schmale Spalte (Laden-PC mit vier Spalten): Knöpfe unter den Text statt daneben, sonst lagen
   lange Namen wie „Musterverein“ unter den Knöpfen (Erklärvideos 19.11.2026) */
.flaeche-schleifen { container-type: inline-size; }
.zeile-schleife .zeile-haupt strong { overflow-wrap: break-word; }
@container (max-width: 560px) {
  .zeile-schleife { flex-wrap: wrap; row-gap: 8px; }
  .zeile-schleife .zeile-link { flex-basis: 100%; }
  .zeile-schleife .zeile-link + * { margin-left: 100px; }
}

/* Auftragskopf: richtet sich nach der Breite der Karte, nicht des Bildschirms. Auf dem Tablet
   (mit Vergrößerung) schoben sich die Hinweise sonst über den Namen (Rückmeldung Patrick 16.11.2026) */
details.auftrag { container-type: inline-size; }
/* Hinweise dürfen umbrechen, wenn der Platz nicht reicht – der Rahmen wächst mit, statt dass
   die Schrift hinausläuft (Tablet, Rückmeldung Patrick 17.11.2026) */
.auftrag-stand .pille, .zeile-haupt .pille { white-space: normal; max-width: 100%; min-width: 0; border-radius: 14px; line-height: 1.25; text-align: left; overflow-wrap: anywhere; }
.pille > svg { flex: none; }
@container (max-width: 780px) {
  .auftrag-kopf { flex-wrap: wrap; gap: 6px 10px; }
  .auftrag-titel { flex: 1 1 calc(100% - 34px); }
  .auftrag-pfeil { order: 1; }
  .auftrag-stand { order: 2; flex: 1 1 auto; justify-content: flex-start; }
  .auftrag-preis { order: 3; margin-left: auto; }
}

/* Hochzeit: Lieferung an eine eigene Adresse – Adresse, Tag und Uhrzeit zeigen */
.hochzeit-lieferadresse:not(.offen) { display: none; }
fieldset:has(input[name="wohin"][value="lieferung"]:checked) .hochzeit-lieferadresse { display: block; }
fieldset:has(input[name="wohin"][value="lieferung"]:checked) .abhol-termin { display: grid; }

/* Hochzeit: „Anzahl × Was · Preis“ als kurze Liste direkt unter der Gruppe */
.zeilen-eingabe { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--sand); }
.zeilen-eingabe .gedaempft.klein { margin: 0; }
.vorschlag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zeilen-kopf, .zeile-eingabe { display: grid; grid-template-columns: 76px 14px minmax(0, 1fr) 120px 44px; gap: 6px 8px; align-items: center; }
.zeile-eingabe { padding-bottom: 8px; border-bottom: 1px solid var(--linie); }
.zeile-beschreibung { grid-column: 3 / 5; grid-row: 2; }
.zeile-beschreibung input { width: 100%; font-size: 0.9375rem; }
/* Vorschläge als Schalter: ausgewählt = gefüllt, sonst Haken unsichtbar */
.vorschlag[aria-pressed="false"] svg { opacity: 0; width: 0; margin-right: -6px; }
.zeilen-kopf { font-size: 0.8125rem; font-weight: 600; color: var(--gedaempft); }
.zeilen-liste { display: flex; flex-direction: column; gap: 6px; }
.zeile-eingabe input[type="text"], .zeile-eingabe input:not([type]) { min-width: 0; }
.zeile-eingabe [name$="-menge"], .zeile-eingabe [name$="-einzelpreis"] { text-align: right; font-variant-numeric: tabular-nums; }
.zeile-mal { text-align: center; color: var(--gedaempft); font-weight: 700; }
.zeile-weg { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--gedaempft); cursor: pointer; }
.zeile-weg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zeile-weg:hover { background: var(--feld); color: var(--terrakotta); }
.zeile-weg:has(input:focus-visible) { outline: 3px solid var(--salbei); outline-offset: 2px; }
.zeile-eingabe:has(.zeile-weg input:checked) > :not(.zeile-weg):not([type="hidden"]) { opacity: 0.4; text-decoration: line-through; }
.zeile-eingabe:has(.zeile-weg input:checked) .zeile-weg { color: var(--terrakotta); }
.zeile-eingabe .position-fehler { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; }
@media (max-width: 700px) {
  .zeilen-kopf { display: none; }
  .zeile-eingabe { grid-template-columns: 64px 12px minmax(0, 1fr) 44px; }
  .zeile-eingabe [name$="-einzelpreis"] { grid-column: 3; }
  .zeile-beschreibung { grid-column: 1 / -1; grid-row: auto; }
}
.auftrag-teile-kurz { color: var(--gedaempft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
details.auftrag[open] .auftrag-teile-kurz { display: none; }
.teil-beschreibung { display: block; margin-left: 3.5em; color: var(--gedaempft); font-size: 0.9375rem; }

/* Monatsansicht: der Anlass ist auf einen Blick zu sehen (Rückmeldung Patrick 17.11.2026).
   Trauerfall = getönte Fläche mit dunklem Rahmen und Kreuz, alle anderen Anlässe weiß mit
   Farbrahmen. Lieferung/Abholung nur noch als kleines zweites Symbol, nicht mehr als Fläche. */
.monat .eintrag { background: var(--feld); border: 2px solid var(--linie-feld); }
.monat .eintrag.anlass-trauer { background: color-mix(in srgb, var(--tinte) 12%, var(--feld)); border-color: var(--tinte); }
.monat .eintrag.anlass-trauer .eintrag-kopf { color: var(--tinte); }
.monat .eintrag.anlass-rosenkranz { border-color: var(--anlass-rosenkranz); }
.monat .eintrag.anlass-rosenkranz .eintrag-kopf { color: var(--anlass-rosenkranz); }
.monat .eintrag.anlass-hochzeit { border-color: var(--anlass-hochzeit); }
.monat .eintrag.anlass-hochzeit .eintrag-kopf { color: var(--anlass-hochzeit); }
.monat .eintrag.anlass-bestellung { border-color: var(--anlass-bestellung); }
.monat .eintrag.anlass-bestellung .eintrag-kopf { color: var(--anlass-bestellung); }
.eintrag-weg { display: inline-flex; flex: none; color: var(--gedaempft); }
.eintrag-weg svg { width: 14px; height: 14px; }
.eintrag-monat .eintrag-weg svg { width: 13px; height: 13px; }
/* Filterknöpfe mit demselben Anlass-Symbol wie die Karten, in der Farbe des Anlasses */
.filter-knopf svg { width: 16px; height: 16px; flex: none; }
.filter-trauer svg { color: var(--tinte); }
.filter-rosenkranz svg { color: var(--anlass-rosenkranz); }
.filter-hochzeit svg { color: var(--anlass-hochzeit); }
.filter-bestellung svg { color: var(--anlass-bestellung); }
.filter-knopf.an svg { color: currentColor; }
.legende-weg svg { width: 15px; height: 15px; }

/* Passwortfelder: Auge zum Anzeigen, Liste der Regeln hakt sich beim Tippen ab (20.11.2026) */
.vorleser {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.passwort-eingabe { position: relative; }
.passwort-eingabe input { padding-right: 52px; }
.passwort-auge {
  position: absolute; top: 2px; right: 2px; bottom: 2px; width: 44px;
  display: grid; place-items: center; border: 0; background: transparent;
  color: var(--gedaempft); border-radius: calc(var(--rund) - 2px); cursor: pointer;
}
.passwort-auge:hover { color: var(--tinte); }
.passwort-auge:focus-visible { outline: 2px solid var(--salbei); outline-offset: -2px; }
.passwort-auge > span { display: contents; }
.passwort-auge .auge-verbergen, .passwort-auge[aria-pressed="true"] .auge-zeigen { display: none; }
.passwort-auge[aria-pressed="true"] .auge-verbergen { display: contents; }
.passwort-regeln { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.875rem; color: var(--gedaempft); }
.passwort-regeln li { display: flex; align-items: center; gap: 8px; transition: color 150ms ease-out; }
.passwort-regeln .icon { width: 16px; height: 16px; }
.passwort-regeln .regel-ok { display: none; }
.passwort-regeln .regel-ok .icon { stroke-width: 2.5; }
.passwort-regeln .regel-offen { display: contents; }
.passwort-regeln li.erfuellt { color: var(--salbei); font-weight: 600; }
.passwort-regeln li.erfuellt .regel-offen { display: none; }
.passwort-regeln li.erfuellt .regel-ok { display: contents; }
@media (prefers-reduced-motion: reduce) { .passwort-regeln li { transition: none; } }

/* Nur zum Ansehen (z. B. Anmelde-Adresse beim Einrichten des Zugangs) */
input[readonly] { background: var(--sand); color: var(--gedaempft); }
