/* ============================================================
   Dentalpraxis Nidau — Version 3
   Editorial black & white, inspired by pascu-die-praxis.de
   ============================================================ */

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

:root {
  --ink:     #1a1a1a;                 /* all dark text, buttons, overlays */
  --gray:    #6f6f6f;                 /* secondary text */
  --cream:   #f4f2ee;                 /* tinted section backgrounds */
  --paper:   #ffffff;                 /* page + cards */
  --line:    rgba(26,26,26,.1);       /* hairlines = transparent ink */
  --font:    'Jost', system-ui, -apple-system, sans-serif;
  --wrap:    1280px;
  --pad:     40px;
}

/* Canvas colour: shows in the iOS status-bar strip and top overscroll,
   matching the hero photo's top tone (avg colour incl. overlay) so the
   page appears to continue upward instead of cutting to white */
html { scroll-behavior: smooth; scroll-padding-top: 84px; background-color: #7a6e63; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Desktop (website version): fill the full screen width on any monitor, so the
   page looks the same on every screen size instead of capping at a fixed band.
   Mobile (≤760) is unaffected — its viewport is already below the old cap. */
@media (min-width: 761px)  { :root { --wrap: 100%; } }
@media (min-width: 1500px) { :root { --pad: 60px; } }

/* ── Shared type ─────────────────────────────── */
.label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}
.display {
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -.01em;
}
h1, h2, h3 { font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }

section { position: relative; }
/* One consistent gap (~92px) between every section, on every monitor */
.section-pad { padding: 46px 0; }

/* ── Buttons / links ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 40px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font);
  transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.inv { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.inv:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Cap header content to the same band as the page so the logo/nav don't
     drift to the screen edges on wide monitors */
  padding: 22px max(var(--pad), calc((100% - var(--wrap)) / 2));
  transition: background .4s, padding .4s, box-shadow .4s;
}
.site-head.solid {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px max(var(--pad), calc((100% - var(--wrap)) / 2));
  box-shadow: 0 1px 0 var(--line);
}
.brand img {
  /* large over the hero so the NIDAU line is legible; the height is driven
     by scroll position in JS (gradual shrink), so only the colour change
     is transitioned here */
  height: 106px;
  width: auto;
  transition: filter .4s;
  /* over the dark hero the black logo is inverted to white */
  filter: brightness(0) invert(1);
}
.site-head.solid .brand img { height: 44px; filter: none; }

.head-main { display: flex; align-items: center; gap: 26px; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav a {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  position: relative;
  transition: color .3s;
}

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 1px; }
.lang-btn {
  background: none; border: none;
  font-family: var(--font);
  font-size: 14px; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  cursor: pointer; padding: 4px 5px;
  transition: color .3s;
}
.lang-btn.active, .lang-btn:hover { color: #fff; }
.site-head.solid .lang-btn { color: var(--gray); }
.site-head.solid .lang-btn.active, .site-head.solid .lang-btn:hover { color: var(--ink); }
.head-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .3s;
}
.head-nav a:hover::after { width: 100%; }
.site-head.solid .head-nav a { color: var(--ink); }
.head-cta {
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  padding: 11px 24px;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  transition: all .3s;
}
.head-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-head.solid .head-cta { border-color: var(--ink); color: var(--ink); }
.site-head.solid .head-cta:hover { background: var(--ink); color: #fff; }

/* Hamburger — a chip keeps it visible over the (bright) hero */
.burger { display: none; flex-direction: column; gap: 6px; background: rgba(26,26,26,.34); border: none; cursor: pointer; padding: 10px 9px; border-radius: 9px; z-index: 110; }
.burger span { width: 26px; height: 2px; background: #fff; transition: .35s; }
.site-head.solid .burger { background: transparent; }
.site-head.solid .burger span { background: var(--ink); }
.burger.open { background: transparent; }
.burger.open span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile language button + popover (left of the burger) */
.m-lang { display: none; position: relative; margin-left: auto; }
.m-lang-btn { background: rgba(26,26,26,.34); border: 1px solid rgba(255,255,255,.4); color: #fff; font-family: var(--font); font-size: 14px; letter-spacing: .1em; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.site-head.solid .m-lang-btn { background: transparent; border-color: var(--line); color: var(--ink); }
.m-lang-pop { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(26,26,26,.16); padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 130; }
.m-lang.open .m-lang-pop { display: flex; }
.m-lang-pop button { background: none; border: none; font-family: var(--font); font-size: 14px; letter-spacing: .08em; color: var(--ink); padding: 9px 26px; cursor: pointer; border-radius: 6px; }
.m-lang-pop button.active, .m-lang-pop button:hover { background: var(--cream); }

/* Mobile menu — a compact dropdown window (does not cover the page) */
.mobile-menu {
  position: fixed;
  top: 74px; right: 12px;
  width: min(260px, 82vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(26,26,26,.24);
  z-index: 108;
  display: flex;
  flex-direction: column;
  padding: 42px 10px 12px;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98);
  transform-origin: top right;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mm-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 20px; line-height: 1; color: var(--gray); cursor: pointer; }
.mm-close:hover { color: var(--ink); }
.mobile-menu a {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .01em;
  text-align: center;
  color: var(--ink);
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; background: var(--ink); color: #fff; border-radius: 8px; padding: 13px 10px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  /* Brighter, but still blended (see gradient below) so the headline stays legible */
  filter: saturate(.95) brightness(.94);
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  /* Lighter at top/middle so the brighter photo shows; strong at the
     bottom so the white headline + subtext stay fully legible */
  background:
    linear-gradient(to bottom, rgba(26,26,26,.42) 0%, rgba(26,26,26,.18) 45%, rgba(26,26,26,.82) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 92px; }
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6.6vw, 84px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 15ch;
  margin-bottom: 34px;
}

/* ============================================================
   STATEMENT / INTRO
   ============================================================ */
/* "Willkommen" — title above the text, both horizontally centred, roomy.
   Title matches the "Spezialistenwissen…" heading; text matches the
   Über-uns body text (same font, colour and size). */
.statement { text-align: center; }
.statement .label {
  display: block;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 30px;
  padding-top: 0;
}
.statement p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: normal;
  color: var(--gray);
  max-width: 58ch;
  margin: 0 auto;
}
.statement em { font-style: normal; }
/* Full-width strip of the treatment names along the section bottom —
   manually turnable: swipe on touch, drag with the mouse (wraps endlessly) */
.st-marquee {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  /* equal space above and below the names — text sits centred in the band
     (the section itself carries no bottom padding, see #willkommen below) */
  padding: 30px 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
}
.st-marquee::-webkit-scrollbar { display: none; }
.st-marquee.dragging { cursor: grabbing; }
.st-track { display: flex; width: max-content; }
.st-run { display: flex; align-items: center; gap: 34px; padding-right: 34px; flex-shrink: 0; }
.st-run span { font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gray); white-space: nowrap; }
/* Treatment names link to their Leistungen card (separator dots don't) */
.st-run span[data-target] { cursor: pointer; transition: color .25s; }
.st-run span[data-target]:hover { color: var(--ink); }
.st-run span[data-target]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; color: var(--ink); }
/* Mobile: smaller strip text so 2–3 treatment names show at once; band
   keeps the same proportions as on desktop (text centred, no extra space) */
@media (max-width: 760px) {
  .st-marquee { padding: 24px 0; }
  .st-run { gap: 20px; padding-right: 20px; }
  .st-run span { font-size: 14px; letter-spacing: .14em; }
}
/* Separate the Willkommen section from Über uns; extra vertical room.
   No bottom padding — the strip's own equal padding closes the section, so
   the names sit centred between the hairline and the section border. */
#willkommen { border-bottom: 1px solid var(--line); background: var(--cream); }
#willkommen.section-pad { padding-bottom: 0; }
@media (max-width: 760px) { #willkommen.section-pad { padding: 68px 0 0; } }

/* Desktop: editorial treatment — cream backdrop (echoes the Leistungen
   section), a thin vertical hairline between title and statement (echoes the
   hero scroll line), and the statement in thin ink display type flowing
   across the page width (~2cm kept free on each side). Section spacing
   matches the other sections (.section-pad default). */
@media (min-width: 761px) {
  /* Title matches the "Spezialistenwissen…" heading (same font, size, colour) */
  /* Same title→text distance as between "Unser Behandlungsangebot" and its
     subtitle (14px) */
  .statement .label { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 14px; }
  .statement p {
    font-size: 18px; /* same as the body texts across the site */
    font-weight: 200;
    line-height: 1.7;
    color: var(--ink);
    max-width: none;
    padding: 0 35px; /* wrap already pads 40px → ~75px ≈ 2cm per side */
  }
}

/* ============================================================
   ABOUT (split)
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--wrap); margin: 0 auto; align-items: center; padding: 46px 0; }
/* Section-level "Über uns" label — desktop only (mobile keeps the in-body one) */
.about-label { display: none; }
/* Image smaller than the section, rounded like the team photos */
.about-media { overflow: hidden; aspect-ratio: 1/1; max-width: 400px; margin: 0 auto; border-radius: 16px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .8s; }
.about:hover .about-media img { transform: scale(1.03); }
.about-body { padding: 24px 56px; display: flex; flex-direction: column; justify-content: center; }
.about-body .label { margin-bottom: 26px; }
.about-body h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 200; margin-bottom: 28px; line-height: 1.12; }
.about-body p { color: var(--gray); font-size: 16px; margin-bottom: 20px; max-width: 46ch; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--cream); }
.services-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
/* "Leistungen" label above the heading — desktop only */
.svc-label { display: none; }
.services-head p { margin: 14px auto 0; }
.services-head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 200; line-height: 1.08; }
.services-head p { color: var(--gray); font-size: 16px; max-width: 40ch; }

/* ============================================================
   TEAM
   ============================================================ */
.team-head { text-align: center; margin-bottom: 70px; }
.team-head .label { display: block; margin-bottom: 22px; }
.team-head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 200; }
/* Centred intro paragraph under a section heading (Team, Praxis, Notfall) */
.section-intro-c { font-size: 16px; line-height: 1.7; color: var(--gray); max-width: 640px; margin: 22px auto 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 6px; }
.member { position: relative; overflow: hidden; background: var(--cream); }
.member img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; transition: transform .8s; }
.member:hover img { transform: scale(1.03); }
/* Members without a photo yet: the neutral human silhouette placeholder */
.member.novphoto { aspect-ratio: 3/4; display: flex; align-items: flex-end; justify-content: center; }
.member.novphoto svg { width: 62%; opacity: .35; }
.member-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 24px;
  background: linear-gradient(to top, rgba(26,26,26,.82), transparent);
  color: #fff;
}
.member-cap h3 { font-size: 20px; font-weight: 300; margin-bottom: 3px; }
.member-cap span { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.member-cap .cv { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.5); padding: 2px 0; cursor: pointer; font-family: var(--font); }
.member-cap .cv:hover { border-color: #fff; }
.member-cap .cv svg { width: 12px; height: 12px; }

/* Staff: distinctly smaller tiles than the dentists (fixed width, centered) */
.team-sub { text-align: center; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); margin: 60px 0 30px; }
.team-grid.staff { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.team-grid.staff .member { width: 182px; }
.team-grid.staff .member img, .team-grid.staff .member.novphoto { aspect-ratio: 1/1; }
.team-grid.staff .member-cap { padding: 15px 15px; }
.team-grid.staff .member-cap h3 { font-size: 16px; }
.team-grid.staff .member-cap span { font-size: 14px; letter-spacing: .04em; }

/* ============================================================
   PRAXIS SLIDER (2 pics per view + arrows on desktop)
   ============================================================ */
.praxis-slider { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 calc(50% - 12px); overflow: hidden; aspect-ratio: 4/3; scroll-snap-align: start; border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.gallery figure:hover img { transform: scale(1.05); }
/* Arrows on a white circular chip (desktop and mobile alike): clearly
   visible over the photos, still calm and professional */
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 16px rgba(26,26,26,.14);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  transition: background .25s, color .25s, border-color .25s;
}
.slide-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.slide-arrow svg { width: 24px; height: 24px; }
.slide-arrow.prev { left: 4px; }
.slide-arrow.next { right: 4px; }
/* Dots under the gallery: one per photo, click to jump */
.slide-dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.slide-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(26,26,26,.18);
  padding: 0;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.slide-dots button:hover { background: var(--gray); }
.slide-dots button.active { background: var(--ink); transform: scale(1.25); }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--ink); color: #fff; text-align: center; }
.cta .label { color: rgba(255,255,255,.55); display: block; margin-bottom: 30px; }
.cta h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 200; line-height: 1.08; margin-bottom: 20px; }
.cta p { color: rgba(255,255,255,.6); font-size: 16px; max-width: 46ch; margin: 0 auto 44px; }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.cta-phone { display: block; margin-top: 40px; font-size: clamp(24px, 3vw, 34px); font-weight: 200; color: #fff; letter-spacing: .02em; }
.cta-phone:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink); color: rgba(255,255,255,.6); padding: 80px 0 34px; }
/* Contact + hours centred (h + v); logo on the right */
.foot-grid { position: relative; display: flex; justify-content: center; align-items: center; gap: 90px; text-align: center; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; min-height: 150px; }
.foot-logo { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.foot-logo img { height: 118px; width: auto; display: block; filter: brightness(0) invert(1); }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; margin-bottom: 22px; }
/* The address itself links to Google Maps */
.foot .f-brand { display: block; font-size: 20px; font-weight: 200; color: #fff; margin-bottom: 16px; }
.foot p { font-size: 16px; line-height: 1.9; }
.foot a:hover { color: #fff; }
.foot-hours { width: 100%; }
.foot-hours tr { display: block; margin-bottom: 10px; }
.foot-hours th { display: block; text-align: center; font-weight: 400; color: rgba(255,255,255,.82); font-size: 14px; padding: 0; }
.foot-hours td { display: block; text-align: center; color: rgba(255,255,255,.5); font-size: 14px; padding: 2px 0 0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 14px; letter-spacing: .06em; color: rgba(255,255,255,.4); }
.foot-bottom nav { display: flex; gap: 26px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { display: none; position: fixed; inset: 0; background: rgba(26,26,26,.82); z-index: 300; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-inner { background: #fff; width: 860px; max-width: 100%; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-inner.sm { width: 640px; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.modal-bar span { font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gray); }
.modal-x { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray); line-height: 1; }
.modal-x:hover { color: var(--ink); }
.modal-scroll { overflow-y: auto; }
.modal-scroll iframe { width: 100%; height: 70vh; border: none; display: block; }
/* Booking welcome banner above the OneDoc widget */
.booking-intro { display: flex; align-items: center; gap: 18px; padding: 18px 26px; background: var(--cream); border-bottom: 1px solid var(--line); }
.booking-logo { height: 42px; width: auto; flex-shrink: 0; }
.booking-intro-txt { display: flex; flex-direction: column; gap: 2px; }
.booking-intro-txt strong { font-size: 16px; font-weight: 500; color: var(--ink); }
.booking-intro-txt span { font-size: 14px; color: var(--gray); line-height: 1.5; }
/* (Duplicate Constantin banner removed — the OneDoc widget already shows him) */
@media (max-width: 520px) { .booking-intro { padding-left: 20px; padding-right: 20px; } .booking-logo { height: 36px; } }
.cv-pad { padding: 44px 48px; }
.cv-pad h3.n { font-size: 30px; font-weight: 200; margin-bottom: 4px; }
.cv-pad .r { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); margin-bottom: 30px; }
.cv-pad h4 { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; margin: 24px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cv-pad ul { list-style: none; color: var(--gray); font-size: 14px; line-height: 1.9; }
.cv-pad ul.dash li::before { content: '— '; color: var(--gray); }

/* Legal modals (Datenschutz / Impressum) */
.legal { padding: 42px 48px; }
.legal h3 { font-size: 30px; font-weight: 200; color: var(--ink); margin-bottom: 6px; }
.legal .sub { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); margin-bottom: 30px; }
.legal h4 { font-size: 16px; font-weight: 400; color: var(--ink); margin: 26px 0 10px; }
.legal p { font-size: 14px; line-height: 1.8; color: var(--gray); margin-bottom: 14px; }
.legal .box { background: var(--cream); border-left: 2px solid var(--line); padding: 16px 20px; margin: 16px 0; font-size: 14px; line-height: 1.7; color: var(--ink); }
.legal .box strong { font-weight: 500; }
@media (max-width: 520px) { .legal { padding: 28px 24px; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   LEISTUNGEN — cards (v2 "Unsere Leistungen" style, v3 look)
   ============================================================ */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
/* centre a lone 7th card in the 3-col grid */
.svc-cards .svc-card2:last-child:nth-child(3n+1) { grid-column: 2; }
.svc-card2 {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;              /* rounded like the team photos */
  padding: 42px 32px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;   /* centre text + symbol */
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, background .4s;
}
.svc-card2:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(26,26,26,.09); background: #fff; }
.svc-ico { width: 52px; height: 52px; color: var(--ink); margin: 0 auto 24px; }
.svc-ico svg { width: 100%; height: 100%; }
.svc-card2 h3 { font-size: 20px; font-weight: 400; color: var(--ink); margin-bottom: 13px; letter-spacing: -.005em; }
.svc-card2 p { font-size: 16px; color: var(--gray); line-height: 1.72; }

/* ============================================================
   TEAM — overlay cards with rounded edges (like the original)
   ============================================================ */
.team-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* Dentists row: slightly smaller, centred cards (between full-width and 760) */
.team-grid:not(.staff) { max-width: 980px; margin-left: auto; margin-right: auto; }
.team-grid.staff { gap: 10px; }
.member { border-radius: 16px; }

/* ============================================================
   NOTFALL
   ============================================================ */
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.nf-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 54px 44px; text-align: center; }
.nf-label { display: block; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); margin-bottom: 18px; }
.nf-num { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 200; color: var(--ink); margin-bottom: 12px; letter-spacing: -.01em; }
.nf-num:hover { color: var(--gray); }
.nf-sub { font-size: 16px; color: var(--gray); }

/* Mobile menu language switch */
.mm-lang { display: flex; gap: 8px; margin-top: 30px; }
.mm-lang .lang-btn { border: 1px solid var(--line); color: var(--gray); padding: 8px 14px; font-size: 14px; letter-spacing: .12em; }
.mm-lang .lang-btn.active { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  border: none;
  background: transparent;
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .35s, transform .35s, color .3s;
  z-index: 90;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { color: var(--ink); }
.to-top svg { width: 26px; height: 26px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  /* header collapses to a hamburger + a language button */
  .head-main { display: none; }
  .burger { display: flex; }
  .m-lang { display: block; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .svc-cards .svc-card2:last-child:nth-child(3n+1) { grid-column: auto; }
}
@media (max-width: 860px) {
  :root { --pad: 24px; }
  .section-pad { padding: 46px 0; }
  .about { padding: 46px 0; grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 1/1; max-width: 340px; }
  .about-body { padding: 24px; text-align: center; align-items: center; }
  .services-head { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .nf-grid { grid-template-columns: 1fr; }
  .nf-cell { padding: 40px 24px; }
  .to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
  /* Footer: stack + centre, logo on top */
  .foot-grid { position: static; flex-direction: column; align-items: center; gap: 30px; }
  .foot-logo { position: static; }
  .foot-logo img { height: 92px; }
}

/* ─────── Phone (mobile version) ─────── */
@media (max-width: 760px) {
  /* Always fill the screen; no sideways overflow */
  html, body { max-width: 100%; overflow-x: hidden; }
  .brand img { height: 94px; }
  .site-head.solid .brand img { height: 58px; }

  /* HERO — the title and button sit at the dark base of the reception-desk
     photo (title above, button below it) */
  .hero { align-items: stretch; }
  .hero-inner { display: flex; flex-direction: column; padding: 0; }
  .hero .wrap { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 128px 24px 60px; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 62px); text-align: center; margin: auto 0 24px; max-width: 100%; }
  .hero .btn.inv { font-size: 14px; padding: 14px 32px; margin: 0; }

  /* TEAM — dentists 1 per row (not full-screen); staff 2 per row, bigger */
  .team-grid:not(.staff) { grid-template-columns: 1fr; max-width: 360px; }
  .team-grid.staff { gap: 12px; }
  .team-grid.staff .member { width: calc(50% - 6px); }

  /* PRAXIS — 1 pic per view, inset from the screen edges with rounded corners
     (like the other photos). Arrow style is shared with desktop (base rules) */
  .praxis-slider { padding: 0 20px; }
  .gallery { gap: 0; scroll-snap-type: x mandatory; }
  .gallery figure { flex: 0 0 100%; border-radius: 16px; scroll-snap-align: center; }

  /* "Unser Behandlungsangebot" title matches the "Spezialistenwissen…"
     heading exactly (same font, colour and size) */
  .services-head h2 { font-size: 32px; font-weight: 200; line-height: 1.12; color: var(--ink); }

  /* Menu links land exactly at the section titles: the section's own top
     padding (46px) slides under the fixed header (~82px), so the title sits
     right below the header instead of further down the screen */
  html { scroll-padding-top: 46px; }

  /* Behandlungsangebot: centre a lone last card (Rekonstruktive) in the
     middle of the page instead of leaving it in the left column */
  .svc-cards .svc-card2:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }

  /* Unify the type on mobile — no italics anywhere */
  em, i { font-style: normal; }

}
@media (max-width: 620px) {
  /* Behandlungsangebot: 2 cards per row, equal gap (H = V), smaller boxes in a
     lighter tone sitting between the beige section and white */
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .svc-card2 { padding: 24px 16px; background: var(--paper); border-radius: 12px; min-width: 0; }
  .svc-ico { width: 42px; height: 42px; margin: 0 auto 16px; }
  .svc-card2 h3 { font-size: 16px; margin-bottom: 10px; }
  /* Bigger text needs hyphenation so long words fit the narrow cards */
  .svc-card2 p { font-size: 14px; line-height: 1.62; hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 520px) {
  .cv-pad { padding: 30px 24px; }
}

/* ============================================================
   DESKTOP-ONLY REFINEMENTS (website version; mobile ≤760 unchanged)
   ============================================================ */
@media (min-width: 761px) {
  /* Leistungen: label above the heading; heading matches the
     "Spezialistenwissen…" heading (same font, size, colour) */
  .svc-label { display: block; margin-bottom: 22px; }
  .services-head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }

  /* Body text bigger on desktop (titles and subtitles unchanged) */
  .about-body p { font-size: 18px; }
  .services-head p { font-size: 18px; }
  .section-intro-c { font-size: 18px; }
  .cta p { font-size: 18px; }
}
@media (min-width: 861px) {
  /* Über uns: the "Über uns" label sits centred above photo + text */
  .about-label { display: block; grid-column: 1 / -1; text-align: center; margin-bottom: 30px; }
  .about-body .label { display: none; }
  /* Larger photo, pulled toward the text on the right */
  .about-media { max-width: 480px; margin-left: auto; margin-right: 0; }
  .about-body { padding-left: 48px; }
  /* Heading and paragraphs share the same invisible text box (equal width),
     so the "Spezialistenwissen…" heading can never run wider than the text */
  .about-body h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 520px; }
  .about-body p { max-width: 520px; }
  /* Kontakt / footer: the three blocks sit close together — Öffnungszeiten
     stays exactly centred, contact and logo pulled in next to it */
  .foot-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 80px; }
  .foot-grid .foot-block:nth-of-type(1) { grid-column: 1; grid-row: 1; justify-self: end; }
  .foot-grid .foot-block:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .foot-logo { grid-column: 3; grid-row: 1; justify-self: start; position: static; top: auto; right: auto; transform: none; }
}
