/* =========================================================
   hexdrive — Designsystem
   Premium Dark + Gold/Kupfer, technisch-präzise
   ========================================================= */

:root {
  /* Farben */
  --black: #0a0a0b;
  --charcoal: #141416;
  --charcoal-2: #1c1c1f;
  --line: #2a2a2e;
  --line-soft: #232326;
  --gold: #c9a24b;
  --gold-bright: #e3c172;
  --bronze: #8c6b2f;
  --off-white: #ededea;
  --grey: #8c8c90;
  --grey-dim: #5e5e62;
  --success: #4caf6e;
  --danger: #c1543f;

  /* Typografie */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;
  --space-8: 10rem;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 16px;

  --container: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-3); }
}

/* ---------- Background texture ---------- */
body {
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(201, 162, 75, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 400px at -10% 30%, rgba(140, 107, 47, 0.06), transparent 60%);
  background-attachment: fixed;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 22px;
  width: auto;
  filter: invert(1) brightness(1.15);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-nav ul {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--grey);
  position: relative;
  padding: 0.3em 0;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--off-white);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
}

.btn-nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.55em 1.3em;
  border-radius: var(--radius-s);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-nav-cta:hover {
  background: var(--gold);
  color: var(--black) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--off-white);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-s);
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--space-4) var(--space-4);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav a {
    display: block;
    padding: var(--space-3) 0;
  }
  .main-nav .btn-nav-cta {
    display: block;
    text-align: center;
    margin-top: var(--space-3);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--bronze));
  color: var(--black);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  border-color: var(--line);
  color: var(--off-white);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  color: var(--gold);
  padding: 0.85em 0;
}
.btn-ghost::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 var(--space-7);
  overflow: hidden;
}

.hero-logo-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  filter: invert(1);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

@media (max-width: 880px) {
  .hero-logo-mark { width: 900px; opacity: 0.045; }
}

.hero .container.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: var(--space-3) 0 var(--space-3);
  color: var(--off-white);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--bronze));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--grey);
  max-width: 38ch;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--grey-dim);
}

/* ---------- Oscilloscope signature element ---------- */
.scope {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.scope-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--grey-dim);
  text-transform: uppercase;
}
.scope-dots { display: flex; gap: 6px; }
.scope-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.scope-dots span:first-child { background: var(--success); }

.scope-screen {
  background: var(--black);
  border-radius: var(--radius-m);
  padding: var(--space-3) var(--space-2);
  overflow: hidden;
}
.scope-screen svg { width: 100%; height: 140px; display: block; }
.scope-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(201,162,75,0.5));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.6s var(--ease) forwards, pulse 4s ease-in-out 2.6s infinite;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
.scope-grid line {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.scope-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.scope-readout div {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--grey-dim);
}
.scope-readout strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--off-white);
  font-weight: 600;
}
.scope-readout strong.accent { color: var(--gold); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-stats { gap: var(--space-4); flex-wrap: wrap; }
}

/* ---------- Power compare (Vorher/Nachher Slider) ---------- */
.power-compare {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.power-compare::before {
  content: "";
  position: absolute;
  top: -30%; left: -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201,162,75,0.1), transparent 70%);
  pointer-events: none;
}

.power-compare-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  position: relative;
}

.power-readouts {
  display: flex;
  gap: var(--space-5);
}
.power-readouts .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dim);
  display: block;
  margin-bottom: 0.3em;
}
.power-readouts .value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--off-white);
}
.power-readouts .value.gold { color: var(--gold); }
.power-readouts .delta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--success);
  margin-left: 0.4em;
}

.power-chart-wrap {
  position: relative;
  background: var(--black);
  border-radius: var(--radius-m);
  padding: var(--space-3) var(--space-2) var(--space-2);
}
.power-chart-wrap svg { width: 100%; height: 220px; display: block; overflow: visible; }
.power-grid line { stroke: var(--line-soft); stroke-width: 1; }
.power-axis-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--grey-dim);
}

.curve-original {
  fill: none;
  stroke: var(--grey);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  opacity: 0.85;
}
.curve-mapped {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(201,162,75,0.45));
  transition: opacity 0.3s var(--ease);
}
.curve-fill {
  opacity: 0.12;
  transition: opacity 0.3s var(--ease);
}

.power-slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.power-slider-row .tag-orig,
.power-slider-row .tag-mapped {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-dim);
  white-space: nowrap;
}
.power-slider-row .tag-mapped { color: var(--gold); }

input[type="range"].power-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--line) 0%, var(--bronze) 50%, var(--gold) 100%);
  border-radius: 4px;
  outline: none;
}
input[type="range"].power-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--gold), 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
}
input[type="range"].power-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: pointer;
}

.power-compare-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--grey-dim);
  margin-top: var(--space-3);
}

@media (max-width: 640px) {
  .power-readouts { gap: var(--space-3); }
  .power-readouts .value { font-size: 1.5rem; }
}

/* ---------- Diagnose Scan Terminal ---------- */
.diag-terminal {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.diag-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--grey-dim);
  text-transform: uppercase;
}
.diag-terminal-body {
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.9;
  min-height: 280px;
}
.diag-line {
  display: flex;
  gap: 0.7em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.diag-line.is-shown { opacity: 1; transform: translateY(0); }
.diag-line .ts {
  color: var(--grey-dim);
  flex-shrink: 0;
}
.diag-line .msg { color: var(--grey); }
.diag-line.ok .msg { color: var(--off-white); }
.diag-line.ok .msg::before { content: "✓ "; color: var(--success); }
.diag-line.warn .msg::before { content: "! "; color: var(--gold); }
.diag-line.warn .msg { color: var(--gold-bright); }
.diag-line.scan .msg::after {
  content: "";
  display: inline-block;
  width: 7px;
  margin-left: 2px;
  border-right: 2px solid var(--gold);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

.diag-progress {
  margin-top: var(--space-2);
  height: 4px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.diag-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bronze), var(--gold));
  transition: width 0.4s var(--ease);
}

.diag-result {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.diag-result.is-shown { opacity: 1; }
.diag-result div { font-family: var(--font-mono); font-size: 0.72rem; color: var(--grey-dim); }
.diag-result strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--off-white); }
.diag-result strong.good { color: var(--success); }

.diag-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.diag-text p { color: var(--grey); margin-top: var(--space-2); font-size: 1.05rem; }
.diag-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 880px) {
  .diag-layout { grid-template-columns: 1fr; }
}
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-top: var(--space-2);
}
.section-head p {
  color: var(--grey);
  margin-top: var(--space-2);
  font-size: 1.05rem;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, rgba(255,255,255,0.015) 85%, transparent);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--bronze);
  transform: translateY(-4px);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--bronze);
  display: inline-block;
  padding: 0.25em 0.6em;
  border: 1px solid var(--bronze);
  border-radius: var(--radius-s);
  margin-bottom: var(--space-3);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}
.card p {
  color: var(--grey);
  font-size: 0.94rem;
}
.card-icon {
  width: 38px; height: 38px;
  margin-bottom: var(--space-2);
  color: var(--gold);
}

/* ---------- Process / steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.process-step .step-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.process-step h4 {
  font-size: 1.05rem;
  margin: var(--space-1) 0 var(--space-1);
}
.process-step p {
  color: var(--grey);
  font-size: 0.9rem;
}

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: center;
  opacity: 0.85;
}
.trust-strip span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--grey-dim);
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-6) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,162,75,0.16), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 22ch; }
.cta-band p { color: var(--grey); margin-top: var(--space-1); }

@media (max-width: 760px) {
  .cta-band { flex-direction: column; text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--space-6) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.footer-grid img { height: 20px; filter: invert(1) brightness(1.15); margin-bottom: var(--space-2); }
.footer-grid p { color: var(--grey); font-size: 0.9rem; max-width: 30ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: var(--space-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a {
  color: var(--grey);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--grey-dim);
}
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (Unterseiten) ---------- */
.page-header {
  padding: 150px 0 var(--space-5);
  border-bottom: 1px solid var(--line-soft);
}
.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: var(--space-2);
}
.page-header p {
  color: var(--grey);
  max-width: 60ch;
  margin-top: var(--space-2);
  font-size: 1.05rem;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--grey-dim);
  letter-spacing: 0.04em;
}
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Leistungen detail blocks ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-detail:last-child { border-bottom: none; }
.service-detail h3 { font-size: 1.6rem; margin: var(--space-2) 0 var(--space-2); }
.service-detail .card-tag { margin-bottom: 0; }
.service-detail p { color: var(--grey); margin-bottom: var(--space-3); }

.feature-list { display: flex; flex-direction: column; gap: var(--space-2); }
.feature-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  list-style: none;
  font-size: 0.95rem;
  color: var(--off-white);
}
.feature-list li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  color: var(--gold);
}

.detail-panel {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-4);
}
.detail-panel-row {
  display: flex;
  justify-content: space-between;
  padding: 0.7em 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.detail-panel-row:last-child { border-bottom: none; }
.detail-panel-row span:first-child { color: var(--grey); }
.detail-panel-row span:last-child { color: var(--off-white); font-weight: 500; }

@media (max-width: 880px) {
  .service-detail { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---------- Über uns ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.05rem;
}
.timeline-item h4 { font-size: 1.05rem; margin-bottom: 0.3em; }
.timeline-item p { color: var(--grey); font-size: 0.92rem; }

@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
.contact-info-item { display: flex; gap: var(--space-2); align-items: flex-start; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-info-item h5 { font-size: 0.95rem; margin-bottom: 0.2em; }
.contact-info-item p, .contact-info-item a { color: var(--grey); font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--gold); }

.form-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-5);
}
.form-row { margin-bottom: var(--space-3); }
.form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 560px) {
  .form-row-double { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 0.5em;
}
label .req { color: var(--gold); }
input, select, textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.8em 1em;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  outline: none;
}
textarea { resize: vertical; min-height: 120px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238c8c90' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
}
.consent-row {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}
.consent-row label { margin-bottom: 0; font-size: 0.85rem; }

.form-msg {
  padding: 0.9em 1.2em;
  border-radius: var(--radius-s);
  font-size: 0.92rem;
  margin-bottom: var(--space-3);
}
.form-msg.success {
  background: rgba(76, 175, 110, 0.1);
  border: 1px solid var(--success);
  color: #8fd6a8;
}
.form-msg.error {
  background: rgba(193, 84, 63, 0.1);
  border: 1px solid var(--danger);
  color: #e29485;
}

.map-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-dim);
  margin-top: var(--space-3);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item summary {
  padding: var(--space-3) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--grey);
  padding-bottom: var(--space-3);
  max-width: 70ch;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
