:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --text: #13202a;
  --muted: #56646e;
  --line: #d9e1e7;
  --primary: #00668b;
  --primary-ink: #ffffff;
  --primary-soft: #dcf0fa;
  --accent: #f59e0b;
  --ok: #1f7a3a;
  --ok-soft: #e3f4e8;
  --warn: #8a5100;
  --warn-soft: #fff1dc;
  --err: #b3261e;
  --err-soft: #fde7e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 42, .06), 0 6px 20px rgba(16, 32, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Yu Gothic UI", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1418; --surface: #151d23; --surface-2: #1c262d; --text: #e3eaef; --muted: #a2b0ba; --line: #2b3740;
    --primary: #6cc4ec; --primary-ink: #002737; --primary-soft: #11394a; --ok: #8fd6a2; --ok-soft: #173424;
    --warn: #ffc27a; --warn-soft: #3a2a12; --err: #ffb4ab; --err-soft: #43201d;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--primary); }
img { max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------------- header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; color: #fff; font-size: 16px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.lang-select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .container { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  #lang-slot { margin-left: auto; }
}
.site-footer { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------------- buttons */
.btn { font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 11px 18px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.pay { font-size: 17px; padding: 14px 18px; }
.btn.large { font-size: 17px; padding: 14px 22px; }
.link-btn { align-self: flex-start; background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.link-btn.danger { color: var(--err); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 12px; cursor: pointer; font-size: 18px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------- wizard */
.wizard-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 28px 0; }
@media (max-width: 900px) { .wizard-layout { grid-template-columns: 1fr; } .side { display: none; } }
.side { position: sticky; top: 80px; align-self: start; }
.stepper { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: s; }
.stepper li { counter-increment: s; }
.stepper button { width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.stepper button::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; flex: none; }
.stepper li.done button { color: var(--text); }
.stepper li.done button::before { content: "✓"; background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.stepper li.current button { background: var(--primary-soft); color: var(--text); font-weight: 600; }
.stepper li.current button::before { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.stepper button:disabled { cursor: default; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.step-head h2 { margin: 2px 0 10px; font-size: 26px; line-height: 1.25; }
.step-kicker { color: var(--primary); font-weight: 600; font-size: 14px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding-bottom: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.card-title { margin: 0; font-size: 18px; }
.card > .de-hint { margin-top: -10px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-label { font-weight: 600; font-size: 14px; }
.req { color: var(--err); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 44px; }
input:focus, select:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); }
input.invalid { border-color: var(--err); background: var(--err-soft); }
.input-with-btn { display: flex; gap: 6px; position: relative; }
.input-with-btn input[type=text] { flex: 1; }
.native-date { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.de-hint { font-size: 12.5px; color: var(--muted); }
.help { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.strong { font-weight: 600; margin: 0; }
.big { font-size: 20px; font-weight: 700; margin: 4px 0; }
.question .q-text { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip:disabled { opacity: .45; }
.chip.small { padding: 4px 0; min-width: 48px; min-height: 40px; border-radius: 10px; font-size: 14px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.chip.small b { font-size: 11px; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.chip.month.basis { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip.month.plus { background: var(--accent); color: #2b1600; border-color: var(--accent); }
.toggle { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--surface-2); }
.toggle:first-of-type { border-top: 0; }
.toggle-text { display: flex; flex-direction: column; cursor: pointer; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
.yesno { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.income-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 12px; align-items: end; padding: 4px 0; border-top: 1px solid var(--surface-2); }
.income-period { font-weight: 600; padding-bottom: 12px; }
@media (max-width: 560px) { .income-row { grid-template-columns: 1fr 1fr; } .income-period { grid-column: 1 / -1; padding: 6px 0 0; } }

.info { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); font-size: 15px; }
.info.ok { background: var(--ok-soft); }
.info.warn { background: var(--warn-soft); }
.info.error { background: var(--err-soft); }
.info ul { margin: 0; padding-left: 18px; }
.info-icon { flex: none; }
.busy { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.review .review-head, .card .review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 14px; margin: 0; }
.review dt { color: var(--muted); font-size: 14px; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.checkout { border: 2px solid var(--primary); }
.order-box { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.order-line { display: flex; justify-content: space-between; font-size: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--primary); }
.preview-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: #52585c; }

dialog.modal { border: 0; border-radius: 16px; padding: 22px; max-width: 480px; width: calc(100% - 32px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.modal::backdrop { background: rgba(10, 20, 26, .45); }
dialog.modal h3 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------------- landing */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 36px; } }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.hero-card .doc { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface-2); font-size: 14px; }
.hero-card .doc .line { height: 8px; border-radius: 4px; background: var(--line); margin: 8px 0; }
.hero-card .badge { display: inline-block; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.langs-inline { color: var(--muted); font-size: 14px; margin-top: 14px; }
.section { padding: 40px 0; }
.section h2 { font-size: 30px; margin: 0 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.price-box { background: var(--surface); border: 2px solid var(--primary); border-radius: 20px; padding: 26px; display: grid; gap: 8px; max-width: 560px; }
.price-box .amount { font-size: 40px; font-weight: 800; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); margin: 10px 0 0; }
.page-narrow { max-width: 720px; margin: 0 auto; padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; }

/* ---- Nachweise checklist + citizenship */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.4; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.badge.req { background: var(--err); color: var(--surface); }
.badge.opt { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge-line { margin: 6px 0 0; font-size: .9rem; color: var(--err); }
.small { font-size: .88rem; }
.citizenship .muted.small { margin: 6px 0 0; }
.att-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.att-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.att-item.required { border-left: 4px solid var(--err); }
.att-item.missing { background: var(--err-soft); }
.att-item input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }
.att-text { display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.att-name { font-weight: 600; overflow-wrap: anywhere; }
.att-meta { font-size: .85rem; color: var(--err); }
.att-item:not(.required) .att-meta { color: var(--muted); }
.badge.auto { background: var(--ok); color: var(--surface); }

/* ---- Partner links ("Anzeige") */
.partners { margin: 18px 0 8px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px; background: var(--surface); }
.partners-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ad-tag { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
.partners-title { font-weight: 600; font-size: .95rem; }
.partner-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.partners.compact .partner-list { grid-template-columns: 1fr; }
.partner-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
.partner-card:hover, .partner-card:focus-visible { border-color: var(--primary); }
.partner-icon { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.partner-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.partner-title { font-weight: 700; }
.partner-text { font-size: .85rem; color: var(--muted); }
.partner-cta { font-size: .85rem; font-weight: 600; color: var(--primary); margin-top: 2px; }
.partner-note { font-size: .72rem; color: var(--muted); margin: 8px 0 0; }
.side .partners { margin-top: 22px; padding: 10px; }
.side .partner-text { display: none; }
.mobile-only { display: none; }
@media (max-width: 900px) { .mobile-only { display: block; } }

/* ---- Wünsche & Feedback */
.feedback-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); resize: vertical; box-sizing: border-box; }
.feedback-form select, .feedback-form input[type=email] { width: 100%; box-sizing: border-box; }
.feedback-form .btn { margin-top: 6px; }
.feedback-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.fb-status { margin-top: 10px; }
.feedback-dialog { width: min(560px, calc(100vw - 32px)); }
.fb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fb-head h3 { margin: 0; }
.fb-side { display: block; margin-top: 8px; }
.feedback-dialog { max-width: 560px; }

/* ---- Guide pages (Ratgeber) */
.guide { max-width: 820px; }
.guide h1 { margin: 12px 0 8px; line-height: 1.25; }
.guide .lead { font-size: 1.08rem; }
.guide-sec { margin: 14px 0; }
.guide-sec h2 { margin: 0 0 8px; font-size: 1.2rem; }
.guide-sec ul { margin: 6px 0; padding-left: 1.2em; }
.guide-sec li { margin: 4px 0; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 18px 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.crumbs a { color: var(--muted); }
.guide-langs { font-size: .85rem; color: var(--muted); }
.guide-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.guide-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.guide-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.guide-link:hover { border-color: var(--primary); }
.guide-sec p { margin: 8px 0; }
.subq { margin: 4px 0 8px 14px; padding-left: 12px; border-left: 3px solid var(--line, #d9dee7); }
