/* kafkanaut.de – Gestaltung angelehnt an techsolutions-ds.de / basil-sattler.de */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #0b1220; --ink-2: #131d33; --ink-3: #1d2a45;
  --paper: #f5f6f8; --card: #ffffff; --text: #1a2233; --muted: #5b6577; --line: #e2e6ec;
  --on-ink: #e8eef7; --on-ink-muted: #9aa8bf; --steel: #9aa8bf;
  --accent: #7cc4ff; --accent-ink: #1d3557; --warn: #b45309; --warn-bg: #fff7ed;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --max: 1160px; --radius: 16px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.9); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; color: var(--on-ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 11px; border-radius: 8px; white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--on-ink); }
.menu .cta-small { margin-left: 8px; color: var(--ink); background: var(--on-ink); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.menu .cta-small:hover { color: var(--ink); background: #fff; }
.menu-btn { display: none; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--on-ink); color: var(--ink); }
.btn-ghost { color: var(--on-ink); border-color: rgba(255,255,255,.24); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { color: var(--text); border-color: var(--line); background: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Hero */
.hero, .page-hero { position: relative; color: var(--on-ink); background: var(--ink); overflow: hidden; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 520px at 85% -10%, rgba(124,196,255,.16), transparent 60%), radial-gradient(700px 420px at -10% 110%, rgba(154,168,191,.10), transparent 60%); }
.hero .wrap, .page-hero .wrap { position: relative; }
.hero { padding: 104px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--on-ink-muted); border: 1px solid rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(124,196,255,.18); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin: 22px 0 0; }
.lead { color: var(--on-ink-muted); font-size: 1.15rem; max-width: 640px; margin: 22px 0 0; }
.hero-art { justify-self: end; width: 100%; max-width: 440px; }
.page-hero { padding: 72px 0 80px; }
.crumb { font-size: 14px; color: var(--on-ink-muted); margin: 0 0 18px; }
.crumb a { color: var(--on-ink-muted); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 900px; }
.phase-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 15px; margin-bottom: 14px; }
.phase-tag b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(124,196,255,.5); font-size: 14px; }

/* ---------- Abschnitte */
section { padding: 88px 0; }
.white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--on-ink); }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.dark .kicker { color: var(--accent); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }
.dark .section-head p { color: var(--on-ink-muted); }

/* ---------- Reise: 5 Phasen */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.journey::before { content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent), var(--line)); }
.journey li { position: relative; }
.journey a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.journey a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,23,38,.1); border-color: #cfd6e0; }
.journey .dot { display: grid; place-items: center; width: 62px; height: 62px; margin: -1px 0 16px; border-radius: 50%; background: var(--ink); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 18px; box-shadow: 0 0 0 6px var(--paper); }
.white .journey .dot { box-shadow: 0 0 0 6px var(--card); }
.journey h3 { font-size: 1.15rem; }
.journey p { color: var(--muted); font-size: 15px; margin: 8px 0 14px; flex: 1; }
.journey .more { font-weight: 600; font-size: 14px; color: var(--accent-ink); }

/* ---------- Karten / Raster */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.white .card { background: var(--paper); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card > p { color: var(--muted); }
.card ul, .ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.card li, .ticks li { position: relative; padding-left: 24px; font-size: 15.5px; }
.card li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent-ink); transform: rotate(45deg); opacity: .8; }
.topic .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--accent); margin-bottom: 18px; }
.topic .ico svg { width: 24px; height: 24px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: rgba(29,53,87,.08); padding: 1px 6px; border-radius: 5px; }

/* Einstiegspunkte */
.entry { display: flex; flex-direction: column; }
.entry .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry h3 { margin: 8px 0 10px; }
.entry p { color: var(--muted); flex: 1; }
.entry .links { display: grid; gap: 8px; }
.entry a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.entry a:hover { text-decoration: underline; }

/* Vorher / Nachher */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card { padding: 32px; }
.compare .before { background: transparent; border-color: rgba(255,255,255,.12); color: var(--on-ink); }
.dark .compare .after { background: var(--on-ink); color: var(--ink); }
.compare h3 { margin-bottom: 18px; }
.compare .before li::before { background: var(--steel); }
.dark .compare .after li::before { background: var(--accent-ink); }
.result-line { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-weight: 600; }

/* Fehler */
.mistakes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mistake { display: grid; grid-template-columns: 40px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; padding: 22px 22px 22px 18px; }
.white .mistake { background: var(--paper); }
.mistake .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); display: grid; place-items: center; }
.mistake h3 { font-size: 1.05rem; margin-bottom: 6px; }
.mistake p { color: var(--muted); font-size: 15.5px; margin: 0; }
.mistake p + p { margin-top: 8px; color: var(--text); }
.mistake p + p b { color: var(--accent-ink); }

/* Optionen (Tabelle) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
th { font-family: var(--display); font-weight: 600; background: var(--paper); font-size: 15px; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; width: 24%; }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); counter-reset: s; }
.steps li { padding: 26px 24px; border-right: 1px solid var(--line); counter-increment: s; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 700; color: var(--accent-ink); font-size: 14px; margin-bottom: 10px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Prüfbereiche */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.area { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.white .area { background: var(--paper); }
.area summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.area summary::-webkit-details-marker { display: none; }
.area summary small { display: block; font-family: var(--font); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 3px; }
.area summary::after { content: "+"; font-size: 24px; color: var(--accent-ink); flex: none; }
.area[open] summary::after { content: "–"; }
.area ul { margin: 0; padding: 0 22px 22px 42px; color: var(--text); font-size: 15.5px; display: grid; gap: 6px; }

/* Referenzen */
.ref { display: grid; gap: 14px; }
.ref .tag { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); color: var(--on-ink); }
.dark .card > p, .dark .card dd { color: var(--on-ink-muted); }
.ref dl { margin: 0; display: grid; gap: 12px; }
.ref dt { font-weight: 600; font-size: 14px; color: var(--on-ink); }
.ref dd { margin: 2px 0 0; font-size: 15.5px; }

/* Über Basil */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.about p { color: var(--muted); }

/* Querverweis Phasen */
.phase-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phase-nav a { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.phase-nav a:hover { border-color: #cfd6e0; }
.phase-nav small { display: block; color: var(--muted); font-size: 13px; }
.phase-nav b { font-family: var(--display); font-size: 1.1rem; }
.phase-nav .next { text-align: right; }

/* CTA */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--ink); color: var(--on-ink); border-radius: 24px; padding: 52px 56px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(124,196,255,.18), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { color: var(--on-ink-muted); margin: 12px 0 0; max-width: 560px; }
.cta-band .actions { margin-top: 0; }

/* Rechtliches */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal address { font-style: normal; }

/* Footer */
footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 32px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--on-ink); font-family: var(--font); font-size: 15px; letter-spacing: 0; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--on-ink-muted); text-decoration: none; }
.foot a:hover { color: var(--on-ink); }
.foot p { margin: 14px 0 0; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Responsiv */
@media (max-width: 1100px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .journey::before { display: none; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: transparent; border: 1px solid rgba(255,255,255,.16); color: var(--on-ink); cursor: pointer; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 8px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu.open { display: flex; }
  .menu a { width: 100%; padding: 13px 4px; }
  .menu .cta-small { margin: 10px 0 0; text-align: center; padding: 13px 16px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; }
  .about img { max-width: 280px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .journey, .grid-2, .grid-3, .compare, .mistakes, .areas, .phase-nav { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; }
  .cta-band { padding: 36px 24px; }
  .phase-nav .next { text-align: left; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .journey a { transition: none; } }
