:root { --marke: #ae1643; }
/* Kunden-App (kundenapp-seiten.ts). Die Markenfarbe setzt der Dienst je Host davor: :root { --marke: #...; } */
:root {
  --marke-hell: color-mix(in srgb, var(--marke) 9%, #fff);
  --tinte: #1f2328;
  --text: #3b414a;
  --gedaempft: #6e7b92;
  --grund: #ffffff;
  --sanft: #f4f5f7;
  --linie: #e4e7eb;
  --gruen: #1f9d55;
  --gruen-hell: #e7f6ee;
  --gelb-hell: #fff4e0;
  --gelb: #a35c00;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 15px/1.45 -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--sanft); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--marke); }
button, input, textarea, select { font: inherit; color: inherit; }

.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 16px 12px; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf h1 { font-size: 19px; line-height: 1.2; font-weight: 700; color: var(--tinte); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopf .logo { height: 40px; width: auto; max-width: 45%; object-fit: contain; }
.kopf .rechts { text-align: right; }
.zurueck { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--marke); background: var(--marke-hell); text-decoration: none; font-size: 22px; line-height: 1; flex-shrink: 0; }

.reiter { scrollbar-width: none; display: flex; gap: 6px; padding: 0 16px 12px; background: var(--grund); overflow-x: auto; border-bottom: 1px solid var(--linie); }
.reiter a { padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--sanft); color: var(--text); text-decoration: none; white-space: nowrap; }
.reiter a.an { background: var(--tinte); color: #fff; }

.inhalt { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px 110px; display: flex; flex-direction: column; gap: 12px; }
.karte { background: var(--grund); border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(31, 35, 40, .06); }
.karte h2 { font-size: 17px; line-height: 1.25; font-weight: 700; color: var(--tinte); }
.karte h3 { font-size: 13px; font-weight: 500; color: var(--gedaempft); margin-bottom: 6px; }
.klein { font-size: 13px; color: var(--gedaempft); }
.leer { text-align: center; padding: 40px 16px; color: var(--gedaempft); }
.meldung { background: var(--gruen-hell); color: var(--gruen); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.meldung.fehler { background: #fdecec; color: #b42318; }

.pille { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--sanft); color: var(--text); white-space: nowrap; }
.pille.neu { background: var(--marke); color: #fff; }
.pille.ok { background: var(--gruen-hell); color: var(--gruen); }
.pille.offen { background: var(--gelb-hell); color: var(--gelb); }

.vorgang-karte { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.vorgang-karte.ungesehen { box-shadow: 0 0 0 2px var(--marke); }
.vorgang-karte .k1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vorgang-karte .name { font-size: 16px; font-weight: 700; color: var(--tinte); }
.fakten { display: flex; flex-wrap: wrap; gap: 6px; }
.fakten span { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--sanft); }

.zeile { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.zeile:last-child { border-bottom: 0; }
.zeile > span:first-child { color: var(--gedaempft); flex-shrink: 0; }
.zeile > span:last-child { color: var(--tinte); font-weight: 500; text-align: right; white-space: pre-wrap; word-break: break-word; }
.zeile.lang { flex-direction: column; gap: 2px; }
.zeile.lang > span:last-child { text-align: left; }

.knoepfe { display: flex; gap: 10px; }
.knopf { flex: 1; min-height: 50px; border: 0; border-radius: 14px; background: var(--marke); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; padding: 0 14px; }
.knopf.hell { background: var(--marke-hell); color: var(--marke); }
.knopf.rand { background: var(--grund); color: var(--tinte); border: 1px solid var(--linie); }
.knopf[disabled] { opacity: .5; cursor: default; }
form.eine { display: contents; }
.abstand { margin-top: 12px; }
.karte > p + p, .karte > h2 + p { margin-top: 6px; }
.karte > p + form, .karte > p + .feld { margin-top: 14px; }
form > .knopf { width: 100%; }
.anmeldung .karte > p:last-child { margin-top: 14px; }

.verlauf { display: flex; flex-direction: column; }
.schritt { display: flex; gap: 12px; padding-bottom: 12px; position: relative; }
.schritt .punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--gruen); margin-top: 5px; flex-shrink: 0; z-index: 1; }
.schritt:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--linie); }
.schritt b { color: var(--tinte); display: block; font-weight: 600; }

.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.feld label { font-size: 13px; color: var(--gedaempft); }
.feld input, .feld textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--grund); color: var(--tinte); font-size: 16px; }
.feld textarea { min-height: 96px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--marke); outline-offset: 1px; }
.zwei { display: flex; gap: 10px; }
.zwei .feld { flex: 1; min-width: 0; }
.code { letter-spacing: .3em; font-size: 24px !important; text-align: center; }

.anmeldung { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px 40px; max-width: 440px; width: 100%; margin: 0 auto; gap: 16px; }
.anmeldung .logo { display: block; height: 112px; width: auto; max-width: 85%; margin: 0 auto 28px; object-fit: contain; }
.anmeldung h1 { font-size: 22px; color: var(--tinte); }

.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: var(--grund); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
.leiste a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; font-size: 11.5px; font-weight: 600; color: var(--gedaempft); text-decoration: none; position: relative; }
.leiste a.an { color: var(--marke); }
.leiste svg { width: 24px; height: 24px; }
.leiste .zahl { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--marke); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* Angebote (Etappe 2): Auswahl, Formular, Senden, Exposé */
.wahl { display: flex; gap: 12px; padding: 10px; text-decoration: none; color: inherit; align-items: flex-start; }
.wahl img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: var(--sanft); }
.wahl .t { font-size: 15px; line-height: 1.25; font-weight: 700; color: var(--tinte); }
.abstand-klein { margin-top: 6px; }
.feld select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--grund); color: var(--tinte); font-size: 16px; }
.summe { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; min-height: 1.5em; }
.summe b { font-size: 24px; color: var(--tinte); }
.wege { display: flex; flex-direction: column; gap: 10px; }
.wege form { display: contents; }
.weg { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--grund); border: 1px solid var(--linie); color: var(--text); text-decoration: none; cursor: pointer; font: inherit; }
.weg b { color: var(--tinte); font-size: 16px; }
.umbruch { word-break: break-all; }
.zeile.verweis { text-decoration: none; color: inherit; }
.vorschau-rahmen { padding: 0; overflow: hidden; }

.galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; scrollbar-width: none; }
.galerie img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; background: var(--sanft); }
.expose-koerper { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 12px; background: var(--grund); }
.expose-koerper h2 { font-size: 16px; color: var(--tinte); margin-top: 6px; }
.expose-koerper > p { line-height: 1.55; }
.expose-titel { font-size: 23px; line-height: 1.2; color: var(--tinte); }
.eck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.eck div { background: var(--sanft); border-radius: 12px; padding: 10px 4px; text-align: center; }
.eck b { display: block; font-size: 16px; color: var(--tinte); }
.eck span { font-size: 11px; color: var(--gedaempft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; background: var(--marke-hell); color: var(--marke); }
.preisbox { border: 2px solid var(--marke); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.preis-gross { font-size: 28px; font-weight: 700; color: var(--marke); line-height: 1.2; }
.nachricht { background: var(--sanft); border-radius: 14px; padding: 14px 16px; }
.nachricht p + p { margin-top: 10px; }
body.gast .kopf { justify-content: center; }
.gast-inhalt { padding: 0 0 32px; max-width: 640px; }
@media (min-width: 640px) { .gast-inhalt { padding-top: 16px; } .gast-inhalt .expose { border-radius: 16px; overflow: hidden; } }

/* Annahme durch den Gast (Etappe 3) */
.knopf.gruen { background: var(--gruen); }
.annahme { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--linie); padding-top: 16px; margin-top: 4px; }
.annahme h2 { margin-top: 0; }
.annahme-felder { display: grid; grid-template-columns: 1fr 2fr; gap: 0 10px; }
.annahme-felder .feld.breit { grid-column: 1 / -1; }
.feld.fehlt input, .feld.fehlt textarea { border-color: #b42318; background: #fdecec; }
.haken { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tinte); }
.haken input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: var(--marke); }
.haken.fehlt { color: #b42318; }
.bedingungen { background: var(--sanft); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.bedingungen summary { cursor: pointer; font-weight: 600; color: var(--tinte); }
.bedingungen p { margin-top: 8px; }
