/* ==========================================================================
   Gearstein — Stylesheet
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f4f6f8;
  --color-bg-dark: #0f1620;
  --color-bg-dark-2: #161f2c;
  --color-text: #1c2430;
  --color-text-muted: #5a6472;
  --color-text-on-dark: #eef1f5;
  --color-text-on-dark-muted: #a9b3c2;
  --color-border: #e3e7eb;
  --color-border-dark: #2a3444;

  --color-primary: #ff5a36;
  --color-primary-dark: #e64621;
  --color-primary-tint: #fff0eb;

  --color-accent: #1c2430;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(16, 24, 36, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 24, 36, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 36, 0.16);

  --container-w: 1180px;
  --header-h: 76px;

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--color-text-muted); }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 90, 54, 0.35);
}
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: inherit;
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.8); }
.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark-muted);
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 6px 0;
}
.topbar__info { display: flex; align-items: center; gap: 20px; overflow: hidden; }
.topbar__item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item svg { fill: currentColor; flex: none; }
.topbar__item a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.topbar__hours { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7684; flex: none; }
.dot.is-open { background: #33c17a; box-shadow: 0 0 0 3px rgba(51,193,122,0.25); }
.dot.is-closed { background: #ff5a5a; box-shadow: 0 0 0 3px rgba(255,90,90,0.2); }

.lang-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--color-text-on-dark-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-primary);
}
.brand--footer .brand__mark { background: rgba(255,255,255,0.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.02rem; }
.brand__text small { color: var(--color-text-muted); font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transition: right .2s ease;
}
.main-nav a:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 84px 0 60px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255,90,54,0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(60,90,150,0.35), transparent 60%),
    linear-gradient(160deg, #10161f 0%, #0b1017 60%, #0a0e14 100%);
  z-index: -1;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 60% 20%, black, transparent 70%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 12px;
}
.eyebrow--light { color: var(--color-primary); }
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--color-primary); }
.hero__lead {
  color: var(--color-text-on-dark-muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__cta .btn--ghost { color: #fff; }
.hero__cta .btn--ghost svg { fill: #fff; }

.hero__trust { display: flex; flex-direction: column; gap: 10px; }
.hero__trust li {
  display: flex; align-items: center; gap: 10px;
  color: var(--color-text-on-dark-muted);
  font-size: 0.92rem;
}
.hero__trust svg { fill: var(--color-primary); flex: none; }

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  backdrop-filter: blur(6px);
}
.stat-card__num {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-text-on-dark-muted);
}

/* ---------- Brand strip ---------- */
.brand-strip {
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.brand-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--muted { background: var(--color-bg-muted); }
.section--dark {
  background: linear-gradient(180deg, #0f1620 0%, #0b1017 100%);
  color: var(--color-text-on-dark);
}
.section--dark p { color: var(--color-text-on-dark-muted); }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section__lead { font-size: 1.05rem; }
.section__lead--light { color: var(--color-text-on-dark-muted); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.team--intro { max-width: 560px; margin: 0 auto; }
.section__head--secondary { margin-top: 72px; }
.team-card__avatar--placeholder {
  background: transparent;
  border: 2px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 1.6rem;
  font-weight: 400;
}
.team-card--placeholder h3 { color: var(--color-text-muted); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.service-card__icon svg { fill: currentColor; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { margin: 0; font-size: 0.94rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps__item {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 16px;
}
.steps__item h3 { font-size: 1.02rem; }
.steps__item p { font-size: 0.92rem; margin: 0; }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.96rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 6px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}
.callout-box {
  margin: 28px 0 0;
  padding: 22px 26px;
  background: var(--color-primary-tint);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-accent);
}

/* ---------- Expertise block ---------- */
.expertise-block {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 40px;
}
.expertise-block h3 { font-size: 1.15rem; margin-bottom: 12px; }
.expertise-block p { margin-bottom: 12px; font-size: 0.95rem; }
.expertise-block p:last-child { margin-bottom: 0; }
.expertise-block__brands { color: var(--color-text); }

.why-grid__visual { display: flex; justify-content: center; }
.badge-ring {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 0deg 320deg, var(--color-border) 320deg 360deg);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.badge-ring__center {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.badge-ring__center strong { font-size: 2.6rem; color: var(--color-accent); line-height: 1; }
.badge-ring__center span { color: var(--color-text-muted); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; margin-top: 6px; }

/* ---------- Pricing ---------- */
.price-card { text-align: left; position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.1rem; }
.price-card__price { font-size: 1.9rem; font-weight: 800; color: var(--color-accent); margin-bottom: 18px; }
.price-card__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.price-card__list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 22px;
  position: relative;
}
.price-card__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--color-primary);
  font-weight: 800;
}
.price-card--highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.price-card__tag {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}
.pricing__note {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 32px;
  color: var(--color-text-muted);
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card__avatar {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #2c3a4f);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}
.team-card h3 { font-size: 1rem; margin-bottom: 2px; }
.team-card p { font-size: 0.86rem; margin: 0; }

/* ---------- Problem-Finder ---------- */
.diag-category {
  max-width: 880px;
  margin: 28px auto 12px;
  text-align: center;
}
.diag-category:first-of-type { margin-top: 0; }
.diag-category__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-border);
}
.diag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.diag-btn {
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.diag-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.diag-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.diag-panel {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 32px 36px;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.diag-panel h3 { font-size: 1.2rem; margin: 4px 0 14px; }
.diag-panel p { font-size: 0.95rem; }
.diag-panel__actionLabel { margin-bottom: 6px; }
.diag-panel__urgency {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.diag-panel__urgency--sofort { background: rgba(224, 67, 58, 0.14); color: #e0433a; }
.diag-panel__urgency--zeitnah { background: rgba(245, 166, 35, 0.16); color: #b5730f; }
.diag-panel__urgency--beobachten { background: rgba(42, 157, 92, 0.14); color: #2a9d5c; }
.diag-panel strong { color: var(--color-text); }

/* ---------- FAQ / Accordion ---------- */
.accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
}
.accordion__trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
}
.accordion__trigger::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform .2s ease;
  flex: none;
  margin-left: 16px;
}
.accordion__trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 24px;
}
.accordion__panel p { margin: 0 0 20px; font-size: 0.93rem; }
.accordion__item.is-open .accordion__panel { max-height: 240px; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 0.96rem; }
.contact-list svg { fill: var(--color-primary); flex: none; }
.contact-list a:hover { color: var(--color-primary); }
.contact-list__tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-on-dark-muted);
  margin-left: 6px;
}
.contact-note { font-size: 0.85rem; margin-top: 4px; max-width: 46ch; }

.emergency-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(224, 67, 58, 0.12);
  border: 1px solid rgba(224, 67, 58, 0.35);
  border-left: 4px solid #e0433a;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 28px 0 0;
}
.emergency-box svg { fill: #e0433a; flex: none; margin-top: 2px; }
.emergency-box__text p { margin: 0 0 8px; color: var(--color-text-on-dark-muted); font-size: 0.92rem; }
.emergency-box__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.emergency-box__title a { color: #ff8a7a; text-decoration: underline; }
.emergency-box__title a:hover { color: #fff; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 0.92rem;
}
.hours-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border-dark);
  font-weight: 400;
  color: var(--color-text-on-dark-muted);
}
.hours-table th { font-weight: 600; color: var(--color-text-on-dark); }

.map-block {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
}
.map-block iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-block__label {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(15,22,32,0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background .15s ease;
}
.map-block__label:hover { background: var(--color-primary); }

/* ---------- Booking form ---------- */
.booking-form {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.booking-form h3 { font-size: 1.2rem; margin-bottom: 10px; }
.form-note-top { font-size: 0.86rem; color: var(--color-text-muted); margin-bottom: 20px; }
.form-note-top a { color: var(--color-primary); font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}
.field textarea { resize: vertical; min-height: 90px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e0433a; }
.field__error {
  display: block;
  min-height: 1.1em;
  color: #e0433a;
  font-size: 0.78rem;
  margin-top: 4px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 6px 0 4px;
  cursor: pointer;
}
.checkbox-row input { margin-top: 3px; flex: none; }
.checkbox-row a { color: var(--color-primary); text-decoration: underline; }
.form-note { min-height: 1.4em; margin: 14px 0 0; font-size: 0.88rem; font-weight: 600; }
.form-note.is-success { color: #2a9d5c; }
.form-note.is-error { color: #e0433a; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0e14;
  color: var(--color-text-on-dark-muted);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border-dark);
}
.footer__col--brand p { max-width: 32ch; margin-top: 16px; font-size: 0.88rem; }
.footer__col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 0.9rem; }
.footer__col a:hover { color: var(--color-primary); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  fill: var(--color-text-on-dark-muted);
  transition: background .15s ease, fill .15s ease;
}
.footer__social a:hover { background: var(--color-primary); fill: #fff; }
.footer__bottom { padding: 22px 0; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #fff;
  fill: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-primary); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,14,20,0.6); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal__panel h3 { font-size: 1.3rem; margin-bottom: 16px; }
.modal__panel h4 { font-size: 0.98rem; margin: 22px 0 8px; color: var(--color-text); }
.modal__panel h4:first-child { margin-top: 0; }
.modal__panel p { font-size: 0.92rem; }
.modal__panel ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.modal__panel li { font-size: 0.92rem; color: var(--color-text-muted); margin-bottom: 6px; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-muted);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-muted);
}
.modal__close:hover { background: var(--color-primary); color: #fff; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid__visual { order: -1; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar__item--hide-mobile { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 560px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .header__actions .btn--sm { display: none; }
  .nav-toggle { display: flex; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .topbar__info { gap: 12px; }
  .topbar__item span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 48px 0 40px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .section { padding: 64px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .brand__text small { display: none; }
}

/* ==========================================================================
   v2 — Technik-Galerie
   ========================================================================== */
.showcase__stage { position: relative; max-width: 1000px; margin: 0 auto; }
.showcase__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-dark);
  box-shadow: var(--shadow-lg);
}
.showcase__slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}
.showcase__slide:first-child { position: relative; }
.showcase__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.showcase__slide img { width: 100%; height: auto; display: block; }
.showcase__slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 72px 32px 28px;
  background: linear-gradient(to top, rgba(8,12,18,0.96) 30%, rgba(8,12,18,0.72) 62%, rgba(8,12,18,0) 100%);
  color: var(--color-text-on-dark);
}
.showcase__slide figcaption h3 { font-size: 1.28rem; margin-bottom: 8px; color: #fff; }
.showcase__slide figcaption p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-on-dark-muted);
  max-width: 74ch;
}
.showcase__slide figcaption strong { color: #ffb347; }

.showcase__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(12,18,26,0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.showcase__nav svg { fill: currentColor; }
.showcase__nav:hover { background: var(--color-primary); border-color: var(--color-primary); }
.showcase__nav--prev { left: 14px; }
.showcase__nav--next { right: 14px; }

.showcase__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.showcase__dot {
  width: 38px; height: 5px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--color-border);
  transition: background .2s ease, transform .2s ease;
}
.showcase__dot.is-active { background: var(--color-primary); transform: scaleY(1.6); }

@media (prefers-reduced-motion: reduce) {
  .showcase__slide { transition: none; }
}

/* ==========================================================================
   v2 — Anfrage vorbereiten
   ========================================================================== */
.prep-why {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  margin-bottom: 44px;
}
.prep-why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
}
.prep-why__icon svg { fill: currentColor; }
.prep-why__text h3 { font-size: 1.24rem; margin-bottom: 12px; }
.prep-why__text p { font-size: 0.97rem; }
.prep-why__text strong { color: var(--color-text); }
.prep-why__foot {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  font-weight: 700;
  color: var(--color-primary) !important;
}

/* ---------- Interaktiver Fahrzeugschein ---------- */
.fzs {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}
.fzs__doc {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.fzs__hint {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-align: center;
}
.fzs__svg { width: 100%; height: auto; }

.fzs-field { cursor: pointer; }
.fzs-field rect {
  fill: #fbfcf8;
  stroke: #b8c7a8;
  stroke-width: 1.5;
  transition: fill .15s ease, stroke .15s ease;
}
.fzs-field:hover rect, .fzs-field:focus rect { fill: #fff4ef; stroke: var(--color-primary); }
.fzs-field:focus { outline: none; }
.fzs-field:focus-visible rect { stroke: var(--color-primary); stroke-width: 3; }
.fzs-field.is-active rect { fill: #ffe9e1; stroke: var(--color-primary); stroke-width: 3; }
.fzs-field--key rect { fill: #fff6f2; stroke: var(--color-primary); stroke-width: 2.5; }
.fzs-code {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  fill: #7d8c71;
  letter-spacing: 0.06em;
}
.fzs-val {
  font-family: Consolas, Menlo, monospace;
  font-size: 19px;
  fill: #26301f;
}
.fzs-val--big { font-size: 24px; font-weight: 700; }
.fzs-star {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  fill: var(--color-primary);
  letter-spacing: 0.14em;
}

.fzs__panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.fzs__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,90,54,0.18);
  color: #ff8a6b;
  margin-bottom: 14px;
}
.fzs__panel h3 { font-size: 1.12rem; color: #fff; margin-bottom: 10px; }
.fzs__panel p { font-size: 0.93rem; color: var(--color-text-on-dark-muted); margin: 0; }
.fzs__panel strong { color: #ffb347; }

/* ---------- Checkliste-Karten ---------- */
.prep-cards .prep-card { position: relative; padding-top: 34px; }
.prep-card__step {
  position: absolute;
  top: -18px; left: 26px;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.prep-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.check-list--tight { gap: 10px; margin-top: 16px; }
.check-list--tight li { font-size: 0.9rem; font-weight: 500; }
.check-list--tight li strong { font-weight: 800; }

.prep-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 20px 24px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}
.prep-note svg { flex: none; fill: var(--color-primary); margin-top: 2px; }
.prep-note p { margin: 0; font-size: 0.92rem; }

/* ==========================================================================
   v2 — Formular-Erweiterungen
   ========================================================================== */
.form-block { border: 0; padding: 0; margin: 0 0 22px; }
.form-block legend {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  padding: 0 0 10px;
  margin-bottom: 4px;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}
.form-hint { font-size: 0.82rem; margin: 10px 0 14px; }
.form-hint a { color: var(--color-primary); font-weight: 700; text-decoration: underline; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--color-primary); }
.chip:has(input:checked) {
  background: var(--color-primary-tint);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.chip:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.form-result {
  margin-top: 24px;
  padding: 26px;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.form-result h4 { font-size: 1.08rem; margin-bottom: 6px; }
.form-result > p { font-size: 0.9rem; }
.form-result__preview {
  max-height: 220px;
  overflow: auto;
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: Consolas, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.form-result__actions { display: flex; flex-direction: column; gap: 10px; }
.form-result__actions .btn--ghost { border-color: var(--color-border); color: var(--color-text); }
.form-result__actions .btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.form-result__tip {
  margin: 16px 0 0;
  font-size: 0.84rem;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
}
.form-result__tip strong { color: var(--color-text); }

/* ==========================================================================
   v2 — Karten-Einwilligung (Zwei-Klick-Lösung)
   ========================================================================== */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 260px;
  padding: 26px 24px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    var(--color-bg-dark-2);
  color: var(--color-text-on-dark);
}
.map-consent svg { fill: var(--color-primary); margin-bottom: 4px; }
.map-consent__title { margin: 0; font-weight: 800; color: #fff; font-size: 1rem; }
.map-consent__text {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--color-text-on-dark-muted);
  max-width: 46ch;
}
.map-consent__text a { color: var(--color-primary); font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   v2 — Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .fzs { grid-template-columns: 1fr; }
  .fzs__panel { position: static; }
}

@media (max-width: 860px) {
  .showcase__slide figcaption { padding: 56px 20px 20px; }
  .showcase__slide figcaption h3 { font-size: 1.08rem; }
  .showcase__slide figcaption p { font-size: 0.86rem; }
}

@media (max-width: 640px) {
  .prep-why { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .booking-form { padding: 26px 20px; }
  .showcase__nav { width: 38px; height: 38px; }
  .showcase__nav--prev { left: 8px; }
  .showcase__nav--next { right: 8px; }
  .showcase__slide figcaption {
    position: static;
    padding: 18px 20px 22px;
    background: var(--color-bg-dark);
  }
  .showcase__slide { position: absolute; }
  .showcase__slide:first-child { position: relative; }
  .showcase__dot { width: 26px; }
  .fzs__doc { padding: 14px; }
}
