/* ============================================
   SELF-HOSTED FONTS (DSGVO — no external calls)
   Chosen by the client as free alternatives:
   Theano Didot (OFL, one weight) = Didot
   Nunito (variable, latin subset) = Urbane Rounded
   ============================================ */
@font-face {
  font-family: 'Theano Didot';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/theano-didot.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito.woff2') format('woff2');
}

/* ============================================
   ZAHNMEDIZIN IN FRIEDENAU — brand stylesheet
   Colors & type follow ZM_Fridenau_Guide.pdf
   NAVY  #2b3b4a  text / thin bars only
   BLUE  #a6bdde  nav, section blocks, footer, dividers
   SAND  #f5f0eb  background base + 10% photo overlay
   CORAL #ff828a  accent ONLY (CTA, hover, focus, logo dot)
   ============================================ */
:root {
  --navy: #2b3b4a;
  --blue: #a6bdde;
  --blue-soft: #c4d4ea;      /* lighter blue for highlight bars */
  --blue-tint: #eef3f9;      /* very light blue wash */
  --sand: #f5f0eb;
  --coral: #ff828a;
  --coral-deep: #f2666f;
  --white: #ffffff;
  --navy-70: rgba(43, 59, 74, 0.7);
  --navy-55: rgba(43, 59, 74, 0.55);
  --border: rgba(43, 59, 74, 0.12);

  --ff-display: 'Theano Didot', Georgia, serif;
  --ff-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --max-w: 1280px;
  --pad: clamp(20px, 5vw, 60px);
  --section-gap: clamp(72px, 9vw, 130px);
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 120px;
  zoom: 0.9; /* whole site at 90% (client call: "sowas eigentlich gut 90 Prozent") */
}
body {
  font-family: var(--ff-body);
  color: var(--navy);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Sand 10% overlay filter applied to all content photos for a consistent tone */
.photo { position: relative; overflow: hidden; }
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sand);
  opacity: 0.10;
  pointer-events: none;
}

/* ---------- shared type ---------- */
.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}
.section-title .dot { color: var(--coral); }

/* i-dot: only the tittle in coral (official logo treatment).
   A coral dot is drawn OVER the letter's own tittle, so the
   text stays a real, searchable "i". line-height:1 pins the
   offset to the font metrics, independent of the parent's
   line-height — same placement at every size. Tuned for
   Theano Didot. */
.idot { position: relative; display: inline-block; line-height: 1; }
.idot::after {
  content: '';
  position: absolute;
  top: 0.09em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  background: var(--coral);
}
.section-text {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  color: var(--navy);
  max-width: 620px;
  margin-top: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.link-arrow {
  display: inline-block;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--coral); border-color: var(--coral); }

/* ============================================
   TOP BAR (navy, thin functional strip)
   ============================================ */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 8px var(--pad);
}
.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar .hours { display: flex; gap: 6px; flex-wrap: wrap; }
.top-bar .hours span { white-space: nowrap; }
.top-bar .hours .sep { color: rgba(255,255,255,0.3); }
.top-bar .phone { font-weight: 700; color: var(--white); white-space: nowrap; }
.top-bar a.phone:hover { color: var(--coral); }

/* ============================================
   NAV (blue bar — brand's primary structure color)
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 1px solid rgba(43,59,74,0.08);
  transition: background 0.35s ease;
}
/* Experiment (client call): swap to sand while a full-blue section is behind the nav */
.nav.on-blue { background: var(--sand); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--coral);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--coral-deep); transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links .mobile-book { display: none; } /* booking CTA inside mobile menu only */

/* logo mark (inline SVG + wordmark) */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy);
}
.logo-word .dot { color: var(--coral); }
.logo-word small {
  display: block;
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-70);
  margin-top: 2px;
}

.mobile-toggle { display: none; width: 30px; height: 22px; position: relative; }
.mobile-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--navy); transition: 0.3s;
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 10px; }
.mobile-toggle span:nth-child(3) { top: 20px; }
.mobile-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ============================================
   HERO — big logo + CTA, faint house photo behind
   (experiment from client call)
   ============================================ */
.hero {
  position: relative;
  background: var(--sand);
  padding: 0 var(--pad) clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(88vh, 900px);
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245,240,235,0.9) 0%, rgba(245,240,235,0.94) 70%, var(--sand) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  min-height: min(74vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-images, .hero-welcome { position: relative; z-index: 1; }
/* official mark proportions: big delicate circle, small square (client feedback) */
.hero-logo-mark { width: clamp(96px, 11vw, 140px); height: clamp(96px, 11vw, 140px); margin: 0 auto 26px; }
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8.5vw, 104px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.hero h1 .dot { color: var(--coral); }
.hero .subtitle {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-70);
  margin-top: 14px;
}
.hero .btn { margin-top: 28px; }

/* Welcome text BELOW the hero images (per designer's draft) */
.hero-welcome {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  text-align: center;
  max-width: 780px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}

/* hero image pair — equal size (client feedback) */
.hero-images {
  max-width: var(--max-w);
  margin: clamp(40px, 5vw, 64px) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
}
.hero-images .photo {
  border-radius: 16px;
  aspect-ratio: 4/3;
}
.hero-images .photo img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform; /* scroll-driven zoom (see main.js) */
}

/* ============================================
   PRAXISBESCHREIBUNG — blue block "Unsere Praxis"
   ============================================ */
.praxis {
  background: var(--blue);
  padding: var(--section-gap) var(--pad);
}
.praxis-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* equal, aligned side-by-side (client feedback) */
.praxis-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.praxis-images .photo { border-radius: 14px; aspect-ratio: 3/4; }
.praxis-images .photo img { width: 100%; height: 100%; object-fit: cover; }
.praxis-text .section-text { color: var(--navy); max-width: 520px; }
.praxis-text .section-text + .section-text { margin-top: 16px; }

/* ============================================
   GENERIC SECTION WRAPPER
   ============================================ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-gap) var(--pad);
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-text { margin-left: auto; margin-right: auto; }
/* tighter top spacing (client: too much space before "Die Praxis") */
.section--tight { padding-top: clamp(40px, 5vw, 72px); }

/* ============================================
   TEAM SLIDER
   ============================================ */
.team { background: var(--sand); }
/* scaled down ~90% (client feedback: "Team-Ding kleiner") */
.team-viewport { overflow: hidden; max-width: 1060px; margin: 0 auto; }
.team-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.team-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: 4px;
}
.team-photo {
  border-radius: 16px;
  aspect-ratio: 3/4;
  max-width: 320px;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.team-photo .foto-folgt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-55);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info .name {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}
/* Sans-serif text is Navy only (brand guide: Urbane Rounded
   ausschließlich Navy, Coral nur für Hover-Zustände) */
.team-info .role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 12px 0 20px;
}
.team-info p { color: var(--navy); font-size: clamp(14px, 1.1vw, 16px); }
.team-info p + p { margin-top: 14px; }

.team-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: clamp(28px, 4vw, 44px);
}
.team-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: 0.2s;
}
.team-arrow:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }
.team-dots { display: flex; gap: 8px; }
.team-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(43,59,74,0.25); transition: 0.3s;
}
.team-dot.active { background: var(--coral); transform: scale(1.25); }

/* ============================================
   LEISTUNGSSPEKTRUM — tiles (Kachel)
   Full-blue section (client feedback: rhythm
   sand → blue → sand across the page)
   ============================================ */
.services-section {
  background: var(--blue);
  padding: var(--section-gap) var(--pad);
}
.services-section .services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.service-tile {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-tile:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: 0 14px 30px rgba(43,59,74,0.08);
}
/* feature tile spans the full row — keeps the grid even (12 tiles = 4x3 below).
   Its content rotates through the services (client call: "durchrotieren"). */
.service-tile.wide { grid-column: 1 / -1; }
.service-tile.wide .swap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  transition: opacity 0.35s ease;
}
.service-tile.wide .swap.fading { opacity: 0; }
.service-tile.wide .service-icon { margin-bottom: 0; }
.service-tile.wide h3 { margin-top: 0; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-tile h3 {
  font-family: var(--ff-display);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 400;
  color: var(--navy);
  margin: 10px 0 8px;
  line-height: 1.2;
}
.service-tile p { font-size: 14px; color: var(--navy-70); line-height: 1.6; }

/* Highlighted services — sand bars on the blue section (inverted per client call) */
.highlight-bar {
  background: var(--sand);
  border-radius: 18px;
  padding: clamp(32px, 4vw, 56px);
  margin-top: clamp(20px, 2.4vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.highlight-bar.with-image { grid-template-columns: 1.4fr 1fr; }
.highlight-bar .h-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 14px;
}
.highlight-bar p { color: var(--navy); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.8; }
.highlight-bar .photo { border-radius: 14px; overflow: hidden; }
.highlight-bar .photo img { width: 100%; height: 100%; object-fit: cover; max-height: 320px; }

/* ============================================
   DIE PRAXIS — gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.gallery-item {
  border-radius: 12px;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .cap {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); background: var(--navy-70);
  padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px);
}
.gallery-item .foto-folgt {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-55);
}

/* ============================================
   HYGIENE — blue block
   (Brand guide: Navy darf NICHT großflächig als
   Hintergrund genutzt werden — Blue ist die
   tragende Flächenfarbe für markante Abschnitte.)
   ============================================ */
.hygiene {
  background: var(--blue);
  color: var(--navy);
  padding: var(--section-gap) var(--pad);
}
.hygiene-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hygiene .section-label { color: var(--navy); }
.hygiene .section-title { color: var(--navy); }
.hygiene .section-text { color: var(--navy); }
.hygiene .photo { border-radius: 16px; overflow: hidden; }
.hygiene .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   KONTAKT
   ============================================ */
.contact { background: var(--sand); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-info .section-title { margin-bottom: 28px; }
.contact-detail { margin-bottom: 20px; }
.contact-detail .lbl {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 5px;
}
.contact-detail p { font-size: 15px; color: var(--navy); line-height: 1.6; }
.contact-detail a:hover { color: var(--coral); }
.contact-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 4px; }

/* Google Maps placeholder */
.map-placeholder {
  border-radius: 16px;
  min-height: 260px;
  background: var(--blue-tint);
  border: 1px dashed var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--navy-55); font-size: 13px; text-align: center; padding: 24px;
}
.map-placeholder strong { color: var(--navy); font-weight: 700; }

/* contact form */
.contact-form { margin-top: 26px; display: grid; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-70); margin-bottom: 6px; display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--coral); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ============================================
   FOOTER (blue)
   ============================================ */
footer {
  background: var(--blue);
  color: var(--navy);
  padding: 36px var(--pad);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--coral); }
.footer-copy { font-size: 12px; color: var(--navy-70); }

/* ============================================
   LEGAL / BLOG pages
   ============================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) var(--pad);
}
.legal h1 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}
.legal h2 {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  color: var(--navy);
  margin: 34px 0 10px;
}
.legal h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); margin: 22px 0 6px;
}
.legal p, .legal li { font-size: 15px; color: var(--navy); line-height: 1.8; }
.legal ul { margin: 8px 0 8px 22px; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--coral); }
.legal .lead { font-size: 17px; color: var(--navy-70); margin-bottom: 8px; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }
.legal .block { margin-bottom: 6px; }
.legal .stand { margin-top: 30px; font-weight: 700; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(36px, 5vw, 56px);
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43,59,74,0.08); }
.blog-card .thumb {
  aspect-ratio: 16/10; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-55);
}
.blog-card .body { padding: 22px; }
.blog-card .date {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}
.blog-card h3 {
  font-family: var(--ff-display); font-size: 21px; font-weight: 400; color: var(--navy); margin: 8px 0;
}
.blog-card p { font-size: 14px; color: var(--navy-70); }

/* ============================================
   INTRO — logo animation on first load
   (circle draws in → square appears → wordmark
   fades up → overlay reveals the site)
   ============================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-box { text-align: center; }
/* mark + type metrics mirror the hero exactly, and main.js aligns the
   intro box to the hero logo — so the fade-out reveals the identical
   logo in the identical spot (seamless transition) */
.intro-mark { width: clamp(96px, 11vw, 140px); height: clamp(96px, 11vw, 140px); margin: 0 auto 26px; }
.intro-mark .ic {
  stroke-dasharray: 119.4; /* 2*pi*r, r=19 */
  stroke-dashoffset: 119.4;
  animation: intro-draw 1s ease forwards 0.15s;
}
.intro-mark .is {
  opacity: 0;
  animation: intro-fade 0.45s ease forwards 0.95s;
}
.intro-word {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8.5vw, 104px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--navy);
  opacity: 0;
  transform: translateY(14px);
  animation: intro-rise 0.6s ease forwards 1.15s;
}
.intro-sub {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-70);
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  animation: intro-rise 0.6s ease forwards 1.35s;
}
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-rise { to { opacity: 1; transform: translateY(0); } }
body.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ============================================
   SCROLL FADE-IN
   ============================================ */
.fi { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fi.v { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fi { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-bar.with-image { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 68px;
    flex-direction: column;
    background: var(--blue);
    padding: 20px var(--pad) 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(43,59,74,0.12);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: block; }
  .nav-right .nav-cta { display: none; }
  .nav-links .mobile-book { display: block; }
  .hero-images { grid-template-columns: 1fr; }
  .praxis-inner { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { max-width: 360px; margin: 0 auto; }
  .hygiene-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .top-bar-inner { justify-content: center; text-align: center; }
}
