/* Self-hosted fonts (SIL Open Font License) - no requests to Google */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Regular.woff2") format("woff2"), url("/fonts/SpaceGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Medium.woff2") format("woff2"), url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-SemiBold.woff2") format("woff2"), url("/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2"), url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/SpaceMono-Regular.woff2") format("woff2"), url("/fonts/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
/* Layout: one narrow editorial column; hero splits text | live classifier canvas, everything else stacks on hairlines like the invoice. */
:root {
  --bg: #FEFFF6;
  --surface: #FFFFFF;
  --ink: #0B0B0F;
  --muted: #55554E;
  --hair: #E5E6DB;
  --accent: #1554F4;
  --accent-ink: #FFFFFF;
  --class-b: #0B0B0F;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D1D16; --surface: #151510; --ink: #F1F1E6; --muted: #E7E8D9;
    --hair: #444334; --accent: #2360FB; --accent-ink: #FFFFFF; --class-b: #F1F1E6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1D1D16; --surface: #151510; --ink: #F1F1E6; --muted: #E7E8D9;
  --hair: #444334; --accent: #2360FB; --accent-ink: #FFFFFF; --class-b: #F1F1E6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: var(--gutter);
}
.wrap { max-width: var(--wrap); margin-inline: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 14px; }
.wordmark b { font-weight: 700; }
/* Kopfzeile nie zweizeilig: wird es eng, steht der Name als Block (Lockup) neben dem Logo */
@media (max-width: 940px) and (min-width: 781px), (max-width: 600px) { .wordmark .name { display: grid; font-size: 12px; line-height: 1.12; letter-spacing: 0; padding-left: 12px; border-left: 1px solid var(--hair); } }
@media (max-width: 420px) { .wordmark .name { display: none; } }
/* Logo K1: JIS, Quadrate oben links und unten rechts in Akzentfarbe */
.marke { height: 25px; width: 55.4px; flex: none; }
.marke .z path { fill: none; stroke: currentColor; stroke-width: 26; stroke-linejoin: miter; }
.marke rect { fill: var(--accent); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { white-space: nowrap; text-decoration: none; font-size: 16px; color: var(--muted); transition: color .15s; }
.nav ul a:hover { color: var(--ink); }
.nav .lang a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--ink); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 10px; }
.nav .lang a:hover { border-color: var(--ink); }
@media (max-width: 780px) { .nav .wrap ul li:nth-child(-n+4) { display: none; } .nav .wrap ul { gap: 16px; } .nav .wrap nav { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero > * { min-width: 0; }
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-block: 20px 28px;
}
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero .lede { font-size: clamp(18px, 1.7vw, 22px); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 16px/1 var(--font-body);
  padding: 15px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.lab { position: relative; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); overflow: hidden; }
.lab-head { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--hair); padding-inline: 8px 16px; }
.tabs { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tab {
  position: relative; appearance: none; border: 0; background: none; cursor: pointer;
  font: 500 15px/1 var(--font-body); color: var(--muted);
  padding: 16px 10px 15px; white-space: nowrap; transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
}
.tab[aria-selected="true"]::after { transform: scaleX(var(--p, 1)); }
.tab .short { display: none; }
@media (max-width: 460px) { .tab .long { display: none; } .tab .short { display: inline; } }
.live { display: flex; align-items: center; white-space: nowrap; }
.lab canvas { display: block; width: 100%; aspect-ratio: 1 / 0.82; max-width: 100%; }
@media (max-width: 560px) { .lab canvas { aspect-ratio: 3 / 4; } }
.lab-foot { border-top: 1px solid var(--hair); padding: 12px 16px 13px; display: grid; gap: 6px; }
.lab-cap { font-size: 15px; color: var(--muted); line-height: 1.45; }
.lab-bar {
  display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lab-bar b { color: var(--ink); font-weight: 400; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; max-width: 18em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); }
.service { background: var(--bg); padding: 32px 28px 36px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.service h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.service h3 .label { color: var(--accent); }
.service p { color: var(--muted); font-size: 18px; }
.service ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-family: var(--font-mono); font-size: 14px; padding: 6px 10px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .service { padding: 28px 0 32px; } }


body { overflow-x: clip; }
/* fields: discipline tree */
.fields-intro { color: var(--muted); max-width: 40em; margin: -24px 0 40px; font-size: 19px; }
@media (min-width: 761px) { .fields-intro { margin-left: 268px; } }
.tree-root { display: flex; justify-content: center; position: relative; padding-bottom: 28px; }
.tree-root span { font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; background: var(--bg); position: relative; z-index: 1; }
.tree-root::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 28px; width: 1px; background: var(--hair); }
.branches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; position: relative; }
.branches::before { content: ""; position: absolute; top: 0; left: calc((100% - 80px) / 10); right: calc((100% - 80px) / 10); height: 1px; background: var(--hair); }
.branch { position: relative; padding-top: 28px; min-width: 0; transition: opacity .25s; }
.branch::before { content: ""; position: absolute; top: 0; left: 50%; height: 28px; width: 1px; background: var(--hair); transition: background .25s; }
.branch h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; padding: 12px 10px; min-height: 3.6em; display: flex; align-items: center; justify-content: center; line-height: 1.2; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); text-align: center; transition: border-color .25s, color .25s; }
.branch > ul { list-style: none; margin: 18px 0 0 16px; padding: 0 0 0 18px; border-left: 1px solid var(--hair); display: grid; gap: 14px; transition: border-color .25s; }
.branch > ul > li { position: relative; font-weight: 500; font-size: 16.5px; line-height: 1.35; }
.branch > ul > li::before { content: ""; position: absolute; left: -18px; top: .7em; width: 12px; height: 1px; background: var(--hair); transition: background .25s; }
@media (max-width: 980px) { .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .branches::before, .branch::before, .tree-root { display: none; } .branch { padding-top: 0; } }
@media (max-width: 560px) { .branches { grid-template-columns: 1fr; } .branch h3 { justify-content: flex-start; min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .branch, .branch h3, .branch > ul, .branch::before { transition: none; } }

.branch > ul > li[tabindex] { outline: none; }
.branch > ul > li[tabindex]:hover, .branch > ul > li[tabindex]:focus { color: var(--accent); }
.tip { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; width: min(310px, 80vw); padding: 12px 14px; background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); color: var(--ink); display: grid; gap: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none; }
.tip-t { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tip-e { font-size: 16px; font-weight: 400; line-height: 1.45; }
.tip-e::before { content: "Beispiel: "; color: var(--accent); font-weight: 500; }
@media (hover: hover) { li:hover > .tip, li:focus-visible > .tip { opacity: 1; visibility: visible; transform: none; } }
.branch:nth-child(n+4) .tip { left: auto; right: 0; }
@media (hover: none), (max-width: 860px) { .tip { display: none !important; } }
/* detail panel */
.detail { margin-top: 36px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-8px); transition: max-height .5s ease, opacity .35s, transform .35s; }
.detail.open { max-height: 1200px; opacity: 1; transform: none; }
.detail-in { position: relative; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); gap: 28px; padding: 28px; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); }
.detail-txt { display: grid; gap: 12px; align-content: start; }
.detail-txt h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.detail-txt #dt-d { color: var(--ink); font-size: 20px; line-height: 1.45; }
.dt-tags { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.dt-e { font-size: 15px; color: var(--muted); }
.dt-e::before { content: "Beispiel: "; color: var(--accent); font-weight: 500; }
.detail-fig { margin: 0; display: grid; gap: 8px; }
.detail-fig canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--hair); border-radius: 10px; }
.detail-fig figcaption { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.dt-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.dt-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.branch > ul > li.sel { color: var(--accent); }
.branch > ul > li.sel::before { background: var(--accent); }
.branch > ul > li[tabindex] { cursor: pointer; }
@media (max-width: 860px) { .detail-in { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; } }
@media (max-width: 560px) { .detail { margin: 6px 0 10px; } .detail-fig canvas { aspect-ratio: 3 / 4; } }
@media (prefers-reduced-motion: reduce) { .detail { transition: none; } }

/* fields: list + demo panel */
.fields-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 40px; align-items: start; }
.fields-split .tree-root, .fields-split .branches::before, .fields-split .branch::before, .fields-split .tip { display: none; }
.fields-split .branches { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
.fields-split .branch { padding-top: 0; }
.fields-split .branch h3 { min-height: 0; justify-content: flex-start; text-align: left; font-size: 16px; padding: 10px 12px; }
.fields-split .branch > ul > li { font-size: 15.5px; }
.fields-panel { position: sticky; top: 84px; }
.fields-panel .detail { margin: 0; max-height: none; opacity: 1; transform: none; overflow: visible; }
.fields-panel .detail-in { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
.fields-panel .dt-x { display: none; }
@media (max-width: 860px) { .branch > ul { border-left: 0; margin-left: 0; padding-left: 12px; } .branch > ul > li::before { display: none; } .fields-split .branches { grid-template-columns: 1fr; gap: 24px; } }
.branch .detail-txt h3 { border: 0; padding: 0; min-height: 0; background: none; display: block; text-align: left; font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 860px) { .fields-split { grid-template-columns: 1fr; } .fields-panel { display: none; } .fields-split .detail { margin: 6px 0 10px; } .fields-split .dt-x { display: none; } }
/* process: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { padding: 28px 28px 0 0; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
  display: block; margin-bottom: 18px;
}
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--hair); }
.step:first-child::after { background: var(--accent); }
.step h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; row-gap: 32px; } }

/* work */
.work { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.case { display: grid; grid-template-columns: 220px 1fr auto; gap: 16px 48px; padding-block: 32px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.case > * { min-width: 0; }
.case h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.case p { color: var(--muted); max-width: 40em; }
.case .stack { font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-align: right; line-height: 1.8; }
.case .stack span { display: block; white-space: nowrap; }
@media (max-width: 760px) { .case .stack span { display: inline; white-space: normal; } .case .stack span + span::before { content: " · "; } }
.note { margin-top: 20px; color: var(--muted); font-size: 17px; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: 8px; }
  .case .stack { text-align: left; white-space: normal; }
}

/* terms: an invoice-like ledger */
.rows { display: grid; }
.mono { font-family: var(--font-mono); font-size: 14px; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; gap: 4px; } }

/* contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.contact > * { min-width: 0; }
.contact h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.contact h2 em { font-style: normal; color: var(--accent); }
.contact p { color: var(--muted); margin-top: 20px; max-width: 30em; }
.mailcard { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 14px; }
.mailbtn { justify-self: start; font-size: 19px; padding: 18px 28px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* about */
@media (max-width: 760px) { .about, .about-body { grid-template-columns: 1fr; } .cv div { grid-template-columns: 1fr; gap: 4px; } }
.service .sub { display: grid; gap: 10px; margin-top: 4px; }
.service .sub p { font-size: 17px; }
.service .sub b { color: var(--ink); font-weight: 500; }

/* footer / impressum */
footer { padding-block: 40px 56px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 1fr auto; gap: 24px; color: var(--muted); font-size: 14px; }
footer address { font-style: normal; line-height: 1.7; }
footer .mono { font-size: 13px; }
@media (max-width: 640px) { footer { grid-template-columns: 1fr; } }

/* ===== Erweiterungen fuer die mehrseitige Website (kommt nach basis.css) ===== */

/* nav: more items */
.nav ul a[aria-current="page"] { color: var(--ink); }
@media (max-width: 1080px) { .nav ul { gap: 18px; } .nav ul a { font-size: 15px; } }

/* draft markers (only in the preview build) */
.ph { display: inline-block; border: 1px dashed var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 6px; padding: 1px 8px; font-family: var(--font-mono); font-size: 0.8em; }
.ph-block { border: 1px dashed var(--accent); border-radius: 16px; padding: 28px; color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); font-family: var(--font-mono); font-size: 15px; line-height: 1.5; display: grid; place-items: center; text-align: center; min-height: 140px; }
.draft-badge { position: fixed; bottom: 16px; right: 16px; z-index: 50; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 7px 13px; border-radius: 999px; }

/* subpage head */
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 64px); max-width: 54em; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; margin-block: 18px 24px; }
.page-head h1 em, .sec-head h2 em { font-style: normal; color: var(--accent); }
.page-head .lede { font-size: clamp(18px, 1.7vw, 22px); color: var(--muted); max-width: 36em; }
.page-head .actions { margin-top: 32px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: grid; gap: 12px; align-content: start; grid-auto-rows: max-content; padding: 28px; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); text-decoration: none; color: inherit; min-width: 0; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 17px; }
.card .label.acc, .card.feature .label { color: var(--accent); }
.card.feature { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.card .meta { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 4px; }
.card .more { font-weight: 500; font-size: 16px; color: var(--accent); }
.card .soon { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 16.5px; line-height: 1.4; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .68em; width: 10px; height: 1px; background: var(--accent); }
.ticks.big { font-size: 19px; gap: 14px; }
.after-note { margin-top: 28px; color: var(--muted); }
.after-note a { color: var(--ink); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards.two { grid-template-columns: 1fr; } }

/* "drei Wege" reuses .services; links inside */
.service a.more { color: var(--accent); font-weight: 500; text-decoration: none; font-size: 17px; }
.service a.more:hover { text-decoration: underline; }

/* engagement ladder */
.ladder-note { margin-top: 32px; color: var(--muted); max-width: 44em; }
.sub-head { margin: 80px 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.sub-lede { color: var(--muted); margin-bottom: 8px; }

/* why */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); }
.why > div { background: var(--bg); padding: 30px 36px 34px 0; display: grid; gap: 10px; align-content: start; }
.why > div:nth-child(even) { padding: 30px 0 34px 36px; }
.why h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.why p { color: var(--muted); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } .why > div, .why > div:nth-child(even) { padding: 26px 0 30px; } }

/* about */
.photo { aspect-ratio: 4 / 5; border: 1px dashed var(--accent); border-radius: 16px; display: grid; place-items: center; color: var(--accent); font-family: var(--font-mono); font-size: 14px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.about-teaser { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.about-teaser h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; margin-top: 16px; }
.about-teaser p { color: var(--muted); margin-top: 16px; max-width: 38em; }
.about-teaser .actions { margin-top: 28px; }
.about-intro { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.prose { display: grid; gap: 18px; max-width: 42em; font-size: 19px; }
.prose p { color: var(--ink); }
@media (max-width: 760px) { .about-teaser, .about-intro { grid-template-columns: 1fr; gap: 28px; } .photo { max-width: 260px; } }

/* facts ledger */
.facts { display: grid; border-top: 1px solid var(--hair); margin: 0; }
.facts > div { display: grid; grid-template-columns: 220px 1fr; gap: 8px 48px; padding-block: 24px; border-bottom: 1px solid var(--hair); }
.facts dt { font-family: var(--font-mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; display: grid; gap: 12px; }
.facts dd b { font-weight: 600; }
.facts dd span { display: block; color: var(--muted); font-size: 16.5px; }
@media (max-width: 760px) { .facts > div { grid-template-columns: 1fr; } }

/* security: two sides */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.side { border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); padding: 30px; display: grid; gap: 14px; align-content: start; }
.side.us { border-top: 3px solid var(--accent); }
.side.partner { border-top: 3px solid var(--ink); }
.side h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.side .who { font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.side.us .who { color: var(--accent); }
.side p { color: var(--muted); }
@media (max-width: 760px) { .sides { grid-template-columns: 1fr; } }
.partner-box { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .partner-box { grid-template-columns: 1fr; gap: 20px; } }

/* price */
.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.price-card { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; }
.price-card .amount { font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.price-card .mono { color: var(--muted); }
.price p { color: var(--muted); max-width: 34em; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

/* footer with link columns */
footer { grid-template-columns: 1fr; gap: 36px; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-cols ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.foot-cols .label { font-size: 12px; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols address { grid-column: 1 / -1; } }

/* vision statement */
.vision { margin: 0; padding-left: 28px; border-left: 3px solid var(--accent); max-width: 34em; }
@media (min-width: 761px) { .vision { margin-left: 268px; } }
.vision p { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.vision em { font-style: normal; color: var(--accent); }

/* section heading used outside .sec-head */
.big-h { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; margin: 16px 0; }
.card .gain { font-size: 16px; color: var(--ink); border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 4px; }
.card .gain b { color: var(--accent); font-weight: 500; }

/* engagement ladder */
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rung { padding: 28px 24px 0 0; position: relative; display: grid; gap: 10px; align-content: start; }
.rung::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.rung:nth-child(1)::after { background: color-mix(in srgb, var(--accent) 20%, var(--hair)); }
.rung:nth-child(2)::after { background: color-mix(in srgb, var(--accent) 40%, var(--hair)); }
.rung:nth-child(3)::after { background: color-mix(in srgb, var(--accent) 60%, var(--hair)); }
.rung:nth-child(4)::after { background: color-mix(in srgb, var(--accent) 80%, var(--hair)); }
.rung:nth-child(5)::after { background: var(--accent); }
.rung .label { color: var(--accent); }
.r-h { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.r-p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.rung .or { position: absolute; top: -12px; left: -24px; z-index: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--bg); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 9px; color: var(--muted); }
@media (max-width: 980px) { .ladder { grid-template-columns: 1fr; gap: 6px; } .rung { padding: 22px 0 12px; } .rung .or { left: 0; } }

/* ===== KI-Kompass ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-seite { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 104px); }
.k-suche { position: relative; max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); z-index: 5; }
.k-suche-feld { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hair); border-radius: 999px; background: var(--surface); padding: 0 20px; transition: border-color .15s, box-shadow .15s; }
.k-suche-feld:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.k-suche-feld svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.k-suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; padding: 15px 0; }
.k-suche input::placeholder { color: var(--muted); }
.k-suche input::-webkit-search-cancel-button { cursor: pointer; }
.k-treffer { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.25); max-height: 420px; overflow: auto; }
.k-treffer a { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.k-treffer a:hover, .k-treffer a.aktiv { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.k-t-name { font-weight: 600; font-size: 17px; }
.k-t-weg { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.k-leer { padding: 12px 14px; color: var(--muted); font-size: 16px; }
.k-leer a { color: var(--ink); }

.kompass { display: grid; gap: clamp(32px, 4vw, 48px); }
.k-kopf { max-width: 54em; }
.k-kopf .crumbs { margin-bottom: 18px; }
.k-kicker { margin-bottom: 10px; }
.k-h { font-size: clamp(36px, 5vw, 60px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 20px; outline: none; }
.k-kopf .lede { font-size: clamp(18px, 1.7vw, 22px); color: var(--muted); max-width: 36em; }
.k-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.k-kachel { --i: 0; position: relative; display: grid; gap: 8px; align-content: start; grid-template-rows: auto 1fr auto; min-height: 150px; padding: 24px; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none;
  transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.2,1), border-color .15s, box-shadow .2s; transition-delay: 0s; }
.k-kachel:hover { border-color: var(--ink); transform: translateY(-2px); }
.k-kachel.k-gross { min-height: 200px; padding: 32px; }
.k-kachel.k-gross .k-name { font-size: 30px; }
.k-name { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.k-kurz { color: var(--muted); font-size: 16px; line-height: 1.4; }
.k-mehr { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-top: 6px; }

/* Übergang: alte Kacheln blenden aus, die gewählte "öffnet" sich, neue kommen gestaffelt */
.kompass .k-kopf > *, .kompass .k-detail { transition: opacity .3s ease, transform .3s ease; }
.kompass.k-geht .k-kopf > :not(.crumbs):not(.k-h), .kompass.k-geht .k-detail { opacity: 0; transform: translateY(-6px); }
/* Pfad und Titel: gleiche Wörter bleiben stehen, geänderte blenden mit Unschärfe */
.k-wort { display: inline-block; transition: opacity .32s ease, filter .32s ease, transform .32s ease; }
.kompass.k-geht .k-wort.k-anders { opacity: 0; filter: blur(6px); transform: translateY(-4px); }
.kompass.k-kommt .k-wort.k-anders { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.kompass.k-geht .k-kachel { opacity: 0; transform: scale(.96); pointer-events: none; }
.kompass.k-geht .k-kachel.k-gewaehlt { opacity: 0; transform: scale(1.06); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -24px color-mix(in srgb, var(--accent) 60%, transparent); transition-duration: .34s; }
.kompass.k-kommt .k-kopf > :not(.crumbs):not(.k-h), .kompass.k-kommt .k-detail { opacity: 0; transform: translateY(10px); }
.kompass.k-kommt .k-kachel { opacity: 0; transform: translateY(14px) scale(.98); }
.kompass:not(.k-geht):not(.k-kommt) .k-kachel { transition-delay: calc(var(--i) * 40ms), calc(var(--i) * 40ms), 0s, 0s; }
.kompass:not(.k-geht):not(.k-kommt) .k-kachel:hover { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .k-kachel, .kompass .k-kopf > *, .kompass .k-detail, .k-wort { transition: none !important; } }

.k-detail { display: grid; gap: clamp(36px, 5vw, 56px); border-top: 1px solid var(--hair); padding-top: clamp(32px, 4vw, 48px); }
.k-block { display: grid; grid-template-columns: 220px 1fr; gap: 20px 48px; padding: 0; }
.k-block > .label { padding-top: 6px; }
.k-schritte { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 42em; }
.k-schritte li { counter-increment: s; position: relative; padding-left: 44px; font-size: 19px; }
.k-schritte li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.k-link a { font-weight: 500; color: var(--accent); text-decoration: none; }
.k-stand { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.k-cta { display: grid; grid-template-columns: 1.3fr auto; gap: 24px 48px; align-items: end; border: 1px solid var(--accent); border-radius: 16px; padding: clamp(24px, 3.5vw, 40px); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.k-cta h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; margin-bottom: 10px; }
.k-cta p { color: var(--muted); max-width: 34em; }
.k-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .k-block, .k-cta { grid-template-columns: 1fr; } .k-kacheln { grid-template-columns: 1fr 1fr; } .k-kachel { min-height: 0; padding: 18px; } .k-name { font-size: 18px; } }
@media (max-width: 480px) { .k-kacheln { grid-template-columns: 1fr; } }
.k-kacheln:has(.k-gross) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
@media (max-width: 480px) { .k-kacheln:has(.k-gross) { grid-template-columns: 1fr; } }
.k-name { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; overflow-wrap: break-word; }

/* Header: Kontakt als Knopf */
.nav .nav-cta a { color: var(--bg); background: var(--ink); border-radius: 999px; padding: 7px 16px; font-weight: 500; }
.nav .nav-cta a:hover { color: var(--accent-ink); background: var(--accent); }
.k-auch { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin: -8px 0 18px; }

/* Kompass: Umschalter Branche | Beruf und Suchleiste */
.k-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.k-leiste .k-suche { flex: 1 1 320px; max-width: 560px; margin-bottom: 0; }
.k-umschalter { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border: 1px solid var(--hair); border-radius: 999px; background: var(--surface); isolation: isolate; flex: none; }
.k-u { position: relative; z-index: 1; text-align: center; padding: 11px 22px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .3s ease; }
.k-u:hover { color: var(--ink); }
.k-u[aria-current="true"] { color: var(--bg); }
.k-u-pille { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink);
  transition: transform .45s cubic-bezier(.65,0,.25,1.15), opacity .25s ease, width .45s cubic-bezier(.65,0,.25,1.15); }
.k-umschalter[data-aktiv="berufe"] .k-u-pille { transform: translateX(100%); }
.k-umschalter[data-aktiv=""] .k-u-pille { opacity: 0; transform: scale(.9); }
.k-umschalter:active .k-u-pille { width: calc(50% + 4px); }
.k-umschalter[data-aktiv="berufe"]:active .k-u-pille { transform: translateX(calc(100% - 9px)); }
@media (prefers-reduced-motion: reduce) { .k-u-pille, .k-u { transition: none; } }
@media (max-width: 560px) { .k-umschalter { width: 100%; } .k-u { padding: 11px 10px; } }
/* Startseite: Über den Haupt-Ebenen keinen zweiten Titel zeigen, die Abschnitts-Überschrift reicht */
.k-rahmen[data-modus="einbettung"] .kompass[data-tiefe="1"] .k-kopf,
.k-rahmen[data-modus="einbettung"] .kompass[data-tiefe="1"] .k-kopf { display: none; }
/* Kompass-Startseite: Umschalter gross im Inhalt */
.k-einstieg { display: flex; }
.k-einstieg .k-umschalter { padding: 6px; }
.k-einstieg .k-u { padding: 16px 34px; font-size: 19px; }
.k-einstieg .k-umschalter[data-aktiv=""] .k-u { color: var(--ink); }

/* Startseite: Haupt-Ebenen nur zweieinhalb Zeilen, mit Ausblendung und Knopf zum Aufklappen */
.k-mehr-zeigen { display: none; }
.k-rahmen[data-modus="einbettung"] .kompass[data-tiefe="1"] .k-kacheln,
.k-rahmen[data-modus="einbettung"] .kompass[data-tiefe="1"] .k-kacheln {
  max-height: 500px; overflow: hidden; padding-top: 4px; margin-top: -4px; grid-auto-rows: max-content; align-content: start; transition: max-height .6s cubic-bezier(.4,0,.2,1);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.k-rahmen[data-modus="einbettung"] .kompass[data-tiefe="1"] .k-mehr-zeigen,
.k-rahmen[data-modus="einbettung"] .kompass[data-tiefe="1"] .k-mehr-zeigen { display: inline-flex; justify-self: center; margin-top: -24px; }
.k-rahmen[data-modus="einbettung"] .kompass.k-offen .k-kacheln { -webkit-mask-image: none; mask-image: none; }
.k-rahmen[data-modus="einbettung"] .kompass.k-offen .k-mehr-zeigen { display: none; }
@media (max-width: 760px) { .k-rahmen[data-modus="einbettung"] .kompass .k-kacheln { max-height: 520px; } }
/* Startseite: Hinweis "Ihre Branche fehlt?" erst nach dem Aufklappen der ganzen Liste */
#kompass > .after-note { display: none; }
#kompass:has(.kompass.k-offen) > .after-note { display: block; animation: k-einblenden .4s ease both; }
@keyframes k-einblenden { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.k-seite > .k-fehlt { margin-top: clamp(32px, 4vw, 48px); }
/* Kompass-Seiten: der KI-Check-Hinweis steht unten als eigener Abschnitt,
   der kleine Kasten in der Einschätzung bleibt nur für die Startseite */
.k-rahmen[data-modus="seite"] .k-cta { display: none; }

/* ---------- Startseite: Unternehmenskarte ---------- */
.karte-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hair); padding: 14px 18px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.karte svg { display: block; width: 100%; height: auto; }
.karte .k-box { fill: var(--bg); stroke: var(--hair); stroke-width: 1.2; transition: stroke .9s ease; }
.karte .k-sq { fill: var(--hair); transition: fill .9s ease; }
.karte .k-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; fill: var(--ink); }
.karte .k-vor, .karte .k-nach { font-family: var(--font-mono); font-size: 11.5px; transition: opacity .45s ease; }
.karte .an .k-nach { transition: opacity .8s ease .45s; }
.karte .k-vor { fill: var(--muted); }
.karte .k-nach { fill: var(--accent); opacity: 0; }
.karte .k-bar0 { stroke: var(--hair); stroke-width: 3; }
.karte .k-bar { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s .5s ease; }
.karte .k-linie { fill: none; stroke: var(--hair); stroke-width: 1.4; }
.karte .k-fluss { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease; }
.karte .k-punkt { fill: var(--accent); opacity: 0; transition: opacity .6s ease 1s; }
.karte .k-kern { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.karte .k-kern-t { font-family: var(--font-display); font-weight: 500; font-size: 14px; fill: var(--ink); }
.karte .an .k-box { stroke: var(--accent); }
.karte .an .k-sq { fill: var(--accent); }
.karte .an .k-vor { opacity: 0; }
.karte .an .k-nach { opacity: 1; }
.karte .an .k-bar, .karte .an .k-fluss { stroke-dashoffset: 0; }
.karte .an .k-punkt { opacity: 1; }
.karte.still .k-punkt { display: none; }
.karte .k-b:not(.an) .k-fluss, .karte .k-b:not(.an) .k-bar { transition-delay: 0s; }

/* ---------- Menü für schmale Fenster ---------- */
.menu-knopf { display: none; width: 40px; height: 40px; flex: none; border: 1px solid var(--hair); border-radius: 999px; background: transparent;
  color: var(--ink); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-knopf span { display: block; width: 16px; height: 1.6px; background: currentColor; transition: transform .2s ease; }
.menu-knopf[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-knopf[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.mobilmenu ul { display: block; list-style: none; margin: 0 auto; padding: 4px 0 18px; max-width: var(--wrap); }
.mobilmenu a { display: block; padding: 13px 0; font-size: 19px; text-decoration: none; border-bottom: 1px solid var(--hair); }
.mobilmenu a[aria-current="page"] { color: var(--accent); }
@media (max-width: 780px) { .menu-knopf { display: inline-flex; } .nav .wrap { gap: 12px; } }
@media (min-width: 781px) { .mobilmenu { display: none !important; } }

/* Unternehmenskarte: Kacheln anklickbar, Detailansicht mit Animation */
.karte-head { align-items: center; min-height: 48px; box-sizing: border-box; }
.karte .k-b { cursor: pointer; outline: none; }
.karte .k-b:hover .k-box, .karte .k-b:focus-visible .k-box { stroke: var(--accent); stroke-width: 2; }
.karte .k-b:focus-visible .k-box { stroke-dasharray: 4 3; }
.karte .k-zurueck { display: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); background: none;
  border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px; margin: -6px 0; cursor: pointer; }
.karte .k-zurueck:hover { border-color: var(--ink); }
.karte .k-hinweis { color: var(--accent); }
.karte .k-bereich, .karte .k-lab, .karte .k-fuss-detail { display: none; }
.karte .k-lab { width: 100%; aspect-ratio: 520 / 400; }
.karte.k-offen svg, .karte.k-offen .k-fuss-karte, .karte.k-offen .k-titel, .karte.k-offen .k-hinweis { display: none; }
.karte.k-offen .k-zurueck, .karte.k-offen .k-bereich { display: inline-block; }
.karte.k-offen .k-lab { display: block; }
.karte.k-offen .k-fuss-detail { display: grid; }
@media (max-width: 560px) { .karte .k-lab { aspect-ratio: 3 / 4; } }

/* ---------- Startseite: KI-Check mit Preisen ---------- */
.check { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.check-text { display: grid; gap: 20px; }
.check-text > p:first-child { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.check-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-liste li { position: relative; padding-left: 22px; }
.check-liste li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--accent); }
.check-text .more { color: var(--accent); font-weight: 500; text-decoration: none; }
.check-text .more:hover { text-decoration: underline; }
.preise { display: grid; gap: 14px; }
.preis-karte { display: grid; gap: 4px; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.preis-karte:hover { border-color: var(--ink); transform: translateY(-2px); }
.preis-karte .p-name { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.preis-karte .more { color: var(--accent); font-weight: 500; margin-top: 8px; }
.preis-karte.haupt { border-color: var(--accent); }
.preis-karte .label { color: var(--accent); font-size: 12.5px; }
.preis-karte .p-fuer { color: var(--muted); }
.preis-karte .amount { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; }
.preis-karte .mono { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.preis-note { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .check { grid-template-columns: 1fr; } }

#warum .service h3 { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; line-height: 1.2; }

/* ---------- Preis-Rechner (Fenster) ---------- */
.rechner { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); }
.rechner::backdrop { background: rgba(10,10,8,.45); backdrop-filter: blur(2px); }
.r-in { display: flex; flex-direction: column; max-height: calc(100vh - 34px); }
.r-kopf { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--hair); }
.r-kopf h2 { font-size: 28px; letter-spacing: -0.02em; }
.r-zu { font: inherit; font-size: 26px; line-height: 1; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--hair); background: none; color: var(--ink); cursor: pointer; }
.r-fragen { overflow: auto; padding: 8px 24px 16px; display: grid; gap: 4px; }
.rechner fieldset { border: 0; margin: 0; padding: 14px 0 6px; }
.rechner legend { font-weight: 600; font-size: 17px; padding: 0; margin-bottom: 8px; }
.r-hinweis { font-size: 14px; color: var(--muted); margin: -4px 0 8px; }
.r-opt { display: flex; flex-wrap: wrap; gap: 8px; }
.r-opt label { cursor: pointer; }
.r-opt input { position: absolute; opacity: 0; pointer-events: none; }
.r-opt span { display: inline-block; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; font-size: 15px; transition: border-color .15s, background .15s; }
.r-opt span em { font-style: normal; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }
.r-opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.r-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.r-text { display: grid; gap: 8px; padding-top: 14px; }
.r-text span { font-weight: 600; font-size: 17px; }
.r-text textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); color: var(--ink); resize: vertical; }
.r-fuss { border-top: 1px solid var(--hair); padding: 16px 24px 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.r-fuss > div { display: grid; }
.r-richt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.r-preis { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.r-zzgl { font-size: 13px; color: var(--muted); }
.r-mail[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.r-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .r-fuss { grid-template-columns: 1fr; } }
.r-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- Anfrage-Seite (3 Schritte) ---------- */
.anfrage-sec { padding-bottom: clamp(48px, 8vw, 96px); }
.anfrage { max-width: 760px; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); padding: clamp(22px, 4vw, 40px); }
.a-schritte { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.a-schritte li { display: flex; align-items: center; gap: 8px; }
.a-schritte li span { width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--hair); display: inline-grid; place-items: center; font-size: 12px; }
.a-schritte li.jetzt { color: var(--ink); }
.a-schritte li.jetzt span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.a-schritte li.fertig span { border-color: var(--accent); color: var(--accent); }
.a-form h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.02em; margin-bottom: 8px; outline: none; }
.a-form fieldset { border: 0; margin: 0; padding: 18px 0 4px; }
.a-form legend { font-weight: 600; font-size: 17px; padding: 0; margin-bottom: 10px; }
.a-themen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.a-thema { cursor: pointer; }
.a-thema input { position: absolute; opacity: 0; pointer-events: none; }
.a-thema > span { display: grid; gap: 3px; height: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; transition: border-color .15s, background .15s; }
.a-thema b { font-weight: 600; }
.a-thema small { color: var(--muted); font-size: 14px; }
.a-thema:hover > span { border-color: var(--ink); }
.a-thema input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.a-thema input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.a-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.a-nav .btn[disabled] { opacity: .4; pointer-events: none; }
.a-fehler { color: #C0262D; font-size: 15px; margin-top: 10px; min-height: 1em; }
.a-ergebnis { display: grid; gap: 4px; margin: 18px 0 8px; padding: 20px 22px; border: 1px solid var(--accent); border-radius: 16px; }
.a-ergebnis .r-preis { font-size: clamp(28px, 3vw, 36px); }
.a-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.a-feld { display: grid; gap: 6px; }
.a-feld span { font-weight: 600; font-size: 15px; }
.a-feld input { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--bg); color: var(--ink); }
.a-direkt { margin-top: 18px; color: var(--muted); }
.a-direkt a { color: var(--ink); }
@media (max-width: 640px) { .a-themen, .a-felder { grid-template-columns: 1fr; } }
/* Foto folgt später: Platzhalter unsichtbar, Platz bleibt */
.photo { visibility: hidden; }
.nav .nav-cta a[aria-current="page"] { color: var(--bg); }
.page-head + .anfrage-sec { margin-top: calc(clamp(32px, 5vw, 64px) * -0.5); }
/* Anfrage: eine Frage pro Ansicht, gleitet seitlich herein */
.anfrage { overflow: hidden; }
.a-buehne { min-height: 300px; display: flex; flex-direction: column; }
.a-buehne .a-nav { margin-top: auto; padding-top: 28px; }
.a-zaehler { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.a-form .a-frage { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 22px; outline: none; }
.a-form fieldset .r-opt { gap: 10px; }
.a-form fieldset .r-opt span { padding: 11px 18px; font-size: 16px; }
.a-rein-r { animation: a-rein-r .65s cubic-bezier(.25,.1,.25,1) both; }
.a-rein-l { animation: a-rein-l .65s cubic-bezier(.25,.1,.25,1) both; }
.a-raus-l { animation: a-raus-l .3s ease-in both; }
.a-raus-r { animation: a-raus-r .3s ease-in both; }
@keyframes a-rein-r { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes a-rein-l { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes a-raus-l { to { opacity: 0; transform: translateX(-24px); } }
@keyframes a-raus-r { to { opacity: 0; transform: translateX(24px); } }
.a-opt-gewaehlt { transition: none; }
@media (prefers-reduced-motion: reduce) { .a-rein-r, .a-rein-l, .a-raus-l, .a-raus-r { animation: none; } }
/* Anfrage: Fortschrittsbalken, ein Segment pro Schritt */
.a-balken { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 30px; }
.a-seg { font: inherit; background: none; border: 0; padding: 8px 0 0; margin: 0; cursor: pointer; display: grid; gap: 8px; text-align: left; color: var(--muted); min-width: 0; }
.a-seg i { position: relative; display: block; height: 5px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.a-seg i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.25,.1,.25,1); }
.a-seg.fertig i::after, .a-seg.jetzt i::after { transform: scaleX(1); }
.a-seg.fertig i::after { opacity: .55; }
.a-seg span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.a-seg.jetzt span { color: var(--ink); }
.a-seg:not(:disabled):hover i { background: color-mix(in srgb, var(--accent) 25%, var(--hair)); }
.a-seg:not(:disabled):hover span { color: var(--ink); }
.a-seg:disabled { cursor: default; }
.a-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 560px) { .a-seg span { display: none; } .a-balken { gap: 4px; } }
.a-nachricht span { font-size: 19px; }
.a-nachricht textarea { min-height: 150px; font-size: 16px; }
.a-hilfe { font-size: 14px; color: var(--muted); margin-top: 6px; }
/* Preis-Karten sind Links: keine Unterstreichung */
a.preis-karte, a.preis-karte * { text-decoration: none; color: inherit; }
a.preis-karte .more { color: var(--accent); }
a.preis-karte .p-fuer, a.preis-karte .mono { color: var(--muted); }
.preis-karte.haupt:hover { border-color: var(--ink); }
.preis-note b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
.preis-karte .p-plus { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.preis-karte .p-plus::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }

/* Gutschrift-Etikett an der KI-Check-Karte */
.preis-karte { position: relative; }
.p-badge { position: absolute; top: -14px; right: 22px; display: grid; gap: 1px; padding: 9px 14px 10px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink) !important; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: rotate(2deg); text-align: left; }
.p-badge b { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; color: var(--accent-ink); }
.p-badge small { font-size: 12.5px; opacity: .85; color: var(--accent-ink); }
/* standardmässig verborgen; erscheint erst, wenn die Karte beim Scrollen sichtbar wird (karte.js setzt .da) */
.p-badge { opacity: 0; transform: translateY(-10px) rotate(-4deg) scale(.92); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.9,.3,1.2); }
.p-badge.da { opacity: 1; transform: rotate(2deg); }
@media (prefers-reduced-motion: reduce) { .p-badge { opacity: 1; transform: rotate(2deg); transition: none; } }
.preis-note a { color: var(--ink); }
.gutschrift-bed { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 60em; }
.gutschrift-bed b { color: var(--ink); font-weight: 600; }
[id] { scroll-margin-top: 88px; }
.price-card { position: relative; }
.price-card .p-badge { top: -30px; right: 0; }
.a-ergebnis { position: relative; }
.a-ergebnis .p-badge { top: -16px; right: 18px; }
