/* www.kb-abels.de – edle Gestaltung: Navy, Logo-Blau, Goldakzent, Elfenbein */
:root {
  --blue: #3165b0; --blue-dark: #1d3f73; --navy: #0d2240; --navy-2: #13305a; --ink: #18243a; --muted: #5a6880;
  --gold: #b8955a; --gold-soft: #e9dcc4; --ivory: #faf8f4; --line: #e4e0d8; --white: #fff;
  --ok: #1f7a4d; --err: #a8261b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px; --shadow: 0 1px 2px rgba(13,34,64,.04), 0 18px 40px -18px rgba(13,34,64,.18);
  font-size: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 2px; font-weight: 600; letter-spacing: .04em; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: .9rem; font-family: var(--sans); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--navy); color: #fff; } .btn-primary:hover { background: var(--blue-dark); }
.btn-gold { background: var(--gold); color: #fff; } .btn-gold:hover { background: #a07f48; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; } .btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; } .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: var(--navy); }
.btn-wide { width: 100%; padding: 18px; font-size: .95rem; }
.btnrow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Kopf */
.topbar { background: var(--navy); color: #c9d3e3; font-size: .78rem; letter-spacing: .04em; }
.topbar .wrap { display: flex; gap: 28px; justify-content: flex-end; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; }
@media (max-width: 760px) { .topbar span.hide-s { display: none; } .topbar .wrap { justify-content: center; } }
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 88px; }
.brand img { display: block; width: 200px; height: auto; }
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-color: var(--gold); }
.head-cta { display: flex; align-items: center; gap: 18px; }
@media (max-width: 1180px) { .main-nav { display: none; } .head-cta { margin-left: auto; } }
@media (max-width: 560px) { .brand img { width: 150px; } .head-cta .btn { padding: 12px 16px; } }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 85% 20%, rgba(49,101,176,.55), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 560px; height: 560px; border: 1px solid rgba(184,149,90,.35); border-radius: 50%; box-shadow: 0 0 0 60px rgba(184,149,90,.05), 0 0 0 140px rgba(184,149,90,.03); }
.hero .wrap { position: relative; z-index: 1; padding: 110px 0 120px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); margin: 0 0 24px; max-width: 820px; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p.lead-w { font-size: 1.12rem; max-width: 600px; color: #cfd9ea; margin: 0 0 40px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; }
.trust div { padding-right: 40px; margin-right: 40px; border-right: 1px solid rgba(255,255,255,.14); }
.trust div:last-child { border: 0; }
.trust strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: #fff; }
.trust span { font-size: .8rem; color: #aebcd3; letter-spacing: .04em; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; gap: 20px; } .trust div { border: 0; margin: 0; padding: 0; } }

/* Abschnitte */
.section { padding: 110px 0; } .section.soft { background: var(--ivory); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.lead { color: var(--muted); max-width: 640px; margin: 0; font-size: 1.05rem; }
@media (max-width: 860px) { .section { padding: 76px 0; } .section-head { grid-template-columns: 1fr; gap: 14px; } }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 32px; transition: background .25s; }
.card:hover { background: var(--ivory); }
.card h3 { margin: 26px 0 10px; font-size: 1.35rem; } .card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .ico { width: 48px; height: 48px; color: var(--gold); }
.card .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: s; }
.step { border-top: 1px solid var(--navy); padding-top: 28px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 1.3rem; } .step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split h2 { margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 36px; }
.ticks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.photo { position: relative; min-height: 460px; background: linear-gradient(150deg, var(--navy-2), var(--navy)); display: grid; place-items: center; color: #b9c6db; text-align: center; padding: 24px; font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.photo::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(184,149,90,.45); pointer-events: none; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .photo { min-height: 300px; } }

.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--navy); margin: 0 0 18px; font-style: italic; }
.quote span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--serif); font-size: 1.2rem; cursor: pointer; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 300; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 720px; }

.cta-band { background: var(--navy); color: #fff; padding: 72px 64px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(184,149,90,.35); pointer-events: none; }
.cta-band h2 { color: #fff; margin: 0 0 8px; } .cta-band p { margin: 0; color: #c4cfe1; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-band { padding: 48px 28px; } }

/* Fuß */
.site-foot { background: #0a1a31; color: #aebad0; padding: 80px 0 28px; font-size: .92rem; }
.site-foot h2 { color: #fff; font-size: .78rem; font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 0 0 18px; }
.site-foot a:not(.btn) { color: #fff; text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.foot-logo { background: #fff; padding: 10px 14px; margin-bottom: 14px; }
.foot-legal { display: flex; gap: 24px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 22px; font-size: .8rem; }
.foot-legal span { margin-right: auto; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* Seitenkopf Unterseiten */
.page-head { background: var(--navy); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 120% at 90% 0%, rgba(49,101,176,.5), transparent 60%); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 0; }
.progress { list-style: none; display: flex; gap: 0; padding: 0; margin: 32px 0 0; counter-reset: p; max-width: 640px; }
.progress li { flex: 1; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8597b5; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.15); }
.progress li::before { counter-increment: p; content: counter(p) " · "; }
.progress li.on { color: #fff; border-color: var(--gold); }
.progress li.ok { color: var(--gold-soft); border-color: rgba(184,149,90,.6); }

/* Formular */
.form-page { padding: 0 0 110px; background: var(--ivory); }
.form-wrap { width: min(1040px, 100% - 32px); margin: 0 auto; position: relative; top: -24px; }
.form-card { background: #fff; padding: 56px 64px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.form-card .intro { color: var(--muted); margin: 0 0 40px; max-width: 720px; }
.fs { border: 0; padding: 40px 0; margin: 0; display: grid; grid-template-columns: 240px 1fr; gap: 48px; border-top: 1px solid var(--line); min-width: 0; }
.fs-head .num { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.fs-head legend { float: left; width: 100%; padding: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin: 0 0 8px; }
.fs-head p { clear: both; margin: 0; color: var(--muted); font-size: .88rem; }
.fs-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.sub { margin: 6px 0 -8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px 22px; }
.full { grid-column: 1 / -1; }
@media (max-width: 900px) { .fs { grid-template-columns: 1fr; gap: 20px; } .form-card { padding: 36px 28px; } }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } .form-card { padding: 28px 20px; } }
label.f { display: flex; flex-direction: column; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
label.f small { font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: -4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], select, textarea {
  font: inherit; font-size: 1rem; padding: 13px 15px; border: 1px solid #cfd5df; border-radius: 2px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: #9aa6b8; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(184,149,90,.25); }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.choices label { position: relative; border: 1px solid #cfd5df; padding: 18px 16px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s; background: #fff; }
.choices label:hover { border-color: var(--navy); }
.choices b { font-family: var(--serif); font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--navy); }
.choices small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.choices input { position: absolute; opacity: 0; }
.choices label::after { content: ""; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border: 1px solid #cfd5df; border-radius: 50%; }
.choices label:has(input:checked) { border-color: var(--navy); background: var(--ivory); box-shadow: inset 0 0 0 1px var(--navy); }
.choices label:has(input:checked)::after { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px #fff; }
.choices label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 760px) { .choices { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy); }
.hp { position: absolute; left: -5000px; }
.submit-row { border-top: 1px solid var(--line); padding-top: 36px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
@media (max-width: 760px) { .submit-row { grid-template-columns: 1fr; gap: 20px; } }
.alert { padding: 16px 20px; margin: 0 0 28px; border-left: 3px solid; font-size: .92rem; }
.alert p { margin: 0; } .alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.alert-err { background: #fbf0ee; color: var(--err); border-color: var(--err); }
.note { font-size: .82rem; color: var(--muted); margin: 0; }

.thanks, .verify { text-align: center; max-width: 680px; margin: 0 auto; }
.thanks h2, .verify h2 { font-size: 1.9rem; margin: 18px 0 14px; }
.thanks p, .verify p { color: var(--muted); }
.seal { width: 76px; height: 76px; margin: 0 auto; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); box-shadow: 0 0 0 8px var(--ivory); }
.seal svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.refno { font-size: .9rem; letter-spacing: .06em; } .refno strong { color: var(--navy); font-family: var(--serif); font-size: 1.3rem; letter-spacing: .04em; }
.code-field input { text-align: center; font-family: var(--serif); font-size: 2.2rem; letter-spacing: .5em; padding: 16px 10px 16px calc(10px + .5em); max-width: 340px; margin: 18px auto 22px; display: block; }

/* Rechtstexte */
.legal { padding: 72px 0 110px; } .legal .wrap { max-width: 860px; } .legal h1 { margin-top: 0; font-size: 2.6rem; } .legal h2 { margin-top: 40px; font-size: 1.45rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .92rem; } .legal td, .legal th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }

/* Inhalte aus dem Backend */
.hero.has-img::before { background: linear-gradient(100deg, rgba(13,34,64,.96) 0%, rgba(13,34,64,.85) 45%, rgba(13,34,64,.45) 100%), var(--hero-img) center/cover no-repeat; }
.cards-1 { grid-template-columns: 1fr; } .cards-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 980px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-2, .cards-3 { grid-template-columns: 1fr; } }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; margin: -8px 0 0; }
.card .price { margin-top: 16px; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); border-top: 1px solid var(--line); padding-top: 14px; }
.price-note { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
.photo.has-img { padding: 0; background: var(--navy); }
.photo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.legal-custom h2 { margin-top: 40px; font-size: 1.45rem; }
.brand { flex-shrink: 0; } .main-nav { flex-wrap: nowrap; gap: 24px; }

/* Kontaktseite */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.contact-grid .grid2 { margin-top: 8px; }
.contact-grid .submit-row { margin-top: 28px; grid-template-columns: 1fr 280px; }
.contact-side { background: var(--navy); color: #d5deec; padding: 36px 30px; position: relative; box-shadow: var(--shadow); }
.contact-side::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(184,149,90,.4); pointer-events: none; }
.contact-side h2 { color: #fff; font-size: 1.5rem; margin: 0 0 18px; }
.contact-side a:not(.btn) { color: #fff; text-decoration: none; }
.contact-side strong { color: #fff; }
.c-line span { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-side .btn { margin-top: 10px; position: relative; z-index: 1; width: 100%; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid .submit-row { grid-template-columns: 1fr; } }

/* Logo als Schriftzug (Arial Black) */
.logo-text { display: inline-flex; flex-direction: column; font-family: "Arial Black", "Arial Bold", Gadget, Arial, sans-serif; font-weight: 900; color: var(--logo-col, var(--blue)); line-height: 1.02; letter-spacing: -.01em; white-space: nowrap; }
.logo-text .lt1 { font-size: 22px; }
.logo-text .lt2 { font-size: 17px; align-self: flex-end; border-bottom: 3px solid currentColor; padding-bottom: 1px; margin-top: 2px; }
.logo-text.on-dark { color: #fff; margin-bottom: 18px; }
.brand { text-decoration: none; }
.foot-logo.is-own { background: transparent; padding: 0; width: 220px; height: auto; }
@media (max-width: 560px) { .logo-text .lt1 { font-size: 16px; } .logo-text .lt2 { font-size: 13px; } }

/* Logo-Größen aus dem Backend */
.brand img { width: var(--logo-w, 200px); max-width: 60vw; }
.logo-text .lt1 { font-size: var(--logo-fs, 22px); }
.logo-text .lt2 { font-size: calc(var(--logo-fs, 22px) * .77); border-bottom-width: max(2px, calc(var(--logo-fs, 22px) * .13)); }
.foot-logo { width: var(--logo-fw, 220px); max-width: 100%; height: auto; }
.foot-logo.is-own { width: var(--logo-fw, 220px); }
.logo-text.on-dark .lt1 { font-size: min(var(--logo-fs, 22px), 26px); }
.logo-text.on-dark .lt2 { font-size: calc(min(var(--logo-fs, 22px), 26px) * .77); }
@media (max-width: 560px) {
  .brand img { width: var(--logo-w-m, 150px); }
  .logo-text .lt1 { font-size: var(--logo-fs-m, 16px); }
  .logo-text .lt2 { font-size: calc(var(--logo-fs-m, 16px) * .77); }
}
.choices-3 { grid-template-columns: repeat(3, 1fr); }
.f .lbl { font-size: .84rem; font-weight: 600; color: var(--navy); }
@media (max-width: 760px) { .choices-3 { grid-template-columns: 1fr; } }
