* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.45 system-ui, -apple-system, sans-serif; color: #1b1f24; background: #f6f8fa; }
header { background: #1f6feb; color: #fff; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); }
header h1 { margin: 0; font-size: 20px; }
main { max-width: 560px; margin: 0 auto; padding: 12px 14px 40px; }
section { background: #fff; border: 1px solid #e5e9ee; border-radius: 12px; padding: 16px; margin-top: 14px; }
h2 { margin: 0 0 12px; font-size: 18px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=password], textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #c9d1d9; border-radius: 8px; }
input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
button { font: inherit; width: 100%; padding: 14px; margin-top: 12px; border-radius: 10px; border: 1px solid #c9d1d9; background: #f6f8fa; cursor: pointer; }
button.haupt { background: #1f6feb; color: #fff; border-color: #1f6feb; font-weight: 600; }
button:disabled { opacity: .5; }
.fotoknopf { display: block; text-align: center; padding: 22px 12px; border: 2px dashed #1f6feb; border-radius: 12px; color: #1f6feb; background: #f0f6ff; font-weight: 600; cursor: pointer; }
.vorschau { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.vorschau img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.vorschau .bild { position: relative; padding: 0; margin: 0; border: 0; background: none; width: 100%; }
.vorschau .bild span { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; line-height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; }
.fotoknoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.schritt { margin: 12px 0 6px; font-weight: 600; }
#status { min-height: 24px; color: #57606a; }
.fehler { color: #b42318; min-height: 22px; }
.hinweis { color: #57606a; font-size: 15px; margin-top: 0; }
.feld { border-top: 1px solid #eef1f4; padding: 10px 0; }
.feld .kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feld .kopf button { width: auto; margin: 0; padding: 8px 14px; font-size: 15px; }
.feld p { margin: 6px 0 0; }
.text { white-space: pre-wrap; }
.klein { font-size: 14px; color: #57606a; }
#liste { list-style: none; margin: 0; padding: 0; }
#liste li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #eef1f4; }
#liste img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; }
#liste .name { flex: 1; min-width: 0; }
#liste .name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#liste button { width: auto; margin: 0; padding: 8px 12px; font-size: 15px; }

button.fotoknopf { margin-top: 0; font-size: inherit; }
.kamera-fenster { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; }
.kamera-fenster[hidden] { display: none; }
.kamera-fenster video { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #000; }
.kamera-info { color: #fff; text-align: center; margin: 8px 0 0; min-height: 22px; }
.kamera-leiste { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
.kamera-leiste button { margin: 0; }
#kamera-fertig { background: #fff; width: auto; padding: 12px 18px; }
.ausloeser { width: 76px !important; height: 76px; border-radius: 50% !important; border: 5px solid #fff !important; background: #e6e6e6 !important; padding: 0 !important; }
.ausloeser:active { background: #fff !important; transform: scale(.94); }
.kamera-fenster.blitz video { opacity: .3; }

select, input[type=text], input[type=email], input[type=number] { font: inherit; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #c9d1d9; border-radius: 10px; background: #fff; margin-top: 6px; }
#a-anweisung { margin-top: 10px; }
.vorlagenknoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.vorlagenknoepfe button { width: auto; margin: 0; padding: 10px 12px; }
#a-ergebnis { margin-top: 12px; }
#a-ergebnis textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px; border: 1px solid #c9d1d9; border-radius: 8px; margin-top: 6px; }
#a-ergebnis .kopf button { width: auto; margin: 0; padding: 6px 12px; }
.warnung { color: #8a4b00; background: #fff4e5; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }
#a-status { min-height: 22px; color: #57606a; }

a.knopf { display: block; box-sizing: border-box; text-align: center; text-decoration: none; width: 100%; padding: 14px; margin-top: 12px; border-radius: 10px; border: 1px solid #c9d1d9; background: #f6f8fa; color: #1b1f24; font-weight: 600; }
a.knopf.haupt { background: #1f6feb; color: #fff; border-color: #1f6feb; }
a.knopf[hidden], a.knopf-link[hidden], p[hidden] { display: none; }

.summe { margin: 0 0 10px; color: #1b1f24; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.chips button { width: auto; margin: 0; padding: 7px 12px; border-radius: 999px; font-size: 15px; }
.chips button[aria-pressed="true"] { background: #1f6feb; color: #fff; border-color: #1f6feb; }
#u-suche { margin: 4px 0 6px; }
#liste .zeile2 { font-size: 14px; color: #57606a; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.badge.entwurf { background: #eef1f4; color: #57606a; }
.badge.online { background: #dafbe1; color: #116329; }
.badge.reserviert { background: #fff4e5; color: #8a4b00; }
.badge.verkauft { background: #ddf4ff; color: #0a3d91; }
.verkauft { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verkauft input { margin-top: 0; }
#e-status-feld .kopf a { font-size: 14px; }
#e-status-sichern { margin-top: 10px; }
button.gefahr { color: #b42318; background: #fff; border-color: #e5c1bd; }

/* Konto */
.geraete { list-style: none; padding: 0; margin: 8px 0; }
.geraete li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #e5e9ee; font-size: 14px; }
.geraete li button { width: auto; margin: 0; padding: 6px 10px; }
details.klein { margin-top: 24px; }
#code { font-size: 24px; letter-spacing: 6px; text-align: center; }

/* Einrichtungs-Assistent */
.einrichtung { border: 1px solid #e5e9ee; border-radius: 12px; padding: 4px 14px 10px; margin: 12px 0 20px; }
.schritte { padding-left: 20px; } .schritte li { margin: 12px 0; }
.schritte.erledigt li:not(#s-verbinden) { opacity: .55; }
a.knopf-link { display: block; text-align: center; margin-top: 8px; padding: 12px; border: 1px solid #c9d1d9; border-radius: 10px; text-decoration: none; color: inherit; background: #f6f8fa; }

/* iPhone-Schritte und Einladungen */
.ios-schritte { padding-left: 20px; margin: 8px 0 16px; }
.ios-schritte li { margin: 10px 0; }
.ios-schritte .klein { display: block; margin-top: 4px; }
label.haken { display: flex; align-items: center; gap: 8px; font-weight: normal; margin: 8px 0; }
label.haken input { width: auto; margin: 0; }

/* Fragen vorab und Bearbeiten */
.frage { margin: 14px 0; padding-bottom: 10px; border-bottom: 1px solid #e5e9ee; }
.frage label { font-weight: 600; margin-bottom: 4px; display: block; }
.chips button.an { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.frage input.zusatz { margin-top: 4px; }
.bearbeiten textarea { width: 100%; box-sizing: border-box; font: inherit; }
#e-bearbeiten { margin-bottom: 8px; }

/* Einrichtung beim ersten Start (Android): Firefox, Erweiterung, Verbinden */
.assistent { border: 2px solid #1f6feb; border-radius: 12px; padding: 6px 14px 12px; margin: 0 0 20px; background: #f3f8ff; }
.assistent h2 { margin: 10px 0 6px; }
.assistent .schritte li { margin: 10px 0; }
.assistent .knopf, .assistent button.haupt { display: block; width: 100%; margin-top: 8px; text-align: center; box-sizing: border-box; }
.assistent li.fertig > b::after { content: " ✓"; color: #1a7f37; }
button.still { background: none; border: 0; color: #57606a; text-decoration: underline; padding: 8px 0; font: inherit; }

/* Fahrzeugdaten (willhaben Auto & Motor) */
.fz-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 10px 0 16px; }
.fz-raster label { font-weight: 600; font-size: 14px; display: block; }
@media (max-width: 380px) { .fz-raster { grid-template-columns: 1fr; } }
