/* ==========================================================================
   Taxi Mirtl – Layout-Variante v2
   Gleiche Inhalte, Schriften und Bilder wie die Hauptseite, eigenes Layout.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-var.woff2') format('woff2');
}

:root {
  --red: #d63c35;
  --red-hover: #b5312b;
  --ink: #111214;
  --ink-2: #1d1f23;
  --muted: #5d616b;
  --muted-dark: #a3a7b0;
  --paper: #f6f5f2;
  --card: #ffffff;
  --line: #e4e1da;
  --line-dark: rgb(255 255 255 / 12%);
  --ok: #1f9d55;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* --- Basis ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Footer sitzt auch auf kurzen Seiten (Impressum) unten – kein heller Streifen darunter */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: .95rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .75em 1.5em;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { font-size: 1.15em; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b2d33; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #ececec; }

/* --- Header (schwebende Leiste) ------------------------------------------- */

.hdr {
  position: sticky; top: 12px; z-index: 50;
  margin-top: 12px;
  padding-inline: var(--gutter);
}
.hdr-inner {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  max-width: var(--wrap); margin-inline: auto;
  padding: 8px 8px 8px 22px;
  background: rgb(255 255 255 / 86%);
  backdrop-filter: saturate(1.5) blur(14px);
  border: 1px solid rgb(17 18 20 / 8%);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgb(17 18 20 / 8%);
}
.logo img { width: 112px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 10px 16px; border-radius: 999px;
  font-weight: 500; font-size: .975rem; text-decoration: none;
}
.nav a:hover { background: rgb(17 18 20 / 6%); }

.hdr-call { min-height: 46px; padding: .6em 1.2em; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-left: auto; padding: 0;
  border: 0; border-radius: 999px;
  background: rgb(17 18 20 / 6%); color: var(--ink);
  font-size: 1.35rem; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.hdr-call-round { display: none; }

@media (max-width: 900px) {
  .hdr-inner { padding: 6px 6px 6px 18px; }
  .logo img { width: 96px; }
  .hdr-call { display: none; }
  .nav-toggle { display: inline-flex; }
  .hdr-call-round {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 999px;
    background: var(--red); color: #fff; font-size: 1.2rem;
  }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    margin: 0; padding: 8px;
    background: #fff; border: 1px solid rgb(17 18 20 / 8%);
    border-radius: var(--r-md);
    box-shadow: 0 16px 40px rgb(17 18 20 / 12%);
  }
  .js .nav[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 16px; border-radius: var(--r-sm); font-size: 1.05rem; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding: 7px 14px 7px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 500;
}
.status-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
}
.status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  margin-bottom: .35em;
  font-size: clamp(2.8rem, 1.2rem + 4.6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 .accent { color: var(--red); }
.hero-lead {
  max-width: 34ch; margin-bottom: 32px;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.call-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 26px 10px 10px;
  background: var(--red); color: #fff;
  border-radius: 999px; text-decoration: none;
  transition: background-color .15s;
}
.call-cta:hover { background: var(--red-hover); }
.call-cta-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgb(255 255 255 / 18%); font-size: 1.35rem;
}
.call-cta small { display: block; font-size: .8rem; opacity: .85; font-weight: 500; }
.call-cta strong {
  display: block; font-family: var(--display);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
}

.facts {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin: 36px 0 0; padding: 0; list-style: none;
  font-size: .95rem; color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .icon { color: var(--red); font-size: 1.1rem; }

.hero-visual { position: relative; }
.hero-visual > img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: 49% 50%;
  border-radius: var(--r-lg);
}
.float {
  position: absolute;
  padding: 16px 20px;
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgb(17 18 20 / 18%);
}
.float-code {
  left: -28px; bottom: 32px;
  background: #fff;
}
.float-code span { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.float-code strong {
  display: block; font-family: var(--display);
  font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1;
}
.float-247 {
  right: 20px; top: 20px;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
}
.float-247 strong { font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.float-247 span { font-size: .85rem; line-height: 1.3; color: var(--muted-dark); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual > img { aspect-ratio: 4 / 3; }
  .float-code { left: 14px; bottom: 14px; padding: 12px 16px; }
  .float-code strong { font-size: 1.5rem; }
  .float-247 { right: 14px; top: 14px; padding: 12px 14px; }
}
@media (max-width: 560px) {
  .call-cta, .hero-actions .btn { width: 100%; }
  .hero-actions .btn { min-height: 56px; }
}

/* --- Schnellwahl ---------------------------------------------------------- */

.quick + .section { padding-top: clamp(48px, 6vw, 88px); }
.quick-inner {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.quick-label {
  margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.01em;
}
.quick-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.quick-list a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper);
  font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.quick-list .icon { color: var(--red); font-size: 1.1rem; transition: color .15s; }
.quick-list a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.quick-list a:hover .icon { color: #fff; }

@media (max-width: 700px) {
  .quick-inner { padding: 18px 0 16px; gap: 12px; }
  .quick-label { padding-inline: 20px; }
  /* Chips seitlich wischbar statt umbrechend */
  .quick-list {
    flex-wrap: nowrap; width: 100%;
    overflow-x: auto; overscroll-behavior-x: contain;
    padding: 2px 20px 4px; scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .quick-list::-webkit-scrollbar { display: none; }
}

/* --- Sektionen ------------------------------------------------------------ */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section[data-flush] { padding-top: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { max-width: 16ch; margin: 0; }
.section-head p { max-width: 42ch; margin: 0; color: var(--muted); }

/* --- Leistungen (Kachelraster) -------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "kr kr fl rs"
    "gr fe ku rs"
    "we we pa pa";
  gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.t-kr { grid-area: kr; } .t-fl { grid-area: fl; } .t-rs { grid-area: rs; }
.t-gr { grid-area: gr; } .t-fe { grid-area: fe; } .t-ku { grid-area: ku; }
.t-we { grid-area: we; } .t-pa { grid-area: pa; }

.tile {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 240px; padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tile-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: auto; padding-bottom: 28px;
}
.tile-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--red); color: #fff; font-size: 1.45rem;
}
.tile-num { font-size: .85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile h3 { margin-bottom: .35em; }
.tile p { color: var(--muted); font-size: 1rem; }

.tile { scroll-margin-top: 110px; transition: box-shadow .25s; }
.tile:target { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--red); }

.tile-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile-dark p, .tile-dark .tile-num { color: var(--muted-dark); }
.tile-dark h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

.tile-image { padding: 0; border: 0; color: #fff; min-height: 480px; }
.tile-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
}
.tile-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(17 18 20 / 0%) 30%, rgb(17 18 20 / 70%) 62%, rgb(17 18 20 / 92%) 100%);
}
.tile-image .tile-body { position: relative; z-index: 1; margin-top: auto; padding: 28px; }
.tile-image p { color: rgb(255 255 255 / 85%); }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 600;
}

.tile-red { background: var(--red); border-color: var(--red); color: #fff; }
.tile-red p, .tile-red .tile-num { color: rgb(255 255 255 / 85%); }
.tile-red .tile-icon { background: #fff; color: var(--red); }
.tile-red a { color: #fff; font-weight: 600; }

.pay-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.pay-list li {
  padding: 8px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
}

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "kr kr"
      "fl rs"
      "gr rs"
      "fe ku"
      "we we"
      "pa pa";
  }
}
@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "kr" "rs" "fl" "gr" "fe" "ku" "we" "pa";
  }
  .tile { min-height: 0; }
  .tile-image { min-height: 420px; }
}

/* --- App ------------------------------------------------------------------- */

.app {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 72px);
  background: var(--ink); color: #fff;
  border-radius: calc(var(--r-lg) + 8px);
  overflow: hidden;
}
.app::before {
  content: ""; position: absolute;
  width: 620px; height: 620px; right: -140px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgb(214 60 53 / 45%), rgb(214 60 53 / 0%));
  pointer-events: none;
}
.app > * { position: relative; z-index: 1; }
.app .eyebrow { color: #ff8a84; }
.app-lead { color: var(--muted-dark); font-size: 1.15rem; max-width: 40ch; }

.code-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin: 32px 0;
  padding: 20px 20px 20px 26px;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
}
.code-box span { display: block; font-size: .875rem; color: var(--muted-dark); }
.code-box strong {
  display: block; font-family: var(--display);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 800;
  letter-spacing: .06em; line-height: 1.05;
}
.copy-btn { min-height: 46px; padding: .55em 1.2em; }
.copy-btn[hidden] { display: none; }

.app-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 0 0 32px; padding: 0; list-style: none; counter-reset: s;
}
.app-steps li { counter-increment: s; font-size: .95rem; color: var(--muted-dark); }
.app-steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-bottom: 10px;
  border-radius: 50%; background: var(--red); color: #fff;
  font-weight: 700; font-size: .9rem;
}
.app-steps strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }

.app-phone { display: flex; justify-content: center; }
.app-phone .mockup {
  width: min(100%, 330px); height: auto;
  filter: drop-shadow(0 30px 50px rgb(0 0 0 / 45%));
}
.mockup .mk-text { font-family: var(--font); }
.mockup .mk-display { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-phone { order: -1; }
  .app-phone .mockup { width: min(72%, 270px); }
  .app::before { right: 50%; top: 18%; transform: translate(50%, -50%); width: 480px; height: 480px; }
}
@media (max-width: 560px) {
  .app-steps { grid-template-columns: 1fr; gap: 14px; }
  .app-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
  .app-steps li::before { margin: 0; }
  .stores .btn { flex: 1 1 100%; }
}

/* --- Über uns ------------------------------------------------------------- */

.about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.about h2 { margin: 0; }
.about-text p { color: var(--muted); font-size: 1.1rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none;
}
.stats li {
  padding: 28px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.stats strong {
  display: block; font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 800;
  letter-spacing: -.04em; line-height: 1; color: var(--red);
}
.stats span { display: block; margin-top: 10px; color: var(--muted); }

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  margin-top: 16px; padding: 24px 28px;
  border-radius: var(--r-lg); border: 1px dashed #cfcac0;
}
.notice .icon { font-size: 1.6rem; color: var(--ink); margin-top: 2px; }
.notice h3 { font-size: 1.05rem; margin-bottom: .3em; }
.notice p { color: var(--muted); font-size: .975rem; }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* --- Kontakt -------------------------------------------------------------- */

.contact {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px;
}
.contact-main {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 340px; padding: clamp(28px, 4vw, 48px);
  background: var(--red); color: #fff; border-radius: var(--r-lg);
}
.contact-main h2 { margin: 0 0 .35em; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.contact-main p { color: rgb(255 255 255 / 85%); }
.contact-number {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  letter-spacing: -.04em; line-height: 1;
  color: #fff; text-decoration: none;
}
.contact-number:hover { text-decoration: underline; text-decoration-thickness: 3px; }

.contact-side { display: grid; gap: 16px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.contact-item .icon { font-size: 1.4rem; color: var(--red); margin-top: 3px; }
.contact-item span { display: block; font-size: .875rem; color: var(--muted); }
.contact-item a, .contact-item strong, .contact-item address {
  font-style: normal; font-weight: 600; font-size: 1.1rem; text-decoration: none;
}
.contact-item a:hover { color: var(--red); }

@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; }
  .contact-main { min-height: 0; }
}

/* --- Themenseiten (z. B. Krankenfahrten) ---------------------------------- */

.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 28px; padding: 0; list-style: none;
  font-size: .9rem; color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #b9b5ac; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.topic-hero { padding-block: clamp(32px, 5vw, 64px) clamp(32px, 4vw, 48px); }
.topic-hero h1 {
  max-width: 14ch; margin-bottom: .3em;
  font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem);
  line-height: 1; letter-spacing: -.045em;
}
.topic-hero h1 .accent { color: var(--red); }

.toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.toc a {
  display: inline-block; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.toc a:hover { border-color: var(--ink); }

.topic {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 56px); align-items: start;
  padding-bottom: clamp(64px, 8vw, 104px);
}
.topic-main { display: grid; gap: 16px; }
.block {
  scroll-margin-top: 110px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.block h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .6em; }
.block p { color: var(--muted); }
.block p + p { margin-top: -.25em; }

.check {
  display: grid; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.check li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
}
.check li::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.check small { display: block; color: var(--muted); font-size: .9rem; }

.flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.flow li {
  counter-increment: f;
  display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  padding-block: 16px; border-top: 1px solid var(--line);
}
.flow li:first-child { border-top: 0; padding-top: 0; }
.flow li::before {
  content: counter(f);
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 800;
}
.flow strong { display: block; margin-bottom: 2px; }
.flow p { margin: 0; }

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  font-size: 1.1rem; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* Seitenkasten mit Telefonnummer */
.topic-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-call {
  padding: 28px; border-radius: var(--r-lg);
  background: var(--red); color: #fff;
}
.aside-call span { display: block; font-size: .9rem; opacity: .85; }
.aside-call a.num {
  display: block; margin: 6px 0 14px;
  font-family: var(--display); font-weight: 800; font-size: 2.1rem;
  letter-spacing: -.03em; line-height: 1.05; color: #fff; text-decoration: none;
}
.aside-call a.num:hover { text-decoration: underline; }
.aside-call p { margin: 0; font-size: .95rem; color: rgb(255 255 255 / 88%); }
.aside-call .aside-mail {
  display: inline-flex; margin-top: 14px; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--red); font-weight: 600; text-decoration: none;
}
.aside-call .aside-mail:hover { background: #f3f3f3; }
.aside-call p a { color: #fff; }
.aside-note {
  padding: 22px 24px; border-radius: var(--r-lg);
  border: 1px dashed #cfcac0; font-size: .95rem; color: var(--muted);
}
.aside-note strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Platzhalter für Angaben, die vom Kunden kommen */
.ph {
  padding: 1px 6px; border-radius: 6px;
  background: #fff4d6; border: 1px dashed #d9a400; color: #6b5200;
  font-size: .92em; font-weight: 500;
}

/* Weitere Leistungen */
.h-sub { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: .8em; }
.related {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.related a {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); font-weight: 600; text-decoration: none;
}
.related a:hover { border-color: var(--ink); }
.related .tile-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; flex: none; }

@media (max-width: 1000px) {
  .topic { grid-template-columns: 1fr; }
  .topic-aside { position: static; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* Telefon steht auf dem Handy schon in der Anruf-Leiste */
  .aside-call { display: none; }
}

/* Karriere-Teaser (nur „Ergänzt“) */
.jobs-teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 40px; padding: clamp(28px, 4vw, 48px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.jobs-teaser h2 { margin: 0 0 .3em; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.jobs-teaser p { margin: 0; color: var(--muted); }
.jobs-teaser .eyebrow { margin-bottom: 12px; }

.topic-hero .topic-lead {
  max-width: 52ch; margin-bottom: 28px;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted);
}

/* Link „Mehr erfahren“ in Kacheln */
.tile-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 600; text-decoration: none; color: var(--red);
}
.tile-more::after { content: "→"; transition: transform .15s; }
.tile-more:hover::after { transform: translateX(3px); }
.tile-dark .tile-more,
.tile-image .tile-more { color: #fff; }

/* --- Footer --------------------------------------------------------------- */

.ftr { background: var(--ink); color: var(--muted-dark); font-size: .95rem; }
.ftr a { color: var(--muted-dark); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-grid {
  display: grid;
  /* erste Spalte breiter, weitere Spalten (2 oder 3) teilen sich den Rest */
  grid-template-columns: 1.3fr; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 32px; padding-block: 56px 40px;
}
.ftr h2 {
  margin-bottom: 14px;
  font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: .02em;
  color: #fff;
}
.ftr address { font-style: normal; }
.ftr ul { margin: 0; padding: 0; list-style: none; }
.ftr li + li { margin-top: 4px; }
.ftr-logo {
  display: inline-block; margin-bottom: 16px; padding: 10px 14px;
  background: #fff; border-radius: var(--r-sm);
}
.ftr-logo img { width: 120px; }
.ftr-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px; border-top: 1px solid var(--line-dark);
  font-size: .875rem; color: #8d919b;
}
.ftr-bottom a { color: #8d919b; }
@media (max-width: 760px) {
  .ftr-grid { grid-template-columns: 1fr; grid-auto-flow: row; gap: 28px; }
}

/* --- Rechtstexte (Impressum, Datenschutz) ---------------------------------- */

.legal {
  display: grid; gap: 16px; max-width: 880px;
  padding-bottom: clamp(64px, 8vw, 104px);
}
.legal .block > :first-child { margin-top: 0; }
.legal h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.legal h4 { font-size: 1rem; margin: 1.3em 0 .3em; }
.legal address, .legal li { color: var(--muted); }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { overflow-wrap: anywhere; }
.ftr a[aria-current="page"] { color: #fff; }

/* --- Mobile Anruf-Leiste --------------------------------------------------- */

.callbar { display: none; }
@media (max-width: 900px) {
  /* Platz für die Anruf-Leiste im (dunklen) Footer statt als heller Streifen darunter */
  .ftr { padding-bottom: 88px; }
  .callbar {
    position: fixed; left: 12px; right: 12px; z-index: 60;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; gap: 8px;
    padding: 6px; border-radius: 999px;
    background: rgb(17 18 20 / 92%);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgb(17 18 20 / 25%);
  }
  .callbar .btn { min-height: 50px; white-space: nowrap; }
  .callbar .btn-red { flex: 1; }
  .callbar .btn-app { color: #fff; padding-inline: 1.2em; }
}

/* --- Bewegung reduzieren --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot::after { animation: none; }
}
