/* Selfiefox Buchungsdaten (details.selfiefox.de) – Design wie druck/galerie/qr.selfiefox.de */
:root {
  --rot: #b1322e; --rot-dunkel: #962a26; --blau: #00a8f4; --gruen: #16a34a; --gelb: #f59e0b;
  --text: #3c424f; --hell: #6b7280; --flaeche: #f6f7f9; --rand: #e5e7eb;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
body { font-family: var(--schrift); color: var(--text); background: var(--flaeche); -webkit-font-smoothing: antialiased; line-height: 1.45; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--rot); }
[hidden] { display: none !important; }

.kopf { background: #fff; border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 40; }
.kopf .innen { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; min-height: 56px; }
.kopf .logo { display: flex; } .kopf img { height: 22px; width: auto; }
.kopf .wer { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blau); }
.kopf .platz { flex: 1; }
.kontaktlink { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--rand); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.kontaktlink svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .kontaktlink .lbl { display: none; } .kopf .wer { font-size: 10.5px; } }

.seite { max-width: 820px; margin: 0 auto; padding: 20px 16px 60px; }
.titelzeile h1 { font-size: 26px; line-height: 1.2; }
.unter { color: var(--hell); font-size: 15px; margin-top: 6px; }
.testband { background: #fef3c7; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }

.schritte { list-style: none; display: flex; gap: 6px; margin: 18px 0 4px; }
.schritte li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--hell); position: relative; }
.schritte li span { width: 30px; height: 30px; border-radius: 50%; background: #e9ebef; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--hell); z-index: 1; }
.schritte li:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: #e5e7eb; }
.schritte li.fertig span { background: #fdecea; color: var(--rot); }
.schritte li.an span { background: var(--rot); color: #fff; box-shadow: 0 0 0 4px rgba(177,50,46,.15); }
.schritte li.an b { color: var(--text); }
@media (max-width: 520px) { .schritte li b { display: none; } }

.karte { background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(20,30,50,.06), 0 6px 20px rgba(20,30,50,.05); padding: 22px; margin-top: 14px; }
.karte h2 { font-size: 20px; margin-bottom: 6px; }
.karte h3 { font-size: 15.5px; margin: 18px 0 4px; }
.erkl { color: var(--hell); font-size: 14px; margin-bottom: 6px; }
.feld { margin-top: 12px; }
.feld label, .lbl { display: block; font-size: 13px; color: var(--text); font-weight: 650; margin-bottom: 5px; }
.req { color: var(--rot); } .opt { color: var(--hell); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; border: 1.5px solid var(--rand); border-radius: 12px; padding: 11px 12px; font-size: 16px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blau); box-shadow: 0 0 0 3px rgba(0,168,244,.12); }
textarea { resize: vertical; min-height: 96px; }
.feld small { display: block; color: var(--hell); font-size: 12.5px; margin-top: 5px; line-height: 1.35; }
.hinweis-k { font-size: 12.5px; color: var(--hell); margin-top: 6px; }
.feld.fehlt input, .feld.fehlt select, .feld.fehlt textarea { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(177,50,46,.12); }
.produkte.fehlt, .wahlliste.fehlt, .technik.fehlt { outline: 2px solid var(--rot); outline-offset: 4px; border-radius: 12px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.adresse { display: grid; grid-template-columns: 3fr 1fr; gap: 0 12px; }
.adresse .plz { grid-column: 1 / 2; } .adresse .ort { grid-column: 2 / 3; }
.adresse { grid-template-areas: "s n" "p o"; grid-template-columns: 3fr 1fr; }
.adresse .strasse { grid-area: s; } .adresse .nr { grid-area: n; } .adresse .plz { grid-area: p; } .adresse .ort { grid-area: o; }
.adresse { grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-areas: "s s s n" "p o o o"; }
@media (max-width: 600px) { .zwei { grid-template-columns: 1fr; } }
.gruppe { border: 1.5px solid var(--rand); border-radius: 14px; padding: 4px 14px 14px; margin-top: 16px; }
.gruppe legend { padding: 0 6px; font-weight: 700; font-size: 14px; color: var(--rot); }

.produkte { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.produkt input, .wahl input { position: absolute; opacity: 0; pointer-events: none; }
.produkt { position: relative; }
.produkt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; border: 2px solid var(--rand); border-radius: 12px; font-weight: 650; font-size: 14px; cursor: pointer; text-align: center; background: #fff; }
.produkt.an span, .produkt input:checked + span { border-color: var(--rot); background: #fdf2f1; color: var(--rot-dunkel); }
.produkt input:focus-visible + span, .wahl input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,168,244,.3); }
.wahlliste { display: grid; gap: 8px; }
.wahl { position: relative; }
.wahl span { display: block; padding: 11px 14px 11px 42px; border: 2px solid var(--rand); border-radius: 12px; cursor: pointer; position: relative; font-size: 14.5px; }
.wahl span::before { content: ''; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c7cbd1; }
.wahl span small { display: block; color: var(--hell); font-size: 12.5px; }
.wahl.an span, .wahl input:checked + span { border-color: var(--rot); background: #fdf2f1; }
.wahl.an span::before, .wahl input:checked + span::before { border-color: var(--rot); background: radial-gradient(var(--rot) 45%, #fff 50%); }

.technik { border: 1.5px solid var(--rand); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.technik h3 { margin: 0 0 8px; color: var(--rot); }
.technik label { display: flex; gap: 10px; align-items: center; padding: 7px 0; cursor: pointer; font-size: 15px; }
.technik label em { font-style: normal; color: var(--hell); font-size: 13px; margin-left: auto; white-space: nowrap; }
.technik input[type=checkbox], .haken input { width: 19px; height: 19px; accent-color: var(--rot); flex-shrink: 0; }
.technik hr { border: 0; border-top: 1px dashed var(--rand); margin: 6px 0; }
.technik .frei { margin-top: 8px; }
.haken { display: flex; gap: 8px; align-items: center; font-size: 14.5px; cursor: pointer; margin-top: 6px; }


.rechnung { margin-top: 16px; }
.rechnung pre { font-family: var(--schrift); white-space: pre-wrap; background: var(--flaeche); border: 2px dashed #d1d5db; border-radius: 12px; padding: 14px; font-size: 15px; line-height: 1.5; }
.rechnung pre.leer { color: #9aa1ad; font-style: italic; }

.zusammenfassung { margin-top: 18px; border-top: 1px solid var(--rand); padding-top: 4px; }
.zusammenfassung dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; margin-top: 6px; }
.zusammenfassung dt { color: var(--hell); font-weight: 600; }
.zusammenfassung dd { word-break: break-word; }
@media (max-width: 520px) { .zusammenfassung dl { grid-template-columns: 1fr; gap: 0; } .zusammenfassung dd { margin-bottom: 6px; } }

.box-info { background: #eef8fe; border-radius: 14px; padding: 11px 13px; font-size: 14px; color: #075985; margin-top: 12px; }
.warnzeile { font-size: 13px; color: #92400e; background: #fff7ed; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.vorschlag { font-size: 13px; margin-top: 5px; } .vorschlag button { color: var(--rot); font-weight: 700; text-decoration: underline; }
.linkknopf { color: var(--rot); font-weight: 600; text-decoration: underline; }
.datenschutz { margin-top: 14px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fehlerbox { background: #fdecea; color: var(--rot-dunkel); border-radius: 12px; padding: 11px 14px; margin-top: 14px; font-size: 14.5px; font-weight: 600; }

.navi { display: flex; gap: 10px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 650; font-size: 16px; padding: 13px 20px; border: 1.5px solid var(--rand); background: #fff; color: var(--text); text-decoration: none; }
.btn.haupt { background: var(--rot); border-color: var(--rot); color: #fff; margin-left: auto; min-width: 220px; }
.btn.haupt:hover { background: var(--rot-dunkel); }
.btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 520px) { .navi { flex-direction: column-reverse; } .btn.haupt { margin-left: 0; width: 100%; } .navi .btn { width: 100%; } }

.fuss { text-align: center; color: var(--hell); font-size: 13px; margin-top: 26px; line-height: 1.8; }

/* Danke */
.danke { text-align: center; }
.danke .gross { font-size: 52px; }
.danke h1 { font-size: 26px; margin: 6px 0 8px; }

.haken { margin-top: 10px; }
#sourceFrei { margin-top: 8px; }
.mehrfach { border: 1.5px solid var(--rand); border-radius: 12px; background: #fff; }
.mehrfach[open] { border-color: var(--blau); }
.mehrfach summary { list-style: none; cursor: pointer; padding: 11px 36px 11px 12px; font-size: 15.5px; position: relative; }
.mehrfach summary::-webkit-details-marker { display: none; }
.mehrfach summary::after { content: '▾'; position: absolute; right: 12px; color: var(--hell); }
.mehrfach summary.leer { color: #9aa1ad; }
.mehrfach-liste { border-top: 1px solid var(--rand); padding: 6px 12px 8px; }
.mehrfach-liste label { display: flex; gap: 10px; align-items: center; padding: 7px 0; cursor: pointer; font-size: 15px; }
.mehrfach-liste input { width: 19px; height: 19px; accent-color: var(--rot); }
.schritte li.klickbar { cursor: pointer; }
.schritte li.klickbar:hover span { box-shadow: 0 0 0 3px rgba(177,50,46,.18); }

/* Handy: nichts darf breiter als der Bildschirm werden (iOS-Datumsfeld) */
.zwei > *, .adresse > *, .feld { min-width: 0; }
input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 46px; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
.warnzeile.abstand { margin-top: 12px; }
@media (max-width: 420px) {
  .kopf .innen { gap: 8px; padding: 8px 10px; }
  .kopf img { height: 19px; }
  .kopf .wer { font-size: 9.5px; letter-spacing: .05em; }
  .kontaktlink { padding: 6px 9px; }
}
.zwei { align-items: start; }
.feld label.haken { display: flex; font-weight: 400; font-size: 14.5px; margin: 10px 0 0; }
