/* Cateringhelfer-spezifische Bausteine (ergänzt style.css) */

.fb-kennzahlen { display: flex; gap: 1rem; flex-wrap: wrap; }
.fb-kennzahlen > div { flex: 1; min-width: 100px; background: #f9fafb; border: 1px solid #eef0f2; border-radius: 8px; padding: 0.6rem 0.8rem; display: flex; flex-direction: column; }
.fb-kennzahlen strong { font-size: 1.5rem; margin-top: 0.15rem; }
.fb-kennzahlen-gross { margin-top: 1rem; }
.fb-kennzahlen-gross > .kartei-karte { flex: 1; min-width: 160px; display: flex; flex-direction: column; margin: 0; }
.fb-kennzahlen-gross strong { font-size: 2rem; line-height: 1.2; }
.fb-gross { font-size: 2rem; font-weight: 700; margin: 0.2rem 0 0.6rem; }
.fb-gross small { font-size: 0.85rem; font-weight: 400; color: #6b7280; }

.fb-status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #f3f4f6; color: #4b5563; }
.fb-status-aktiv { background: #dcfce7; color: #166534; }
.fb-status-pausiert { background: #fef3c7; color: #92400e; }

/* Statistik */
.fb-filter { display: flex; gap: 0.8rem; align-items: flex-end; flex-wrap: wrap; }
.fb-schnell { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-left: auto; }
.fb-schnell a, .fb-seiten a { padding: 0.25rem 0.7rem; border: 1px solid #d1d5db; border-radius: 999px; font-size: 0.85rem; text-decoration: none; color: #374151; background: #fff; }
.fb-schnell a:hover, .fb-seiten a:hover { background: #f3f4f6; }
.fb-schnell .fb-schnell-aktiv, .fb-seiten .fb-schnell-aktiv { background: #1f2937; color: #fff; border-color: #1f2937; }
.fb-seiten { display: flex; gap: 0.3rem; flex-wrap: wrap; margin: 0.8rem 0 0; }
.fb-fragen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; margin-top: 1rem; }
.fb-fragen-grid > .kartei-karte { margin: 0; min-width: 0; }
.fb-fragen-grid > .fb-breit { grid-column: 1 / -1; }
.diagramm { width: 100%; height: auto; display: block; }
.diagramm-klein { max-width: 460px; }
.diagramm-legende { list-style: none; display: flex; gap: 1rem; margin: 0 0 0.4rem; padding: 0; font-size: 0.85rem; color: #4b5563; }
.diagramm-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; }
.diagramm-tabelle { margin-top: 0.6rem; font-size: 0.85rem; }
.diagramm-tabelle summary { cursor: pointer; color: #6b7280; }
.tabelle-scroll { max-height: 260px; overflow: auto; }
.fb-balken { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.fb-balken li { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 0.6rem; align-items: center; font-size: 0.9rem; }
.fb-balken-spur { background: #eef0f2; border-radius: 4px; height: 10px; overflow: hidden; display: block; }
.fb-balken-spur > span { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }
.fb-balken-zahl { color: #6b7280; white-space: nowrap; font-size: 0.85rem; }
.fb-textsuche { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; max-width: 420px; }
.fb-textsuche input { flex: 1; }
.fb-texte { list-style: none; margin: 0; padding: 0; }
.fb-texte li { padding: 0.6rem 0; border-top: 1px solid #eef0f2; }
.fb-texte p { margin: 0.15rem 0 0; }

/* Editor */
.fb-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .fb-editor { grid-template-columns: 1fr; } }
.fb-editor-links { background: #fff; border: 1px solid #e2e5ea; border-radius: 10px; padding: 1rem 1.2rem; min-width: 0; }
.fb-editor-links label { display: block; font-size: 0.85rem; color: #4b5563; margin: 0.8rem 0 0.25rem; }
.fb-editor-links label.checkbox-label { display: flex; gap: 0.5rem; align-items: center; margin: 0.5rem 0 0; }
.fb-editor-links input[type=text], .fb-editor-links input[type=url], .fb-editor-links input[type=number], .fb-editor-links select, .fb-editor-links textarea { width: 100%; box-sizing: border-box; }
.fb-editor-links input[type=color] { width: 100%; height: 2.4rem; padding: 2px; }
.fb-editor-links .formular-zeile { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.fb-editor-links .formular-zeile > div { flex: 1; min-width: 120px; }
.fb-reiter { display: flex; gap: 0.2rem; border-bottom: 1px solid #e5e7eb; margin: -0.2rem 0 0.4rem; flex-wrap: wrap; }
.fb-reiter-knopf { background: none; color: #6b7280; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0.55rem 0.9rem; font-weight: 600; cursor: pointer; }
.fb-reiter-knopf:hover { background: none; color: #111827; }
.fb-reiter-knopf.fb-aktiv { color: #111827; border-bottom-color: #2a78d6; }
.fb-panel[hidden] { display: none; }
.fb-zwischentitel { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.fb-frage { border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.7rem 0.8rem; margin-bottom: 0.7rem; background: #fafafa; }
.fb-frage-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.fb-frage-typ { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #6b7280; }
.fb-frage-knoepfe { display: flex; gap: 0.2rem; }
.fb-mini { background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; padding: 0.1rem 0.5rem; cursor: pointer; line-height: 1.4; }
.fb-mini:hover { background: #f3f4f6; }
.fb-mini-loeschen:hover { background: #fee2e2; color: #b91c1c; }
.fb-optionen[hidden] { display: none; }
.fb-frage-neu { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.fb-frage-neu select { flex: 1; min-width: 200px; width: auto !important; }
.fb-speichern { position: sticky; bottom: 0; background: #fff; padding: 0.8rem 0 0.2rem; margin-top: 1rem; border-top: 1px solid #eef0f2; display: flex; gap: 1rem; align-items: center; }
.fb-code { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0.5rem; resize: none; }
.fb-kopieren { margin-top: 0.4rem; }
.fb-editor-rechts { position: sticky; top: calc(var(--kopf-hoehe, 100px) + 10px); }
.fb-vorschau-kopf { margin-bottom: 0.4rem; }
.fb-vorschau { position: relative; min-height: 560px; border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden;
    background: repeating-linear-gradient(135deg, #f3f4f6 0, #f3f4f6 12px, #eceef1 12px, #eceef1 24px); }
.fb-vorschau .fh-vorschau { position: absolute; inset: 0; }
.fb-stufen { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.4rem; }
.fb-stufen label { display: flex; align-items: center; gap: 0.7rem; margin: 0; padding: 0.55rem 0.7rem; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 0.95rem; color: #111827; }
.fb-stufen label span { margin-left: auto; color: #4b5563; }
.fb-stufen input { width: auto; }

/* Pakete (Abrechnung) */
.fb-pakete { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fb-paket { border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.2rem 1.2rem 1.3rem; background: #fff; display: flex; flex-direction: column; gap: .35rem; }
.fb-paket h3 { margin: 0; font-size: 1.1rem; }
.fb-paket-aktiv { border-color: #2a78d6; box-shadow: 0 0 0 2px rgba(42,120,214,.15); }
.fb-paket-aktiv-text { color: #166534; font-weight: 600; margin: auto 0 0; }
.fb-paket-preis { font-size: 1.6rem; font-weight: 700; margin: .2rem 0; }
.fb-paket-preis small { font-size: .85rem; font-weight: 400; color: #6b7280; }
.fb-regler-form { display: flex; flex-direction: column; gap: .3rem; margin-top: auto; }
.fb-regler-label { font-weight: 600; margin: .4rem 0 0; }
.fb-regler-form input[type=range] { width: 100%; accent-color: #2a78d6; margin: .4rem 0; }
.fb-regler-form button { margin-top: .5rem; }
.fb-paket .knopf-sekundaer { background: #fff; color: #1f2937; border: 1px solid #d1d5db; }
@media (max-width: 900px) { .fb-pakete { grid-template-columns: 1fr; } }
.fb-pakete-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fb-zahlart { border: 1px solid #e5e7eb; border-radius: 10px; padding: .6rem .8rem; margin: .8rem 0 .4rem; display: grid; gap: .5rem; }
.fb-zahlart legend { font-size: .85rem; color: #6b7280; padding: 0 .3rem; }
.fb-zahlart label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.fb-zahlart input[type=radio] { width: auto; margin-top: .25rem; }
@media (max-width: 900px) { .fb-pakete-2 { grid-template-columns: 1fr; } }

/* ===================== Online-Bestellung (/bestellen) ===================== */
body.bestellung-seite { background: #f4f6f9; margin: 0; color: #1f2937; }
.bestellung-breite { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.bestellung-kopf { background: #1e293b; color: #fff; padding: 0.95rem 0; }
.bestellung-kopf .bestellung-breite { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.bestellung-marke { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.bestellung-marke b { color: #7cc0ff; }
.bestellung-unterzeile { color: #a9b6cb; font-size: 0.95rem; }
main.bestellung-breite { padding: 2rem 0 3rem; }
main.bestellung-breite h1 { margin: 0 0 0.5rem; }
.bestellung-intro { max-width: 52rem; color: #566275; margin: 0 0 1.5rem; }
.bestellung-fuss { padding: 1.5rem 0 2.5rem; text-align: center; color: #6b7280; font-size: 0.9rem; }
.bestellung-fuss a { color: #4b5563; }
.bestell-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.bestell-block { background: #fff; border: 1px solid #e2e6ec; border-radius: 12px; padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
.bestell-block h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.bestell-optional { font-weight: 400; color: #6b7280; font-size: 0.9rem; }
.bestell-mitte { max-width: 640px; margin-inline: auto; }
.bestell-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.paket-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.paket-karte { position: relative; display: block; cursor: pointer; }
.paket-karte input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.paket-inhalt { display: block; height: 100%; border: 2px solid #e2e6ec; border-radius: 12px; padding: 1rem; background: #fff; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s; }
.paket-karte:hover .paket-inhalt { border-color: #93bfee; transform: translateY(-2px); }
.paket-karte input:checked + .paket-inhalt { border-color: #2a78d6; background: #eff6ff; box-shadow: 0 0 0 3px rgba(42, 120, 214, 0.15); }
.paket-karte input:focus-visible + .paket-inhalt { outline: 3px solid #f59e0b; outline-offset: 2px; }
.paket-name { display: block; font-size: 1.1rem; }
.paket-preis { display: block; font-size: 1.35rem; font-weight: 800; margin: 0.3rem 0 0.5rem; color: #2a78d6; }
.paket-preis small { font-size: 0.8rem; font-weight: 400; color: #6b7280; }
.paket-inhalt ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; color: #4b5563; }
.modul-zeile { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.8rem 0.9rem; border: 1px solid #e2e6ec; border-radius: 10px; margin-top: 0.6rem; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.modul-zeile:hover { background: #f8fafc; border-color: #93bfee; }
.modul-zeile:has(input:checked) { background: #eff6ff; border-color: #2a78d6; }
.modul-zeile input[type=checkbox], .erklaerung input[type=checkbox] { width: auto; margin: 0.25rem 0 0; padding: 0; flex: none; }
.modul-text { flex: 1; display: block; }
.modul-text small { display: block; color: #6b7280; font-size: 0.85rem; }
.modul-preis { font-weight: 700; white-space: nowrap; color: #2a78d6; }
.bestell-summe { position: sticky; top: 1rem; background: #fff; border: 1px solid #e2e6ec; border-radius: 12px; padding: 1.3rem 1.4rem; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }
.bestell-summe h2 { margin: 0 0 0.8rem; font-size: 1.1rem; }
.summe-zeile { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font-size: 0.95rem; }
.bestell-summe-gesamt { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid #1e293b; margin-top: 0.7rem; padding-top: 0.6rem; font-size: 1.05rem; }
.bestell-summe-gesamt strong { font-size: 1.35rem; }
.bestell-knopf { display: block; width: 100%; margin-top: 1rem; padding: 0.9rem 1.2rem; background: #2a78d6; color: #fff; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.bestell-knopf:hover { background: #1f5fae; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(42, 120, 214, 0.3); }
.bestell-knopf-link { display: inline-block; width: auto; }
.bestell-tabelle { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.bestell-tabelle td { padding: 0.5rem 0; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.bestell-tabelle td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.bestell-tabelle small { display: block; color: #6b7280; font-weight: 400; }
.bestell-tabelle-summe td { border-top: 2px solid #1e293b; border-bottom: none; font-weight: 800; }
.bestell-liste { display: grid; grid-template-columns: 11rem 1fr; gap: 0.35rem 1rem; margin: 0.6rem 0 1rem; }
.bestell-liste dt { color: #6b7280; }
.bestell-liste dd { margin: 0; }
.mandat-text { background: #f8fafc; border: 1px solid #e2e6ec; border-radius: 8px; padding: 1rem; font-size: 0.9rem; line-height: 1.55; }
.erklaerung { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.7rem 0; font-size: 0.92rem; cursor: pointer; }
@media (max-width: 900px) {
    .bestell-raster { grid-template-columns: 1fr; }
    .bestell-summe { position: static; }
    .bestell-liste { grid-template-columns: 1fr; gap: 0; }
    .bestell-liste dd { margin-bottom: 0.5rem; }
}
/* Bestellung: Spalten dürfen auf kleinen Bildschirmen schrumpfen (kein seitliches Scrollen) */
.bestell-raster > div, .bestell-raster > aside { min-width: 0; }
.bestell-block .formular-zeile > div { min-width: 0; }
@media (max-width: 900px) { .bestell-raster { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .bestell-block .formular-zeile { flex-direction: column; gap: 0; } .bestell-liste dd { overflow-wrap: anywhere; } }
/* Hinweistexte in der Bestellung: normaler Abstand statt der globalen Verschiebung nach oben */
.bestell-block .hinweis, .bestell-summe .hinweis, .bestellung-intro { margin: 0.4rem 0 0.9rem; }
.bestell-summe .hinweis { font-size: 0.85rem; }

.bestellung-anmelden { margin-left: auto; color: #dbe4f2; font-size: 0.95rem; }
.bestellung-anmelden:hover { color: #fff; }

.bestell-regler { margin: 1rem 0 .4rem; }
.bestell-regler input[type=range] { width: 100%; }
.bestell-regler-werte { display: flex; justify-content: space-between; font-size: .85rem; color: #6b7280; }
.bestell-menge { font-size: 1.6rem; font-weight: 800; color: #2a78d6; margin: 0; }
.bestell-zahlart { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; margin-top: .8rem; }
.bestell-zahlart label { cursor: pointer; display: block; }
.bestell-zahlart input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bestell-zahlart .zahlart-karte { display: block; border: 2px solid #e2e6ec; border-radius: 12px; padding: .9rem 1rem; background: #fff; height: 100%; }
.bestell-zahlart input:checked + .zahlart-karte { border-color: #2a78d6; background: #eff6ff; box-shadow: 0 0 0 3px rgba(42,120,214,.15); }
.bestell-zahlart input:focus-visible + .zahlart-karte { outline: 3px solid #f59e0b; outline-offset: 2px; }
.bestell-zahlart small { display: block; color: #6b7280; margin-top: .25rem; }
.zahlart-preis { display: block; font-size: 1.2rem; font-weight: 800; margin-top: .3rem; }

/* ---------- Cateringhelfer: gemeinsame Bausteine ---------- */
.formular textarea { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.95rem; font-family: inherit; resize: vertical; }
.formular .formular-zeile > div { min-width: 0; }
.ch-reiter { display: flex; gap: 0.25rem; flex-wrap: wrap; margin: 0 0 1.2rem; border-bottom: 1px solid #e5e7eb; }
.ch-reiter a { padding: 0.5rem 0.9rem; color: #6b7280; text-decoration: none; font-weight: 600; font-size: 0.92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ch-reiter a:hover { color: #111827; }
.ch-reiter a.aktiv { color: #111827; border-bottom-color: #1f2937; }
.ch-badge { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.ch-badge-grau { background: #f3f4f6; color: #4b5563; }
.ch-badge-blau { background: #dbeafe; color: #1e40af; }
.ch-badge-gruen { background: #dcfce7; color: #166534; }
.ch-badge-orange { background: #fef3c7; color: #92400e; }
.ch-badge-rot { background: #fee2e2; color: #991b1b; }
.ch-badge-dunkel { background: #e5e7eb; color: #1f2937; }
.ch-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.ch-kachel { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; color: inherit; display: block; }
a.ch-kachel:hover { border-color: #9ca3af; }
.ch-kachel .zahl { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.ch-kachel .text { color: #6b7280; font-size: 0.85rem; }
.ch-kachel.warn { border-color: #fcd34d; background: #fffbeb; }
.ch-kachel.fehler { border-color: #fca5a5; background: #fef2f2; }
.ch-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.ch-drei { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .ch-zwei, .ch-drei { grid-template-columns: 1fr; } }
.ch-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.ch-box h2 { font-size: 1.05rem; margin: 0 0 0.8rem; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ch-box h2 .knopf, .ch-box h2 .knopf-sekundaer { font-size: 0.85rem; padding: 0.3rem 0.8rem; }
.ch-filter { display: flex; gap: 0.7rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.ch-filter label { font-size: 0.8rem; color: #6b7280; display: block; margin-bottom: 0.2rem; }
.ch-filter input, .ch-filter select { padding: 0.4rem 0.55rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; }
.ch-filter button { padding: 0.45rem 0.9rem; background: #1f2937; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.ch-tabelle-scroll { overflow-x: auto; }
.ch-rechts { text-align: right; white-space: nowrap; }
.ch-summe td { font-weight: 700; border-top: 2px solid #d1d5db; }
.ch-hinweisbox { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 0.7rem 0.9rem; margin: 0 0 1rem; font-size: 0.9rem; }
.ch-hinweisbox.rot { background: #fef2f2; border-color: #fca5a5; }
.ch-hinweisbox.gruen { background: #f0fdf4; border-color: #86efac; }
.ch-liste { list-style: none; margin: 0; padding: 0; }
.ch-liste li { padding: 0.5rem 0; border-bottom: 1px solid #f1f3f5; display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
.ch-liste li:last-child { border-bottom: none; }
.ch-liste .klein { color: #6b7280; font-size: 0.82rem; }
.ch-allergen { display: inline-block; min-width: 1.4rem; text-align: center; padding: 0 0.3rem; border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; border-radius: 4px; font-size: 0.75rem; font-weight: 700; margin: 0 0.1rem; }
.ch-allergenwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.2rem 0.8rem; margin: 0.3rem 0 1rem; }
.ch-allergenwahl label { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; margin: 0; }
.ch-allergenwahl input { width: auto; }
.ch-stern { color: #f59e0b; letter-spacing: 1px; }
.ch-leer { color: #6b7280; padding: 0.6rem 0; }
.ch-ampel { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; background: #9ca3af; }
.ch-ampel.gruen { background: #16a34a; } .ch-ampel.gelb { background: #f59e0b; } .ch-ampel.rot { background: #dc2626; }
.ch-erledigt { text-decoration: line-through; color: #9ca3af; }
.ch-kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ch-kopfzeile h1 { margin: 0 0 0.3rem; }
.ch-knopfreihe { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.ch-pos-eingabe input, .ch-pos-eingabe select { padding: 0.3rem 0.4rem; border: 1px solid #d1d5db; border-radius: 5px; font-size: 0.88rem; width: 100%; }
.knopf-gefahr { background: #b91c1c; color: #fff; border: none; border-radius: 6px; padding: 0.5rem 1rem; cursor: pointer; }
/* Kalender */
.ch-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #e5e7eb; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ch-monat .kopf { background: #f9fafb; padding: 0.4rem; text-align: center; font-size: 0.8rem; font-weight: 600; color: #6b7280; }
.ch-monat .tag { background: #fff; min-height: 96px; padding: 0.25rem; font-size: 0.78rem; overflow: hidden; }
.ch-monat .tag.aus { background: #f9fafb; color: #9ca3af; }
.ch-monat .tag.heute { box-shadow: inset 0 0 0 2px #2a78d6; }
.ch-monat .tag .nr { font-weight: 700; margin-bottom: 0.15rem; display: flex; justify-content: space-between; }
.ch-monat .ev { display: block; padding: 0.1rem 0.3rem; border-radius: 4px; margin-bottom: 2px; text-decoration: none; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid #9ca3af; background: #f3f4f6; }
.ch-monat .ev.anfrage { border-color: #9ca3af; } .ch-monat .ev.angebot { border-color: #2a78d6; background: #eff6ff; } .ch-monat .ev.bestaetigt { border-color: #16a34a; background: #f0fdf4; }
.ch-monat .ev.durchgefuehrt { border-color: #d97706; background: #fffbeb; } .ch-monat .ev.abgerechnet { border-color: #374151; } .ch-monat .ev.storniert { border-color: #dc2626; text-decoration: line-through; }
.ch-monat .konflikt { color: #b91c1c; font-weight: 700; }
@media (max-width: 700px) { .ch-monat .tag { min-height: 60px; font-size: 0.68rem; } .ch-monat .ev { padding: 0 0.15rem; } }
/* Portal */
.portal-seite { max-width: 760px; margin: 0 auto; padding: 1.2rem; }
.portal-seite .ch-box { margin-bottom: 1rem; }
@media print { .kopfleiste, .tableiste, .ch-knopfreihe, .seiten-kopf .knopf, .no-print { display: none !important; } }

/* Kundenportal */
body.ch-portal { background: #f3f4f6; margin: 0; }
.ch-portal-kopf { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 0.9rem 0; }
.ch-portal-kopf .ch-portal-breite { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ch-portal-breite { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.ch-sterne-wahl { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; margin-bottom: 0.8rem; }
.ch-sterne-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ch-sterne-wahl label { font-size: 2.2rem; line-height: 1; color: #d1d5db; cursor: pointer; margin: 0; }
.ch-sterne-wahl input:checked ~ label, .ch-sterne-wahl label:hover, .ch-sterne-wahl label:hover ~ label { color: #f59e0b; }
.ch-sterne-wahl input:focus-visible + label { outline: 2px solid #2563eb; }

/* Mobil: Inhalt darf nie breiter als der Bildschirm werden (Tabellen scrollen in ihrem eigenen Rahmen) */
@media (max-width: 900px) {
    .app-layout { align-items: stretch; }
    .app-layout > .inhalt { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
    .ch-tabelle-scroll { max-width: 100%; }
}
.ch-zwei > *, .ch-drei > *, .ch-kopfzeile > * { min-width: 0; }
@media (max-width: 900px) { .ch-zwei, .ch-drei { grid-template-columns: minmax(0, 1fr); } .seiten-kopf { flex-wrap: wrap; gap: 0.6rem; } }

/* Brotkrumen-Navigation über der Seitenüberschrift */
.ch-krumen { margin: 0 0 0.6rem; font-size: 0.88rem; }
.ch-krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.1rem; }
.ch-krumen li { display: flex; align-items: center; min-width: 0; }
.ch-krumen li + li::before { content: "\203A"; color: #9aa3af; margin: 0 0.5rem; font-size: 1.05em; }
.ch-krumen a { color: #566275; text-decoration: none; padding: 0.3rem 0.1rem; border-radius: 4px; }
.ch-krumen a:hover, .ch-krumen a:focus-visible { color: #111827; text-decoration: underline; }
.ch-krumen span { color: #111827; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
@media (max-width: 640px) { .ch-krumen a { padding: 0.55rem 0.15rem; } }

/* Rezept-Ansicht als Popup */
.ch-rezept-fenster { position: relative; width: 100%; max-width: none; flex: 0 0 auto; padding: 0; overflow: hidden; max-height: none; }
.ch-rezept-zu { position: absolute; top: 0.7rem; right: 0.8rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: none; background: #f1f3f5; color: #374151; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.ch-rezept-zu:hover, .ch-rezept-zu:focus-visible { background: #e2e6ec; color: #111827; }
#rezeptAnsichtInhalt .ch-kopfzeile { padding-right: 3rem; }
/* Gleicher Abstand auf allen vier Seiten: außen 2 rem, innen 1,5 rem; der Inhalt scrollt im Fenster */
#rezeptAnsicht { padding: 1.5rem; overflow: hidden; align-items: flex-start; }
#rezeptAnsichtInhalt { padding: 1.5rem; overflow-y: auto; max-height: calc(100vh - 3rem); box-sizing: border-box; }
@media (max-width: 640px) { #rezeptAnsicht { padding: 0; } #rezeptAnsichtInhalt { padding: 1rem; max-height: 100vh; } .ch-rezept-fenster { border-radius: 0; } }

/* Rezept-Popup: oben Beschreibung + Kennzahlen (2x2), darunter Zutaten | Allergene | PDF */
.ch-rz-oben { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: stretch; margin-bottom: 1.5rem; }
.ch-rz-oben .ch-box { margin-bottom: 0; }
.ch-rz-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0; }
.ch-rz-kacheln .ch-kachel { padding: 0.6rem 0.75rem; }
.ch-rz-kacheln .ch-kachel .zahl { font-size: 1.2rem; }
.ch-rz-kacheln .ch-kachel .text { font-size: 0.72rem; line-height: 1.25; }
.ch-rz-unten { display: grid; grid-template-columns: minmax(0, 0.77fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.ch-rz-unten > .ch-box { margin-bottom: 0; min-width: 0; }
@media (max-width: 900px) { .ch-rz-oben, .ch-rz-unten { grid-template-columns: minmax(0, 1fr); } }

/* Download-Link im PDF-Bereich: gleiche Optik wie der Entfernen-Button */
.ch-liste a.knopf-sekundaer { background: #e5e7eb; color: #1f2937; padding: 0.6rem 1.1rem; line-height: normal; vertical-align: middle; font-family: inherit; }
.ch-liste form.inline-form button { font-family: inherit; line-height: normal; }
.ch-liste a.knopf-sekundaer:hover { background: #d1d5db; color: #1f2937; }
#rezeptAnsichtInhalt .ch-kopfzeile { margin-bottom: 1.5rem; }

/* Popup füllt die Fensterhöhe (24 px Abstand oben und unten); die untere Boxenreihe streckt sich bis zum unteren Rand */
#rezeptAnsichtInhalt { height: calc(100vh - 3rem); max-height: none; display: flex; flex-direction: column; }
#rezeptAnsichtInhalt > * { flex: 0 0 auto; }
#rezeptAnsichtInhalt .ch-rz-unten { flex: 1 0 auto; }
@media (max-width: 640px) { #rezeptAnsichtInhalt { height: 100vh; } }
