/* =====================================================================
   Zahnarztpraxis Widmer – main.css (Relaunch 2026, Design v2)
   Markenfarben aus Template/Logo: Orange #f08113, Banner-Orange #ff9934,
   Cyan #00aad7. Buttons mit weißer Schrift nutzen ein vertieftes Orange
   (#d9670b) in großer, fetter Schrift → WCAG AA (≥ 3:1 für großen Text).
   ===================================================================== */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
}

:root {
  /* Marke */
  --orange: #f08113;
  --orange-bright: #ff9934;
  --orange-btn: #d9670b;      /* weiße Schrift, großer Text: 3,3 : 1 */
  --orange-btn-hover: #c25604; /* 4,5 : 1 */
  --orange-text: #a85508;     /* Links auf Weiß: 5,3 : 1 */
  --orange-50: #fff6ee;
  --orange-100: #ffead6;
  --cyan: #00aad7;
  --cyan-text: #007ea0;

  /* Neutrale */
  --ink: #181818;
  --text: #3a3a38;
  --muted: #696965;
  --line: #ebe7e2;
  --bg: #ffffff;
  --bg-soft: #f8f6f3;

  /* Typo */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  --fs-h3: 1.3rem;
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.6rem);

  /* Raster */
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.5rem);
  --section: clamp(3.5rem, 2rem + 4.5vw, 6.5rem);
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --header-h: 84px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 24, .05), 0 4px 14px rgba(24, 24, 24, .05);
  --shadow-md: 0 2px 6px rgba(24, 24, 24, .05), 0 18px 40px -12px rgba(24, 24, 24, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 420;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
picture img { width: 100%; }
a { color: var(--orange-text); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--orange-btn-hover); }
:focus-visible { outline: 3px solid var(--cyan-text); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3, h4 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; color: var(--ink); line-height: 1.08; font-weight: 750; margin: 0 0 .5em; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
p, ul, ol, address, figure, table { margin: 0 0 1.1em; }
p { text-wrap: pretty; overflow-wrap: break-word; }
@media (max-width: 480px) { p, li { hyphens: auto; -webkit-hyphens: auto; } }
address { font-style: normal; }
strong, b { font-weight: 700; color: var(--ink); }
ul { padding-left: 1.2em; }
li + li { margin-top: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: #fff; }
.center { text-align: center; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
.h-small { font-size: var(--fs-h3); letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .75em 1.5em;
  font: inherit; font-size: 1.1875rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.005em;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--orange-btn); color: #fff; box-shadow: 0 8px 20px -8px rgba(217, 103, 11, .7); }
.btn-primary:hover { background: var(--orange-btn-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(194, 86, 4, .75); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost svg, .btn-primary svg { flex: none; }
.btn-lg { min-height: 58px; padding: .85em 1.75em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.link-arrow svg { transition: transform .2s var(--ease); color: var(--orange); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(24, 24, 24, .25); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { flex: none; }
.brand img { width: 210px; height: auto; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-list li { margin: 0; }
.nav-list > li > a {
  display: block; padding: .6rem .9rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background-color .15s var(--ease);
}
.nav-list > li > a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-list > li > a[aria-current] { background: var(--orange-50); color: var(--orange-text); }
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: .35rem !important; }
.sub-toggle { display: inline-grid; place-items: center; width: 30px; height: 36px; padding: 0; margin: 0 0 0 -.15rem; border: 0; background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.sub-toggle svg { transition: transform .2s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 34rem; translate: -50% 0;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md); border: 1px solid var(--line);
  padding: .75rem; visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.sub ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.sub li { margin: 0; }
.sub a { display: block; padding: .6rem .85rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 550; }
.sub a:hover, .sub a[aria-current] { background: var(--orange-50); color: var(--orange-text); }
.has-sub.is-open .sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 1101px) {
  .has-sub:hover .sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem; height: 48px; padding: 0 1rem 0 .9rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; border: 1px solid var(--line);
}
.header-phone svg { color: var(--orange); }
.header-phone:hover { border-color: var(--ink); color: var(--ink); }
.btn-termin { min-height: 48px; padding: .6em 1.3em; }
.nav-toggle, .nav-mobile-actions { display: none; }

@media (max-width: 1280px) {
  .header-phone { width: 48px; padding: 0; justify-content: center; }
  .header-phone span { display: none; }
}
@media (max-width: 1100px) {
  :root { --header-h: 70px; }
  .brand img { width: 176px; }
  .header-actions { margin-left: auto; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; margin: 0;
    overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) 2rem;
    display: none; flex-direction: column;
  }
  .main-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-list > li > a { padding: .9rem 1.1rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; border-radius: var(--r-sm); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 52px; height: 52px; border: 1px solid var(--line); }
  .sub { position: static; width: 100%; translate: none; border: 0; box-shadow: none; padding: .25rem 0 .5rem .5rem; display: none; visibility: visible; opacity: 1; transform: none; }
  .has-sub.is-open .sub { display: block; }
  .sub ul { grid-template-columns: minmax(0, 1fr); }
  .sub a { padding: .6rem .9rem; font-size: 1.05rem; }
  .nav-mobile-actions { display: grid; gap: .6rem; margin-top: auto; padding-top: 1.5rem; }
  .nav-mobile-actions .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 600px) { .btn-termin, .header-phone { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .92rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #bcb4ab; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero Startseite ---------- */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 5vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero-lead { font-size: var(--fs-lead); max-width: 30rem; margin-bottom: 2rem; }
.hero-visual { position: relative; isolation: isolate; padding: clamp(.5rem, 2vw, 1.5rem); }
.hero-blob { position: absolute; z-index: -1; width: 92%; height: auto; right: -12%; bottom: -12%; color: var(--orange-bright); }
.hero-visual::before { content: ""; position: absolute; z-index: -1; width: 22%; aspect-ratio: 1; left: -5%; top: 4%; border-radius: 50%; background: var(--orange-100); }
.hero-photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow-md); }
.hero-chip {
  position: absolute; margin: 0; display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: .98rem; box-shadow: var(--shadow-md); white-space: nowrap;
}
.hero-chip svg { color: var(--orange); }
.hero-chip--a { left: -1.25rem; bottom: 18%; }
.hero-chip--b { right: -.5rem; top: 10%; }
@media (max-width: 480px) { .hero-chip { white-space: normal; font-size: .9rem; padding: .55rem .9rem; max-width: 78%; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero-chip--a { left: 0; }
  .hero-chip--b { right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-visual { animation: rise 1s var(--ease) .1s both; }
  .hero-chip { animation: pop .6s var(--ease) both; }
  .hero-chip--a { animation-delay: .6s; } .hero-chip--b { animation-delay: .75s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin: 0; }
.panel { border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 4vw, 4.5rem); }
.panel--tint { background: var(--orange-50); }
.panel--soft { background: var(--bg-soft); }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro-statement { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.35rem); line-height: 1.25; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); margin: 0; text-wrap: balance; }
.intro-statement a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: .18em; }
.intro-statement a:hover { color: var(--orange-text); }
.intro-text { color: var(--muted); }
.signature { color: var(--ink); font-weight: 700; }
@media (max-width: 880px) { .intro { grid-template-columns: minmax(0, 1fr); } }

.photo-strip { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 5rem) 0 2rem; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.photo-strip li { margin: 0; }
.photo-strip img { border-radius: var(--r-md); aspect-ratio: 4 / 3.4; object-fit: cover; height: 100%; }
@media (max-width: 700px) {
  .photo-strip { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .photo-strip li { scroll-snap-align: start; }
}

/* Karten (Leistungen) */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.cards > li { margin: 0; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card-service {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--bg-soft); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.card-service picture { overflow: hidden; }
.card-service img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.card-service h2, .card-service h3 { font-size: 1.35rem; line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 .55rem; padding-right: 3.25rem; }
.card-service h2 a, .card-service h3 a { color: var(--ink); text-decoration: none; }
.card-service h2 a::after, .card-service h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-service p { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-arrow {
  position: absolute; top: 1.35rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card-service:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-service:hover img { transform: scale(1.04); }
.card-service:hover .card-arrow { background: var(--orange-btn); color: #fff; transform: rotate(-45deg); }
.card-service:focus-within { box-shadow: 0 0 0 3px var(--cyan-text); }

/* Persönliche Beratung */
.consult { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.consult-text p { color: var(--text); margin: 0; }
@media (max-width: 900px) { .consult { grid-template-columns: minmax(0, 1fr); } }
.pill-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.pill-links li { margin: 0; }
@media (max-width: 520px) { .pill-links { grid-template-columns: minmax(0, 1fr); } }
.pill-link {
  display: flex; align-items: center; gap: .9rem; padding: .45rem 1rem .45rem .45rem; min-height: 66px;
  background: #fff; border-radius: 999px; color: var(--ink); font-weight: 650; line-height: 1.2; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pill-link picture { flex: none; width: 56px; }
.pill-link picture img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.pill-link span { flex: 1; }
.pill-link svg { flex: none; color: var(--orange); }
.pill-link:hover { color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* Besuch */
.visit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 720px) { .visit { grid-template-columns: minmax(0, 1fr); } }
.visit-card { background: var(--bg-soft); border-radius: var(--r-lg); padding: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
.visit-card h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
.visit-card address { margin-bottom: 1.5rem; }

/* Häufige Fragen */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 900px) { .faq-head { position: static; } }
.faq-head p { color: var(--muted); }
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--bg-soft); border-radius: var(--r-md); transition: background-color .2s var(--ease); }
.faq-item[open] { background: var(--orange-50); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; border-radius: var(--r-md); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.faq-item p { margin: 0; padding: 0 1.4rem 1.35rem; color: var(--text); max-width: 46rem; }
.faq-icon { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--orange-btn); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }

/* Sprechzeiten-Liste */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours time { font-variant-numeric: tabular-nums; }
.hours li.is-today { color: var(--ink); font-weight: 700; }
.hours li.is-today .day::after, .hours-table tr.is-today th::after {
  content: "heute"; display: inline-block; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px;
  background: var(--orange-btn-hover); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.5; vertical-align: .12em;
}

/* ---------- Unterseiten ---------- */
.page-hero { padding-top: clamp(.5rem, 1vw, 1rem); }
.page-hero-inner {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--orange-50); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1rem + 3.5vw, 4.5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
}
.page-hero-inner::after {
  content: ""; position: absolute; z-index: -1; right: -6rem; bottom: -9rem; width: 26rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--orange-bright), var(--orange) 70%); opacity: .9;
}
.page-hero h1 { max-width: 18ch; margin-bottom: .35em; }
.page-hero .lead { max-width: 42rem; margin: 0; }
.page-hero--service h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.7rem); }
.page-hero--service .lead { max-width: 46rem; }
@media (max-width: 760px) { .page-hero-inner::after { width: 8rem; height: 8rem; right: -3.5rem; top: -3.5rem; bottom: auto; } .page-hero .breadcrumb { padding-right: 3rem; } }
.page-body { padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; }

.figure-wide { margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.figure-wide img { aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--r-lg); }
figcaption, .credit { font-size: .8rem; color: #77736e; margin-top: .55rem; }
.inline-figure { margin: 2rem 0; }
.inline-figure img { border-radius: var(--r-md); }

.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose li::marker { color: var(--orange); }
.cols-2 { columns: 2 14rem; column-gap: 2rem; }
.cols-2 li { break-inside: avoid; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 980px) { .layout-aside { grid-template-columns: minmax(0, 1fr); } }
.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
@media (max-width: 980px) { .aside { position: static; } }
.card { background: var(--bg-soft); border-radius: var(--r-md); padding: 1.6rem; }
.card h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: .8rem; }
.card--accent { background: var(--orange-50); }
.card .btn { width: 100%; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { display: flex; gap: .65rem; align-items: flex-start; margin: 0 0 .6rem; }
.contact-lines svg { color: var(--orange); flex: none; margin-top: .3rem; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.tag-list li { margin: 0; }
.tag-list a { display: inline-block; padding: .6rem 1.15rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tag-list a:hover { background: var(--orange-100); color: var(--ink); }
.tag-list a[aria-current] { background: var(--ink); color: #fff; }

/* Leistungsübersicht */
.page-leistungen .cards { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Praxis: Galerie + Team */
.gallery { list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1rem); }
.gallery li { margin: 0; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-md); overflow: hidden; }
.gallery picture, .gallery picture img { height: 100%; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(18, 18, 18, .9); }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--r-md); margin-inline: auto; }
.lightbox-bar { display: flex; justify-content: center; align-items: center; gap: .75rem; color: #fff; padding-top: 1rem; }
.lightbox-bar [data-counter] { min-width: 7rem; text-align: center; }
.lightbox-bar button { min-width: 48px; min-height: 48px; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; padding: 0 1.2rem; }
.lightbox-bar button:hover { background: #fff; color: var(--ink); }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 960px) { .team { grid-template-columns: minmax(0, 1fr); } }
.person { background: var(--bg-soft); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.person picture { width: 120px; margin-bottom: 1.25rem; }
.person picture img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.person h3 { font-size: 1.5rem; margin-bottom: .15rem; }
.person .role { color: var(--orange-text); font-weight: 700; margin-bottom: 1rem; }
.person p, .person li { font-size: .98rem; color: var(--muted); }
.person--lead { background: var(--orange-50); }
@media (max-width: 960px) { .person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 1.5rem; } .person picture { grid-row: span 3; } }
@media (max-width: 560px) { .person { display: block; } }

.download {
  display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem 1rem 1.1rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); background: #fff; font-weight: 700; border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.download:hover { border-color: var(--orange); color: var(--ink); transform: translateY(-2px); }
.download svg { color: var(--orange); flex: none; }
.download small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Öffnungszeiten */
.hours-table { width: 100%; border-collapse: collapse; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.hours-table caption { text-align: left; font-size: var(--fs-h3); font-weight: 750; color: var(--ink); margin-bottom: .6rem; }
.hours-table th, .hours-table td { text-align: left; padding: 1rem .25rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours-table th { color: var(--ink); font-weight: 700; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--ink); }
.note { color: var(--muted); font-size: .95rem; margin-top: 1rem; }

/* Kontaktformular */
.prose + .form-panel { margin-top: clamp(2.5rem, 5vw, 4rem); }
.form-panel { background: var(--bg-soft); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.form-panel h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .9rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--ink);
  padding: .9rem 1.1rem; min-height: 56px; border: 1.5px solid #ddd6ce; border-radius: var(--r-sm); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #bdb4aa; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--cyan-text); box-shadow: 0 0 0 4px rgba(0, 126, 160, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fffafa; }
.field-error { color: #b3261e; font-size: .92rem; font-weight: 600; margin: .4rem 0 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: .8rem; align-items: flex-start; }
.check input { width: 28px; height: 28px; margin: .1rem 0 0; accent-color: var(--orange-btn); flex: none; }
.check label { font-weight: 500; color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.notice { border-radius: var(--r-sm); padding: 1rem 1.25rem; }
.notice--info { background: #e9f7fb; color: #0b4a5b; }
.notice--ok { background: #ebf7ec; color: #1d5a22; }
.notice--error { background: #fdeeed; color: #8a1f17; }
.notice p:last-child { margin: 0; }
.form [type="submit"][disabled] { opacity: .65; cursor: progress; }

/* Rechtstexte */
.legal { padding-top: clamp(2.5rem, 5vw, 4rem); }
.legal h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); margin-top: 2.75rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal p, .legal li { max-width: 46rem; }
.legal-meta { color: var(--muted); font-size: .93rem; }

/* 404 */
.error-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 850; line-height: .9; color: var(--orange); letter-spacing: -0.06em; margin: 0 0 .25em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); padding-bottom: 1rem; }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  background: var(--orange-50); border-radius: var(--r-lg); padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.footer-cta h2 { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); max-width: 14ch; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.35fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand img { width: 200px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 18rem; }
.footer-title { font-size: 1rem; font-weight: 750; letter-spacing: 0; color: var(--ink); margin-bottom: .9rem; }
.site-footer address, .site-footer p { color: var(--muted); margin-bottom: .8rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a[href^="mailto"] { white-space: nowrap; }
.site-footer a:hover { color: var(--orange-text); text-decoration: underline; }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: #fff; text-decoration: none; }
.site-footer .btn-ghost:hover { color: var(--ink); text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 .5rem; }
@media (pointer: coarse) { .footer-links a, .footer-legal a, .site-footer p a { display: inline-block; padding: .45rem 0; } .footer-links li { margin: 0; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .92rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.footer-legal li { margin: 0; }

/* Mobile Schnellkontakt */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; z-index: 40; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1.3fr; gap: .4rem; padding: .4rem;
    background: #fff; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(24, 24, 24, .3), 0 0 0 1px var(--line);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; border-radius: 999px; font-weight: 700; font-size: 1.1875rem; text-decoration: none; }
  .mobile-cta-call { color: var(--ink); background: var(--bg-soft); }
  .mobile-cta-call svg { color: var(--orange); }
  .mobile-cta-book { background: var(--orange-btn); color: #fff; }
  body { padding-bottom: 88px; }
  body.nav-open .mobile-cta { display: none; }
}

/* Hilfsklassen */
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
@media print {
  .site-header, .mobile-cta, .site-footer, .aside, .hero-blob { display: none !important; }
  body { padding: 0; font-size: 11pt; }
}

/* Querformat-Smartphones: niedrige Viewport-Höhe */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --fs-h1: clamp(2rem, 1.2rem + 2.4vw, 2.9rem); --header-h: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .mobile-cta { left: auto; right: .75rem; width: 22rem; bottom: .5rem; }
  .mobile-cta a { min-height: 44px; font-size: 1.05rem; }
  .btn-lg { min-height: 50px; }
}
/* Große Monitore: etwas mehr Breite und Schriftgröße */
@media (min-width: 1800px) {
  html { font-size: 109%; }
  :root { --wrap: 1380px; }
}
@media (min-width: 2400px) {
  html { font-size: 118%; }
  :root { --wrap: 1480px; }
}
