/* ==========================================================================
   Zahnarztpraxis Knieknecht – gemeinsames Stylesheet
   Farbwelt: Salbeigrün (Basis) + Terrakotta (nur unterster Banner)
   ========================================================================== */

:root {
  --ink: #121212;
  --sage: #818b7e;
  --sage-deep: #6d766a;
  --sage-light: #a7b0a1;
  --terracotta: #a74d4a;
  --terracotta-dark: #8a3d3a;
  --white: #ffffff;
  --text: #121212;               /* dunkler Text, innerhalb weisser Karten */
  --text-light: #4a453f;         /* dunkler Sekundärtext, innerhalb weisser Karten */
  --text-inverse: #ffffff;       /* Text direkt auf Grün/Dunkel */
  --text-inverse-soft: rgba(255, 255, 255, 0.78);
  --border: #ddd6cb;
  --shadow: 0 10px 30px rgba(10, 10, 8, 0.18);
  --shadow-strong: 0 16px 40px rgba(10, 10, 8, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

html.lang-loading body {
  visibility: hidden;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Alles maesstabsgetreu mitschrumpfen auf kleinen Handys.
   Fast das ganze Stylesheet rechnet in rem (Schriften, Innen- und
   Aussenabstaende, Radien). rem haengt an der Grundschriftgroesse hier --
   wird die kleiner, wird ALLES gleichzeitig und im gleichen Verhaeltnis
   kleiner. Damit kann nichts mehr knapp ueber den Rand laufen, statt jeden
   Einzelfall per Hand nachzujustieren.
   Ab 366px Bildschirmbreite bleibt es bei 1rem, also unveraendert zu vorher
   (4.37vw erreicht dort die 16px). Darunter faellt es linear bis 0.875rem
   bei 320px -- das sind 87.5%, sichtbar kleiner, aber noch gut lesbar.
   Nach unten bewusst abgeriegelt: noch kleiner wird Text auf dem Handy
   unangenehm. Gilt nur bis 760px, Tablet und Laptop bleiben exakt wie sie
   sind.
   Grenzwerte absichtlich in rem und nicht in px: rem bezieht sich hier auf
   die Schriftgroesse, die der Nutzer im Browser eingestellt hat. Wer aus
   Sehgruenden groessere Schrift gewaehlt hat, behaelt sie dadurch -- mit
   festen px-Werten waere diese Einstellung ueberschrieben worden. */
@media (max-width: 760px) {
  html { font-size: clamp(0.875rem, 4.37vw, 1rem); }
}

body {
  margin: 0;
  font-family: "Lora", Georgia, "Segoe UI", serif;
  color: var(--text-inverse);
  background: var(--sage);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin: 0 0 0.6rem 0;
  color: var(--text-inverse);
}

p {
  margin: 0 0 1rem 0;
  color: var(--text-inverse-soft);
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

/* Direkt unter dem Seiten-Hero (gleiche Hintergrundfarbe) wirkte der volle
   Section-Abstand oben wie eine zu grosse, leere Lücke vor "Online buchen". */
#online-termin { padding-top: 2.2rem; }

.section-alt {
  background: var(--sage-deep);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.eyebrow {
  display: inline-block;
  color: var(--text-inverse);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.section-header h2 {
  font-size: 2.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn.btn-primary,
.btn.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn.btn-primary:hover,
.btn.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--sage-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-sm {
  padding: 0.7rem 2.4rem;
  font-size: 0.85rem;
}

.nav-cta {
  font-size: 0.76rem;
  padding-left: 3rem;
  padding-right: 3rem;
}

/* Kurzer, immer sichtbarer "TERMIN"-Knopf fürs Handy/Tablet – ersetzt dort
   den vollen nav-cta-Button, der sonst im eingeklappten Menü verschwinden
   würde. Auf dem Desktop bleibt der normale Button im Menü sichtbar. */
.nav-cta-mobile { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sage-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(10, 10, 8, 0.2);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg { width: 22px; height: 22px; fill: #fff; }

/* Logo-Bild (Bilder/logo.jpeg, 1368x902) ist auf den Zahn zugeschnitten,
   kein Leerraum/Text mehr drin -- daher reicht eine einfache Box im echten
   Seitenverhaeltnis des Bildes, kein Zuschneiden/Verschieben noetig.
   mix-blend-mode: multiply macht den weissen Bildhintergrund transparent,
   sodass nur die Zahn-Linie auf dem Seitenhintergrund sichtbar bleibt. */
.brand-logo-crop {
  width: 88px;
  height: 58px;
  flex-shrink: 0;
}

.brand-logo-crop img {
  width: 88px;
  height: 58px;
  display: block;
  mix-blend-mode: multiply;
}

.brand-wordmark {
  font-family: "Fraunces", serif;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text-inverse);
  text-align: center;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--sage-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Quick contact icons ---------- */
.quick-contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-contact a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.quick-contact a:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-1px);
}

.quick-contact svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.quick-contact a:hover svg {
  fill: var(--ink);
}

/* ---------- Language toggle (flags) ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-toggle button {
  width: 45px;
  height: 32px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  display: flex;
  opacity: 1;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-toggle button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-toggle button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Es wird immer nur die Flagge der NICHT eingestellten Sprache gezeigt:
   steht die Seite auf Deutsch, sieht man die englische Flagge (und
   umgekehrt). Die Flagge ist damit kein Statusanzeiger mehr, sondern direkt
   der Umschalter -- deshalb wird die aktive Sprache ausgeblendet und die
   verbleibende Flagge voll deckend dargestellt. Der Rahmen von .active
   entfaellt dadurch. */
.lang-toggle button.active {
  display: none;
}

/* ---------- Main nav ---------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-inverse);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--white);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  font-weight: 700;
}

/* Sprachumschalter im aufgeklappten Handy-Menü -- zeigt die Flagge der
   jeweils NICHT aktiven Sprache an (Klick wechselt dorthin). Auf dem
   Desktop unsichtbar, da dort die Flaggen oben in der Leiste bleiben. */
.nav-lang-switch { display: none; }
.nav-lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
}
.nav-lang-switch button svg { width: 34px; height: 23px; border-radius: 3px; }

/* "Für Kinder"-Reiter: bunt und handgeschrieben, als kleiner Hingucker im
   sonst schlichten Menü (auch im Footer-Linkblock verwendet). */
.nav-kids-link {
  font-family: "Caveat", "Fraunces", cursive;
  font-size: 5.054em;
  line-height: 1;
  font-weight: 700;
  color: #ff2e63; /* Fallback, falls Verlaufstext (unten) nicht unterstützt wird */
  background: linear-gradient(90deg, #ff2e63, #ff9f1c, #ffe600, #2ec4b6, #8338ec);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transform: rotate(-3deg);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .nav-kids-link { -webkit-text-fill-color: initial; color: #ff2e63; }
}
.footer-links .nav-kids-link { font-size: 1.47em; }
.nav-kids-link::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 0 0;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-greeting {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-inverse);
  margin-bottom: 0.8rem;
}

.hero .eyebrow {
  font-size: 1.6rem;
}

.hero h1 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-doctor-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  margin: 1.6rem auto 0 auto;
}

/* Rundes Startseiten-Foto auf dem Laptop/Desktop: erst +15%, +20%, +20%,
   jetzt nochmal +20% (150px -> 180px) -- nur dort, auf dem Handy bleibt
   die bisherige Groesse (90px). */
@media (min-width: 981px) {
  .hero-doctor-photo { width: 180px; height: 180px; }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.hero-trust {
  display: flex;
  gap: 1.8rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust div {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-family: "Fraunces", sans-serif;
  color: var(--text-inverse);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.hero-trust span {
  font-size: 0.82rem;
  color: var(--text-inverse-soft);
}

/* "8+ Jahre Erfahrung" und "7 Tage Notfall-Erreichbarkeit": auf dem Laptop
   waren sie zwischenzeitlich doppelt so gross (2.8/1.64rem), das war zu
   viel -- jetzt halbiert, also wieder die Grundgroesse. Auf dem Handy
   bleiben sie ein Drittel groesser, dafuer naeher zusammen (siehe
   Handy-Block weiter unten). Nebeneinander bleiben sie in beiden Faellen. */
@media (min-width: 981px) {
  .hero-trust { gap: 1.8rem; }
  .hero-trust strong { font-size: 1.4rem; }
  .hero-trust span { font-size: 0.82rem; }
}

/* Full-bleed Titelbild direkt unter dem Hero-Text */
.hero-photo-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 60vh;
  min-height: 380px;
  max-height: 620px;
  overflow: hidden;
  margin-top: 3rem;
}

.hero-photo-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 45%);
}

.hero-photo-full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-full-img { animation: none; }
}

/* Page hero (subpages) */
.page-hero {
  padding: 3.2rem 0;
  background: var(--sage-deep);
  color: #fff;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-inverse-soft); max-width: 620px; margin: 0 auto; }
.page-hero .eyebrow { color: var(--text-inverse); }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #3a3226 0px, #3a3226 18px, #2a251c 18px, #2a251c 36px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ph:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-strong);
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 55%);
}

.ph-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ph-label svg { width: 18px; height: 18px; fill: #fff; opacity: 0.9; flex-shrink: 0; }

.ph-square { aspect-ratio: 1 / 1; min-height: 0; }
.ph-wide { aspect-ratio: 16 / 10; min-height: 0; }
.ph-portrait { aspect-ratio: 3 / 4; min-height: 0; }

/* Foto von Martin Knieknecht auf dem Laptop/Desktop: halbiert, dann +30%,
   +20%, +20%, jetzt nochmal +20% (224px -> 269px) – nur dieses eine Foto,
   nicht die übrigen Team-Platzhalter, und nur auf dem Laptop (Handy bleibt
   beim normalen .ph-portrait-Format). Das hochgeladene Foto (Bilder/n.png)
   ist quadratisch (524x524) – die Box darum ist ebenfalls quadratisch,
   damit das Bild sie exakt ausfüllt statt ungleichmässige weisse Ränder
   zu zeigen. Die Karte (inkl. Name/Text) wird im gleichen Verhältnis
   breiter gemacht, damit Kastenbreite und Bildbreite weiter
   zusammenpassen. */
@media (min-width: 981px) {
  .team-card[data-member="1"] .ph {
    width: 269px;
    height: 269px;
    max-width: 269px;
    margin: 0 auto;
  }
  .team-card[data-member="1"] {
    flex-basis: 337px;
  }
}

.ph-alt-1 { background: repeating-linear-gradient(135deg, #eae6e1 0px, #eae6e1 18px, #d8d1c4 18px, #d8d1c4 36px); }
.ph-alt-1 .ph-label { color: #121212; text-shadow: none; }
.ph-alt-1 .ph-label svg { fill: #121212; }
.ph-alt-1::before { background: linear-gradient(0deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.05) 55%); }
.ph-alt-2 { background: repeating-linear-gradient(135deg, #4d5449 0px, #4d5449 18px, #5f6a5c 18px, #5f6a5c 36px); }

/* ---------- USP strip ---------- */
.usp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.usp-item {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  /* Grid-Spalten erzwingen sonst ihre Mindestbreite am Inhalt (z. B. das
     lange, unteilbare Wort "Notfalltermine") statt sich auf die
     gleichmaessige 1fr-Breite zu beschraenken -- dadurch wurde auf dem
     Handy die rechte Spalte breiter als verfuegbar und rechts
     abgeschnitten. min-width:0 lässt die Spalte wieder schrumpfen, der
     Text bricht dann stattdessen sauber um. */
  min-width: 0;
  overflow-wrap: break-word;
}

.usp-item .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.usp-item svg { width: 26px; height: 26px; fill: var(--white); }

.usp-item h4 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--text); }
.usp-item p { font-size: 0.88rem; margin: 0; color: var(--text-light); }

/* ---------- Takeover / Praxisübernahme section ---------- */
.takeover {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas: "heading image" "body image";
  gap: 3rem;
  align-items: center;
}
.takeover-heading { grid-area: heading; }
.takeover-image { grid-area: image; }
.takeover-body { grid-area: body; }

.takeover-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.handover-names {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
  flex-wrap: wrap;
}

.handover-name {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
}

.handover-name span.role {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.handover-name strong {
  color: var(--ink);
  font-family: "Fraunces", sans-serif;
}

.handover-arrow {
  font-size: 1.6rem;
  color: var(--text-inverse);
}

/* Abschiedsbrief des Vorgängers: wie ein echter, auf den Schreibtisch
   gelegter Brief gestaltet (weisses Blatt, leicht schief), aber in der
   normalen Website-Schrift gesetzt -- der Tag-Hinweis und die Unterschrift
   machen klar, dass das persönliche Worte von Dr. Schmid sind. */
.handover-letter {
  max-width: 640px;
  margin: 3.5rem auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.6rem 2.8rem;
  transform: rotate(-0.6deg);
}

.handover-letter-tag {
  display: inline-block;
  font-family: "Lora", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage-deep);
  background: rgba(129, 139, 126, 0.14);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.handover-letter-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 1.3rem;
}

.handover-letter-text {
  font-family: "Lora", Georgia, "Segoe UI", serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.handover-letter-signature {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.handover-letter-signature-img {
  height: 58px;
  width: auto;
}

.handover-letter-signature span {
  font-family: "Lora", Georgia, "Segoe UI", serif;
  font-size: 0.95rem;
  color: var(--text-light);
}

@media (max-width: 760px) {
  .handover-letter { padding: 2rem 1.6rem; transform: none; }
  .handover-letter-title { font-size: 1.7rem; }
  .handover-letter-text { font-size: 1rem; }
}

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }

.card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.card-body { padding: 1.4rem 1.5rem 1.6rem 1.5rem; }
.card-body h3 { font-size: 1rem; letter-spacing: 0; color: var(--text); overflow-wrap: break-word; }
.card-body p { font-size: 0.92rem; margin-bottom: 0.8rem; color: var(--text-light); }

.card-link {
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Treatments / pricing ---------- */
.treatment-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Karten als Spalte: der Preis wandert mit margin-top:auto bei allen
     Karten einer Zeile auf dieselbe untere Höhe, egal wie viele
     Stichpunkte die Karte hat. */
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.treatment-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  /* In der Flex-Spalte nicht auf volle Kartenbreite ziehen. */
  align-self: flex-start;
  flex: 0 0 auto;
}

.treatment-icon svg { width: 22px; height: 22px; fill: var(--white); }

.treatment-card h3 { font-size: 1.02rem; margin-bottom: 0.35rem; color: var(--text); }
.treatment-card p { font-size: 0.88rem; margin-bottom: 0.9rem; color: var(--text-light); }

.treatment-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
  /* An den unteren Kartenrand schieben, damit alle Preise einer Zeile
     auf gleicher Höhe stehen. */
  margin-top: auto;
}

.treatment-price .from { font-size: 0.78rem; color: var(--text-light); }
.treatment-price .amount { font-family: "Fraunces", sans-serif; font-weight: 700; color: var(--ink); font-size: 1.1rem; }

.treatment-duration {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin: -0.1rem 0 0.5rem 0;
}

/* Leere Dauer-Zeile: für Besucher ausblenden. Im Entwicklermodus bleibt
   sie sichtbar und bearbeitbar (Platzhalter, siehe unten). */
.treatment-duration:empty { display: none; }

.treatment-bullets {
  margin: 0 0 0.9rem 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

.treatment-bullets li { margin-bottom: 0.3rem; }
.treatment-bullets li:last-child { margin-bottom: 0; }

.price-disclaimer {
  margin-bottom: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.price-disclaimer svg { width: 22px; height: 22px; fill: var(--ink); flex-shrink: 0; margin-top: 2px; }
.price-disclaimer p { margin: 0; color: var(--text-light); }

/* ---------- Category accordion (Behandlungen) ---------- */
.category-list {
  max-width: 900px;
  margin: 0 auto;
}

.category-item {
  background: transparent;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.category-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--sage-light);
  color: var(--text);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.category-header .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-header .icon svg { width: 21px; height: 21px; fill: var(--white); }

.category-header h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
  overflow-wrap: break-word;
}

.category-header .count {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
}

.category-header .chevron {
  font-size: 1.3rem;
  color: var(--ink);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.category-item.open .category-header .chevron {
  transform: rotate(180deg);
}

.category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.4rem;
  background: var(--sage-light);
}

.category-body .cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  padding-bottom: 1.4rem;
  padding-top: 0.2rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
}

.testimonial-stars { font-family: "Fraunces", sans-serif; font-size: 1.4rem; color: var(--ink); letter-spacing: 2px; margin-bottom: 0.8rem; }
.testimonial-card p.quote { font-style: italic; color: var(--text); }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.avatar-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong { font-size: 0.9rem; color: var(--ink); display: block; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-light); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .card-body h3 { margin-bottom: 0.1rem; }
.team-card .role { color: var(--ink); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.7rem; display: block; }

.team-card-clickable {
  border: none;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  width: 100%;
  padding: 0;
}
.card-more {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sage-deep);
}

/* ---------- Team-Bio-Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18, 18, 18, 0.55); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.visible { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 2.2rem; position: relative; box-shadow: var(--shadow-strong);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--sage-light); color: var(--ink); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-photo { width: 120px; height: 120px; margin: 0 auto 1.1rem auto; border-radius: 50%; overflow: hidden; }
.modal-photo .ph { height: 100%; border-radius: 50%; }
.modal-box h3 { font-size: 1.3rem; margin-bottom: 0.1rem; text-align: center; }
.modal-box .role { display: block; color: var(--sage-deep); font-weight: 600; font-size: 0.88rem; margin-bottom: 1.1rem; text-align: center; }
.modal-box .bio p { color: var(--text-light); margin-bottom: 0.9rem; line-height: 1.65; }

/* ---------- Room gallery (mehrere Bilder pro Bereich) ---------- */
.room-gallery { cursor: pointer; }
.room-slides { position: relative; }
.room-slide { display: none; }
.room-slide.active { display: flex; }
.room-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.8rem; }
.room-dots .dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border);
  cursor: pointer; padding: 0;
}
.room-dots .dot.active { background: var(--sage-deep); }

/* ---------- Virtueller 360°-Rundgang (Pannellum) ---------- */
.rundgang-wrap { max-width: 900px; margin: 0 auto; }
.rundgang-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.2rem;
}
.rundgang-tab {
  font-family: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.55rem 1.2rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--white); color: var(--text); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rundgang-tab:hover { border-color: var(--sage); }
.rundgang-tab.active { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--text-inverse); }
.rundgang-viewer-outer {
  position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--sage-deep);
}
.rundgang-viewer { width: 100%; height: clamp(280px, 48vw, 480px); }
.rundgang-badge {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 5; pointer-events: none;
  background: rgba(18, 18, 18, 0.6); color: var(--text-inverse); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.02em; padding: 0.4rem 0.7rem; border-radius: var(--radius-sm);
}
.rundgang-fullscreen {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 5; width: 38px; height: 38px;
  border-radius: 50%; border: none; background: rgba(18, 18, 18, 0.6); color: var(--text-inverse);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.rundgang-fullscreen:hover { background: rgba(18, 18, 18, 0.8); }
.rundgang-fullscreen svg { width: 18px; height: 18px; fill: currentColor; }
.rundgang-wrap noscript p { text-align: center; color: var(--text-light); margin-top: 1rem; }

/* ---------- Lightbox (grosse Ansicht der Raum-Galerie) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(18, 18, 18, 0.8); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox-overlay.visible { display: flex; }
.lightbox-box { max-width: 640px; width: 100%; position: relative; }
.lightbox-close {
  position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--white); color: var(--ink); font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-image { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.lightbox-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1rem; }
.lightbox-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--white);
  color: var(--ink); font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-counter { color: var(--white); font-size: 0.85rem; }

/* ---------- Values ---------- */
.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.value-item {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.value-item h4 { color: var(--text); }
.value-item p { color: var(--text-light); }

/* ---------- Offene Stellen (Jobs) ---------- */
.job-grid { align-items: start; }

.job-card .card-body h4 {
  color: var(--text);
  font-size: 0.92rem;
  margin: 1.1rem 0 0.4rem 0;
}

.job-subtitle {
  color: var(--text-light);
  font-size: 0.82rem;
  margin: 0.4rem 0 0.9rem 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.job-chip {
  display: inline-block;
  background: var(--sage-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.job-apply {
  margin-top: 0.6rem;
}

/* Offene Stellen eingeklappt: nur Titel, Pensum und Lohn sichtbar, der
   lange Beschreibungstext erst nach Klick auf den Header. */
.job-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.4rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.job-header-left { flex: 1; min-width: 0; }
.job-header-left h3 {
  font-size: 1.1rem;
  color: var(--text);
  overflow-wrap: break-word;
  margin: 0 0 0.2rem 0;
}
.job-header-left h3 div { font-size: 0.9em; }
.job-header .job-meta { margin-bottom: 0; }
.job-header .chevron {
  font-size: 1.3rem;
  color: var(--ink);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.job-card.open .job-header .chevron { transform: rotate(180deg); }
.job-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.job-body .card-body { padding-top: 0; }

/* ---------- FAQ Accordion ---------- */
.faq-item {
  background: transparent;
  border: 2px solid var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--sage-light);
  border: none;
  padding: 1.1rem 1.4rem;
  font-family: "Fraunces", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question span:first-child {
  overflow-wrap: break-word;
}

.faq-question .plus {
  font-size: 1.4rem;
  color: var(--ink);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question .plus { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.4rem;
  background: var(--sage-light);
}

.faq-answer p { font-size: 0.92rem; margin: 0 0 1.1rem 0; color: var(--text-light); }
.faq-answer a { text-decoration: underline; color: var(--ink); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.info-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-list li:last-child { border-bottom: none; }

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg { width: 20px; height: 20px; fill: var(--ink); }

.info-list strong { display: block; color: var(--text-inverse); font-size: 0.92rem; }
.info-list span, .info-list a { font-size: 0.9rem; color: var(--text-inverse-soft); }
.info-list a { text-decoration: underline; }

table.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.hours td { padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-inverse-soft); }
table.hours td:last-child { text-align: right; color: var(--text-inverse); font-weight: 500; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

.map-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Spam-Falle im Kontaktformular: muss im Seitenfluss existieren (Bots lesen
   das HTML), darf aber fuer Menschen nicht sichtbar sein. Bewusst nicht
   display:none -- manche Bots ueberspringen genau das. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hinweis unter den Kontaktwegen (WhatsApp / keine Gesundheitsdaten). Soll
   gelesen werden, aber den Blick nicht von Telefonnummer und Adresse
   wegziehen -- deshalb kleiner und etwas zurueckgenommen, mit farbiger
   Kante als Blickanker. */
.channel-note {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--sage);
  background: rgba(168, 192, 144, 0.14);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-light);
}

.booking-embed {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
}
/* Feste Höhe nur als Fallback -- js/booking.js passt die Höhe per
   postMessage dynamisch an, sobald roaa.ch das sendet. Solange noch nicht
   alle Behandlungen im Buchungstool hinterlegt sind, ist der Inhalt kürzer
   als roaa.chs eigene Empfehlung (850px) -- Wert hier bewusst kleiner, um
   nicht unnötig viel weissen Leerraum zu zeigen. Nach Fertigstellung der
   Behandlungsliste ggf. wieder erhöhen. */
.booking-embed iframe { width: 100%; height: 620px; border: 0; display: block; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.booking-placeholder-note { color: var(--text-light); padding: 2rem 1rem; }
.booking-fallback-link { display: inline-flex; }

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.access-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.access-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.access-card svg { width: 22px; height: 22px; fill: var(--white); }
.access-card h4 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--text); }
.access-card p { font-size: 0.88rem; margin: 0; color: var(--text-light); }

/* ---------- Contact form (UI only) ---------- */
.contact-form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: #f7f5f1;
  color: var(--text);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  background: #f0ede6;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.form-feedback { margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; }
.form-feedback-error { color: var(--terracotta-dark); }
.form-feedback-success { color: var(--sage-deep); }


/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
/* overflow-wrap: die E-Mail-Adresse ist ein einziges langes Wort ohne
   Trennstellen (info@zahnarztpraxis-knieknecht.ch, ca. 230px breit). Auf sehr
   schmalen Geraeten waere sie sonst aus der Fusszeile herausgelaufen, weil
   normaler Textumbruch nur an Leerzeichen greift. */
.footer-grid p, .footer-grid a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  overflow-wrap: break-word;
}
.footer-grid a:hover { color: #fff; }

.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand .brand-icon { background: var(--white); }
.footer-brand .brand-icon svg { fill: var(--ink); }
.footer-brand strong { color: #fff; font-family: "Fraunces", sans-serif; }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* 3 Sekunden gedrückt halten aktiviert hier auf dem Handy den
   Entwicklermodus (Ersatz für Strg+Shift+L ohne Tastatur) – daher keine
   Textauswahl/Callout-Menü beim langen Antippen. */
#devModeTrigger {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Gleicher Grund wie oben: 3 Sekunden gedrückt halten auf einem Link schaltet
   ihn im Entwicklermodus in den Bearbeitungsmodus (statt eines nativen
   Auswahl-/Kontextmenüs, das sonst dazwischenfunken würde). */
body.dev-mode-active a {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Sobald ein Link tatsächlich im Bearbeitungsmodus ist (nach Strg-Klick/
   3-Sekunden-Druck), ganz normal Text markieren/bearbeiten können. */
body.dev-mode-active a[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.footer-legal-links {
  display: flex;
  gap: 1.2rem;
  margin-right: 4.5rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.5);
}

.footer-legal-links a:hover {
  color: #fff;
}

.legal-placeholder {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-style: italic;
}

.social-icons { display: flex; gap: 0.7rem; }
.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icons svg { width: 16px; height: 16px; fill: #fff; }


/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
/* Hamburger-Menü greift schon ab 980px (nicht erst 760px): die volle
   Desktop-Navigation (Logo + 4 Menüpunkte + "Termin vereinbaren"-Button)
   braucht rechnerisch ca. 1000px Breite, um nicht umzubrechen/gequetscht
   auszusehen – auf Tablets (meist 760–900px, z. B. iPad im Hochformat)
   reichte das vorher nicht. Logo-/Icon-Vergrösserung bleibt bewusst beim
   kleineren 760px-Umbruchpunkt, gilt also weiterhin nur auf dem Handy,
   nicht auf Tablets. */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  /* Einspaltig gestapelt: Ueberschrift, dann Bild, dann der grosse
     Fliesstext -- statt erst der ganze Text und das Bild ganz zuletzt. */
  .takeover { grid-template-columns: 1fr; grid-template-areas: "heading" "image" "body"; }
  .usp-strip, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .values-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .category-body .cat-grid { grid-template-columns: 1fr; }

  .main-nav ul, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta-mobile { display: inline-flex; font-size: 1rem; padding: 0.4rem 1rem; }
  .main-nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--sage-deep);
    box-shadow: var(--shadow);
  }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }
  .main-nav.open .nav-lang-switch { display: block; }
  /* Oberste Leiste auf Handy/Tablet: Flaggen, dann der TERMIN-Knopf direkt
     daneben, dann die Kontakt-Icons, dann das Hamburger-Menü. */
  .lang-toggle { order: 1; }
  .nav-cta-mobile { order: 2; }
  .quick-contact { order: 3; }
  .nav-toggle { order: 4; }
  /* Alles rechtsbuendig in einer Reihe: TERMIN-Knopf, die 3 Kontakt-Icons,
     Hamburger-Menue (vorher stand TERMIN per space-between allein am linken
     Rand).
     --topbar-gap wird bewusst von BEIDEN Ebenen benutzt: zwischen TERMIN,
     Icon-Gruppe und Menue (gap von .topbar-inner) und zwischen den drei
     Icons selbst (gap von .quick-contact, erbt die Variable). Nur wenn
     beide denselben Wert nehmen, sind alle Abstaende wirklich gleich gross.
     Die Leiste darf dabei NIE umbrechen: der Wert waechst mit der
     Bildschirmbreite bis maximal 1.3rem und schrumpft auf schmalen Geraeten
     so weit mit, dass alles in eine Zeile passt. In die Breite gehen
     TERMIN-Knopf, 3 Icons, Hamburger und 4 Abstaende -- bleiben dafuer
     unter ~74px uebrig, wird der Abstand kleiner statt umzubrechen. Die
     Elemente selbst behalten ihre Groesse (flex-shrink: 0), damit nicht
     stattdessen die Icons gequetscht werden. */
  .topbar-inner {
    --topbar-gap: clamp(0.4rem, calc(25vw - 74px), 1.3rem);
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: var(--topbar-gap);
  }
  .quick-contact { gap: var(--topbar-gap); }
  .nav-cta-mobile, .quick-contact, .nav-toggle { flex-shrink: 0; }
  .nav-cta-mobile { white-space: nowrap; }
  /* Flaggen raus aus der oberen Leiste -- der Sprachwechsel sitzt jetzt
     stattdessen unten im aufgeklappten Menü (siehe .nav-lang-switch). */
  .lang-toggle { display: none; }
  /* Icons etwas kleiner, damit mit dem TERMIN-Knopf dazwischen alles in
     eine Zeile passt (auf Tablet-Breite ist noch genug Platz, ab
     760px/420px unten wird nochmal weiter verkleinert). */
  .quick-contact a { width: 40px; height: 40px; }
  .quick-contact svg { width: 20px; height: 20px; }
  /* Logo und Praxisname nebeneinander statt übereinander, damit die
     zweite Kopfzeile weniger Höhe braucht – wichtig im Querformat, wo die
     beiden oberen Leisten sonst fast den halben Bildschirm einnehmen. */
  /* Schriftzug etwas naeher ans Logo (statt mit grossem Abstand dazwischen),
     wirkt als Einheit harmonischer. */
  /* Jetzt, wo das Logo-Bild selbst sauber zugeschnitten ist (kein
     Leerraum mehr drin), wirkt sich der Abstand hier auch wirklich so
     aus wie er gesetzt ist -- ganz knapp ans Logo. */
  /* Logo und Schriftzug klebten direkt aneinander (gap: 0.05rem) und
     wirkten dadurch gequetscht -- jetzt deutlich mehr Luft dazwischen.
     Mehr als ~1.5rem geht auf schmalen Handys nicht, sonst passen Logo und
     "Zahnarztpraxis Knieknecht" nicht mehr in eine Zeile. */
  .brand { flex-direction: row; align-items: center; gap: 1.5rem; }
  .brand-wordmark { text-align: left; }
  /* Logo+Schriftzug als Einheit echt mittig setzen (gleich viel Platz
     links vom Logo wie rechts vom Schriftzug), statt sich auf die
     Restbreite von .main-nav (das mobil leer/unsichtbar ist) zu verlassen. */
  .nav-wrap { justify-content: center; }
}

@media (max-width: 760px) {
  /* Auf dem Handy war an JEDEM Abschnittswechsel sehr viel leere Flaeche:
     4.5rem unten + 4.5rem oben = 9rem nur Abstand zwischen zwei
     Abschnitten. Da die Abschnitte abwechselnd hell und sage-gruen sind
     (.section / .section-alt), fiel das als breite, leere Farbflaeche auf --
     besonders zwischen dem Zitat "...sagt Knieknecht" und "Unser Team",
     unter dem 3D-Rundgang und bei den offenen Stellen. Hier global knapper
     gesetzt; auf dem Laptop bleiben die 4.5rem unveraendert. */
  .section { padding: 2.2rem 0; }
  /* Der Abstand zwischen Abschnitts-Ueberschrift und Inhalt darunter
     (3rem) war auf dem Handy ebenfalls zu gross. */
  .section-header { margin-bottom: 1.4rem; }
  #takeoverSection { padding-bottom: 2.2rem; }
  /* Dieselbe Logik fuer die restlichen grossen Abstaende, die auf dem Handy
     als leere Flaechen auffielen (Werte gelten nur hier, Laptop bleibt). */
  .hero { padding-top: 2rem; }
  .hero-photo-full { margin-top: 1.4rem; }
  .usp-strip { margin-top: 1.6rem; }
  .site-footer { padding-top: 2rem; }
  .rundgang-tab { font-size: 0.78rem; padding: 0.5rem 0.9rem; }
  .rundgang-viewer { height: clamp(240px, 62vw, 420px); }
  /* In rem statt px, damit Logo und Foto auf kleinen Handys zusammen mit der
     Schrift kleiner werden (siehe html font-size oben). Bei der normalen
     Grundschrift von 16px sind das 102x67px (+20%) -- Seitenverhaeltnis von
     Bilder/logo.jpeg (1368x902). */
  .brand-logo-crop { width: 6.375rem; height: 4.1875rem; }
  .brand-logo-crop img { width: 6.375rem; height: 4.1875rem; }
  .brand-wordmark { font-size: 1.445rem; }
  /* Auf echten Handys (ab hier, nicht mehr nur Tablet) muessen Flaggen,
     TERMIN-Knopf, Kontakt-Icons UND Hamburger-Menue zusammen in eine
     Zeile passen. */
  /* TERMIN-Knopf und die 3 Kontakt-Icons nochmal 20% groesser. */
  .nav-cta-mobile { font-size: 1.03rem; padding: 0.36rem 0.6rem; }
  .lang-toggle button { width: 34px; height: 24px; }
  /* Runde Kreise um die Kontakt-Icons wieder zurueck -- es ist inzwischen
     genug Platz dafuer. */
  .quick-contact a {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .quick-contact a:hover, .quick-contact a:active {
    background: var(--white); border-color: var(--white); transform: translateY(-1px);
  }
  .quick-contact a:hover svg, .quick-contact a:active svg { fill: var(--ink); opacity: 1; }
  .quick-contact svg { width: 2.0625rem; height: 2.0625rem; }
  /* Innenabstand knapper; die Abstaende zwischen den Knoepfen kommen aus
     --topbar-gap (siehe 980px-Block). */
  .topbar-inner { padding: 0.35rem 0.4rem; }
  /* Etwas Raum zwischen der Icon/Flaggen-Leiste und dem Hamburger-Menü
     darunter, damit die beiden Reihen nicht ineinander laufen. */
  .topbar { margin-bottom: 0.35rem; }
  /* .usp-strip (die 4 Kacheln "Moderne Technik" etc.) bleibt bewusst bei
     2 Spalten (2x2) statt einspaltig, auf Wunsch so auch auf dem Handy. */
  .grid-2, .grid-3, .grid-4, .values-list, .access-grid, .form-row {
    grid-template-columns: 1fr;
  }
  /* "Sanfte Behandlung" brach in der 2-spaltigen Mobil-Kachel so knapp um,
     dass das letzte "g" allein in einer 3. Zeile landete. Schrift etwas
     kleiner und weniger Innenabstand -- etwas mehr Platz fuer den Text,
     gilt fuer alle 4 Kacheln gleichermassen. */
  .usp-item { padding: 1.3rem 0.9rem; }
  .usp-item h4 { font-size: 0.92rem; }
  /* "Unsere Räumlichkeiten": der Versuch, auf dem Handy 2 nebeneinander zu
     zeigen, blieb trotz mehrerer Korrekturen unterschiedlich gross --
     daher jetzt stattdessen untereinander (1 Spalte), wie die anderen
     .grid-3-Nutzungen auch. Damit greift automatisch wieder die normale,
     volle .ph-label-Grösse von weiter oben. */
  /* Martins Foto auf der Team-Seite: auf dem Handy bisher ohne eigene
     Groesse (einfach die volle, recht breite Kartenbreite in 3:4) --
     dann eine eigene, quadratische Box (160px -> 128px -> 179px), jetzt
     nochmal +20% (179px -> 215px). */
  .team-card[data-member="1"] .ph {
    width: 13.4375rem;
    height: 13.4375rem;
    max-width: 13.4375rem;
    margin: 0 auto;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.25rem; }
  /* Rundes Startseiten-Foto auch auf dem Handy: 90px -> 108px, dann +20%
     (108px -> 130px), jetzt nochmal ein Viertel groesser (130px -> 163px). */
  .hero-doctor-photo { width: 10.1875rem; height: 10.1875rem; }
  /* "8+ Jahre Erfahrung" und "7 Tage Notfall-Erreichbarkeit" auf dem Handy
     ein Drittel groesser (1.4 -> 1.87rem bzw. 0.82 -> 1.09rem), dafuer
     enger zusammengeschoben, um die zusaetzliche Hoehe wieder einzusparen.
     Sie bleiben nebeneinander. */
  .hero-trust { gap: 0.5rem; margin-top: 1.6rem; }
  /* Die groesseren Beschriftungen brauchen auf dem Handy zwei Zeilen. Ohne
     Zentrierung waere der Text linksbuendig in einer mittig stehenden
     Spalte gelaufen und haette ausgefranst gewirkt. */
  .hero-trust div { align-items: center; text-align: center; }
  .hero-trust strong { font-size: 1.87rem; }
  .hero-trust span { font-size: 1.09rem; }
  .page-hero h1 { font-size: 1.6rem; }
  /* Weisser Kasten "Die Online-Terminbuchung wird gerade eingerichtet":
     nahm auf dem Handy sehr viel Platz ein, vor allem durch den Leerraum
     rundherum (1.5rem Kasten-Innenabstand + 2rem am Text selbst).
     Beides deutlich reduziert. */
  .booking-embed { padding: 0.5rem; }
  .booking-placeholder-note { padding: 0.6rem 0.5rem; margin: 0; }
  /* Grosse leere Flaeche zwischen "Kontakt & Anfahrt" (Seitenkopf) und
     "Termin online vereinbaren" darunter -- oben am Seitenkopf und unten
     an der Buchungssektion jeweils gekuerzt. */
  .page-hero { padding: 2rem 0; }
  #online-termin { padding-top: 1.2rem; padding-bottom: 2.25rem; }
  #online-termin .section-header { margin-bottom: 1.2rem; }
  .section-header h2 { font-size: 1.68rem; }
  .map-actions { flex-direction: column; }
  .map-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero-photo-full { height: 42vh; min-height: 260px; }
  .footer-legal-links { margin-right: 0; }
}

@media (max-width: 420px) {
  .quick-contact svg { width: 30px; height: 30px; }
  .nav-cta-mobile { font-size: 0.96rem; padding: 0.34rem 0.5rem; }
  .nav-wrap { gap: 0.6rem; }
  /* Knoepfe brechen hier bewusst NICHT um: sie bleiben alle Einzeiler
     (.btn hat white-space: nowrap). Noetig ist der Umbruch auch nicht mehr,
     seit sich auf kleinen Handys alles proportional verkleinert (siehe
     html font-size oben) -- die laengste Beschriftung der Seite ("Mehr über
     die Praxisübergabe") braucht bei 320px rund 272px, verfuegbar sind 278px.
     Umbruch gibt es nur bei den Kartenknoepfen weiter oben
     (.map-actions .btn), die dort absichtlich als breite Textbloecke
     untereinander stehen.
     Falls spaeter mal eine deutlich laengere Beschriftung dazukommt, braucht
     GENAU dieser Knopf eine eigene Ausnahme mit white-space: normal -- keine
     pauschale Regel fuer alle .btn, sonst wuerde der TERMIN-Knopf umbrechen
     und die obere Leiste zweizeilig werden. */
  /* Seitlicher Innenabstand der Knoepfe hier knapper (1.7rem -> 1.2rem).
     Mit den 1.7rem blieben beim laengsten Knopf nur ~6px Reserve -- ein
     Zeichen mehr im Text und er waere ueber den Rand gelaufen. So sind es
     rund 20px, also Platz fuer 2-3 weitere Zeichen, ohne dass irgendein
     Knopf umbrechen muss. */
  .btn { padding-left: 1.2rem; padding-right: 1.2rem; }
  /* Nur der Innenabstand wird hier knapper -- die Abstaende zwischen den
     Knoepfen regelt --topbar-gap aus dem 760px-Block automatisch mit der
     Bildschirmbreite, damit die Leiste in einer Zeile bleibt. */
  .topbar-inner { padding: 0.3rem 0.35rem; }
}

/* ---------- Entwicklermodus (Strg+Shift+L) ---------- */
.dev-login-overlay {
  position: fixed; inset: 0; background: rgba(18, 18, 18, 0.6); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.dev-login-box {
  background: var(--white); color: var(--text); border-radius: var(--radius);
  padding: 2rem; max-width: 340px; width: 100%; box-shadow: var(--shadow-strong);
  text-align: center;
}
.dev-login-box h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.6rem; }
.dev-login-box p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.2rem; }
.dev-login-box input {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  margin-bottom: 0.9rem; text-align: center; letter-spacing: 0.1em;
}
.dev-login-box .dev-login-error { color: var(--terracotta-dark); font-size: 0.82rem; margin: -0.4rem 0 0.9rem 0; display: none; }
.dev-login-box .dev-login-actions { display: flex; gap: 0.6rem; justify-content: center; }
.dev-login-ok, .dev-login-cancel {
  border: none; border-radius: 999px; padding: 0.7rem 1.4rem; font-weight: 700;
  font-size: 0.85rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.03em;
}
.dev-login-ok { background: var(--terracotta); color: #fff; }
.dev-login-cancel { background: #eee; color: var(--ink); }

/* Oben angeheftet, damit "Datei speichern" und die Abschnitts-Sprungliste
   beim Bearbeiten immer erreichbar bleiben -- vorher musste man dafuer jedes
   Mal ganz nach oben scrollen. */
.dev-toolbar {
  position: sticky; top: 0; z-index: 1500;
  background: var(--terracotta); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
/* Der Seitenkopf ist selbst oben angeheftet (.site-header, position: sticky)
   und wuerde sich im Entwicklermodus mit der Werkzeugleiste auf derselben
   Position ueberlagern -- die Leiste liegt wegen des hoeheren z-index davor
   und wuerde Logo/Menue verdecken. Waehrend des Bearbeitens scrollt der
   Seitenkopf daher normal mit; angeheftet bleibt nur die Werkzeugleiste. */
body.dev-mode-active .site-header { position: static; }

.dev-toolbar span { opacity: 0.9; font-weight: 500; }
.dev-toolbar-warning {
  background: rgba(18, 18, 18, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  opacity: 1 !important;
  font-weight: 700 !important;
}
.dev-toolbar button {
  border: none; border-radius: 999px; padding: 0.5rem 1.1rem; font-weight: 700;
  font-size: 0.8rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.03em;
}
/* Sprungliste zu den Abschnitten der Seite -- spart langes Scrollen beim
   Bearbeiten. */
.dev-toolbar .dev-jump {
  border: none; border-radius: 999px; padding: 0.5rem 0.9rem;
  font-family: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); color: var(--terracotta-dark);
  max-width: 15rem;
}
.dev-toolbar .dev-save-btn { background: #fff; color: var(--terracotta-dark); }
.dev-toolbar .dev-save-all-btn { background: rgba(255,255,255,0.35); color: #fff; }
.dev-toolbar .dev-exit-btn { background: rgba(255,255,255,0.18); color: #fff; }

/* Hinweis in der Werkzeugleiste, wenn ein gespeicherter Entwurf nicht zur
   geladenen Datei passt. Der Entwurf wird dabei nie automatisch gelöscht. */
.dev-draft-notice { display: inline-flex; align-items: center; gap: 0.5rem; }
.dev-draft-notice button {
  border: none; border-radius: 999px; padding: 0.4rem 0.8rem;
  font-family: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.dev-draft-notice .dev-draft-load-btn { background: #fff; color: var(--terracotta-dark); }
.dev-draft-notice .dev-draft-discard-btn { background: rgba(255,255,255,0.18); color: #fff; }

body.dev-mode-active [contenteditable="true"] {
  outline: 1px dashed rgba(167, 77, 74, 0.5);
  outline-offset: 2px;
  cursor: text;
  border-radius: 3px;
}
body.dev-mode-active [contenteditable="true"]:hover { outline-color: var(--terracotta); }
body.dev-mode-active [contenteditable="true"]:focus { outline: 2px solid var(--terracotta); background: rgba(167, 77, 74, 0.06); }

/* ---------- Ein-/ausblenden & dynamisches Zentrieren ---------- */
.dev-hidden { display: none !important; }

[data-center-on-count].center-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
[data-center-on-count].center-flex > * {
  flex: 0 1 300px;
}

/* ---------- Entwicklermodus: Elemente verwalten (zeigen/verstecken/löschen) ---------- */
[data-dev-item] { position: relative; }

body.dev-mode-active [data-dev-item] {
  outline: 1px dashed rgba(167, 77, 74, 0.35);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* .category-item und .card (Team-Kacheln) clippen ihre Ecken normalerweise
   mit overflow:hidden – im Entwicklermodus muss das kurz weichen, damit die
   Steuerungs-Buttons in der Kachel-Ecke nicht abgeschnitten werden. */
body.dev-mode-active .category-item,
body.dev-mode-active .card {
  overflow: visible;
}

body.dev-mode-active [data-dev-item].dev-hidden {
  display: block !important;
  opacity: 0.4;
}
body.dev-mode-active .team-card[data-dev-item].dev-hidden { display: flex !important; }

.dev-item-controls {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 50;
  display: flex;
  gap: 0.3rem;
}

.dev-item-controls button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.dev-item-controls button.dev-toggle-hide-btn { background: var(--sage-deep); }

.dev-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  margin-top: 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.dev-add-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* Die meisten Kachel-Gruppen liegen auf weissem Karten-Hintergrund, daher
   ist das die Standardfarbe des "+ Hinzufügen"-Buttons. Gruppen auf
   dunklem/grünem Hintergrund (aktuell nur die Behandlungs-Rubriken) kriegen
   unten die helle Variante zurück. Neue Gruppen (data-dev-group="xyz")
   funktionieren ohne weitere CSS-Änderung automatisch mit der Standardfarbe. */
[data-dev-group] .dev-add-btn {
  color: var(--ink);
  background: rgba(18, 18, 18, 0.05);
  border-color: rgba(18, 18, 18, 0.25);
}
[data-dev-group] .dev-add-btn:hover {
  background: rgba(18, 18, 18, 0.1);
}
[data-dev-group="category"] .dev-add-btn {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}
[data-dev-group="category"] .dev-add-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Entwicklermodus: Bilder hochladen ---------- */
body.dev-mode-active .ph {
  cursor: pointer;
}
.dev-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 18, 0.45);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.dev-mode-active .ph:hover .dev-upload-overlay { opacity: 1; }
.ph.ph-has-image .dev-upload-overlay { background: rgba(18, 18, 18, 0.35); }

.dev-uploaded-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ph.ph-has-image .ph-label { display: none; }

.dev-remove-img-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 11;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
body.dev-mode-active .ph.ph-has-image .dev-remove-img-btn { display: flex; }

/* ---------- Entwicklermodus: einzelne Fotos pro Raum-Galerie ---------- */
.dev-remove-slide-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 12;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
body.dev-mode-active .room-slide.active .dev-remove-slide-btn { display: flex; }

.dev-add-photo-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.5rem 0.8rem;
  border: 2px dashed rgba(18, 18, 18, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 18, 0.05);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.dev-add-photo-btn:hover { background: rgba(18, 18, 18, 0.1); }
body.dev-mode-active .dev-add-photo-btn { display: flex; }

/* ---------- Entwicklermodus: Stichpunkte in Listen ---------- */
/* Button unter jeder bearbeitbaren Liste; im Bearbeitungsmodus sichtbar.
   Enter/Backspace in den Punkten selbst macht devmode.js (Stichpunkt
   hinzufügen bzw. leeren Punkt löschen). */
.dev-add-bullet-btn {
  display: none;
  margin-top: 0.4rem;
  padding: 0.3rem 0.8rem;
  border: 1px dashed var(--terracotta);
  border-radius: 999px;
  background: transparent;
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.dev-add-bullet-btn:hover { background: rgba(167, 77, 74, 0.08); }
body.dev-mode-active .dev-add-bullet-btn { display: inline-block; }

/* ---------- Entwicklermodus: leere Dauer-Zeilen ---------- */
/* Im Bearbeitungsmodus bleibt eine leere Dauer-Zeile sichtbar und zeigt
   einen Platzhalter, damit man sie anklicken und ausfüllen kann. Der
   Platzhalter ist ein ::before-Pseudo-Element und wird beim Speichern nie
   in die Datei geschrieben. */
body.dev-mode-active .treatment-duration:empty {
  display: inline-block;
  min-width: 150px;
  min-height: 1em;
}
body.dev-mode-active .treatment-duration:empty::before {
  content: "Dauer eintragen …";
  font-style: italic;
  opacity: 0.55;
}

/* ---------- Entwicklermodus: Schrift/Grösse/Farbe-Mini-Editor ---------- */
.dev-style-toolbar {
  position: fixed;
  z-index: 2100;
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--terracotta);
  font-size: 0.78rem;
  max-width: calc(100vw - 16px);
}

.dev-style-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dev-style-field select,
.dev-style-field input[type="number"] {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #fff;
  color: var(--ink);
}

.dev-style-field input[type="number"] {
  width: 64px;
}

.dev-style-field input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: none;
  cursor: pointer;
}

.dev-style-reset {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: var(--terracotta);
  color: #fff;
  align-self: flex-end;
}
.dev-style-reset:hover { background: var(--terracotta-dark); }
