/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  /* Surfaces — cool dark anthracite */
  --bg-deep: oklch(0.235 0.012 200);
  --bg-base: oklch(0.20 0.013 200);
  --bg-surface: oklch(0.235 0.014 200);
  --bg-elevated: oklch(0.275 0.015 200);
  --bg-hover: oklch(0.31 0.016 200);

  /* Hairlines */
  --line-soft: oklch(0.32 0.012 200 / 0.55);
  --line: oklch(0.36 0.012 200 / 0.7);
  --line-strong: oklch(0.45 0.012 200 / 0.85);

  /* Text */
  --fg: oklch(0.965 0.005 200);
  --fg-muted: oklch(0.78 0.008 200);
  --fg-dim: oklch(0.62 0.008 200);
  --fg-faint: oklch(0.46 0.008 200);

  /* Accent — green (overridden by tweak) */
  --accent: oklch(0.80 0.16 158);
  --accent-soft: oklch(0.80 0.16 158 / 0.18);
  --accent-faint: oklch(0.80 0.16 158 / 0.10);
  --accent-deep: oklch(0.55 0.13 158);
  --on-accent: oklch(0.18 0.02 200);

  /* Type */
  --font-display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Density (overridden by tweak) */
  --d: 1;
  --space-1: calc(4px * var(--d));
  --space-2: calc(8px * var(--d));
  --space-3: calc(12px * var(--d));
  --space-4: calc(16px * var(--d));
  --space-5: calc(24px * var(--d));
  --space-6: calc(32px * var(--d));
  --space-7: calc(48px * var(--d));
  --space-8: calc(72px * var(--d));
  --space-9: calc(112px * var(--d));
  --section-pad: calc(96px * var(--d));

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
}

/* ─── Reset ──────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-deep); }
body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  color: var(--fg);
  background: var(--bg-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: oklch(0.235 0.012 200 / 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: auto -3px -3px auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-deep);
}
.logo small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0;
  margin-top: -2px;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* Logo has dark grey road graphic — lift it slightly on dark bg */
  filter: brightness(1.05) saturate(0.95);
}
.foot .logo-img { height: 42px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-phone .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.80 0.16 158 / 0.6); }
  70%  { box-shadow: 0 0 0 9px oklch(0.80 0.16 158 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.80 0.16 158 / 0); }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: oklch(from var(--accent) calc(l + 0.04) c h); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--fg-faint); }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--space-9) + var(--space-3));
  padding-bottom: var(--space-9);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, oklch(0.80 0.16 158 / 0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, oklch(0.80 0.16 158 / 0.06), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-7);
  align-items: center;
}
.hero-headline {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: var(--space-5) 0 var(--space-5);
  text-wrap: balance;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  color: var(--fg-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 52ch;
  line-height: 1.55;
  margin-bottom: var(--space-6);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-soft);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-item .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hero-meta-item .v {
  font-size: 16px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Hero — chat preview (variant A default) */
.chat-preview {
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.chat-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      oklch(0.22 0.013 200 / 0.4) 0 12px,
      transparent 12px 24px);
  opacity: 0.4;
  pointer-events: none;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: oklch(0.42 0.04 200);
  color: var(--fg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  position: relative;
}
.chat-avatar::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--bg-base);
}
.chat-name {
  font-weight: 500;
  font-size: 15px;
}
.chat-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.chat-stream {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
  animation: bubble-in .35s cubic-bezier(.2,.7,.3,1);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bubble-them {
  align-self: flex-start;
  background: var(--bg-elevated);
  border-bottom-left-radius: 6px;
  color: var(--fg);
}
.bubble-me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 6px;
}
.bubble .meta {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.6;
}
.bubble-me .meta { color: oklch(0.18 0.02 200 / 0.7); }
.typing {
  align-self: flex-start;
  background: var(--bg-elevated);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  padding: 12px 16px;
  display: inline-flex;
  gap: 4px;
}
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-faint);
  animation: typing 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Hero — vehicles variant (B) */
.hero-vehicles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-3);
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}
.vehicle-card {
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-deep);
}
.vehicle-card.featured {
  background: var(--bg-elevated);
  border-color: var(--accent-deep);
}
.vehicle-card.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, var(--accent-soft), transparent 60%);
}
.vehicle-card svg {
  width: 100%;
  height: auto;
  max-height: 80px;
  color: var(--fg-muted);
}
.vehicle-card.featured svg { color: var(--accent); }
.vehicle-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.vehicle-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* Hero — call variant (C) */
.hero-call {
  position: relative;
  background:
    linear-gradient(135deg, var(--bg-base), var(--bg-surface));
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
}
.hero-call::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.call-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.call-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.call-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: call-ping 2s infinite;
}
@keyframes call-ping {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.call-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.call-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.call-hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}
.call-hours dt { color: var(--fg-muted); }
.call-hours dd { margin: 0; color: var(--fg); font-variant-numeric: tabular-nums; text-align: right; }
.call-hours .open { color: var(--accent); }

/* ─── Section header ────────────────────────────────────── */
.section-head {
  margin-bottom: var(--space-7);
  max-width: 760px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: var(--space-3);
}
.section-lead {
  color: var(--fg-muted);
  font-size: clamp(15px, 1.2vw, 17px);
  margin-top: var(--space-3);
  max-width: 56ch;
}

/* ─── Über ──────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-7);
  align-items: start;
}
.about-card {
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.portrait-slot {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-4);
  background: var(--bg-elevated);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 35%;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.portrait-slot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0.18 0.012 200 / 0.55) 100%);
  pointer-events: none;
}
.portrait-stamp {
  position: absolute;
  top: 14px; left: 14px;
  background: oklch(0.18 0.02 200 / 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portrait-stamp .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.about-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.about-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.about-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 60ch;
}
.about-text p strong {
  color: var(--fg);
  font-weight: 500;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.stat {
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.stat .n {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1;
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ─── Klassen ───────────────────────────────────────────── */
.classes {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-6);
  align-items: start;
}
.class-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  position: sticky;
  top: 88px;
}
.cat {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  color: var(--fg-muted);
  transition: background .15s, color .15s;
}
.cat:hover { background: var(--bg-surface); color: var(--fg); }
.cat[aria-selected="true"] {
  background: var(--bg-elevated);
  color: var(--fg);
}
.cat-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--bg-surface);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--fg-muted);
}
.cat[aria-selected="true"] .cat-ico {
  background: var(--accent);
  color: var(--on-accent);
}
.cat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cat-name {
  font-size: 15px;
  font-weight: 500;
  color: inherit;
}
.cat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}
.cat[aria-selected="true"] .cat-sub { color: var(--fg-dim); }

.class-stage {
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--space-4);
}
.stage-head .left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stage-title {
  font-size: 18px;
  font-weight: 500;
}
.stage-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stage-stream {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  flex: 1;
}
.stage-stream .timestamp {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
}
.stage-stream .bubble { max-width: 78%; }
.class-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-end;
  max-width: 100%;
  margin-top: var(--space-2);
}
.class-pill {
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .12s, border-color .15s;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.class-pill:hover {
  background: var(--bg-hover);
  border-color: var(--fg-faint);
}
.class-pill[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.class-pill .code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.class-detail {
  background: var(--bg-elevated);
  color: var(--fg);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: flex-start;
  max-width: 88%;
  animation: bubble-in .4s cubic-bezier(.2,.7,.3,1);
}
.detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-code {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.detail-code .badge {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
}
.detail-tagline {
  color: var(--fg-muted);
  font-size: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line-soft);
}
.detail-grid .k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.detail-grid .v {
  font-size: 14px;
  color: var(--fg);
}
.detail-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Kontakt ───────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-6);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.info-card {
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.info-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 4px;
}
.info-v {
  font-size: 17px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.info-v.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.info-sub {
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 4px;
}

.form-card {
  background: var(--bg-base);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.form-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.field textarea { min-height: 120px; line-height: 1.5; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all .12s;
}
.chip:hover { color: var(--fg); border-color: var(--line); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.form-foot {
  margin-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-note .lock {
  width: 14px; height: 14px;
  color: var(--accent);
}

.form-success {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  animation: bubble-in .4s;
}
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.form-success h3 {
  font-size: 22px;
  font-weight: 500;
}
.form-success p { color: var(--fg-muted); margin: 0; max-width: 36ch; }

/* ─── Footer ────────────────────────────────────────────── */
footer.foot {
  border-top: 1px solid var(--line-soft);
  padding: var(--space-7) 0 var(--space-5);
  background: var(--bg-base);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: var(--fg-muted); font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: var(--fg); }
.foot-tag {
  color: var(--fg-muted);
  max-width: 32ch;
  font-size: 14px;
  margin-top: var(--space-3);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  gap: var(--space-3);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --section-pad: calc(64px * var(--d)); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(40px, 9vw, 56px); }
  .about,
  .classes,
  .contact { grid-template-columns: 1fr; }
  .class-categories { position: static; flex-direction: row; overflow-x: auto; }
  .cat { min-width: 220px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .nav-phone span { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .btn { padding: 9px 14px; font-size: 13px; }
}
