/* Baukörper NI – gemeinsames Design (keine externen Schriften) */
:root {
  --ink: #0b1424; --ink-2: #13223a; --text: #1a2333; --muted: #667085; --faint: #98a2b3;
  --line: #e4e7ec; --bg: #f4f6f9; --card: #fff;
  --accent: #d2442f; --accent-2: #a92c1b; --accent-soft: #fdeeea;
  --blue: #2563eb; --ok: #067647;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .06);
  --font: "Inter", "Segoe UI Variable Text", "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(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.45; }
a { color: var(--accent-2); }

/* ---------- Kopfzeile ---------- */
header.site { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bar { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.brand .bname { color: #fff; }
.brand .bname span { color: #ff8a73; font-weight: 800; margin-left: 4px; }
.brand .by { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .55); padding-left: 10px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .18); line-height: 1.1; }
@media (max-width: 520px) {
  .brand { gap: 8px; font-size: 16px; }
  .brand .by { font-size: 10.5px; padding-left: 7px; margin-left: 0; white-space: nowrap; }
  .mark { width: 26px; height: 26px; }
  nav { font-size: 13px; }
  nav a { padding: 6px 10px; }
}
.mark { width: 30px; height: 30px; border-radius: 9px; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3Cpath d='M10 19.5v-5h4v5'/%3E%3C/svg%3E") center/18px no-repeat,
    linear-gradient(135deg, #ee6a50, var(--accent-2));
  box-shadow: 0 4px 14px rgba(210, 68, 47, .45); }
nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
nav a { color: rgba(255, 255, 255, .7); text-decoration: none; padding: 7px 13px; border-radius: 999px; font-weight: 550; transition: background .15s, color .15s; }
nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
nav a.on { color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------- Hero + Suche ---------- */
.hero { color: #fff; padding: 14px 20px 50px;
  background:
    radial-gradient(800px 260px at 90% -30%, rgba(238, 106, 80, .22), transparent 62%),
    linear-gradient(180deg, var(--ink-2), var(--ink)); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 650; color: rgba(255, 179, 163, .8); }
.eyebrow::before { content: ""; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.015em; line-height: 1.2; margin: 4px 0 0; font-weight: 650; }
.hero h1 br { display: none; }
.hero p { display: none; }

.searchwrap { max-width: 1320px; margin: -38px auto 0; padding: 0 20px; position: relative; z-index: 5; }
.search { background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(11, 20, 36, .16), 0 2px 6px rgba(11, 20, 36, .06); padding: 12px; }
.search form { display: flex; gap: 10px; flex-wrap: wrap; }
.field { flex: 1 1 380px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: #f3f5f8; border: 1px solid transparent; transition: .15s; }
.field:focus-within { background: #fff; border-color: rgba(210, 68, 47, .45); box-shadow: 0 0 0 4px rgba(210, 68, 47, .12); }
.field svg { flex: none; color: var(--faint); }
.field input { border: 0; background: transparent; font: inherit; font-size: 17px; padding: 15px 0; flex: 1; outline: none; color: var(--text); min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding: 0 2px; font-size: 12.5px; color: #344054; }
.opts > label { display: inline-flex; gap: 5px; align-items: center; background: #f6f7f9; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; cursor: default; flex: none; }
.opts > label:has(input[type=checkbox]) { cursor: pointer; }
@media (min-width: 1000px) {
  .opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
}
.opts input[type=number] { width: 64px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.opts select { padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.opts input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }

/* ---------- Buttons ---------- */
button, .btn { font: inherit; font-size: 15px; font-weight: 650; padding: 12px 20px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #e0553e, var(--accent)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px rgba(210, 68, 47, .28);
  display: inline-flex; align-items: center; gap: 8px; transition: transform .08s, box-shadow .15s, background .15s; }
button:hover, .btn:hover { background: linear-gradient(180deg, #d84b34, var(--accent-2)); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: default; transform: none; }
button.sec, .btn.sec { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); font-weight: 600; padding: 9px 14px; font-size: 14px; }
button.sec:hover, .btn.sec:hover { background: #f8f9fb; border-color: #d0d5dd; }
button.sec.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Inhalt ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 0 20px 30px; }
main > #result > :first-child, main > #result > .card:first-child { margin-top: 14px; }
/* Statuszeile dezent unten in der Suchbox */
#status { display: flex; align-items: center; gap: 8px; margin: 8px 4px 0; padding: 0; font-size: 12.5px; color: var(--muted); min-height: 0; }
#status:empty { display: none; }
#status.busy::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #f3c3b9; border-top-color: var(--accent); animation: spin .8s linear infinite; }
#status.ok { color: var(--ok); }
#status.ok::before { content: "✓"; font-weight: 800; }
#status.err { color: #b42318; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-top: 18px; }
.card h2 { font-size: 17px; letter-spacing: -.015em; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.card h2 .tag { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #f2f4f7; border-radius: 999px; padding: 3px 9px; }
.card h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, #ee6a50, var(--accent-2)); }
.actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.note { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: #475467; font-size: 13px; }
.note::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/20px Georgia, serif; text-align: center; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: linear-gradient(180deg, #fff, #fafbfc); min-width: 0; }
.kpi .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.kpi .v { font-size: 23px; font-weight: 750; letter-spacing: -.02em; margin-top: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v.txt { font-size: 16px; font-weight: 650; white-space: normal; line-height: 1.3; letter-spacing: -.01em; }
.kpi .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi.main { background: linear-gradient(135deg, #e85a41, var(--accent-2)); border: 0; color: #fff; box-shadow: 0 10px 26px rgba(169, 44, 27, .3); }
.kpi.main .k, .kpi.main .v small { color: rgba(255, 255, 255, .82); }
.kpi.main .v { font-size: 30px; }

/* Rechtstexte */
.legal { max-width: 900px; line-height: 1.65; font-size: 15px; padding-top: 34px; }
.legal h1 { font-size: 34px; letter-spacing: -.03em; margin: 0; }
.legal .lead { color: var(--muted); margin: 6px 0 4px; }
.legal h2 { font-size: 16px; margin: 18px 0 6px; }
.legal .card h2:first-child { margin-top: 0; }
.legal .card h2::before { display: none; }
.legal .todo { background: #fff4c2; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.legal ul { padding-left: 20px; }

footer.site { max-width: 1320px; margin: 0 auto; padding: 18px 20px 34px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding: 30px 16px 76px; }
  .searchwrap, main { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
  button { width: 100%; justify-content: center; }
  .actions button, .actions .btn { width: auto; }
}
