/* Formularstrecke: Formular links, blaue Infospalte rechts. Farben und Feldmaße wie die Legalano-Teilservices. */
:root { --flow-blue: #1c4ed8; --flow-blue-hover: #1a44bd; --field-border: #d6d9e0; --field-text: #344054; }

.flow-body { background: #fff; }
.flow { display: grid; min-height: 100vh; }
@media (min-width: 1000px) { .flow { grid-template-columns: 1fr 1fr; height: 100vh; overflow: hidden; } }

.flow__main { display: flex; flex-direction: column; min-width: 0; padding: 18px var(--gutter) 28px; }
@media (min-width: 1000px) { .flow__main { overflow-y: auto; padding: 18px 40px 24px; } }
.flow__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.flow__top .logo img { width: 132px; }
.flow__help { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.flow__help .icon { width: 16px; height: 16px; color: var(--flow-blue); }
.flow__help:hover { color: var(--flow-blue); }
.flow__center { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 28px; }
.flow__shell { width: min(400px, 100%); }
.flow__shell h1 { margin: 0 0 6px; color: #0f172a; font-size: clamp(1.42rem, 1.6vw, 1.6rem); font-weight: 650; letter-spacing: -0.03em; }
.flow__progress { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #667085; font-size: 0.8rem; font-weight: 600; }
.flow__progress-bar { flex: 1; height: 3px; border-radius: 3px; background: #eaecf0; overflow: hidden; }
.flow__progress-bar span { display: block; height: 100%; width: 20%; background: var(--flow-blue); transition: width 0.25s; }
.flow__legal { display: flex; justify-content: center; gap: 16px; font-size: 0.75rem; }
.flow__legal a { color: #98a2b3; text-decoration: none; }
.flow__legal a:hover { color: var(--flow-blue); }

.panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.panel[hidden], .field[hidden] { display: none; }
.panel h2 { margin: 0 0 14px; color: #101828; font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }
.panel__intro { margin: -6px 0 16px; color: #667085; font-size: 0.82rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid--3 { grid-template-columns: 0.9fr 1.1fr; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 359px) { .fgrid { grid-template-columns: 1fr; } .field { grid-column: 1 / -1; } }
.field > label, .field__label { color: #344054; font-size: 0.8rem; font-weight: 500; }
.req { color: #d92d20; margin-left: 2px; }
.opt { color: #98a2b3; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--field-border); border-radius: 8px; background: #fff; color: var(--field-text); font: inherit; font-size: 0.86rem; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flow-blue); box-shadow: 0 0 0 3px rgba(28, 78, 216, 0.12); }
.field small { color: #788698; font-size: 0.72rem; line-height: 1.45; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .field.is-invalid .seg span { border-color: #d92d20; }
.field__error { color: #d92d20; font-size: 0.74rem; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 32px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #667085; font-size: 0.86rem; }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg--1 { grid-template-columns: 1fr; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg span { display: flex; min-height: 39px; align-items: center; justify-content: center; padding: 6px 8px; border: 1px solid var(--field-border); border-radius: 8px; color: #475467; font-size: 0.78rem; font-weight: 500; text-align: center; line-height: 1.25; background: #fff; }
.seg--1 span { justify-content: flex-start; padding-inline: 12px; text-align: left; }
.seg input:checked + span { border-color: var(--flow-blue); color: var(--flow-blue); background: #f5f8ff; box-shadow: inset 0 0 0 1px var(--flow-blue); }
.seg input:focus-visible + span { outline: 3px solid rgba(28, 78, 216, 0.3); outline-offset: 1px; }

.check-line { display: flex; gap: 9px; align-items: flex-start; color: #475467; font-size: 0.78rem; cursor: pointer; }
.check-line input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--flow-blue); }

.drop { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px dashed #c8ced8; border-radius: 8px; background: #fcfcfd; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--flow-blue); background: #f5f8ff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 8px; background: #eef2ff; color: var(--flow-blue); }
.drop__icon .icon { width: 18px; height: 18px; }
.drop__text { display: grid; font-size: 0.8rem; color: #475467; }
.drop__text strong { color: var(--flow-blue); font-weight: 600; }
.drop__text small { color: #98a2b3; font-size: 0.7rem; }
.files { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.files li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 6px; background: #f2f4f7; font-size: 0.76rem; color: #344054; }
.files button { border: 0; background: none; color: #667085; cursor: pointer; font: inherit; }

.actions-row { display: flex; gap: 10px; margin-top: 18px; }
.fbtn { min-height: 41px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.fbtn--primary { margin-left: auto; background: var(--flow-blue); color: #fff; }
.fbtn--primary:hover { background: var(--flow-blue-hover); }
.fbtn--secondary { background: #fff; color: #344054; border-color: var(--field-border); }
.fbtn--secondary:hover { border-color: #98a2b3; }
.fbtn:disabled { opacity: 0.6; cursor: wait; }
.flow-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #fef3f2; color: #b42318; font-size: 0.8rem; }

.trust { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid #eaecf0; display: grid; gap: 8px; }
.trust li { display: flex; gap: 9px; align-items: flex-start; color: #667085; font-size: 0.74rem; }
.trust .icon { width: 15px; height: 15px; color: var(--flow-blue); margin-top: 1px; }
.trust strong { color: #344054; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Blaue Infospalte */
.flow__aside { display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); background: var(--flow-blue); color: #fff; }
@media (min-width: 1000px) { .flow__aside { padding: 40px; } }
.aside-inner { width: min(392px, 100%); }
.aside-inner h2 { margin: 0 0 24px; color: #fff; text-align: center; font-size: clamp(1.5rem, 2.1vw, 1.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.92); }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; }
.aside-list .icon { width: 16px; height: 16px; margin-top: 2px; }
.aside-price { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.aside-price p { margin: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); }
.aside-price small { display: block; font-size: 0.7rem; color: rgba(255, 255, 255, 0.7); }
.aside-price strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
