/*
Theme Name: Dr. Trewella
Theme URI: https://dr-trewella.at
Author: Toelsner Digital
Author URI: https://toelsner.at
Description: Custom theme for Dr. Adriana Trewella — Zahnarztpraxis Wien-Meidling
Version: 4.8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-trewella
*/

:root {
  --green: #89AC76;
  --green-soft: #E8F0E2;
  --green-deep: #5F8449;
  --green-wash: #F2F6EE;

  --sun: #F39F18;
  --sun-soft: #FEF3DC;
  --sun-deep: #D4870A;
  --sun-wash: #FFF8EC;

  --ink: #1E1E1A;
  --ink-mid: #5A5A52;
  --ink-light: #9A9890;
  --cream: #F9F7F2;
  --white: #FDFCFA;
  --line: #E4E1DA;

  --font-head: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }

/* ── ACCESSIBILITY ── */
.skip-nav {
  position: absolute; top: -100%; left: 16px;
  background: var(--green); color: white; padding: 8px 16px;
  font-size: 0.85rem; font-weight: 600; border-radius: 0 0 8px 8px;
  z-index: 9999; text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

body.nav-open { overflow: hidden; }

/* ── URLAUB BANNER ── */
.vacation-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--sun); color: var(--ink); text-align: center;
  padding: 12px 24px; font-size: 0.82rem; font-weight: 600;
  line-height: 1.4; overflow: hidden; height: 44px; display: flex; align-items: center; justify-content: center;
}
.vacation-banner-scroll {
  display: inline-block; white-space: nowrap;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@media(min-width: 768px) {
  .vacation-banner-scroll { animation: none; display: inline; white-space: normal; }
}
.vacation-banner + nav { top: 44px; }
/* When vacation banner is active, push hero down to account for banner + nav */
body:has(.vacation-banner) .hero { padding-top: 116px; }
body:has(.vacation-banner) .subpage { padding-top: 116px; }
@media(min-width: 961px) {
  body:has(.vacation-banner) .gallery-grid { min-height: calc(100vh - 116px); }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--cream);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.1rem;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-img { height: 40px; width: auto; display: block; }
.nav-logo-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.nav-logo-names { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.nav-logo-text em { color: var(--green); font-style: italic; }
/* Zusatzzeile unter dem Namen — gestapelt, daher auch mobil platzsparend */
.nav-logo-sub { font-family: var(--font-body); font-size: 0.62rem; color: var(--ink-light); letter-spacing: 0.4px; white-space: nowrap; }
@media(min-width: 961px) { .nav-logo-sub { font-size: 0.68rem; } }
.nav-links {
  display: none; flex-direction: column; gap: 0; list-style: none;
  position: fixed; top: 72px; left: 0; right: 0;
  height: calc(100vh - 72px); height: calc(100dvh - 72px);
  background: var(--white); padding: 32px 24px; z-index: 150;
  overflow-y: auto;
}
body.nav-open .nav-links { display: flex; }
.vacation-banner ~ nav .nav-links {
  top: 120px;
  height: calc(100vh - 116px); height: calc(100dvh - 116px);
}
.nav-links li { border-bottom: 1px solid var(--line); }
.nav-links a {
  display: block; padding: 18px 0;
  text-decoration: none; color: var(--ink);
  font-size: 1.1rem; font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--green); }
.nav-lang { font-size: 0.78rem; color: var(--ink-light); letter-spacing: 1px; cursor: pointer; font-weight: 400; }
.nav-lang .lang-active { color: var(--ink); font-weight: 600; }
.nav-links .nav-cta {
  background: var(--green); color: white !important;
  padding: 16px 36px; font-size: 1rem; font-weight: 600;
  border-radius: 0; transition: background 0.2s;
  white-space: nowrap; text-align: center;
  display: block; margin-top: 8px;
}
.nav-links .nav-cta:hover { background: var(--green-deep); }
.nav-phone { font-size: 0.88rem; color: var(--ink-mid); text-decoration: none; display: none; }
@media(min-width: 961px) { .nav-phone { display: block; } }
.nav-phone:hover { color: var(--ink); }
.nav-phone-mobile {
  display: block; font-size: 0.8rem; color: var(--ink-mid);
  text-decoration: none; margin-left: auto; margin-right: 14px;
  white-space: nowrap;
}
@media(min-width: 961px) { .nav-phone-mobile { display: none; } }

/* Burger — visible on mobile, hidden on desktop */
.nav-burger {
  display: block; background: none; border: none; cursor: pointer;
  width: 24px; height: 16px; position: relative; z-index: 101;
}
.nav-burger span {
  display: block; width: 100%; height: 1.5px; background: var(--ink-mid);
  position: absolute; left: 0; transition: all 0.3s;
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 7px; }
.nav-burger span:nth-child(3) { top: 14px; }
body.nav-open .nav-burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ── HERO — MOBILE FIRST ── */
.hero { padding-top: 72px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.g-cell {
  overflow: hidden;
}
.g-cell img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Single-image hero: only cell 1 is shown, cells 2-4 live in the gallery section */
.g-cell:nth-child(1) {
  grid-column: 1 / -1;
  position: relative;
  background: linear-gradient(160deg, var(--green-wash), var(--sun-wash));
  display: flex; flex-direction: column; align-items: stretch;
}
.g-cell:nth-child(2),
.g-cell:nth-child(3),
.g-cell:nth-child(4) { display: none; }
/* Mobile: Hero-Bild als kompaktes Banner, damit Überschrift sofort sichtbar ist */
.g-cell:nth-child(1) img { height: 200px; object-fit: cover; }

.g-label {
  font-size: 0.7rem; color: var(--ink-light); text-align: center; line-height: 1.4;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px; width: 100%;
}
.g-label strong {
  display: block; font-family: var(--font-head);
  font-size: 0.85rem; color: var(--ink-mid); font-weight: 400; margin-bottom: 2px;
}

/* Mobile: overlay is a static block, not floating */
.hero-overlay {
  padding: 28px 20px;
  background: var(--green-wash);
  color: var(--ink);
}
.hero-overlay h1 {
  font-size: 1.5rem; margin-bottom: 10px; color: var(--ink);
}
.hero-overlay p {
  font-size: 0.88rem; color: var(--ink-mid);
  margin-bottom: 20px; line-height: 1.7; font-weight: 300;
}
.hero-btn-white {
  background: var(--green); color: white; padding: 12px 24px; text-decoration: none;
  font-weight: 600; font-size: 0.85rem; display: block; text-align: center;
  transition: all 0.2s;
}
.hero-btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.hero-btn-ghost {
  color: var(--green-deep); border-bottom: 1px solid var(--green);
  font-size: 0.82rem; text-decoration: none; padding: 4px 0;
  display: block; margin-top: 14px;
}

/* Mobile: badge is a full-width bar */
.gallery-badge {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.badge-stars { color: var(--sun); font-size: 0.85rem; letter-spacing: 1px; }
.badge-info { font-size: 0.72rem; color: var(--ink-mid); }
.badge-info strong { display: block; color: var(--ink); }

/* ── HERO — DESKTOP (960px+) ── */
@media(min-width: 961px) {
  .hero { min-height: auto; }
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .g-cell {
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .g-cell:nth-child(1) {
    grid-column: 1 / -1;
    height: auto;
    aspect-ratio: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--green-wash);
  }
  /* Foto = sauberes Banner, voll sichtbar; Text steht im Block darunter */
  .g-cell:nth-child(1) img { width: 100%; height: 52vh; min-height: 360px; max-height: 560px; object-fit: cover; }
  .g-cell:nth-child(2),
  .g-cell:nth-child(3),
  .g-cell:nth-child(4) { display: none; }

  .hero-overlay {
    position: static;
    padding: 44px 48px 48px;
    background: var(--green-wash);
    color: var(--ink);
  }
  .hero-overlay h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; color: var(--ink); }
  .hero-overlay p { max-width: 560px; font-size: 0.95rem; margin-bottom: 24px; line-height: 1.75; color: var(--ink-mid); }
  .hero-btn-white {
    display: inline-block; margin-right: 16px; text-align: left;
    padding: 13px 28px;
  }
  .hero-btn-ghost { display: inline; margin-top: 0; }

  .gallery-badge {
    position: absolute; top: 24px; right: 24px;
    justify-content: flex-start;
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom: none;
    border-radius: 4px;
  }
  .badge-stars { font-size: 0.9rem; }
  .badge-info { font-size: 0.75rem; }
}

/* ── INTRO QUOTE ── */
.intro-quote {
  padding: 48px 0; text-align: center;
  border-bottom: 1px solid var(--line);
}
.intro-quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-style: italic; color: var(--ink);
  max-width: 760px; margin: 0 auto; line-height: 1.45;
}
.intro-quote blockquote em { color: var(--green); font-style: italic; }
.intro-quote cite {
  display: block; margin-top: 20px;
  font-size: 0.82rem; color: var(--ink-light); font-style: normal;
  font-family: var(--font-body);
}

/* ── COMMITMENTS ── */
.commitments { padding: 48px 0; background: var(--white); }
.commit-header { margin-bottom: 32px; }
.commit-header h2 { font-size: 1.6rem; margin-bottom: 8px; }
.commit-header p { color: var(--ink-mid); font-size: 0.92rem; }
.commit-list { border-top: 1px solid var(--line); }
.commit-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start;
  transition: background 0.3s;
}
.commit-item:hover { background: var(--cream); }
.commit-num { font-family: var(--font-head); font-size: 1.8rem; color: var(--line); line-height: 1; }
.commit-detail { grid-column: 1/-1; }
.commit-item:hover .commit-num { color: var(--green); }
.commit-item h3 { font-size: 1.4rem; margin-bottom: 8px; }
.commit-item p { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.8; }
.commit-detail { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.8; }

/* ── SENSORIK ── */
.sensorik { padding: 48px 0; background: var(--green-wash); color: var(--ink); }
.sensorik-header { margin-bottom: 32px; }
.sensorik-header h2 { font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; }
.sensorik-header p { color: var(--ink-light); font-size: 0.92rem; }
.sense-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.sense-card { border-top: 2px solid var(--line); padding-top: 24px; }
.sense-card:nth-child(1) { border-color: var(--green); }
.sense-card:nth-child(2) { border-color: var(--sun); }
.sense-card:nth-child(3) { border-color: var(--green-deep); }
.sense-card:nth-child(4) { border-color: var(--sun-deep); }
.sense-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-light); margin-bottom: 12px;
}
.sense-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--ink); }
.sense-card p { font-size: 0.85rem; color: var(--ink-mid); line-height: 1.7; }

/* ── SERVICE CARDS ── */
.services-section { padding: 48px 0; background: var(--cream); }
.services-header { margin-bottom: 28px; }
.services-header h2 { font-size: 1.6rem; margin-bottom: 8px; }
.services-header p { color: var(--ink-mid); font-size: 0.92rem; }
.service-cards {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.service-card {
  background: var(--white); border: 1px solid var(--line); padding: 24px;
  text-decoration: none; color: var(--ink); display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.service-card:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.service-card { border-left: 3px solid var(--green); }
.sc-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-light); display: block; margin-bottom: 8px;
}
.sc-tag { color: var(--green-deep); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-head); }
.service-card p { font-size: 0.85rem; color: var(--ink-mid); line-height: 1.7; margin: 0; }
.sc-link {
  display: inline-block; margin-top: 12px; font-size: 0.8rem; font-weight: 600;
  color: var(--green-deep);
}

/* ── DOCTOR ── */
.doctor { padding: 48px 0; background: var(--white); }
.doctor-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.doc-photo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: linear-gradient(170deg, var(--green-soft), var(--sun-soft));
  font-size: 0.82rem; color: var(--ink-light);
}
/* Platzhalter (noch kein Foto) bekommt feste Höhe; echtes Foto definiert seine Höhe selbst */
.doc-photo:not(:has(img)) { aspect-ratio: 3/4; }
.doc-photo img { width: 100%; height: auto; display: block; }
.doc-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--white); padding: 10px 16px;
  font-size: 0.75rem; color: var(--ink-mid);
}
.doc-tag strong {
  display: block; font-family: var(--font-head);
  font-size: 0.9rem; color: var(--ink); font-weight: 400;
}
.doc-text h2 { font-size: 1.6rem; margin-bottom: 16px; }
.doc-text blockquote {
  font-family: var(--font-head); font-size: 1.3rem; font-style: italic;
  color: var(--green); line-height: 1.45; margin-bottom: 24px;
  padding-left: 20px; border-left: 3px solid var(--sun);
}
.doc-text p {
  font-size: 0.92rem; color: var(--ink-mid);
  line-height: 1.85; margin-bottom: 14px; max-width: 480px;
}
.doc-link {
  display: inline-block; margin-top: 8px; font-size: 0.85rem; font-weight: 500;
  color: var(--green-deep); text-decoration: none;
  border-bottom: 1px solid var(--green); padding-bottom: 2px;
}
.doc-link:hover { color: var(--green); }

/* ── REVIEWS ── */
.reviews { padding: 48px 0; background: var(--cream); overflow: hidden; }
.reviews-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.reviews-top h2 { font-size: 1.5rem; }
.reviews-score { font-size: 0.88rem; color: var(--ink-mid); }
.reviews-score strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--sun-deep); }
.reviews-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 16px;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.review-card {
  flex: 0 0 280px; scroll-snap-align: start;
  border: 1px solid var(--line); padding: 32px; background: var(--white);
}
.review-card .stars { color: var(--sun); letter-spacing: 1px; display: block; margin-bottom: 12px; font-size: 0.85rem; }
.review-titel { display: block; font-size: 0.92rem; margin-bottom: 8px; color: var(--ink); }
.review-card blockquote {
  font-family: var(--font-head); font-size: 1.05rem; font-style: italic;
  line-height: 1.6; color: var(--ink-mid); margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card.expanded blockquote { -webkit-line-clamp: unset; }
.review-more {
  background: none; border: none; color: var(--green); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 16px;
  display: none;
}
.review-card cite {
  font-size: 0.78rem; color: var(--ink-light); font-style: normal;
  display: flex; align-items: center; gap: 8px;
}
.review-card cite::before { content: ''; width: 16px; height: 1px; background: var(--line); }

/* ── ABSAGE NOTICE ── */
.notice {
  padding: 20px 0; text-align: center;
  font-size: 0.78rem; color: var(--ink-light);
  background: var(--sun-wash);
  border-top: 1px solid rgba(243,159,24,0.15);
  border-bottom: 1px solid rgba(243,159,24,0.15);
}

/* ── INFO STRIP ── */
.info-strip { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.info-col { padding: 32px 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.info-col:last-child { border-right: none; }
.info-col h3 { font-size: 1.3rem; margin-bottom: 20px; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .day { font-weight: 500; }
.info-row .time { color: var(--ink-mid); }
/* Mundhygiene hint */
.mh-hint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px 16px;
  background: var(--green-wash); border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem; font-weight: 500; color: var(--green-deep);
  line-height: 1.5;
}
.mh-icon { font-size: 1.1rem; flex-shrink: 0; }

.info-details p { font-size: 0.88rem; color: var(--ink-mid); margin-bottom: 8px; line-height: 1.7; }
.info-details a { color: var(--green); text-decoration: none; font-weight: 500; }
.info-details .book-btn {
  display: inline-block; margin-top: 16px; background: var(--green); color: white;
  padding: 10px 22px; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.info-details .book-btn:hover { background: var(--green-deep); }
.info-map {
  background: var(--cream); display: flex; align-items: center; justify-content: center; position: relative;
  min-height: 200px;
}
.map-label { z-index: 1; background: var(--white); padding: 16px 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); text-align: center; }
.map-label strong { display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: 2px; }
.map-label span { font-size: 0.82rem; color: var(--ink-mid); }
.map-consent {
  text-align: center; padding: 20px; cursor: pointer;
}
.map-consent p { font-size: 0.78rem; color: var(--ink-mid); margin-top: 8px; }

/* ── CTA ── */
.cta { padding: 56px 0; background: var(--green); text-align: center; color: white; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: -200px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.cta h2 { font-size: 1.6rem; margin-bottom: 12px; position: relative; }
.cta p { opacity: 0.75; margin-bottom: 32px; font-size: 0.95rem; position: relative; }
.cta .btn-w {
  background: white; color: var(--green-deep); padding: 14px 32px; font-weight: 700; font-size: 0.85rem;
  text-decoration: none; display: inline-block; transition: all 0.25s; position: relative;
}
.cta .btn-w:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.cta .sub { margin-top: 20px; font-size: 0.82rem; opacity: 0.5; position: relative; }
.cta .sub a { color: white; text-decoration: none; }

/* ── FOOTER ── */
footer { background: var(--green-deep); color: rgba(255,255,255,0.7); padding: 32px 20px 24px; }
.ft-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.ft-logo-img { height: 80px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.85; }
.ft-brand { font-family: var(--font-head); font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 8px; }
.ft-desc { font-size: 0.82rem; line-height: 1.8; }
.ft-title { font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: 8px; }
.ft-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.82rem; }
.ft-col a:hover { color: var(--sun); }
.ft-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px;
  font-size: 0.7rem; display: flex; flex-direction: column; gap: 8px;
  max-width: 1200px; margin: 0 auto; align-items: center; text-align: center;
}
.ft-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.ft-bottom a:hover { color: white; }
.ft-bottom-mid { display: flex; gap: 16px; }
.ft-credit { color: rgba(255,255,255,0.5); }
.ft-heart { color: var(--sun); font-size: 0.8rem; }
.ft-credit a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.ft-credit a:hover { color: white; }

/* ── SUBPAGES ── */
.subpage { padding-top: 72px; }
.sub-hero {
  padding: 48px 0 40px; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.sub-hero .wrap {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
}
.sub-hero.compact .wrap {
  grid-template-columns: 1fr; max-width: 720px;
}
.sub-label {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--green);
  margin-bottom: 12px;
}
.sub-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.sub-lead { font-size: 1.05rem; color: var(--ink-mid); line-height: 1.75; margin-bottom: 24px; }
.sub-cta {
  display: inline-block; background: var(--green); color: white;
  padding: 13px 28px; font-weight: 600; font-size: 0.85rem;
  text-decoration: none; transition: all 0.2s;
}
.sub-cta:hover { background: var(--green-deep); transform: translateY(-1px); }
.sub-hero-img {
  overflow: hidden;
  background: linear-gradient(170deg, var(--green-soft), var(--sun-soft));
  display: flex; align-items: center; justify-content: center;
}
/* Nur der leere Platzhalter hat festes 4:3 — echtes Foto behält sein Seitenverhältnis (kein Beschnitt) */
.sub-hero-img:not(:has(img)) { aspect-ratio: 4/3; }
.sub-hero-img img { width: 100%; height: auto; display: block; }
.img-placeholder {
  font-size: 0.85rem; color: var(--ink-light); text-align: center; padding: 24px;
}
/* Über-mich-Hero: Foto adaptiv (Hoch- ODER Querformat, kein Beschnitt), Text vertikal mittig */
.ueber-hero .wrap { align-items: center; }
.ueber-hero .sub-hero-img { border-radius: 4px; }

.sub-section { padding: 48px 0; }
.sub-section.bg-white { background: var(--white); }
.wrap.narrow { max-width: 720px; }
.sub-section h2 {
  font-size: 1.4rem; margin-bottom: 16px;
}
.sub-section p { font-size: 0.92rem; color: var(--ink-mid); line-height: 1.85; margin-bottom: 14px; }

/* Steps */
.steps-list { margin-top: 32px; }
.step-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-head); font-size: 1.6rem; color: var(--ink-light); line-height: 1;
}
.step-item h3 { font-size: 1.15rem; margin-bottom: 6px; font-family: var(--font-head); }
.step-item p { margin-bottom: 0; }

/* Compare grid */
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.compare-col { padding: 28px; border: 1px solid var(--line); }
.compare-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px; display: block;
}
.compare-label.bad { color: var(--ink-light); }
.compare-label.good { color: var(--green); }
.compare-col ul { list-style: none; }
.compare-col li {
  font-size: 0.88rem; color: var(--ink-mid); line-height: 1.7;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  padding-left: 20px; position: relative;
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li::before { content: '→'; position: absolute; left: 0; color: var(--ink-light); }
.compare-col:last-child li::before { color: var(--green); content: '✓'; }

/* Benefits grid */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.benefit-card {
  padding: 28px; border: 1px solid var(--line); background: var(--white);
  transition: border-color 0.2s;
}
.benefit-card:hover { border-color: var(--green); }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font-head); }
.benefit-card p { margin-bottom: 0; font-size: 0.88rem; }

/* ── GALERIE ── */
.galerie-section { padding: 48px 0; background: var(--cream); }
.galerie-header { margin-bottom: 24px; }
.galerie-header h2 { font-size: 1.6rem; margin-bottom: 8px; }
.galerie-header p { color: var(--ink-mid); font-size: 0.92rem; }
/* Masonry: jedes Foto behält sein natürliches Seitenverhältnis (Hoch- oder Querformat) */
.galerie-grid {
  column-count: 2; column-gap: 8px;
}
.galerie-item {
  overflow: hidden; margin: 0 0 8px; break-inside: avoid;
  display: inline-block; width: 100%; cursor: pointer;
}
.galerie-item img { width: 100%; height: auto; display: block; transition: transform 0.4s; border-radius: 2px; }
.galerie-item:hover img { transform: scale(1.03); }
.galerie-item figcaption {
  padding: 8px 0 0; font-size: 0.75rem; color: var(--ink-light);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 6px;
  transform: scale(0.95); transition: transform 0.3s;
  user-select: none; -webkit-user-drag: none;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.85rem; text-align: center;
  max-width: 80vw; pointer-events: none;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff; font-size: 32px;
  cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
  line-height: 1; padding: 8px;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 40px;
  cursor: pointer; opacity: 0.5; transition: opacity 0.2s;
  padding: 16px; line-height: 1; user-select: none;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-counter {
  position: absolute; top: 20px; left: 20px;
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
}
@media (max-width: 600px) {
  .lightbox img { max-width: 96vw; max-height: 80vh; }
  .lightbox-nav { font-size: 28px; padding: 12px; }
  .lightbox-close { font-size: 28px; top: 10px; right: 12px; }
}

/* FAQ Section (Homepage) */
.faq-section { padding: 48px 0; background: var(--white); }
.faq-section h2 { font-size: 1.6rem; margin-bottom: 8px; }
.faq-intro { color: var(--ink-mid); font-size: 0.92rem; margin-bottom: 8px; }

/* FAQ */
.faq-list { margin-top: 24px; }
.faq-item {
  border-bottom: 1px solid var(--line); padding: 0;
}
.faq-item summary {
  padding: 20px 0; font-size: 1rem; font-weight: 500; color: var(--ink);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.faq-item summary:hover { color: var(--green); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--ink-light); transition: all 0.2s;
  flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 50%; background: var(--cream);
}
.faq-item summary:hover::after { background: var(--green-soft); color: var(--green); }
.faq-item[open] summary::after { content: '−'; color: white; background: var(--green); }
.faq-item p { padding: 0 0 20px; font-size: 0.9rem; color: var(--ink-mid); line-height: 1.8; }

/* Focus cards (Über mich) */
.focus-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; align-items: stretch; }
.focus-card {
  padding: 28px; border-top: 3px solid var(--green); background: var(--white);
  display: flex; flex-direction: column;
}
.focus-card h3 { font-size: 1.1rem; margin-bottom: 8px; font-family: var(--font-head); }
.focus-card p { font-size: 0.88rem; margin-bottom: 12px; }
.focus-card .doc-link { margin-top: auto; } /* Link immer am unteren Rand → einheitlich */

/* Philosophy */
.philo-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; align-items: stretch; }
.philo-item {
  padding: 24px; border-top: 3px solid var(--green-soft); background: var(--white);
  display: flex; flex-direction: column;
}
.philo-item h3 { font-size: 1.1rem; margin-bottom: 8px; font-family: var(--font-head); }
.philo-item p { font-size: 0.88rem; }

/* Praxis gallery */

/* Anfahrt */
.anfahrt-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
.anfahrt-item h3 { font-size: 1.1rem; margin-bottom: 8px; font-family: var(--font-head); }
.anfahrt-item p { font-size: 0.88rem; }
.anfahrt-schilder { margin-top: 40px; }
.anfahrt-schilder-hint { font-size: 0.88rem; color: var(--ink-mid); margin-bottom: 16px; }
.anfahrt-schilder-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.anfahrt-schilder-grid figure { margin: 0; }
.anfahrt-schilder-grid img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); display: block; }
@media(min-width: 600px) { .anfahrt-schilder-grid { grid-template-columns: 1fr 1fr; } }

/* Termin button */
.termin-btn {
  display: inline-block; background: var(--green); color: white;
  padding: 16px 36px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
}
.termin-btn:hover { background: var(--green-deep); }
.termin-options { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media(min-width: 700px) { .termin-options { grid-template-columns: 1fr 1fr; } }


/* ── LEGAL PAGES ── */
.legal-content h2 {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  color: var(--ink); margin: 32px 0 12px; line-height: 1.4;
}
.legal-content h3 {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--ink); margin: 20px 0 8px;
}
.legal-content p { margin-bottom: 12px; }
.legal-content a { color: var(--green-deep); }
.legal-content a:hover { color: var(--green); }
.legal-content ul li { margin-bottom: 6px; }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(14px); transition: all 0.6s ease; }
.reveal.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Base styles above are for mobile (375px).
   We scale UP from here.
   ══════════════════════════════════════════ */

/* ── TABLET (601px+) ── */
@media(min-width: 601px) {
  .wrap { padding: 0 32px; }
  .g-cell:nth-child(1) { min-height: 300px; }
  .g-label { font-size: 0.75rem; padding: 20px; }
  .g-label strong { font-size: 1rem; }
  .hero-overlay h1 { font-size: 1.7rem; }
  .hero-overlay { padding: 32px; }
  .sense-grid { grid-template-columns: 1fr 1fr; }
  .commit-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .commit-num { font-size: 2rem; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .review-card { flex: 0 0 300px; }
  .reviews-track { margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .intro-quote { padding: 60px 0; }
  .commitments, .sensorik, .services-section, .doctor, .reviews, .galerie-section, .faq-section { padding: 60px 0; }
  .galerie-grid { column-count: 3; column-gap: 12px; }
  .galerie-item { margin-bottom: 12px; }
  .sub-section { padding: 60px 0; }
  .cta { padding: 60px 0; }
  .faq-section h2 { font-size: 1.8rem; }
  .cta h2 { font-size: 1.8rem; }
  .commit-header h2, .sensorik-header h2, .services-header h2, .doc-text h2, .reviews-top h2 { font-size: 1.8rem; }
}

/* ── DESKTOP (961px+) ── */
@media(min-width: 961px) {
  .wrap { padding: 0 40px; }

  /* Nav */
  .nav-links {
    display: flex !important; position: static !important;
    flex-direction: row !important; background: none !important;
    padding: 0 !important; gap: 32px !important;
    align-items: center !important;
  }
  .nav-links li { border-bottom: none; }
  .nav-links a { display: inline; padding: 0; font-size: 0.9rem; color: var(--ink-mid); }
  .nav-links a:hover { color: var(--ink); }
  .nav-links .nav-cta {
    display: inline-block; margin-top: 0;
    padding: 13px 28px; font-size: 0.85rem;
    border-radius: 0; line-height: normal;
  }
  .nav-burger { display: none !important; }

  /* Sections full padding */
  .intro-quote { padding: 80px 0; }
  .intro-quote blockquote { font-size: clamp(1.4rem, 2.8vw, 2.2rem); }
  .commitments, .sensorik, .services-section, .doctor, .reviews, .galerie-section, .faq-section { padding: 80px 0; }
  .galerie-grid { column-count: 4; column-gap: 16px; }
  .galerie-item { margin-bottom: 16px; }
  .galerie-header h2 { font-size: 2.2rem; }
  .cta { padding: 80px 0; }
  .faq-section h2 { font-size: 2.2rem; }
  .cta h2 { font-size: 2.4rem; }
  .cta .btn-w { padding: 16px 40px; font-size: 0.9rem; }
  .commit-header h2, .sensorik-header h2, .services-header h2, .doc-text h2 { font-size: 2.2rem; }
  .reviews-top h2 { font-size: 2rem; }

  /* Commitments */
  .commit-item { grid-template-columns: 72px 1fr 1fr; gap: 36px; padding: 36px 0; }
  .commit-detail { grid-column: auto; }
  .commit-num { font-size: 2.8rem; }
  .commit-item:hover { margin: 0 -40px; padding-left: 40px; padding-right: 40px; }

  /* Sensorik */
  .sense-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }

  /* Services */
  .service-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Doctor */
  .doctor-grid { grid-template-columns: 360px 1fr; gap: 60px; }
  .doc-photo:not(:has(img)) { aspect-ratio: 3/4; }

  /* Reviews */
  .reviews-top { flex-direction: row; justify-content: space-between; }
  .reviews-track { padding-left: 40px; margin: 0 -40px; padding-right: 40px; }
  .review-card { flex: 0 0 340px; padding: 32px; }

  /* Info strip */
  .info-strip { grid-template-columns: 1fr 1fr 1fr; }
  .info-col { border-right: 1px solid var(--line); border-bottom: none; padding: 48px 40px; }
  .info-col:last-child { border-right: none; }

  /* Footer */
  .ft-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  footer { padding: 48px 40px 24px; }
  .ft-bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }

  /* Subpages */
  .sub-hero .wrap { grid-template-columns: 1fr 400px; }
  .sub-hero { padding: 80px 0 60px; }
  .sub-section { padding: 80px 0; }
  .sub-section h2 { font-size: 1.8rem; }
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
  .philo-grid { grid-template-columns: repeat(3, 1fr); }
  .praxis-grid { grid-template-columns: 1fr 1fr; }
  .anfahrt-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
}
