/* ==========================================================================
   LM Reifenservice & mehr — Entwurf
   Ein Stylesheet, keine externen Abhängigkeiten, keine Webfonts.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg: #FBFAF7;
  --bg-deep: #F1EDE5;
  --surface: #FFFFFF;
  --surface-2: #F3F0EA;
  --surface-3: #ECE6DC;
  --line: #E6E0D6;
  --line-strong: #D8D1C4;
  --text: #141210;
  --muted: #5D6470;
  --accent: #DB0C02;
  --accent-soft: rgba(219, 12, 2, 0.08);
  --accent-line: rgba(219, 12, 2, 0.22);
  --on-accent: #FFFFFF;

  --light: #FFFFFF;
  --light-line: #E6E0D6;
  --ink: #141210;
  --ink-muted: #5D6470;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 8px;
  --radius-lg: 12px;
  --section-y: clamp(56px, 8vw, 104px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 1rem; line-height: 1.3; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

a { color: inherit; }

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

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


.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section + .section { border-top: 1px solid var(--line); }

.section--light {
  background: var(--light);
  color: var(--ink);
  border-top: 0;
}

.section--light + .section { border-top: 0; }

.section--panel {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s var(--ease);
}

.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section--light .eyebrow { color: #DB0C02; }

.lead {
  margin-top: 20px;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.6;
  color: var(--muted);
}

.section--light .lead { color: var(--ink-muted); }

.section-head { max-width: 780px; }

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-head--split > div { max-width: 680px; }

.muted { color: var(--muted); }

.small { font-size: 0.86rem; line-height: 1.6; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.btn--primary:hover { background: #B00A02; border-color: #B00A02; }

.btn--secondary {
  border-color: rgba(20, 18, 16, 0.22);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: #DB0C02;
  background: rgba(219, 12, 2, 0.1);
}

.btn--ghost {
  padding-inline: 6px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.btn--ghost .btn-arrow { transition: transform 0.18s var(--ease); }

.btn--ghost:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.btn--ghost:hover .btn-arrow { transform: translateX(4px); }

.btn--block { width: 100%; }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.88rem; }

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--light);
}

.btn--dark:hover { background: #2b2724; border-color: #2b2724; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand img { display: block; width: auto; height: 44px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.nav a:hover { color: var(--text); }

.nav a[aria-current="page"] { color: var(--text); }

.nav .btn {
  color: var(--on-accent);
  font-size: 0.88rem;
}

.nav .btn:hover { color: var(--on-accent); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--text);
  content: "";
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -6px; left: 0; margin: 0; }
.nav-toggle span::after { top: 6px; left: 0; margin: 0; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 84px) clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle at center, rgba(219, 12, 2, 0.09), rgba(219, 12, 2, 0) 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(219, 12, 2, 0.18);
}

.hero h1 { max-width: 17ch; }

.hero h1 .accent { color: var(--accent); }

.hero-copy {
  margin-top: 26px;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  color: var(--muted);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-facts li { display: flex; align-items: center; gap: 9px; }

.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex: none;
}

.hero-figure {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.hero-figure .ring-turn { transform-origin: 210px 210px; animation: turn 64s linear infinite; }

@keyframes turn { to { transform: rotate(360deg); } }

/* --- Cards -------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

a.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  transform: translateY(-2px);
}

a.card:hover .card-more { color: var(--accent); }

a.card:hover .card-more svg { transform: translateX(3px); }

.card-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.card h3 { color: var(--text); }

.card p { font-size: 0.94rem; color: var(--muted); }

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.card-more svg { transition: transform 0.18s var(--ease); }

.card--cta {
  border-style: dashed;
  background: transparent;
}

.card--cta:hover { background: var(--surface-2); }

@media (min-width: 901px) {
  .grid--3 > .card--cta { grid-column: span 2; }
}

/* --- Process (light) ---------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(30px, 4vw, 52px);
  list-style: none;
  border-top: 1px solid var(--light-line);
}

.process li {
  padding: 26px 26px 0 0;
  border-right: 1px solid var(--light-line);
}

.process li:last-child { border-right: 0; padding-right: 0; }

.process li + li { padding-left: 26px; }

.process-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: #DB0C02;
}

.process h3 { margin-bottom: 8px; color: var(--ink); }

.process p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.55; }

/* --- Contact block ------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 3px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.contact-icon {
  display: block;
  grid-row: 1 / span 2;
  color: var(--accent);
  line-height: 0;
  padding-top: 4px;
}

.contact-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.contact-list dt,
.contact-label {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  grid-column: 2;
  font-size: 1.02rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-value a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }

.contact-value a:hover { border-color: var(--accent); }

.map-card {
  position: relative;
  display: block;
  padding: 30px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(219, 12, 2, 0.06), rgba(219, 12, 2, 0) 55%),
    var(--surface-2);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.18s var(--ease);
}

.map-card:hover { border-color: var(--accent-line); }

.map-card h3 { margin-bottom: 8px; }

.map-card .map-line {
  display: block;
  height: 1px;
  margin: 22px 0;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.map-grid {
  position: absolute;
  inset: auto 0 0 auto;
  width: 190px;
  height: 190px;
  opacity: 0.5;
  pointer-events: none;
}

/* --- Page header (subpages) --------------------------------------------- */
.page-head {
  padding-block: clamp(48px, 6vw, 84px) clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.page-head h1 { max-width: 20ch; }

.page-head .lead { max-width: 58ch; }

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  color: var(--muted);
  list-style: none;
}

.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

.breadcrumb a { text-decoration: none; }

.breadcrumb a:hover { color: var(--text); border-bottom: 1px solid var(--accent); }

/* --- Service detail ----------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.service:first-of-type { border-top: 0; padding-top: 0; }

.service-head { display: flex; gap: 16px; align-items: baseline; }

.service-index {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.service h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.015em; }

.service-body p { color: var(--muted); max-width: 68ch; }

.service-body p + p { margin-top: 12px; }

/* --- Notes / hints ------------------------------------------------------ */
.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.note strong { color: #141210; }

.note--quiet {
  border-left-color: var(--line-strong);
  background: var(--surface-2);
}

.note--quiet strong { color: var(--text); }

.note p + p { margin-top: 6px; }

.section--light .note {
  background: #fbf1ef;
  border-color: #eed6d1;
  border-left-color: #db0c02;
  color: #3b2320;
}

.section--light .note strong { color: #DB0C02; }

/* --- Legal pages -------------------------------------------------------- */
.prose { max-width: 780px; }

.process + .note,
.note + .prose { margin-top: 34px; }

.contact-list + .note { margin-top: 28px; }

.prose > * + * { margin-top: 18px; }

.prose h2 {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.012em;
}

.prose h3 { margin-top: 28px; }

.prose p, .prose li { color: #3E3B36; font-size: 0.98rem; }

.prose ul, .prose ol { padding-left: 20px; }

.prose li + li { margin-top: 7px; }

.prose dl {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.prose dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.prose dd { margin: 0; font-size: 0.98rem; }

.prose a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.prose a:hover { border-bottom-width: 2px; }

.placeholder {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  background: rgba(20, 18, 16, 0.03);
}

.badge-draft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(219, 12, 2, 0.12);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #DB0C02;
}

/* --- Forms -------------------------------------------------------------- */
.form-card {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.field { display: grid; gap: 8px; margin-bottom: 22px; }

.field:last-child { margin-bottom: 0; }

.field > label,
.field-legend {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.field .req { color: var(--accent); margin-left: 3px; }

.field-hint { font-size: 0.8rem; color: var(--muted); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

.input::placeholder, .textarea::placeholder { color: #9A9288; }

.input:hover, .select:hover, .textarea:hover { border-color: #D8D1C4; }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(219, 12, 2, 0.16);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: #C0392B; }

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 24px, calc(100% - 14px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #C0392B;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 18px;
}

.field-row .field {
  display: flex;
  flex-direction: column;
}

.field-row .input {
  height: 54px;
}


fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  min-width: 0;
}

fieldset:last-of-type { margin-bottom: 0; }

legend { padding: 0; }

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.choice:hover { border-color: #D8D1C4; }

.choice input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  border: 1.5px solid #9A9184;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.choice input:checked {
  border-color: var(--accent);
  background-image: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px);
}

.choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.choice-text { display: grid; gap: 2px; }

.choice-title { font-size: 0.94rem; font-weight: 600; }

.choice-desc { font-size: 0.8rem; color: var(--muted); }

.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(219, 12, 2, 0.06);
}

.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.slot:hover { border-color: #D8D1C4; }

.slot:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.slot input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.slot:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-box {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  border: 1.5px solid #9A9184;
  border-radius: 3px;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.checkbox input:checked + .checkbox-box {
  border-color: var(--accent);
  background: var(--accent);
}

.checkbox input:checked + .checkbox-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox input:focus-visible + .checkbox-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.checkbox:has(input[aria-invalid="true"]) { border-color: #C0392B; }

/* --- AGB-Zustimmung und Ausfallhinweis (Terminformular) ------------------ */
.checkbox > span:last-child { min-width: 0; overflow-wrap: break-word; }

.checkbox .req { color: var(--accent); margin-left: 2px; }

.checkbox--agb { font-size: 0.86rem; color: var(--text); }

.checkbox--agb .checkbox-extra { color: var(--muted); }

.hinweis {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: break-word;
}

.hinweis p { margin: 0; }

.hinweis p + p { margin-top: 5px; }

.hinweis strong { color: #141210; }

.hinweis a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.hinweis--ausfall { border-left-width: 4px; }

.hinweis-quelle { color: var(--muted); font-size: 0.94em; }

@media (max-width: 420px) {
  .hinweis { padding: 12px 13px; font-size: 0.82rem; }
  .checkbox--agb { font-size: 0.84rem; }
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.form-foot .btn { flex: 1 1 auto; }

.form-note { font-size: 0.8rem; color: var(--muted); }

/* --- Stepper ------------------------------------------------------------ */
.stepper { margin-bottom: clamp(26px, 4vw, 40px); }

.stepper ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  counter-reset: step;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.stepper .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.stepper li.is-active { border-top-color: var(--accent); color: var(--text); }

.stepper li.is-active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.stepper li.is-done { border-top-color: var(--accent-line); color: var(--text); }

.stepper li.is-done .step-num { border-color: var(--accent); color: var(--text); }

.step { display: none; }

.step.is-active { display: block; animation: fade 0.25s var(--ease); }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.step h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -0.015em; }

.step .form-note { margin-top: 16px; }

.step-intro { margin-top: 10px; margin-bottom: 28px; font-size: 0.94rem; color: var(--muted); max-width: 60ch; }

.step-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-nav .btn { min-width: 150px; }

.step-nav-start { margin-right: auto; }

/* --- Draft result ------------------------------------------------------- */
.draft-result {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(219, 12, 2, 0.08), rgba(219, 12, 2, 0.02));
}

.draft-result h2 { margin-bottom: 14px; }

.draft-result p { color: #3E3B36; max-width: 62ch; }

.draft-result p + p { margin-top: 12px; }

.draft-result .btn-row { margin-top: 26px; }

.draft-result a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.draft-result .badge-draft { margin-bottom: 18px; }

.stack > * + * { margin-top: 26px; }

.form-intro { margin-bottom: 26px; }

/* --- Aside / trust strip ------------------------------------------------ */
/* --- Footer ------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(44px, 6vw, 72px);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 44px;
}

.footer-brand img { width: 230px; height: auto; display: block; }

.footer-brand p {
  margin-top: 18px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list { display: grid; gap: 9px; list-style: none; }

.footer-list a {
  color: #3E3B36;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-list a:hover { color: #141210; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.footer-contact { display: grid; gap: 10px; color: #3E3B36; font-size: 0.9rem; }

.footer-contact a { text-decoration: none; }

.footer-contact a:hover { color: #141210; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: #5D6470;
}

.footer-bottom .draft-note { display: flex; align-items: center; gap: 8px; }

.footer-bottom .draft-note::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 260px; margin-inline: 0; }
  .hero h1 { max-width: 18ch; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li { padding: 24px 24px 0 0; }
  .process li:nth-child(2n) { border-right: 0; padding-right: 0; }
  .process li:nth-child(n + 3) { margin-top: 24px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(20, 18, 16, 0.12);
  }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a {
    padding: 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: #141210; }
  .nav .btn { margin-top: 18px; width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process li { padding: 20px 0 0; border-right: 0; border-bottom: 1px solid var(--light-line); padding-bottom: 20px; }
  .process li + li { padding-left: 0; margin-top: 0; }
  .process li:last-child { border-bottom: 0; }
  .choices, .choices--3 { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px 12px; }
  .contact-list .contact-icon { grid-row: span 2; }
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .prose dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .btn-row .btn { width: 100%; }
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav .btn { width: 100%; }
  .step-nav-start { margin-right: 0; }
  .stepper li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 0.7rem; }
  .step-label { display: none; }
  .brand img { height: 38px; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .hero-figure { display: block; width: min(62vw, 250px); margin: 26px auto 6px; order: 3; }
  .map-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-figure .ring-turn { animation: none; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .btn, .stepper, .draft-result, .nav-toggle { display: none !important; }
  .step { display: block !important; }
  a { color: #000; }
}
/* Datumsfelder: auf dem Handy darf nichts überlappen */
input[type="date"]{min-height:52px;line-height:1.35;padding:14px;width:100%;
  -webkit-appearance:none;appearance:none;box-sizing:border-box}
input[type="date"]::-webkit-date-and-time-value{text-align:left;margin:0}
input[type="date"]::-webkit-calendar-picker-indicator{margin-left:0;opacity:.7}
.field label{display:block}

/* Mobile Sofort-Leiste: Termin und Anruf immer erreichbar */
.sofort-leiste { display: none; }
@media (max-width: 719px) {
  .sofort-leiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 247, .96); border-top: 1px solid rgba(20,18,16,.12);
    backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .22s ease;
  }
  .sofort-leiste.ist-da { transform: translateY(0); }
  .sofort-leiste .btn { flex: 1 1 0; justify-content: center; min-height: 46px; padding-inline: 8px;
    font-size: .92rem; white-space: nowrap; }
  .sofort-leiste .btn--wa { display: inline-flex; align-items: center; gap: 6px; color: #0b7a3b; }
  .sofort-leiste .btn--wa svg { color: #25d366; }
  /* Wenn die Leiste sichtbar ist, steht WhatsApp dort — der schwebende Knopf wuerde doppelt wirken. */
  body.hat-sofort .wa-knopf { display: none; }
  body { padding-bottom: 0; }
  body.hat-sofort { padding-bottom: 78px; }
}


/* Hero-Reifen: langsame Drehung plus sanftes Schweben */
.hero-figure { animation: figure-float 7s ease-in-out infinite; }
@keyframes figure-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-figure .ring-turn { animation: turn 48s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-figure, .hero-figure .ring-turn { animation: none; }
}

/* --- Über Lion: Vertrauenspunkte (Startseite) ---------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}

.trust {
  padding: 26px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.trust-nr {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #DB0C02;
}

.trust h3 { margin-bottom: 8px; color: var(--ink); }
.trust p { font-size: 0.94rem; color: var(--ink-muted); line-height: 1.55; }

/* Prozess auf drei Schritte */
.process--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .process--3 { grid-template-columns: minmax(0, 1fr); }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Termin-CTA-Band (rote Fläche) */
.cta-panel {
  background: linear-gradient(135deg, #DB0C02 0%, #B00A02 100%);
  color: #fff;
  border-top: 0;
}
.cta-panel h2 { color: #fff; }
.cta-panel .lead { color: rgba(255, 255, 255, 0.92); }
.cta-panel .eyebrow { color: #fff; }
.cta-panel .eyebrow::before { background: #fff; }
.cta-panel .btn--primary { background: #fff; border-color: #fff; color: #141210; }
.cta-panel .btn--primary:hover { background: #F3F0EA; border-color: #F3F0EA; }
.cta-panel .btn--secondary { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.cta-panel .btn--secondary:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.14); }
.cta-panel .btn--ghost { color: #fff; }
.cta-panel .btn--ghost:hover { color: #fff; }

/* Lange Komposita in Überschriften umbrechen (verhindert seitliches Scrollen) */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }

/* Schritt-Kicker im Buchungsformular */
.step-kicker {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #DB0C02;
}

/* WhatsApp-Knopf unten rechts */
.wa-knopf {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(20,18,16,.22); border: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-knopf:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px rgba(20,18,16,.26); }
.wa-knopf svg { width: 30px; height: 30px; display: block; }
@media (max-width: 719px) {
  .wa-knopf { bottom: calc(20px + env(safe-area-inset-bottom)); right: 14px; width: 52px; height: 52px; }
  /* Leiste unten sichtbar: Knopf darueber halten (auch mit Geraete-Rand unten) */

}


/* Altlast: ein alter schwebender WhatsApp-Knopf (links) darf nie wieder erscheinen */
.lm-wa{display:none !important;visibility:hidden !important;pointer-events:none !important}

/* Spamschutz von Cloudflare: unsichtbar, wenn keine Rückfrage nötig ist */
.turnstile-box{height:0;min-height:0;overflow:visible;margin:0}
.turnstile-box[hidden]{display:none}

/* Versteckte Felder wirklich verstecken (eigene display-Regeln überschreiben sonst das hidden-Attribut) */
[hidden]{display:none !important}

/* Solange der Cookie-Hinweis offen ist, liegt er ueber dem WhatsApp-Knopf:
   Knopf ausblenden statt halb verdeckt stehen lassen. */
html.lm-hinweis-offen .wa-knopf { display: none; }

/* Schmale Handys: "buchen" ausblenden, unter 340 px nur das WhatsApp-Zeichen */
@media (max-width: 400px) {
  .sofort-leiste .btn { font-size: .84rem; padding-inline: 4px; }
}
@media (max-width: 360px) {
  .sofort-leiste .nur-breit { display: none; }
}
@media (max-width: 340px) {
  .sofort-leiste .btn--wa span { display: none; }
  .sofort-leiste .btn--wa { padding-inline: 10px; }
}
