/* Zahnarztpraxis im Rauracher — Stylesheet
   Keine externen Abhängigkeiten: Schriften liegen lokal in /fonts. */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
  --brand: #333366;
  --ink: #23234a;
  --text: #3a3a55;
  --muted: #5e5e78;
  --line: #e3e2eb;
  --tint: #f0eff5;
  --bg: #fbfaf8;
  --white: #ffffff;
  --accent: #a8875a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 35, 74, .05), 0 8px 28px rgba(35, 35, 74, .07);
  --max: 1120px;
  --header-h: 72px;
  --sans: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50; background: rgba(251, 250, 248, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(35, 35, 74, .05); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-weight: 400; font-size: .82rem; margin-right: auto; }
.wordmark span + span { font-weight: 300; letter-spacing: .3em; font-size: .7rem; margin-top: .25rem; color: var(--muted); }
.wordmark:hover { color: var(--brand); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: .5rem .75rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--tint); color: var(--brand); }
.nav .lang { font-size: .8rem; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: 999px; padding: .8rem 1.35rem; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(35, 35, 74, .2); }
.btn.ghost { background: rgba(255, 255, 255, .75); color: var(--brand); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.small { padding: .55rem 1rem; font-size: .88rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78svh, 720px); display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 3rem) 0 4rem; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 55% at 50% 42%, #ffffff 0%, var(--bg) 70%); }
.hero h1 { font-weight: 300; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(2.1rem, 6.2vw, 4.4rem); line-height: 1.1; color: var(--brand); margin: 0; }
.hero h1 span { display: block; }
.ornament { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.6rem auto 1.4rem; width: min(420px, 80%); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brand)); opacity: .45; }
.ornament::after { transform: scaleX(-1); }
.ornament i { width: 9px; height: 9px; border: 1.5px solid var(--brand); transform: rotate(45deg); }
.slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ink); line-height: 1.4; margin: 0 0 2.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.status { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .92rem; color: var(--muted); background: rgba(255, 255, 255, .7); padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b4b4c4; }
.status.open::before { background: #3a9a6a; box-shadow: 0 0 0 4px rgba(58, 154, 106, .15); }
.status:empty { display: none; }

/* ---------- Quick facts ---------- */
.facts { margin-top: -2.5rem; position: relative; z-index: 2; }
.facts .grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.fact { padding: 1.6rem 1.8rem; display: flex; gap: 1rem; align-items: flex-start; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: .15rem; }
.fact h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin: 0 0 .3rem; }
.fact p { margin: 0; color: var(--ink); line-height: 1.5; }
.fact a { color: var(--ink); text-decoration: none; font-weight: 700; }
.fact a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tint { background: var(--tint); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.section-title { font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.005em; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); }
.card h3 { font-size: 1.15rem; font-weight: 700; }

/* Hours */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.hours th { color: var(--ink); width: 38%; }
.hours td { color: var(--text); white-space: nowrap; padding-left: .75rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th, .hours tr.today td { color: var(--brand); font-weight: 700; }
.hours tr.today th::after { content: attr(data-today); margin-left: .5rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: var(--tint); color: var(--brand); padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.hours .by-arrangement { color: var(--muted); font-style: italic; }
.stack { display: grid; gap: 1.5rem; }
.notice { border-left: 3px solid var(--accent); }
.notice p:last-child { margin-bottom: 0; }
.tariff { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.5rem; margin: 0; font-variant-numeric: tabular-nums; }
.tariff dt { color: var(--text); }
.tariff dd { margin: 0; color: var(--ink); font-weight: 700; }
.muted { color: var(--muted); font-size: .92rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.portrait { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 600 / 919; background: var(--tint); box-shadow: var(--shadow); max-width: 210px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
.portrait img + img { opacity: 0; }
.portrait:hover img + img { opacity: 1; }
.people { display: grid; gap: 1rem; margin: 1.8rem 0 2.2rem; }
.person { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.person h3 { margin: 0; font-size: 1.08rem; }
.person p { margin: 0; color: var(--muted); font-size: .95rem; }
.cv p { max-width: 40rem; }
.cv .highlight { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); line-height: 1.45; border-left: 2px solid var(--accent); padding-left: 1.1rem; margin-top: 1.6rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; align-items: center; gap: .9rem; color: var(--ink); font-weight: 700; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service svg { width: 30px; height: 30px; color: var(--brand); flex: none; }
.services-note { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; margin-top: 2rem; }

/* Location */
.transit { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; }
.transit li { display: flex; gap: .75rem; align-items: baseline; }
.badge { display: inline-block; min-width: 3.1rem; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--brand); border-radius: 6px; padding: .15rem .45rem; }
.badge.bus { background: #6a6a8e; }
.badge.s { background: var(--accent); }
.link-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Research */
.research-links { display: grid; gap: .8rem; margin-top: 1.5rem; }
.research-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color .2s, transform .2s; }
.research-links a:hover { border-color: var(--brand); transform: translateX(3px); color: var(--brand); }
.research-links small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.research-links svg { width: 20px; height: 20px; flex: none; }

/* Footer */
.site-footer { background: var(--ink); color: #c9c9da; padding: 3.5rem 0 2rem; font-size: .88rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #e6d3b3; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: .9rem; }
.site-footer p { margin: 0 0 .4rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #9d9db5; }
.footer-bottom a { color: #c9c9da; }

/* Mobile call bar */
.callbar { display: none; }

/* Legal page */
.legal { padding-top: calc(var(--header-h) + 3rem); }
.legal article { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }

/* Reveal on scroll (nur wenn JS aktiv und Bewegung erwünscht) */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (min-width: 861px) {
  #termine .two-col > :first-child, .team-grid > .portrait { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 180px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 16px 30px rgba(35, 35, 74, .08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover { background: none; }
  .nav .lang { border-bottom: 0; }
  .two-col, .services-note { grid-template-columns: 1fr; }
  .facts .grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(251, 250, 248, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .callbar .btn { justify-content: center; }
  body { padding-bottom: 76px; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .service { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem 1.1rem; font-size: .95rem; line-height: 1.3; }
  .hours tr { display: grid; grid-template-columns: 1fr 1fr; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .hours tr:last-child { border-bottom: 0; }
  .hours th, .hours td { border-bottom: 0; padding: 0; }
  .hours th { grid-column: 1 / -1; width: auto; margin-bottom: .15rem; }
  .hours td.by-arrangement { grid-column: 1 / -1; }
  .hero { min-height: 72svh; }
  .hero .actions .btn { width: 100%; justify-content: center; }
}

@media print {
  .site-header, .callbar, .menu-toggle, .marquee { display: none !important; }
  .hero { min-height: 0; padding-top: 1rem; }
  body { background: #fff; padding: 0; }
}

/* Galerie */
.gallery { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery li { margin: 0; }
.g-item { display: block; width: 100%; padding: 0; border: 0; background: var(--tint); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.04); }
.gallery li:first-child:nth-last-child(n+4) { grid-column: span 2; grid-row: span 2; }
.gallery li:first-child:nth-last-child(n+4) .g-item { aspect-ratio: auto; height: 100%; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 20, 40, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: -14px; right: -14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery li:first-child:nth-last-child(n+4) { grid-column: span 2; grid-row: auto; } .gallery li:first-child:nth-last-child(n+4) .g-item { aspect-ratio: 3 / 2; height: auto; } }

/* Laufender Bildstreifen (Wartezimmer, OP 1, OP 2, Röntgen) */
.marquee { --h: clamp(200px, 24vw, 340px); height: var(--h); overflow: hidden; background: var(--bg); }
.marquee-track { display: flex; width: max-content; height: 100%; animation: marquee 200s linear infinite; }
.marquee-track img { height: 100%; width: auto; max-width: none; flex: none; margin-right: 6px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track img[aria-hidden] { display: none; }
}

/* Team-Link und Zugang */
.team-link { margin: 0 0 2.2rem; }
.access { list-style: none; padding: 0; margin: -0.4rem 0 1.5rem; display: grid; gap: .45rem; }
.access li { display: flex; gap: .6rem; align-items: center; color: var(--ink); }
.access svg { width: 20px; height: 20px; color: #3a9a6a; flex: none; }
.tariff dd.langs { font-weight: 400; text-align: left; color: var(--ink); }

.nowrap { white-space: nowrap; }

/* SSO-Logo im Footer (weiss, ohne Kasten) */
.footer-grid { grid-template-columns: 1.5fr 1.2fr .8fr auto; align-items: start; }
.footer-grid p { white-space: normal; }
.sso-footer { justify-self: end; align-self: center; opacity: .92; transition: opacity .2s; }
.sso-footer:hover { opacity: 1; }
.sso-footer img { height: 44px; width: auto; display: block; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .sso-footer { justify-self: start; } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } .sso-footer img { height: 38px; } }
