/* FW Dental Handel: Gestaltung der ganzen Website.
   Farben, Schriften und Abstände stehen oben als Variablen, alles andere baut darauf auf. */

/* ---------- Schriften (liegen lokal in assets/fonts, nichts wird von fremden Servern geladen) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variabel.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 95% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben und Grundwerte ---------- */
:root {
  --logoblau: #0389df;          /* das Blau aus dem Logo */
  --praxisblau: #0975c2;        /* etwas dunkler, damit weiße Schrift darauf gut lesbar ist */
  --praxisblau-dunkel: #0b5a94; /* für Links im Text */
  --tafelblau: #0a62a4;         /* dunklere Fläche auf dem Blau, zum Beispiel die Prüfkarte */
  --rahmenblau: #a9d8f6;        /* helle Linien und Rahmen */
  --eisblau: #e9f3fc;           /* heller Hintergrund */
  --himmelblau: #d9e9f7;        /* etwas kräftigerer heller Hintergrund */
  --nachtblau: #0d2236;
  --orange: #f39223;            /* sparsamer Akzent, wie die orange Schutzscheibe an Polymerisationslampen */
  --whatsapp: #11833f;          /* WhatsApp-Grün, dunkel genug für weiße Schrift */
  --whatsapp-dunkel: #0b6630;

  --text: var(--nachtblau);
  --text-leise: #3e556b;
  --linie: #cfe2f2;
  --feldrand: #6f8da8;
  --warnung: #a8470b;

  --schrift-titel: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --breite: 74rem;
  --kopf-hoehe: 4.5rem;
  --kopf-hoehe-oben: 6rem;
  --rahmen-abstand: clamp(0.4rem, 1.1vw, 0.95rem);
  --rahmen-dicke: clamp(3px, 0.45vw, 6px);
  --hintergrund: var(--eisblau);

  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-hoehe) + 1rem);
}

body {
  margin: 0;
  padding-top: var(--kopf-hoehe);
  background: var(--eisblau);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Seiten ohne Kopfzeile (zum Beispiel die Antwort des Formulars) */
body.ohne-kopf {
  padding-top: 0;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--schrift-titel);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 2.6vw + 1.4rem, 3.75rem);
  font-stretch: 115%;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.6rem);
  font-stretch: 112%;
}

h3 {
  font-size: 1.2rem;
  font-stretch: 104%;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--praxisblau-dunkel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--nachtblau);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.ohne-umbruch {
  white-space: nowrap;
}

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

.sprunglink {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--nachtblau);
  color: #fff;
  font-weight: 700;
}

.sprunglink:focus {
  top: 1rem;
  color: #fff;
}

.huelle {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ---------- Knöpfe ---------- */
.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.knopf:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -12px rgba(13, 34, 54, 0.55);
}

.knopf:active {
  transform: none;
  box-shadow: none;
}

.knopf .icon {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.2s;
}

.knopf:hover .icon--extern {
  transform: translate(2px, -2px);
}

.knopf--hell {
  background: #fff;
  color: var(--nachtblau);
}

.knopf--hell:hover {
  background: var(--eisblau);
  color: var(--nachtblau);
}

.knopf--dunkel {
  background: var(--nachtblau);
  color: #fff;
}

.knopf--dunkel:hover {
  background: #18334d;
  color: #fff;
}

.knopf--blau {
  background: var(--praxisblau);
  color: #fff;
}

.knopf--blau:hover {
  background: var(--praxisblau-dunkel);
  color: #fff;
}

.knopf--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.knopf--whatsapp:hover {
  background: var(--whatsapp-dunkel);
  color: #fff;
}

/* ausgefülltes Zeichen statt Linien, etwa das WhatsApp-Logo */
.icon--voll {
  width: 1.35rem;
  height: 1.35rem;
}

.knopf:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid var(--linie);
  background: rgba(255, 255, 255, 0.97);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

@supports (backdrop-filter: blur(8px)) {
  .kopf {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px) saturate(1.3);
  }
}

.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--kopf-hoehe);
  transition: min-height 0.35s ease;
}

/* Startseite: Die Kopfzeile liegt zuerst durchsichtig auf der blauen Fläche und wird beim Scrollen weiß */
.js .kopf--auf-blau {
  border-bottom-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.js .kopf--auf-blau .kopf__innen {
  min-height: var(--kopf-hoehe-oben);
}

.js .kopf--auf-blau .marke,
.js .kopf--auf-blau .marke__zeichen,
.js .kopf--auf-blau .nav__liste a {
  color: #fff;
}

.js .kopf--auf-blau .nav__liste a::after {
  background: #fff;
}

.js .kopf--start {
  animation: von-oben 0.7s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Markenzeichen: FW mit Zahn, daneben DENTAL und HANDEL wie im Logo */
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.75rem;
  color: var(--nachtblau);
  font-family: var(--schrift-titel);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.marke:hover {
  color: var(--nachtblau);
  text-decoration: none;
}

.marke__zeichen {
  flex: none;
  width: auto;
  height: 2.4rem;
  aspect-ratio: 707 / 267;
  color: var(--logoblau);
  fill: currentColor;
  transition: color 0.35s ease;
}

.marke__text {
  display: grid;
  justify-items: start;
}

.marke__dental {
  padding-bottom: 0.2rem;
  border-bottom: 1.5px solid currentColor;
  font-size: 1.05rem;
  font-stretch: 125%;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.marke__handel {
  padding-top: 0.25rem;
  font-size: 0.62rem;
  font-stretch: 110%;
  font-weight: 700;
  letter-spacing: 0.52em;
}

.marke--hell,
.marke--hell:hover,
.marke--hell .marke__zeichen {
  color: #fff;
}

.nav__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__liste a {
  position: relative;
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--nachtblau);
  font-size: 1.0625rem;
  text-decoration: none;
  transition: color 0.35s ease;
}

.nav__liste a::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.3rem;
  left: 0.75rem;
  height: 2px;
  background: var(--logoblau);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__liste a:hover::after,
.nav__liste a:focus-visible::after {
  transform: scaleX(1);
}

.menue-knopf {
  display: none;
}

/* ---------- Platzhalter für Fotos ---------- */
.platzhalter {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--format, 4 / 3);
  overflow: hidden;
  background: var(--platzhalter-grund, var(--eisblau));
  color: var(--logoblau);
}

.platzhalter::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 2px solid var(--rahmenblau);
}

.platzhalter .icon {
  width: clamp(3.5rem, 8vw, 6rem);
  height: clamp(3.5rem, 8vw, 6rem);
  stroke-width: 1.05;
}

.platzhalter--tafel {
  background: var(--logoblau);
  color: #fff;
}

.platzhalter--tafel::before {
  border-color: rgba(255, 255, 255, 0.7);
}

/* ---------- Fotos, mit dem weißen Rahmen aus dem Logo ---------- */
.bild {
  position: relative;
  aspect-ratio: var(--format, 4 / 3);
  margin: 0;
  overflow: hidden;
  background: var(--platzhalter-grund, var(--himmelblau));
}

.bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fokus, 50% 50%);
}

.bild::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

/* kleiner Hinweis auf Bildern, die keine echten Geräte aus dem Lager zeigen */
.bild__hinweis {
  position: absolute;
  bottom: 1.35rem;
  left: 1.35rem;
  z-index: 1;
  margin: 0;
  padding: 0.1rem 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--nachtblau);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Startbereich: der erste Bildschirm ist ganz blau, wie das Logo ---------- */
.start {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(var(--kopf-hoehe) * -1);
  padding: calc(var(--kopf-hoehe-oben) + clamp(1.25rem, 4vh, 3rem)) 0 clamp(1.75rem, 5vh, 3rem);
  overflow: hidden;
  background: var(--praxisblau);
  color: #fff;
}

/* Der weiße Rahmen aus dem Logo, zeichnet sich beim Laden einmal um die Seite */
.start__rahmen {
  position: absolute;
  inset: var(--rahmen-abstand);
  pointer-events: none;
}

.start__rahmen span {
  position: absolute;
  background: #fff;
}

.start__rahmen span:nth-child(1) {
  top: 0;
  right: 0;
  left: 0;
  height: var(--rahmen-dicke);
  transform-origin: left center;
  animation: rahmen-x 0.55s 0.1s cubic-bezier(0.5, 0, 0.75, 1) both;
}

.start__rahmen span:nth-child(2) {
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--rahmen-dicke);
  transform-origin: center top;
  animation: rahmen-y 0.4s 0.65s linear both;
}

.start__rahmen span:nth-child(3) {
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--rahmen-dicke);
  transform-origin: right center;
  animation: rahmen-x 0.55s 1.05s linear both;
}

.start__rahmen span:nth-child(4) {
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rahmen-dicke);
  transform-origin: center bottom;
  animation: rahmen-y 0.4s 1.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.start__inhalt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  align-self: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

/* schmal für einen ruhigen Umbruch, aber breit genug für das längste Wort (Praxisauflösungen) */
.start h1 {
  max-width: 11em;
  color: #fff;
  font-size: clamp(2.2rem, 3vw + 1.2rem, 3.9rem);
}

.start__lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
}

.start .knoepfe {
  max-width: 30rem;
}

.start .knopf {
  flex: 1 1 12rem;
}

.start__text > * {
  animation: auftauchen 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.start__text > :nth-child(1) {
  animation-delay: 0.25s;
}

.start__text > :nth-child(2) {
  animation-delay: 0.4s;
}

.start__text > :nth-child(3) {
  animation-delay: 0.55s;
}

/* Prüfkarte: was mit jedem Gerät passiert, bevor es verkauft wird */
.pruefkarte {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: var(--tafelblau);
  animation: von-rechts 0.9s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pruefkarte__titel {
  margin: 0 0 1.4rem;
  color: #fff;
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.45rem);
  font-stretch: 108%;
}

.pruefkarte__liste {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pruefkarte__liste li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  animation: auftauchen 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pruefkarte__liste li:nth-child(1) {
  animation-delay: 0.9s;
}

.pruefkarte__liste li:nth-child(2) {
  animation-delay: 1.1s;
}

.pruefkarte__liste li:nth-child(3) {
  animation-delay: 1.3s;
}

.pruefkarte__haken {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--nachtblau);
  animation: haken-rein 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

/* der Haken zeichnet sich selbst */
.pruefkarte__haken .icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 2.6;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: haken-zeichnen 0.45s ease-out forwards;
}

.pruefkarte__liste li:nth-child(1) .pruefkarte__haken {
  animation-delay: 1s;
}

.pruefkarte__liste li:nth-child(1) .pruefkarte__haken .icon {
  animation-delay: 1.25s;
}

.pruefkarte__liste li:nth-child(2) .pruefkarte__haken {
  animation-delay: 1.2s;
}

.pruefkarte__liste li:nth-child(2) .pruefkarte__haken .icon {
  animation-delay: 1.45s;
}

.pruefkarte__liste li:nth-child(3) .pruefkarte__haken {
  animation-delay: 1.4s;
}

.pruefkarte__liste li:nth-child(3) .pruefkarte__haken .icon {
  animation-delay: 1.65s;
}

.pruefkarte strong {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.pruefkarte__text {
  display: block;
  margin-top: 0.15rem;
  font-size: 1rem;
  line-height: 1.45;
}

/* Eckdaten am unteren Rand des Startbereichs */
.start__fakten {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: clamp(2rem, 6vh, 3.5rem) 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  list-style: none;
  animation: auftauchen 0.8s 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.fakten__eintrag {
  padding: 1.25rem clamp(1rem, 3vw, 2.25rem) 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.fakten__eintrag:first-child {
  padding-left: 0;
  border-left: 0;
}

.fakten__zahl {
  display: block;
  font-family: var(--schrift-titel);
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.85rem);
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  line-height: 1.1;
}

.fakten__text {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
  line-height: 1.35;
}

/* ---------- Bewegungen ---------- */
@keyframes auftauchen {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes von-rechts {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes von-oben {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rahmen-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}

@keyframes rahmen-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: none;
  }
}

@keyframes haken-rein {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes haken-zeichnen {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Abschnitte ---------- */
.abschnitt {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--hintergrund);
}

.abschnitt--eis {
  --hintergrund: var(--eisblau);
  --platzhalter-grund: var(--himmelblau);
}

.abschnitt--himmel {
  --hintergrund: var(--himmelblau);
  --platzhalter-grund: var(--eisblau);
}

.abschnitt--blau {
  --hintergrund: var(--praxisblau);
  color: #fff;
}

.abschnitt--blau .einleitung,
.abschnitt--blau a:not(.knopf) {
  color: #fff;
}

.abschnitt__kopf {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.einleitung {
  max-width: 40rem;
  color: var(--text-leise);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.2rem);
}

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

/* ---------- Sortiment (eBay) ---------- */
.sortiment__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sortiment__kopf .abschnitt__kopf {
  margin-bottom: 0;
}

.shopkarte {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
  max-width: 25rem;
  padding: 0.9rem 1.25rem 0.9rem 0.9rem;
  border: 1px solid var(--linie);
  background: #fff;
  color: var(--nachtblau);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.shopkarte img {
  width: 5.5rem;
  height: 5.5rem;
}

.shopkarte__name {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 1rem;
  font-stretch: 118%;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shopkarte__info {
  display: block;
  margin-block: 0.2rem 0.45rem;
  color: var(--text-leise);
  font-size: 0.95rem;
  line-height: 1.4;
}

.shopkarte__aktion {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--praxisblau-dunkel);
  font-size: 1rem;
  font-weight: 700;
}

.shopkarte__aktion .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.2s;
}

.shopkarte:hover {
  border-color: var(--rahmenblau);
  color: var(--nachtblau);
  box-shadow: 0 14px 28px -18px rgba(13, 34, 54, 0.45);
  transform: translateY(-2px);
}

.shopkarte:hover .shopkarte__aktion .icon {
  transform: translate(2px, -2px);
}

.kategorien {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--nachtblau);
  list-style: none;
}

.kategorien li {
  border-bottom: 1px solid var(--linie);
}

.kategorie {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  margin-inline: -0.75rem;
  padding: 0.8rem 0.75rem;
  color: var(--nachtblau);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s;
}

.symbolfeld {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #fff;
  color: var(--praxisblau);
  transition: background-color 0.2s, color 0.2s;
}

.symbolfeld .icon {
  width: 1.55rem;
  height: 1.55rem;
}

.kategorie__name {
  flex: 1;
  min-width: 0;
}

.kategorie__pfeil {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--praxisblau);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.kategorie:hover {
  background: #fff;
  color: var(--nachtblau);
}

.kategorie:hover .symbolfeld {
  background: var(--praxisblau);
  color: #fff;
}

.kategorie:hover .kategorie__pfeil {
  opacity: 1;
  transform: translate(2px, -2px);
}

.sortiment__fuss {
  margin: 1.75rem 0 0;
  color: var(--text-leise);
  font-size: 1rem;
}

/* Röntgengeräte gibt es nicht bei eBay: eigener, deutlich sichtbarer Weg auf die Röntgen-Seite */
.direktkarte {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--praxisblau);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.direktkarte::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.direktkarte .symbolfeld {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--praxisblau);
}

.direktkarte .symbolfeld .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.direktkarte__titel {
  display: block;
  font-family: var(--schrift-titel);
  font-size: clamp(1.2rem, 0.6vw + 1.05rem, 1.45rem);
  font-stretch: 108%;
  font-weight: 720;
  line-height: 1.2;
}

.direktkarte__text {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  line-height: 1.45;
}

.direktkarte__aktion {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  background: #fff;
  color: var(--nachtblau);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.direktkarte:hover {
  background: var(--praxisblau-dunkel);
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(13, 34, 54, 0.6);
  transform: translateY(-2px);
}

.direktkarte:hover .direktkarte__aktion {
  background: var(--eisblau);
}

/* ---------- Zweispaltige Abschnitte (Bild und Text) ---------- */
.zweispaltig {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.zweispaltig--bild-rechts {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.punkte {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}

.punkte li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
}

.punkte .icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: var(--praxisblau);
  stroke-width: 2;
}

.beispiele {
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--logoblau);
  color: var(--text-leise);
  font-size: 1rem;
}

/* Im Querformat-Ausschnitt sollen Röntgenarm und Rollen der Geräte sichtbar bleiben */
.grossgeraete__bild {
  --fokus: 50% 40%;
}

/* ---------- Praxisauflösung: Ablauf als Zeitleiste ----------
   Beim Scrollen füllt sich eine orange Linie von Schritt zu Schritt. Erreicht sie einen Schritt, füllt
   sich sein Kreis und das Symbol zeichnet sich selbst. Die Klassen "ist-vermessen" und "ist-erreicht"
   setzt main.js; ohne JavaScript ist alles sofort fertig zu sehen. */
.ablauf {
  --luecke: clamp(1.25rem, 3vw, 2.5rem);
  --marke: 4.5rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--luecke);
  margin: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
  text-align: center;
}

/* die Linie: hell über die ganze Strecke, orange so weit, wie gescrollt wurde */
.ablauf.ist-vermessen::before,
.ablauf.ist-vermessen::after {
  content: "";
  position: absolute;
  top: var(--linie-y);
  left: var(--linie-x);
  width: var(--linie-breite);
  height: var(--linie-hoehe);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.ablauf.ist-vermessen::after {
  background: var(--orange);
  transform: scale(var(--fuellung-x, 1), var(--fuellung-y, 1));
  transform-origin: 0 0;
  transition: transform 0.3s linear;
}

.schritt {
  position: relative;
  z-index: 1;
}

.schritt__marke {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--marke);
  height: var(--marke);
  margin: 0 auto 1.25rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: var(--praxisblau);
  transition: background-color 0.45s ease, border-color 0.45s ease, color 0.45s ease;
}

.schritt__symbol {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schritt__nr {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--nachtblau);
  font-family: var(--schrift-titel);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1;
}

.schritt h3 {
  margin-bottom: 0.4rem;
}

.schritt p {
  margin: 0;
  font-size: 1rem;
}

/* noch nicht erreicht: Kreis nur als Umriss, Symbol noch ungezeichnet, Text zurückgenommen */
.ablauf.ist-vermessen .schritt__marke {
  border-color: rgba(255, 255, 255, 0.45);
  background: var(--praxisblau);
  color: #fff;
}

/* Strich 1, Lücke 2: so bleibt vor dem Zeichnen auch kein runder Linienanfang als Punkt stehen */
.ablauf.ist-vermessen .schritt__symbol {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.05;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.ablauf.ist-vermessen .schritt__nr {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.ablauf.ist-vermessen .schritt h3,
.ablauf.ist-vermessen .schritt p {
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

/* erreicht: Kreis füllt sich weiß, das Symbol zeichnet sich in Blau, die Nummer springt auf */
.ablauf.ist-vermessen .ist-erreicht .schritt__marke {
  border-color: #fff;
  background: #fff;
  color: var(--praxisblau);
}

.ablauf.ist-vermessen .ist-erreicht .schritt__symbol {
  stroke-dashoffset: 0;
}

.ablauf.ist-vermessen .ist-erreicht .schritt__nr {
  opacity: 1;
  transform: none;
}

.ablauf.ist-vermessen .ist-erreicht h3,
.ablauf.ist-vermessen .ist-erreicht p {
  opacity: 1;
}

.ablauf.ist-vermessen .ist-erreicht .schritt__marke::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: ablauf-ring 0.9s ease-out both;
  pointer-events: none;
}

/* beim ersten Vermessen und nach Größenänderungen nichts animieren */
.ablauf.ohne-uebergang *,
.ablauf.ohne-uebergang::after {
  transition: none !important;
}

.ablauf__ende {
  text-align: center;
}

@keyframes ablauf-ring {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* ---------- Über mich ---------- */
.ueber__bild {
  --format: 4 / 5;
  --fokus: 50% 30%;
}

.unterschrift {
  margin: 1.75rem 0 0;
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  font-stretch: 112%;
  font-weight: 720;
  line-height: 1.3;
}

.unterschrift::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--orange);
}

.unterschrift span {
  display: block;
  color: var(--text-leise);
  font-family: var(--schrift-text);
  font-size: 0.95rem;
  font-stretch: normal;
  font-weight: 400;
}

/* ---------- Kontakt ---------- */
.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.kontaktwege {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.kontaktwege li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kontaktwege__art {
  display: block;
  color: var(--text-leise);
  font-size: 0.9rem;
  line-height: 1.3;
}

.kontaktwege__wert {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

/* größere Tippfläche für Telefon und E-Mail, ohne das Layout zu verschieben */
a.kontaktwege__wert {
  display: inline-block;
  margin-block: -0.7rem;
  padding-block: 0.7rem;
}

.kontakt__ebay {
  color: var(--text-leise);
  font-size: 1rem;
}

.formularbox {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-top: 4px solid var(--praxisblau);
  background: #fff;
  box-shadow: 0 24px 48px -32px rgba(13, 34, 54, 0.45);
}

.formular {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

.feld {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.feld--breit {
  grid-column: 1 / -1;
}

.feld label {
  font-size: 1rem;
  font-weight: 700;
}

.optional {
  color: var(--text-leise);
  font-weight: 400;
}

.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--feldrand);
  border-radius: 2px;
  background-color: #fff;
  color: var(--nachtblau);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feld textarea {
  min-height: 9rem;
  resize: vertical;
}

.feld select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230975c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.9rem center;
  background-repeat: no-repeat;
  background-size: 1.1rem;
}

.feld input:focus-visible,
.feld select:focus-visible,
.feld textarea:focus-visible {
  outline: none;
  border-color: var(--praxisblau);
  box-shadow: 0 0 0 3px rgba(3, 137, 223, 0.3);
}

.feld input:user-invalid,
.feld textarea:user-invalid {
  border-color: var(--warnung);
}

/* unsichtbares Feld gegen Spam-Programme */
.falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular__hinweis {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.95rem;
}

.formular__ende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.formular__status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--praxisblau);
  background: var(--eisblau);
  font-size: 1rem;
}

.formular__status.ist-fehler {
  border-left-color: var(--orange);
}

/* ---------- WhatsApp-Knopf unten rechts ---------- */
.whatsapp-knopf {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  height: 3.5rem;
  padding-inline: 0.85rem;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(13, 34, 54, 0.6);
  animation: whatsapp-rein 0.6s 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) both;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Startseite: erst nach dem Rahmen und der Prüfkarte erscheinen */
.whatsapp-knopf--spaet {
  animation-delay: 2.3s;
}

.whatsapp-knopf::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--whatsapp);
  border-radius: inherit;
  opacity: 0;
  animation: whatsapp-ring 1.6s 1.6s ease-out 2;
  pointer-events: none;
}

.whatsapp-knopf--spaet::before {
  animation-delay: 3s;
}

.whatsapp-knopf__zeichen {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
}

.whatsapp-knopf__text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease, margin 0.35s ease;
}

.whatsapp-knopf:hover,
.whatsapp-knopf:focus-visible {
  background: var(--whatsapp-dunkel);
  color: #fff;
  box-shadow: 0 16px 30px -10px rgba(13, 34, 54, 0.65);
  transform: translateY(-2px);
}

.whatsapp-knopf:hover .whatsapp-knopf__text,
.whatsapp-knopf:focus-visible .whatsapp-knopf__text {
  max-width: 11rem;
  margin: 0 0.35rem 0 0.6rem;
}

@keyframes whatsapp-rein {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.5);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes whatsapp-ring {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

/* ---------- Fußbereich ---------- */
.fuss {
  padding-block: 3rem 2rem;
  background: var(--nachtblau);
  color: #d6e6f4;
  font-size: 1rem;
}

.fuss a {
  color: #fff;
}

.fuss a:hover {
  color: var(--rahmenblau);
}

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.fuss__satz {
  max-width: 26rem;
  margin: 1rem 0 0;
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss__links a {
  display: inline-block;
  padding-block: 0.6rem;
}

.fuss__unten {
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(169, 216, 246, 0.2);
  color: #a9c3da;
  font-size: 0.9rem;
}

/* ---------- Impressum und Datenschutz ---------- */
.seitenkopf {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  background: var(--praxisblau);
  color: #fff;
}

.seitenkopf h1 {
  margin-bottom: 0.3em;
  color: #fff;
}

.seitenkopf p {
  max-width: 40rem;
  margin: 0;
}

.rechtstext {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.rechtstext > * {
  max-width: 46rem;
}

.rechtstext h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem);
  font-stretch: 105%;
}

.rechtstext h2:first-child {
  margin-top: 0;
}

.rechtstext ul {
  padding-left: 1.2rem;
}

.stand {
  margin-top: 3rem;
  color: var(--text-leise);
  font-size: 0.95rem;
}

/* ---------- Röntgengeräte ---------- */
.angebot h2 {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.geraete {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.geraet {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  background: #fff;
  box-shadow: 0 24px 48px -36px rgba(13, 34, 54, 0.5);
}

.geraet__bilder {
  position: relative;
  background: var(--himmelblau);
}

.galerie {
  position: relative;
}

/* Fotos nebeneinander: auf dem Handy wischen, am Computer mit den Pfeilen blättern */
.galerie__spur {
  display: flex;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.galerie__spur::-webkit-scrollbar {
  display: none;
}

.galerie__spur:focus-visible {
  outline-offset: -3px;
}

.galerie__eintrag {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.galerie__foto {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.galerie__foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.galerie__knopf {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nachtblau);
  box-shadow: 0 6px 16px -8px rgba(13, 34, 54, 0.6);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
}

.galerie__knopf:hover {
  background: #fff;
  transform: scale(1.06);
}

.galerie__knopf:disabled {
  opacity: 0;
  pointer-events: none;
}

.galerie__knopf--zurueck {
  left: 0.75rem;
}

.galerie__knopf--vor {
  right: 0.75rem;
}

.galerie__knopf .icon {
  width: 1.3rem;
  height: 1.3rem;
  stroke-width: 2.2;
}

.galerie__zahl {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.1rem 0.55rem;
  background: rgba(13, 34, 54, 0.78);
  color: #fff;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.geraet__status {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  margin: 0;
  padding: 0.3rem 0.75rem;
  background: var(--orange);
  color: var(--nachtblau);
  font-size: 0.95rem;
  font-weight: 700;
}

.geraet--verkauft .geraet__status {
  background: var(--nachtblau);
  color: #fff;
}

.geraet--verkauft .galerie__foto img {
  opacity: 0.85;
  filter: grayscale(0.7);
}

.geraet__ohne-foto {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  aspect-ratio: 4 / 3;
  color: var(--praxisblau);
  font-weight: 700;
}

.geraet__ohne-foto .icon {
  width: 3.5rem;
  height: 3.5rem;
  stroke-width: 1.1;
}

.geraet__text {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.geraet__name {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.7rem);
  font-stretch: 108%;
}

.geraet__angaben {
  margin-bottom: 1rem;
  color: var(--text-leise);
}

.geraet__preis {
  margin: 0 0 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--linie);
  font-family: var(--schrift-titel);
  font-size: clamp(1.6rem, 1.2vw + 1.25rem, 2.1rem);
  font-stretch: 110%;
  font-weight: 760;
  line-height: 1.1;
}

.geraet__preis span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-leise);
  font-family: var(--schrift-text);
  font-size: 0.9rem;
  font-stretch: normal;
  font-weight: 400;
  line-height: 1.35;
}

.geraet__preis--anfrage {
  font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
}

.geraet__beschreibung {
  font-size: 1rem;
}

.geraet__beschreibung p {
  margin-bottom: 0.75em;
}

.geraet__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.geraet__aktionen .knopf {
  flex: 1 1 10rem;
}

.geraet__verkauft {
  margin: auto 0 0;
  padding-top: 1.25rem;
  color: var(--text-leise);
  font-size: 1rem;
}

.leer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
  max-width: 48rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff;
  box-shadow: 0 24px 48px -36px rgba(13, 34, 54, 0.5);
}

.leer .symbolfeld {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--eisblau);
}

.leer .symbolfeld .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.leer h3 {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

.hinweise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem clamp(1.25rem, 3vw, 2rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--nachtblau);
  list-style: none;
}

.hinweise li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  font-size: 1rem;
  line-height: 1.45;
}

.hinweise strong {
  display: block;
}

.angebot__fuss {
  margin: 1.5rem 0 0;
  color: var(--text-leise);
  font-size: 1rem;
}

/* Foto groß ansehen */
html:has(.lichtbox[open]) {
  overflow: hidden;
}

.lichtbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(13, 34, 54, 0.95);
  color: #fff;
}

.lichtbox::backdrop {
  background: rgba(13, 34, 54, 0.6);
}

.lichtbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: auftauchen 0.25s ease both;
}

.lichtbox__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--rand);
}

.lichtbox__text {
  margin: 0;
  font-size: 1rem;
}

.lichtbox__bild {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 clamp(0.5rem, 5vw, 5rem) clamp(0.5rem, 3vw, 2rem);
}

.lichtbox__bild img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lichtbox__knopf {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nachtblau);
  cursor: pointer;
}

.lichtbox__knopf:hover {
  background: #fff;
}

.lichtbox__knopf:disabled {
  opacity: 0.3;
  cursor: default;
}

.lichtbox__knopf .icon {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2.2;
}

.lichtbox__knopf--zurueck,
.lichtbox__knopf--vor {
  position: absolute;
  top: 50%;
  margin-top: -1.5rem;
}

.lichtbox__knopf--zurueck {
  left: max(0.5rem, calc(var(--rand) - 1rem));
}

.lichtbox__knopf--vor {
  right: max(0.5rem, calc(var(--rand) - 1rem));
}

/* ---------- Sanftes Einblenden beim Scrollen (nur mit JavaScript aktiv) ---------- */
.js [data-einblenden] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-einblenden].ist-sichtbar {
  opacity: 1;
  transform: none;
}

/* Listen erscheinen Eintrag für Eintrag */
.js [data-gestaffelt] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * var(--stufe, 45ms));
}

.js [data-gestaffelt].ist-sichtbar > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-einblenden],
  .js [data-gestaffelt] > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 62rem) {
  .start__inhalt {
    grid-template-columns: minmax(0, 1fr);
  }

  .pruefkarte {
    max-width: 36rem;
  }

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

  /* Ablauf wird zur senkrechten Zeitleiste: Kreise links, Text rechts */
  .ablauf {
    --marke: 3.75rem;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.25rem;
    text-align: left;
  }

  .schritt {
    display: grid;
    grid-template-columns: var(--marke) minmax(0, 1fr);
    align-items: start;
    column-gap: 1.25rem;
  }

  .schritt__marke {
    grid-row: span 2;
    margin: 0;
  }

  .schritt h3 {
    margin: 0.75rem 0 0.3rem;
  }

  .ablauf__ende {
    text-align: left;
  }

  .zweispaltig,
  .zweispaltig--bild-rechts,
  .kontakt__raster {
    grid-template-columns: minmax(0, 1fr);
  }

  .zweispaltig .platzhalter,
  .zweispaltig .bild {
    --format: 16 / 9;
  }

  .zweispaltig--bild-rechts .platzhalter,
  .zweispaltig--bild-rechts .bild {
    order: -1;
  }

  .zweispaltig .ueber__bild {
    --format: 1 / 1;
    width: min(100%, 14rem);
  }

  .zweispaltig .ueber__bild::after {
    inset: 0.5rem;
  }

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

/* ---------- Menü klappt ein (mit sechs Punkten passt es erst ab 66rem in eine Zeile) ---------- */
@media (max-width: 66rem) {
  .js .menue-knopf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 1.5px solid var(--linie);
    border-radius: 2px;
    background: #fff;
    color: var(--nachtblau);
    font: 700 1rem/1 var(--schrift-text);
    cursor: pointer;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  }

  .js .menue-knopf:hover {
    border-color: var(--rahmenblau);
    background: var(--eisblau);
  }

  .js .kopf--auf-blau .menue-knopf {
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
    color: #fff;
  }

  .js .kopf--auf-blau .menue-knopf:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .menue-knopf[aria-expanded="true"] .icon--auf,
  .menue-knopf[aria-expanded="false"] .icon--zu {
    display: none;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    border-bottom: 1px solid var(--linie);
    background: #fff;
    box-shadow: 0 18px 30px -18px rgba(13, 34, 54, 0.35);
  }

  .js .nav.ist-offen {
    display: block;
    animation: von-oben 0.3s ease both;
  }

  .js .nav__liste {
    flex-direction: column;
    gap: 0;
    padding: 0.25rem var(--rand) 1rem;
  }

  .js .nav__liste a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--linie);
    font-size: 1.125rem;
  }

  .js .nav__liste a::after {
    display: none;
  }
}

/* ---------- Handy: eigener Durchgang ---------- */
@media (max-width: 40rem) {
  :root {
    --kopf-hoehe: 4rem;
    --kopf-hoehe-oben: 4.75rem;
    --rahmen-abstand: 0.4rem;
    --rahmen-dicke: 3px;
  }

  body {
    font-size: 1.0625rem;
  }

  /* lange deutsche Wörter: schmalere Überschriften und Silbentrennung */
  h1,
  h2 {
    font-stretch: 100%;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .start h1 {
    font-size: clamp(2.05rem, 8vw, 2.5rem);
  }

  .kopf__innen {
    column-gap: 0.75rem;
  }

  .js .menue-knopf {
    padding-inline: 0.75rem;
  }

  .marke {
    gap: 0.6rem;
  }

  .marke__zeichen {
    height: 2rem;
  }

  .marke__dental {
    font-size: 0.92rem;
  }

  .marke__handel {
    font-size: 0.55rem;
  }

  .start .knoepfe {
    flex-direction: column;
    max-width: none;
  }

  .start .knopf {
    flex: 0 0 auto;
    width: 100%;
  }

  /* Prüfkarte kompakt: nur die drei Aussagen, ohne Erklärzeile */
  .pruefkarte {
    padding: 1.25rem;
  }

  .pruefkarte__titel {
    margin-bottom: 1rem;
    font-size: 1.15rem;
  }

  .pruefkarte__liste {
    gap: 0.8rem;
  }

  .pruefkarte__liste li {
    align-items: center;
  }

  .pruefkarte__text {
    display: none;
  }

  /* Eckdaten bleiben nebeneinander, aber kompakt */
  .fakten__eintrag {
    padding: 1rem 0.55rem 0;
  }

  .fakten__zahl {
    font-size: 1.1rem;
    font-stretch: 100%;
  }

  .fakten__text {
    font-size: 0.8rem;
  }

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

  .shopkarte {
    max-width: none;
  }

  .shopkarte img {
    width: 4.25rem;
    height: 4.25rem;
  }

  /* Kategorien als einspaltige Liste mit großen Tippflächen */
  .kategorien {
    grid-template-columns: minmax(0, 1fr);
  }

  .kategorie {
    min-height: 3.75rem;
    padding-block: 0.6rem;
    font-size: 1rem;
  }

  .symbolfeld {
    width: 2.4rem;
    height: 2.4rem;
  }

  /* Zeitleiste auf dem Handy etwas kompakter */
  .ablauf {
    --marke: 3.25rem;
    row-gap: 2rem;
    margin-top: 2.5rem;
  }

  .schritt {
    column-gap: 1rem;
  }

  .schritt h3 {
    margin-top: 0.55rem;
  }

  .bild::after {
    inset: 0.5rem;
  }

  .bild__hinweis {
    bottom: 0.95rem;
    left: 0.95rem;
  }

  .zweispaltig .ueber__bild {
    width: 10rem;
  }

  .zweispaltig .ueber__bild::after {
    inset: 0.4rem;
    border-width: 1.5px;
  }

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

  .direktkarte__aktion {
    grid-column: 1 / -1;
    justify-content: center;
  }

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

  .whatsapp-knopf {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .formularbox {
    margin-inline: calc(var(--rand) * -1);
    padding-inline: var(--rand);
  }

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

  .formular__ende .knopf {
    width: 100%;
  }

  .fuss__innen {
    flex-direction: column;
  }

  /* Platz, damit der WhatsApp-Knopf nichts im Fußbereich verdeckt */
  .fuss {
    padding-bottom: 5.5rem;
  }
}
