/* BOI Fachrechner – Zugangsseite & Server-Seiten (Freigabe, Link abgelaufen)
 * Markenfarben: Navy #0D1F33 / #1A3A5C, Gold #C9A84C / #A07832 */
:root {
  --navy: #0D1F33; --navy-2: #1A3A5C; --navy-3: #24476d;
  --gold: #C9A84C; --gold-d: #A07832;
  --ink: #0D1F33; --muted: #4A6A8C; --line: #dfe5ec; --bg: #f5f7fa; --white: #fff;
  --red: #c62828; --green: #2e7d4f;
  --radius: 14px; --shadow: 0 1px 2px rgba(13,31,51,.06), 0 12px 40px rgba(13,31,51,.12);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-d); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo { display: inline-grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 15px; letter-spacing: -.5px; padding: 6px 9px; border-radius: 6px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 14px; letter-spacing: .08em; }
.brand-text small { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .7; }

/* ---------- Kopfzeile ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(13,31,51,.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding: 6px 0; }
.menu a:hover { color: #fff; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .25s ease; }
.menu a:hover::after { right: 0; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: rgba(255,255,255,.7); padding: 6px 11px; font: 600 12.5px Inter, sans-serif; cursor: pointer; }
.lang button + button { border-left: 1px solid rgba(255,255,255,.18); }
.lang button.on { background: var(--gold); color: var(--navy); }
.lang button:hover:not(.on) { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 760px) { .menu { display: none; } .lang { margin-left: auto; } .brand-text small { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: 60px 0 80px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(201,168,76,.20), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(36,71,109,.9), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
/* dezentes Seismogramm im Hintergrund */
.hero::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120' viewBox='0 0 600 120'%3E%3Cpath d='M0 60h120l10-18 12 40 14-58 14 70 12-46 10 22 8-10h390' fill='none' stroke='%23C9A84C' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 600px 120px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 470px); gap: 48px; align-items: start; }
@media (max-width: 980px) { .hero { padding: 34px 0 48px; } .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201,168,76,0); } }
.eyebrow.dark { color: var(--gold-d); }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800; max-width: 16ch; }
.hero-lead { font-size: 17px; color: rgba(255,255,255,.78); max-width: 56ch; margin: 0 0 26px; }
.kpis { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 36px; padding: 0; margin: 0 0 30px; }
.kpis li { display: flex; flex-direction: column; border-left: 2px solid var(--gold); padding-left: 12px; }
.kpis b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.kpis span { font-size: 12.5px; color: rgba(255,255,255,.65); }

/* ---------- Türkei-Karte (Erdbeben / Klima) ---------- */
.mapstage { margin: 0; padding: 16px 16px 14px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.map-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.25); margin-bottom: 10px; }
.map-switch button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: rgba(255,255,255,.72); padding: 7px 13px; border-radius: 8px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.map-switch button[aria-selected=true] { background: rgba(255,255,255,.95); color: var(--navy); }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.sw-s { background: linear-gradient(90deg, #66bb6a, #fdd835, #ef5350, #7f0000); }
.sw-t { background: linear-gradient(90deg, #e6a046, #82c4be, #4a8ace, #2c52aa); }
.maps { position: relative; aspect-ratio: 1435 / 614; }
.maps img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .9s ease, transform 1.2s ease; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.mapstage[data-view=seismic] .m-thermal, .mapstage[data-view=thermal] .m-seismic { opacity: 0; transform: scale(.985); }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.96); color: var(--navy); font-size: 12.5px; font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px; box-shadow: 0 8px 24px rgba(13,31,51,.3); white-space: nowrap; animation: float 6s ease-in-out infinite; z-index: 2; }
.chip i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 12px; font-weight: 800; }
.chip.c1 { left: 3%; bottom: 14%; }
.chip.c2 { right: 2%; top: 4%; animation-delay: -2s; }
.chip.c3 { left: 40%; bottom: -4%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (max-width: 600px) { .chip { font-size: 11px; } .chip.c3 { display: none; } .mapstage { padding: 12px; } }
figcaption { margin-top: 14px; min-height: 22px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.mapstage[data-view=seismic] .l-thermal, .mapstage[data-view=thermal] .l-seismic { display: none; }
.bar-s { display: inline-block; width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #66bb6a 0%, #c0ca33 14%, #fdd835 28%, #ff9800 42%, #ef5350 56%, #c62828 75%, #7f0000 100%); }
.legend small { color: rgba(255,255,255,.55); }
.z { display: inline-grid; place-items: center; min-width: 22px; padding: 0 4px; height: 22px; border-radius: 5px; color: #0D1F33; font-size: 12px; }
.z1 { background: #e07a3f; color: #fff; } .z2 { background: #f2c14e; } .z3 { background: #8fbf7f; } .z4 { background: #5b8fc7; color: #fff; }
@media (prefers-reduced-motion: reduce) { .chip, .eyebrow .dot { animation: none; } .maps img { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Formular-Karte ---------- */
.card { background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 28px 28px 24px; position: sticky; top: 88px; border-top: 4px solid var(--gold); }
@media (max-width: 980px) { .form-card { position: static; } }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }
.form-card h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.form-card .sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
fieldset.roles { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
fieldset.roles legend { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 7px; padding: 0; }
fieldset.roles label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 4px; text-align: center; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.2; min-height: 74px; transition: border-color .15s, background .15s, transform .15s; }
fieldset.roles label svg { width: 22px; height: 22px; color: var(--muted); }
fieldset.roles label:hover { border-color: var(--gold); transform: translateY(-1px); }
fieldset.roles input { position: absolute; opacity: 0; pointer-events: none; }
fieldset.roles label:has(input:checked) { border-color: var(--gold); background: #fbf6e8; color: var(--gold-d); box-shadow: inset 0 0 0 1px var(--gold); }
fieldset.roles label:has(input:checked) svg { color: var(--gold-d); }
fieldset.roles label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 420px) { fieldset.roles { grid-template-columns: 1fr 1fr; } }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font: 15px Inter, "Segoe UI", sans-serif; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #a5b3c2; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.2); }
input[aria-invalid=true] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(198,40,40,.12); }
.hint { margin: -2px 0 0; font-size: 13px; color: var(--green); background: #eaf5ee; padding: 8px 11px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 12px; font-size: 12px; color: var(--muted); line-height: 1.5; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--gold-d); }
.err { color: var(--red); font-size: 13.5px; margin: 6px 0 10px; font-weight: 500; }
button { font: inherit; cursor: pointer; }
button.primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, var(--gold), var(--gold-d)); color: var(--navy); border: 0; border-radius: 10px; padding: 14px; font-weight: 700; font-size: 15.5px; box-shadow: 0 6px 18px rgba(160,120,50,.35); transition: transform .15s, box-shadow .15s; }
button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(160,120,50,.45); }
button.primary:disabled { opacity: .6; cursor: wait; transform: none; }
button.primary svg { transition: transform .2s; } button.primary:hover svg { transform: translateX(3px); }
button.ghost, a.btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 1.5px solid var(--line); padding: 10px 18px; text-decoration: none; border-radius: 10px; font-weight: 600; }
button.ghost:hover, a.btn:hover { border-color: var(--gold); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.secure svg { width: 15px; height: 15px; }
.done { text-align: center; padding: 26px 0 8px; }
.done .icon { width: 72px; height: 72px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: #fbf6e8; font-size: 34px; }
.done p { color: var(--muted); }

/* ---------- Funktionen ---------- */
.features { padding: 80px 0; background: var(--bg); }
.section-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.015em; margin: 0 0 32px; max-width: 24ch; line-height: 1.15; }
.section-title.light { color: #fff; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } .features { padding: 52px 0; } }
.feat-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--gold); margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; }
.feat-grid h3 { margin: 0 0 8px; font-size: 18px; }
.feat-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Ablauf ---------- */
.steps { padding: 80px 0; color: #fff; background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
@media (max-width: 860px) { .steps { padding: 52px 0; } }
.step-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .step-list { grid-template-columns: 1fr; } }
.step-list li { position: relative; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step-list .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; margin-bottom: 14px; }
.step-list h3 { margin: 0 0 6px; font-size: 17px; }
.step-list p { margin: 0; color: rgba(255,255,255,.72); font-size: 14.5px; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--navy); font-weight: 700; padding: 13px 22px; border-radius: 10px; text-decoration: none; }
.cta::after { content: "↑"; }
.cta:hover { background: #d6b65c; }

/* ---------- Fußzeile ---------- */
.site-foot { background: #08162a; color: rgba(255,255,255,.65); padding: 28px 0; font-size: 13px; }
.foot-grid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-grid .brand { color: #fff; }
.foot-grid p { margin: 0; flex: 1; min-width: 240px; }
.foot-grid a { color: var(--gold); text-decoration: none; }

/* ---------- Server-Seiten (Freigabe / Link abgelaufen) ---------- */
body:not(.landing) { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%) fixed; min-height: 100vh; }
.box { max-width: 560px; margin: 56px auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; border-top: 4px solid var(--gold); }
@media (max-width: 620px) { .box { margin: 0; border-radius: 0; min-height: 100vh; padding: 22px 18px; } }
.box > .brand { margin-bottom: 18px; }
.box > .brand .logo { background: var(--navy); color: var(--gold); }
.box > .brand span:last-child { font-weight: 700; letter-spacing: .06em; font-size: 13.5px; }
.box h1 { font-size: 22px; margin: 0 0 10px; }
.box p { color: var(--muted); }
table.kv { border-collapse: collapse; width: 100%; margin: 10px 0 18px; font-size: 14px; }
table.kv td { border-bottom: 1px solid var(--line); padding: 9px 6px; }
table.kv td:first-child { color: var(--muted); width: 38%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions button.primary { width: auto; padding: 12px 20px; }
.warn { background: #fff8e6; border-left: 3px solid #ef8f1f; padding: 9px 12px; font-size: 13.5px; color: #6a5420 !important; border-radius: 0 8px 8px 0; }
