/* Kostenloser Mietvertrag – eigene Formularseite, gebaut wie eine Handy-App (mobil zuerst) */
body{background:#f4f7fb}
.fc-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line)}
.fc-brand img{width:160px;height:auto}
.fc-back{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:#1d67b9;font-weight:700;font-size:15px}
.fc-app{width:min(560px,100%);margin:0 auto;padding:18px 16px calc(120px + env(safe-area-inset-bottom,0px))}
.fc-head h1{font-size:26px;line-height:1.15;letter-spacing:-.02em;color:var(--navy);margin:4px 0 6px}
.fc-progress-text{margin:0 0 10px;color:var(--muted);font-weight:700;font-size:14px}
.fc-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;list-style:none;padding:0;margin:0 0 16px}
.fc-progress li{height:6px;border-radius:999px;background:#dbe5f1}
.fc-progress li span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.fc-progress li.is-done,.fc-progress li.is-current{background:var(--navy)}
.fc-progress li.is-current{background:linear-gradient(90deg,var(--navy),#3c7bd0)}
.fc-alert{background:#fff2f2;border:1px solid #f1c7c7;color:#8f2626;border-radius:13px;padding:13px 16px;margin:0 0 14px;font-weight:600}
.fc-step{border:1px solid #dbe5f1;border-radius:18px;background:#fff;padding:18px 16px 4px;margin:0 0 14px;box-shadow:0 10px 30px rgba(20,47,83,.06)}
.fc-step legend{float:left;width:100%;font-weight:800;color:var(--navy);font-size:19px;padding:0;margin:0 0 14px}
.fc-step legend + *{clear:both}
.fc-field{margin:0 0 14px}
.fc-field label{display:block;font-size:.9rem;font-weight:700;margin-bottom:7px;color:#29496e}
.fc-field input,.fc-field select,.fc-field textarea{width:100%;min-height:52px;border:1px solid #cfdcec;border-radius:13px;padding:0 14px;font:inherit;font-size:16px;color:var(--text);background:#fff}
.fc-field textarea{padding:12px 14px;min-height:96px;resize:vertical}
.fc-field input:focus-visible,.fc-field select:focus-visible,.fc-field textarea:focus-visible{outline:3px solid #75a9e9;outline-offset:1px;border-color:#1d67b9}
.fc-field.has-error input,.fc-field.has-error select{border-color:#c94a4a;box-shadow:0 0 0 4px rgba(201,74,74,.1)}
.fc-error{margin:7px 0 0;color:#a32f2f;font-size:.86rem;font-weight:600}
.fc-error:before{content:"⚠ "}
.fc-row{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.fc-hint{margin:0 0 14px;color:#6b7c93;font-size:.88rem;line-height:1.45}
.fc-hint a{color:#1d67b9;text-decoration:underline}
.fc-check{display:flex;align-items:center;gap:12px;min-height:52px;margin:0 0 10px;font-weight:600;color:#29496e;cursor:pointer}
.fc-check input{width:24px;height:24px;flex:0 0 24px;accent-color:var(--navy)}
.fc-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.fc-actions{display:flex;gap:10px;margin-top:6px}
.fc-actions .btn{flex:1;min-height:54px;font-size:16px}
.fc-actions [hidden]{display:none!important}
.fc-wide{width:100%}
.js-only{display:none}
/* Mit JavaScript: ein Schritt nach dem anderen, Knöpfe fest am unteren Rand */
.js .fc-progress-text.js-only{display:block}
.js .fc-progress.js-only{display:grid}
.js .fc-actions .btn.js-only{display:inline-flex}
.js .fc-actions{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(20,47,83,.08);margin:0}
.js .fc-actions .btn-ghost{flex:0 0 34%}
@media(min-width:620px){.js .fc-actions{left:50%;transform:translateX(-50%);width:min(560px,100%);border-radius:18px 18px 0 0;border:1px solid var(--line);border-bottom:0}}
/* Bestätigung */
.fc-done{text-align:center;padding-top:20px}
.fc-done-icon{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#e9f7f0;color:#12643d;font-size:32px;font-weight:800}
.fc-done h1{font-size:26px;color:var(--navy);margin:0 0 8px}
.fc-done p{color:var(--muted);margin:0 0 14px}
.fc-next{text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px 14px 36px;margin:0 0 16px;color:#33445d;line-height:1.7}
.fc-upsell{text-align:left;background:linear-gradient(135deg,#0b2d5b,#1f5f9f);color:#fff;border-radius:18px;padding:18px;margin:0 0 14px}
.fc-upsell p{color:#d7e4f5;margin:6px 0 14px}
.fc-upsell .btn-primary{background:#fff;color:var(--navy)}
.fc-link{display:inline-flex;min-height:44px;align-items:center;color:#1d67b9;font-weight:700}

/* iPhone/iPad (Safari): Datums- und Zeitfelder ignorieren sonst width:100% und ragen über den Rand */
input[type=date],input[type=datetime-local],input[type=time]{min-width:0;max-width:100%;display:block}
@supports (-webkit-touch-callout:none){
  input[type=date],input[type=datetime-local],input[type=time]{-webkit-appearance:none;appearance:none;line-height:50px}
}
input[type=date]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{text-align:left;margin:0}
