/* AutoCenter Kirchheim — self-hosted stylesheet.
   No external fonts/CDNs: the CSP is 'self' only, so everything below is local
   and the type stack falls back to the OS UI font. */

:root {
  /* Aus dem Logo gemessen: dunkles Markenrot #700000 und das helle #e01020 der
     Mosaiksteine. Flächen mit weißer Schrift nehmen das dunkle Rot. */
  --accent: #e8535a;        /* Akzent auf dunklem Grund */
  --accent-soft: #ff8f93;   /* Headlines/Zahlen, dunkler Grund */
  --accent-deep: #7a0d11;   /* Flächen mit weißer Schrift (Kontrast 8:1) */
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 8px 28px -12px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Dark is the default look; the toggle writes data-theme on <html>. */
:root,
:root[data-theme="dark"] {
  --bg: #171413;
  --bg-2: #1d1917;
  --surface: #221e1c;
  --surface-2: #2a2523;
  --line: #35302d;
  --line-strong: #463f3b;
  --text: #f2eeec;
  --text-dim: #b7ada8;
  --text-faint: #8b807b;
  --hero-shade: linear-gradient(180deg, rgba(10, 8, 7, .42) 0%, rgba(10, 8, 7, .6) 45%, rgba(23, 20, 19, .96) 100%);
  --img-bg: #1b1817;
}

:root[data-theme="light"] {
  /* Auf Weiß braucht der Akzent mehr Tiefe (Kontrast >= 4.5:1). */
  --accent: #8e1014;
  --accent-soft: #7a0d11;
  --accent-deep: #7a0d11;
  --bg: #f7f5f4;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0edeb;
  --line: #e3dcd8;
  --line-strong: #cbc2bd;
  --text: #1a1614;
  --text-dim: #5b524e;
  --text-faint: #7d726d;
  --hero-shade: linear-gradient(180deg, rgba(10, 8, 7, .38) 0%, rgba(10, 8, 7, .55) 48%, rgba(247, 245, 244, .97) 100%);
  --img-bg: #eceae8;
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-deep);
  color: #ffffff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  position: relative;      /* containing block for the mobile nav panel */
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-right: auto;
}
/* Zwei Logo-Dateien statt CSS-Filter: die Wortmarke ist schwarz und muss auf
   dunklem Grund hell werden, ein invert() wuerde auch das Rot kippen. */
.brand img { flex: none; height: 48px; width: auto; }
:root[data-theme="light"] .logo-light { display: none; }
:root:not([data-theme="light"]) .logo-dark { display: none; }
.brand span { display: block; font-size: 1.06rem; }
.brand small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

.nav a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 19px; height: 19px; }

/* One icon per theme; JS only flips data-theme. */
:root[data-theme="light"] .i-moon { display: none; }
:root:not([data-theme="light"]) .i-sun { display: none; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--accent-deep);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(122, 13, 17, .7); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { box-shadow: none; background: var(--surface-2); }

.btn-sm { padding: 9px 15px; font-size: .9rem; border-radius: 9px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(70px, 12vw, 140px) 0 clamp(40px, 6vw, 74px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before {
  background-image: url("img/hero.webp");
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.04);
}
.hero::after { background: var(--hero-shade); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  /* Die Pille liegt in BEIDEN Themes auf dem dunklen Hero-Verlauf, darf also
     nicht die Theme-Akzentfarbe nehmen — im Hellmodus ist die ein dunkles Rot
     und auf dem Scrim praktisch unlesbar. */
  color: #ff9ea1;
  background: rgba(8, 9, 11, .62);
  border: 1px solid rgba(255, 158, 161, .45);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 139, 143, .22);
}

.hero h1 { max-width: 17ch; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero .lead {
  font-size: clamp(1.06rem, 1.9vw, 1.32rem);
  font-weight: 600;
  color: #f6f2f0;
  max-width: 46ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.hero .lead-sub {
  color: #e6ddd9;
  max-width: 52ch;
  font-size: 1.02rem;
  font-weight: 400;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 7vw, 76px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 22px 20px;
}
.stat b {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: -.03em;
  color: var(--accent-soft);
}
.stat span { font-size: .87rem; color: var(--text-dim); font-weight: 600; }

/* ------------------------------------------------------------------ sections */

section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }

.head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
.head .kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.head p { color: var(--text-dim); margin-bottom: 0; }

/* ------------------------------------------------------------------ services */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--img-bg);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-dim); font-size: .95rem; margin-bottom: 16px; }

.card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--accent);
}
.card-more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-more svg { transform: translateX(4px); }

/* marque chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  align-items: center;
}
.chips .chips-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .88rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ process */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.06rem; }
.step p { color: var(--text-dim); font-size: .95rem; margin-bottom: 0; }

/* ------------------------------------------------------------------ gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery button {
  appearance: none;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--img-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.gallery button:hover { transform: translateY(-3px); border-color: var(--accent); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* lightbox */
.lb[hidden] { display: none; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 12, .93);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 18px;
  backdrop-filter: blur(4px);
}
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img {
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -30px #000;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 14px;
  color: #cbd5e1;
  font-size: .9rem;
  font-family: var(--mono);
}
.lb-btn {
  appearance: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* ------------------------------------------------------------------ about */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.split p { color: var(--text-dim); }

.quote {
  margin: 26px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
}
.quote footer { margin-top: 8px; font-size: .85rem; font-style: normal; font-weight: 600; color: var(--text-faint); }

/* ------------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq details:hover { border-color: var(--accent); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* Chevron drawn in CSS so no icon markup is needed per question. */
.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2.2px solid var(--accent);
  border-bottom: 2.2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--text-dim); margin: 0; font-size: .97rem; }
.faq-body a { color: var(--accent); }

/* ------------------------------------------------------------------ contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.people { display: grid; gap: 14px; }

.person {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.person .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
}
.person h3 { font-size: 1.02rem; margin-bottom: 2px; }
.person .role { font-size: .84rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.person ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.person li { font-size: .92rem; color: var(--text-dim); }
.person a { color: var(--text); text-decoration: none; font-weight: 600; }
.person a:hover { color: var(--accent); text-decoration: underline; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.info-card h3 { font-size: 1.02rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-family: var(--mono); color: var(--text-dim); }

.addr { font-style: normal; color: var(--text-dim); font-size: .95rem; }
.addr strong { color: var(--text); }

.geo-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}
.geo-line .coords {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-faint);
}

/* form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--text-dim); }
.field input,
.field textarea {
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(232, 83, 90, .22); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--text-faint); margin: 0; }
.form-msg { font-size: .93rem; font-weight: 600; margin: 0; min-height: 1.4em; }
.form-msg[data-state="ok"] { color: #45c07f; }
.form-msg[data-state="err"] { color: #ef6a5a; }

/* ------------------------------------------------------------------ footer */

.foot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 52px 0 30px;
  font-size: .93rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.foot h4 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .legal {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: .85rem;
}

/* ------------------------------------------------------------------ legal pages */

.page { padding: clamp(48px, 7vw, 84px) 0; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h1 + p { color: var(--text-dim); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 1.6em; }
.prose dt { font-weight: 700; color: var(--text-dim); }
.prose dd { margin: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; color: var(--text-dim); }
.prose a { color: var(--accent); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 26px;
}
.back:hover { color: var(--accent); }
.back svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* Tap-to-call matters most on a phone: keep the button, drop the label. */
  .call-label { display: none; }
  .call-btn { padding: 11px; border-radius: 10px; }
  .call-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .brand small { display: none; }
}

@media print {
  .top, .foot, .lb, .hero::before, .hero::after, .gallery, .form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
}

/* ================================================================ pages
   Everything below serves the generated inner pages: breadcrumbs, page hero,
   data tables, the shop grid and the Anfragekorb. */

/* --------------------------------------------------------- breadcrumbs */

.crumbs {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: .85rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 11px 0;
  color: var(--text-faint);
}
.crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------- page hero */

.page-hero {
  padding: clamp(34px, 5vw, 62px) 0 clamp(20px, 3vw, 34px);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); max-width: 28ch; }
.page-hero .lead { color: var(--text-dim); max-width: 62ch; font-size: 1.06rem; margin: 0; }
.page-hero .kicker {
  font-size: .78rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* -------------------------------------------------------------- prose */

.prose-narrow { max-width: 74ch; }
.prose-narrow h3 { margin-top: 1.7em; font-size: 1.12rem; }
.prose-narrow p { color: var(--text-dim); }
.prose-narrow a { color: var(--accent); }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.3em; display: grid; gap: 7px; }
ul.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 7px; height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* part numbers and gear ratios */
.pn, .ratio {
  font-family: var(--mono);
  font-size: .93em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  white-space: nowrap;
}
.ratio { color: var(--accent); }

/* ------------------------------------------------------------- tables */

.table-search { margin: 26px 0 14px; display: grid; gap: 7px; max-width: 520px; }
.table-search label { font-size: .86rem; font-weight: 700; color: var(--text-dim); }
.table-search input {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 14px;
}
.table-search input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 83, 90, .22);
}
.tcount, .psearch .tcount {
  font-size: .82rem;
  color: var(--text-faint);
  font-family: var(--mono);
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data td:first-child { white-space: nowrap; font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
.tnote { font-size: .85rem; color: var(--text-faint); margin: 12px 0 0; }

/* ---------------------------------------------------------------- shop */

.pfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 30px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.chip-btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.chip-btn span { opacity: .6; font-family: var(--mono); font-size: .85em; }
.chip-btn:hover { border-color: var(--line-strong); color: var(--text); }
.chip-btn.is-on {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.chip-btn.is-on span { opacity: .8; }

.psearch { display: grid; gap: 7px; min-width: 280px; flex: 1 1 280px; max-width: 420px; }
.psearch label { font-size: .86rem; font-weight: 700; color: var(--text-dim); }
.psearch input {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 14px;
}
.psearch input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 83, 90, .22);
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pcard[hidden] { display: none; }
.pcard-media {
  appearance: none;
  border: 0;
  padding: 0;
  background: var(--img-bg);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.pcard-media img { width: 100%; height: 100%; object-fit: contain; }
.pcard-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.pcard h3 { font-size: .99rem; line-height: 1.3; margin-bottom: 7px; }
.pcard-desc {
  font-size: .85rem;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.pcard-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.price-pill {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  white-space: nowrap;
}
.add-item.is-added {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.pempty { margin-top: 26px; color: var(--text-dim); }

/* ------------------------------------------------------- Anfragekorb */

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.cart-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.cart-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.cart-list strong { display: block; font-size: .93rem; font-weight: 600; }
.cart-price { font-family: var(--mono); font-size: .85rem; color: var(--accent); }
.cart-del {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.cart-del:hover { color: #ef6a5a; border-color: #ef6a5a; }
.cart-empty { color: var(--text-faint); font-size: .93rem; }

.cart-btn { position: relative; }
/* .icon-btn sets display:grid, which outranks the UA [hidden] rule. */
.cart-btn[hidden] { display: none; }
.cart-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 19px; height: 19px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ---------------------------------------------------------- CTA band */

.cta-band {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 55%),
    var(--bg-2);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px) 22px;
}
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-inner p { color: var(--text-dim); margin-bottom: .6em; }
.cta-note { font-size: .89rem; color: var(--text-faint); }
.cta-note strong { color: var(--text-dim); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-actions .btn { justify-content: center; }

/* --------------------------------------------------------- sib links */

.sib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.sib-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dim);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.sib-list a::before { content: "›"; color: var(--accent); font-weight: 800; }
.sib-list a:hover { border-color: var(--accent); color: var(--text); }

.hours-mini { font-size: .88rem; color: var(--text-faint); margin: 10px 0 0; }


@media (max-width: 900px) {
  .cta-inner, .cart-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
}

.shop-note {
  max-width: 74ch;
  font-size: .92rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 26px 0 0;
}
.shop-note strong { color: var(--text); }

/* Runs of catalogue lines (part number + ratio) are stock lists, not prose. */
.parts-label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 1.6em 0 .6em;
}
ul.parts {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 6px 18px;
}
ul.parts li {
  font-size: .92rem;
  color: var(--text-dim);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

/* Leistungen ohne Nummerierung (die Schritt-Kacheln zählen sonst mit). */
.step-plain::before { content: none; }
.step-plain h3 { margin-bottom: 8px; }

/* zweite Telefonnummer unter den CTA-Buttons */
.cta-alt {
  font-size: .86rem;
  color: var(--text-faint);
  margin: 4px 0 0;
  text-align: center;
}
.cta-alt a { color: var(--accent); font-weight: 600; }

/* Lieferanten-Logos: die Dateien haben weissen bzw. transparenten Grund, sie
   brauchen also eine helle Karte — auch im Dunkelmodus. */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: center;
}
.brands li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: grid;
  place-items: center;
  min-height: 84px;
}
.brands img { max-height: 52px; width: auto; object-fit: contain; }

/* Meisterbetrieb-Siegel neben dem Ueber-uns-Text */
.seal { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.seal img { width: 116px; height: auto; flex: none; }
