/* Havora Stays – Markenfarben aus dem Logo, Gestaltung angelehnt an havorastays.com */
:root {
  --primary: #104451; --primary-600: #175a6a; --primary-700: #0b3540; --primary-50: #eef4f5; --primary-100: #d4e3e6;
  --gold: #cca562; --gold-600: #b99150; --gold-text: #8f6c31; --gold-50: #faf5ec; --gold-100: #f1e6d1;
  --accent: #cca562; --accent-50: #faf5ec; --ok: #2f7a5a; --ok-50: #e9f5ef;
  --amber: #a5621a; --amber-50: #fbf0de; --danger: #b42318; --danger-50: #fee4e2; --blue: #175a6a; --blue-50: #e6f0f2;
  --ink: #163f49; --text: #2f454b; --muted: #637579; --line: #dde4e5; --bg: #ffffff; --bg-alt: #f6f8f5; --card: #ffffff;
  --radius: 2px; --shadow: 0 1px 2px rgba(16, 68, 81, .06), 0 8px 24px rgba(16, 68, 81, .07);
  --serif: "EB Garamond", "Cormorant Garamond", Garamond, "Adobe Garamond Pro", "Times New Roman", Georgia, serif;
  --sans: "Lato", "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
a { color: var(--primary-600); }
strong { font-weight: 700; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.hidden { display: none !important; }

/* Kopfzeile wie havorastays.com: weiss, Logo links, Navigation petrol, aktiver Punkt gold */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; color: var(--ink); font-family: inherit; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand-sep { width: 1px; height: 40px; background: var(--gold); display: block; }
.brand-sub { font-family: var(--serif); font-size: 19px; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); white-space: nowrap; }
.brand-text { font-family: var(--serif); font-size: 22px; color: var(--primary); }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav button, .nav a { background: none; border: 0; font: inherit; font-size: 16px; color: var(--primary); padding: 8px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.nav button:hover, .nav a:hover, .nav .active { color: var(--gold-600); }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.user-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.storage-note { background: var(--amber-50); color: #6b3b0c; font-size: 13px; text-align: center; padding: 6px 12px; }

/* Buttons: eckig wie auf der Homepage */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: var(--radius); padding: 11px 22px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .choice:focus-within { outline: 3px solid rgba(204, 165, 98, .55); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }
.btn-accent { background: var(--gold); color: var(--primary-700); }
.btn-accent:hover { background: var(--gold-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-gold { background: transparent; color: var(--gold-text); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-link { background: none; border: 0; color: var(--primary-600); padding: 4px 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f2c4bf; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Startseite: Hero in Petrol mit Bergsilhouette */
.hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; padding: 72px 0 84px; }
.hero .mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 210px; opacity: .22; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: .02em; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
.hero h1 { color: #fff; font-weight: 400; }
.hl { color: var(--gold); }
.lead { font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 600px; }
.lead strong { color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 8px; }
.price-card { background: #fff; color: var(--text); border-top: 4px solid var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); padding: 28px; }
.price-card h3 { font-size: 24px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 16px 0 20px; }
.seg button { border: 0; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 10px 6px; cursor: pointer; line-height: 1.25; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--primary); color: #fff; }
.compare { display: grid; gap: 10px; }
.compare-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.compare-row .lbl { color: var(--muted); font-size: 14px; }
.strike { text-decoration: line-through; color: var(--muted); font-size: 18px; }
.big-price { font-family: var(--serif); font-size: 46px; font-weight: 500; color: var(--primary); line-height: 1; }
.save-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-50); color: var(--gold-text); border: 1px solid var(--gold-100); font-weight: 700; font-size: 14px; padding: 5px 12px; }
.kicker { font-size: 15px; font-weight: 700; color: var(--gold-text); margin-bottom: 10px; }
.footnote { font-size: 12.5px; color: var(--muted); margin-top: 14px; max-width: 900px; }

/* Goldenes Band wie auf der Homepage */
.band { background: var(--gold); color: var(--primary); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.band-item { padding: 30px 26px; border-left: 1px solid rgba(16, 68, 81, .3); }
.band-item:first-child { border-left: 0; padding-left: 0; }
.band-item .bv { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--primary); }
.band-item .bl { font-family: var(--serif); font-size: 17px; color: var(--primary-700); margin-top: 4px; }

.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Leistungen: Text links, Petrol-Fläche mit goldenen Linien-Icons rechts */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; align-items: stretch; border: 1px solid var(--line); }
.about-text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.about-text p { color: var(--text); }
.about-panel { background: var(--primary); color: #fff; display: grid; grid-template-columns: 1fr 1fr; }
.panel-item { padding: 38px 30px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.panel-item:nth-child(2n) { border-right: 0; }
.panel-item:nth-child(n+3) { border-bottom: 0; }
.panel-item .ico { color: var(--gold); margin: 0 auto 14px; width: 46px; height: 46px; display: grid; place-items: center; }
.panel-item h3 { color: #fff; font-family: var(--sans); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.panel-item p { color: rgba(255, 255, 255, .78); font-size: 14.5px; margin: 0; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 26px; }
.feature .ico { width: 44px; height: 44px; color: var(--gold-600); display: grid; place-items: center; margin-bottom: 12px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step-card { padding: 28px 24px 8px 0; }
.step-card .no { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.step-card h3 { font-size: 22px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 15px; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 26px; }
.plan .desc { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan .ref { color: var(--muted); font-size: 14px; }
.plan .ref s { font-size: 16px; }
.plan .now { font-family: var(--serif); font-size: 44px; color: var(--primary); line-height: 1.05; }
.plan .now small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }
.plan .btn { margin-top: auto; }
.special { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: #fff; border: 1px dashed var(--gold); padding: 20px 24px; }
.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.incl li { font-size: 15px; color: var(--text); }
.incl li::before { content: "✓"; color: var(--gold-600); font-weight: 800; margin-right: 8px; }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list .dot { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; background: var(--primary); color: #fff; }
.doc-list .dot.online { background: var(--gold); color: var(--primary-700); }
.doc-list strong { display: block; font-size: 15.5px; color: var(--ink); }
.doc-list span { color: var(--muted); font-size: 14px; }
.faq details { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-600); font-weight: 700; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text); }
.cta-band { background: var(--primary); color: #fff; padding: 44px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; border-left: 6px solid var(--gold); }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .88; }
.footer { background: var(--primary-700); color: #cfdcdf; padding: 52px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img { height: 64px; width: auto; display: block; }
.footer-brand .brand-sub { color: #fff; }
.footer strong { color: var(--gold); display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer button, .footer a { background: none; border: 0; color: #cfdcdf; font: inherit; padding: 3px 0; cursor: pointer; text-align: left; display: block; text-decoration: none; }
.footer button:hover, .footer a:hover { color: #fff; text-decoration: underline; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 30px; padding-top: 16px; font-size: 12.5px; color: #8fa8ae; }

/* Konto, Antrag, Gutachter */
.page { padding: 40px 0 72px; background: var(--bg-alt); min-height: 60vh; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumb { font-size: 14px; margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 26px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 26px; }
.card h3 { font-size: 20px; margin-top: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 108px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.gray { background: #eef1f2; color: #4d5f63; }
.chip.amber { background: var(--amber-50); color: var(--amber); }
.chip.blue { background: var(--blue-50); color: var(--blue); }
.chip.green { background: var(--ok-50); color: var(--ok); }
.order-list { display: grid; gap: 12px; }
.order-item { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 18px 22px; }
.order-item .t { font-weight: 700; color: var(--ink); }
.order-item .s { color: var(--muted); font-size: 14px; }
.order-item .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.empty { text-align: center; padding: 52px 24px; }
.empty .ico { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--gold-600); }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 9px 16px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; color: var(--ink); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #c9d4d6; border-radius: var(--radius); padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 68, 81, .12); outline: none; }
input[disabled], select[disabled], textarea[disabled] { background: #f2f5f5; color: #6b7c80; }
.help { font-size: 13px; color: var(--muted); }
.err { font-size: 13px; color: var(--danger); font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: #fffafa; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 74px; }
.input-suffix span { position: absolute; right: 12px; color: var(--muted); font-size: 14px; pointer-events: none; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.span2 { grid-column: span 2; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; margin: 6px 0 12px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-error { background: var(--danger-50); color: var(--danger); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.note { background: var(--primary-50); border-left: 3px solid var(--primary); color: #1f4650; padding: 12px 14px; font-size: 14px; margin: 8px 0 14px; }
.note.warn { background: var(--amber-50); border-left-color: var(--amber); color: #6b3b0c; }
.note.ok { background: var(--gold-50); border-left-color: var(--gold); color: #5b4419; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* Auswahlkarten */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.choices.c2 { grid-template-columns: repeat(2, 1fr); }
.choices.c4 { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; display: block; border: 1.5px solid #c9d4d6; padding: 15px 16px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--primary); }
.choice.on { border-color: var(--primary); background: var(--primary-50); box-shadow: inset 0 0 0 1px var(--primary); }
.choice .ct { font-weight: 700; display: block; color: var(--ink); }
.choice .cd { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.choice .cp { font-family: var(--serif); font-size: 20px; color: var(--primary); display: block; margin-top: 8px; }

/* Antrag */
.stepper { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin-bottom: 24px; border: 1px solid var(--line); background: #fff; }
.stepper button { border: 0; background: #fff; border-right: 1px solid var(--line); padding: 12px 10px; font-size: 14px !important; text-align: left; font: inherit; cursor: pointer; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; min-width: 0; }
.stepper button:last-child { border-right: 0; }
.stepper button .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef1f2; color: #4d5f63; font-size: 13px; }
.stepper button .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper button.cur { color: var(--primary); background: var(--primary-50); box-shadow: inset 0 -3px 0 var(--gold); }
.stepper button.cur .n { background: var(--primary); color: #fff; }
.stepper button.done .n { background: var(--gold); color: var(--primary-700); }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wizard-nav .right { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.summary-card { border-top: 3px solid var(--gold); }
.summary-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.summary-card .row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 17px; color: var(--ink); }
.summary-card .save { color: var(--gold-text); font-weight: 600; }
.progress { height: 6px; background: #eef1f2; margin-top: 8px; overflow: hidden; }
.progress > div { height: 100%; background: var(--gold); }

/* Upload */
.upload { border: 1.5px dashed #bccacd; padding: 16px; margin-bottom: 14px; background: #fbfcfc; transition: border-color .15s, background .15s; }
.upload.drag { border-color: var(--primary); background: var(--primary-50); }
.upload.has-error { border-color: #f0aaa2; background: #fffafa; }
.upload.solid { border-style: solid; background: #fff; }
.upload-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.upload-head strong { font-size: 15px; color: var(--ink); }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 8px 10px; font-size: 14px; }
.ficon { flex: none; width: 36px; height: 36px; background: var(--gold-50); color: var(--gold-text); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; }
.fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize { color: var(--muted); font-size: 13px; white-space: nowrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.online-card { border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 18px; margin-bottom: 14px; background: #fff; }
.online-card h3 { margin: 0 0 4px; font-size: 20px; }
.linklist { list-style: none; padding: 0; margin: 10px 0 12px; display: grid; gap: 6px; }
.linklist a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--primary); }
.linklist a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #eef1f2; font-size: 14.5px; }
.checklist li:last-child { border-bottom: 0; }
.checklist .ok, .checklist .no { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.checklist .ok { background: var(--gold); color: var(--primary-700); }
.checklist .no { background: var(--amber-50); color: var(--amber); }
.checklist .d { color: var(--muted); font-size: 13px; text-align: right; }
.tag-online { font-size: 11px; font-weight: 700; color: var(--gold-text); background: var(--gold-50); padding: 2px 6px; margin-left: 6px; font-family: var(--sans); letter-spacing: 0; text-transform: none; }

/* Auftrag */
.ready { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--primary); color: #fff; border-left: 6px solid var(--gold); padding: 24px 26px; margin-bottom: 18px; }
.ready h2 { margin: 0 0 4px; font-size: 26px; color: #fff; }
.ready p { margin: 0; color: rgba(255, 255, 255, .85); }
.ready .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #eef1f2; color: #8a9a9e; position: relative; z-index: 1; }
.timeline .on .b { background: var(--gold); color: var(--primary-700); }
.timeline .cur .b { background: var(--primary); color: #fff; }
.timeline .tt { font-weight: 600; color: var(--ink); }
.timeline .td { color: var(--muted); font-size: 14px; }

/* Gutachter */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 24px; border: 1px solid var(--line); background: #fff; }
.kpi { padding: 20px 22px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .v { font-family: var(--serif); font-size: 34px; color: var(--primary); line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 8px 15px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.filters button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-text); background: #fbfaf7; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid #eef1f2; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.calc { display: grid; gap: 2px; font-size: 14.5px; }
.calc .r { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eef1f2; }
.calc .r span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc .r.muted span:last-child { color: var(--muted); font-weight: 500; }
.result { background: var(--gold-50); border-left: 4px solid var(--gold); padding: 14px 16px; margin: 14px 0; }
.result .l { font-size: 13px; font-weight: 700; color: var(--primary); }
.result .v { font-family: var(--serif); font-size: 32px; color: var(--primary); line-height: 1.15; }
.result .w { font-size: 12.5px; color: var(--muted); font-style: italic; }
.issues { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: 13.5px; }
.issues li { background: var(--amber-50); color: #6b3b0c; padding: 7px 10px; }
.issues li.ok { background: var(--ok-50); color: #1d5a40; }
.btn-stack { display: grid; gap: 8px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.zu-row { display: grid; grid-template-columns: 1fr 190px; gap: 0 12px; }

/* Anmeldung */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; max-width: 1060px; margin: 0 auto; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-brand img { height: 54px; width: auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { border: 0; background: #fff; font: inherit; font-weight: 600; color: var(--muted); padding: 12px; cursor: pointer; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button.on { background: var(--primary); color: #fff; }
.demo-box { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 20px; margin-top: 16px; }
.demo-box code { background: var(--bg-alt); padding: 2px 6px; font-size: 13px; }
.demo-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f2; font-size: 14px; }
.demo-acc:last-child { border-bottom: 0; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 10px; font-size: 15px; }
.benefits li::before { content: "✓"; color: var(--gold-600); font-weight: 800; }

/* Zahlung */
.pay-methods { display: grid; gap: 10px; margin: 8px 0 18px; }
.pay-methods .choice { display: flex; align-items: center; gap: 14px; }
.pm-logo { width: 56px; height: 34px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; }
.testmode { display: inline-flex; gap: 6px; align-items: center; background: var(--amber-50); color: var(--amber); font-size: 12.5px; font-weight: 700; padding: 4px 10px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--gold-100); border-top-color: var(--primary); margin: 6px auto 16px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-ico { width: 66px; height: 66px; border-radius: 50%; background: var(--gold); color: var(--primary-700); display: grid; place-items: center; margin: 0 auto 16px; font-size: 30px; font-weight: 800; }

/* Dialoge & Hinweise */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 32, 38, .55); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal { background: #fff; border-top: 4px solid var(--gold); max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 760px; }
.modal h2 { font-size: 26px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.modal .legal-text h3 { font-size: 18px; margin: 16px 0 4px; }
.modal .legal-text p { font-size: 14px; color: var(--text); margin: 0 0 8px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--primary-700); color: #fff; padding: 12px 18px; font-size: 14.5px; font-weight: 600; z-index: 200; transition: all .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: 92vw; border-left: 4px solid var(--gold); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #13513f; }
.toast.err { background: #8f1d14; border-left-color: #f2c4bf; }


/* KI-Bewertung */
.ki-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; }
.ki-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid #eef1f2; }
.ki-steps li:last-child { border-bottom: 0; }
.ki-steps .b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #eef1f2; color: #8a9a9e; }
.ki-steps .fertig .b { background: var(--gold); color: var(--primary-700); }
.ki-steps .laeuft .b { background: var(--primary-50); }
.ki-steps .fehler .b { background: var(--amber-50); color: var(--amber); }
.ki-steps .wartet .b { background: var(--primary-50); color: var(--primary); }
.ki-steps .tt { font-weight: 600; color: var(--ink); }
.ki-steps .laeuft .tt { color: var(--primary); }
.ki-steps .offen .tt { color: var(--muted); font-weight: 500; }
.ki-steps .td { color: var(--muted); font-size: 13.5px; }
.mini-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-100); border-top-color: var(--primary); animation: spin .8s linear infinite; display: block; }
.ki-live { border-top: 3px solid var(--gold); }
.flow-list { margin: 0 0 6px; padding-left: 20px; color: var(--text); }
.flow-list li { margin-bottom: 4px; }
.rueckfrage { border-top: 3px solid var(--amber); }
.rf-item { padding: 12px 0; border-top: 1px solid var(--line); }
.rf-item strong { display: block; margin-bottom: 4px; color: var(--ink); }
.rf-list, .log-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 14px; }
.log-list li { border-bottom: 1px solid #eef1f2; padding-bottom: 6px; }
.bauteile-wrap { margin-bottom: 4px; }
table.bauteile td { padding: 6px 10px; }
table.bauteile .field.cell { margin: 0; }
table.bauteile input, table.bauteile select { padding: 7px 9px; font-size: 14px; }

/* Responsiv */
@media (max-width: 1280px) { .user-pill .uname { display: none; } .nav button { padding: 8px 10px; font-size: 15px; } }
@media (max-width: 1180px) { .brand-logo { height: 52px; } .brand-sub { font-size: 16px; letter-spacing: .16em; } }
@media (max-width: 1020px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 2px; }
  .nav { order: 3; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; margin: 0 -10px; padding-bottom: 6px; }
  .hero-grid, .two-col, .auth-grid, .about-grid { grid-template-columns: 1fr; }
  .grid-4, .steps-row, .kpis, .band-grid { grid-template-columns: repeat(2, 1fr); }
  .band-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .plans, .grid-3c { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(3, 1fr); }
  .sticky { position: static; }
  .incl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .topbar-in { gap: 10px; }
  .brand-logo { height: 46px; }
  .brand-sep, .brand-sub { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions [data-action=start] { display: none; }
  .hero { padding: 48px 0 64px; }
  .about-text, .cta-band { padding: 32px 22px; }
  .docs-grid, .footer-grid, .g2, .g3, .g4, .choices, .choices.c4, .about-panel { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .grid-4, .steps-row, .kpis, .incl, .band-grid { grid-template-columns: 1fr; }
  .band-item { border-left: 0; padding-left: 0; }
  .order-item { grid-template-columns: 1fr; }
  .order-item .acts { justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .zu-row { grid-template-columns: 1fr; }
  .panel-item { border-right: 0; }
}
@media print {
  .topbar, .footer, .btn, .storage-note { display: none !important; }
  body { background: #fff; }
}

/* 3.3: Fotoprotokoll, Datenquellen, Backtest – nur Farben der Havora-Palette bzw. bestehende Bausteine (.upload, .chip) */
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.foto-card { border: 1.5px dashed #bccacd; background: #fbfcfc; padding: 12px; transition: border-color .15s, background .15s; }
.foto-card.ok { border-style: solid; background: #fff; }
.foto-card.has-error { border-color: #f0aaa2; background: #fffafa; }
.foto-card.drag { border-color: var(--primary); background: var(--primary-50); }
.foto-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.foto-head strong { font-size: 14px; color: var(--ink); }
.foto-ok { color: var(--ok); font-weight: 700; font-size: 13px; white-space: nowrap; }
.foto-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.foto-card .files { margin-top: 8px; }
.beleg-cell { white-space: nowrap; }
details.dq { border: 1px solid var(--line); margin: 0 0 8px; background: var(--card); }
details.dq > summary { cursor: pointer; padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
details.dq > summary::-webkit-details-marker { display: none; }
details.dq > summary::before { content: '▸'; color: var(--muted); }
details.dq[open] > summary::before { content: '▾'; }
details.dq .dq-name { font-weight: 600; color: var(--ink); flex: 1 1 260px; }
details.dq .dq-body { padding: 4px 14px 12px; border-top: 1px solid var(--line); }
.dq-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.dq-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dq-badge.on { background: var(--ok-50); color: var(--ok); }
.dq-badge.off { background: #eef1f2; color: #4d5f63; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--amber); }
pre.pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--bg-alt); padding: 10px; max-height: 260px; overflow: auto; border: 1px solid var(--line); }
.test-bild { max-width: 100%; height: auto; display: block; margin: 8px 0; border: 1px solid var(--line); }
/* 3.3: Handy – keine Zoom-Sprünge in Eingabefeldern (iPhone), Bauteile als Karten, grössere Schaltflächen */
@media (max-width: 760px) {
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], select, textarea,
  table.bauteile input, table.bauteile select { font-size: 16px; }
  .btn-sm { padding: 10px 14px; }
  .modal { padding: 22px 18px; }
  .wizard-nav .right { flex-wrap: wrap; }
  .foto-btns .btn { flex: 1 1 auto; }
  .tbl-wrap.bauteile-wrap { overflow-x: visible; border: 0; background: transparent; }
  table.bauteile, table.bauteile tbody { display: block; width: 100%; }
  table.bauteile thead { display: none; }
  table.bauteile tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); background: #fff; }
  table.bauteile td { display: block; padding: 0; border: 0; }
  table.bauteile td:first-child { grid-column: 1 / -1; font-weight: 700; color: var(--ink); }
  table.bauteile td.beleg-cell { grid-column: 1 / -1; white-space: normal; }
  table.bauteile td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-text); margin-bottom: 3px; }
}
