@font-face { font-family: "NATS"; src: url("assets/fonts/nats-english.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00A0, U+2000-206F, U+20AC, U+2190-21BB; }
@font-face { font-family: "NATS"; src: url("assets/fonts/nats-rest-latin.woff2") format("woff2"); font-display: swap; unicode-range: U+00A1-024F; }

:root { --ink: #171716; --paper: #f0eede; --white: #fff; --muted: #696862; --line: rgba(23,23,22,.24); --edge: clamp(1.25rem, 4.65vw, 4.5rem); --display: "NATS", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
*:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 16px; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.skip-link { position: fixed; left: 1rem; top: -6rem; padding: .75rem 1rem; background: var(--ink); color: var(--white); z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2rem; padding: 1.65rem var(--edge); position: relative; width: 100%; z-index: 10; }
.wordmark, .eyebrow, .section-number, .menu-toggle, .main-nav, summary, .footer-name { text-transform: uppercase; letter-spacing: -.02em; }
.wordmark { display: inline-flex; flex-direction: column; font-size: 1.28rem; line-height: .85; width: max-content; }
.main-nav { display: flex; gap: 1.45rem; font-size: 1.18rem; }
.main-nav a { min-height: 32px; display: inline-flex; align-items: center; }
.main-nav a, .text-link, .site-footer a { border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.main-nav a:hover, .text-link:hover, .site-footer a:hover { border-color: currentColor; }
.menu-toggle { display: none; appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; padding: 0; cursor: pointer; }
.hero { padding: 0; }
.doctor-names { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.3rem; font: .875rem/1.5 Arial, sans-serif; margin: 0 0 1.35rem; }
.doctor-names > span:not(.name-separator) { white-space: nowrap; }
.name-separator { width: .16rem; height: .16rem; flex: 0 0 .16rem; border-radius: 50%; background: currentColor; }
.eyebrow, .section-number { margin: 0 0 1.2rem; font-size: 1rem; }
.hero h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 400; text-transform: uppercase; letter-spacing: -.025em; line-height: .95; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.7rem, 5.3vw, 5.8rem); margin: 0 0 2rem; }
.intro { max-width: 23rem; font-family: Arial, sans-serif; font-size: 1rem; line-height: 1.65; margin: 2rem 0 2.5rem; }
.text-link { display: inline-flex; gap: .55rem; align-items: baseline; font-size: 1rem; text-transform: uppercase; }
.hero-image { margin: 0; min-width: 0; overflow: hidden; position: relative; background: var(--ink); }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.62; object-fit: cover; object-position: center bottom; filter: saturate(1.045) contrast(1.025); }
figcaption { margin-top: .7rem; font-size: .95rem; text-transform: uppercase; }
.section { padding: clamp(5rem, 13vw, 12rem) var(--edge); }
/* Menu targets start at their own background edge. Interior breathing room
   belongs to the destination, never to a strip of the preceding section. */
#oeffnungszeiten, #behandlungen, #team, #kontakt { scroll-margin-top: 0; }
#behandlungen, #team, #kontakt { padding-top: clamp(3rem, 6svh, 4.5rem); }
.welcome-editorial { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); column-gap: clamp(3rem, 10vw, 10rem); row-gap: 1.2rem; padding: clamp(3.5rem, 6vw, 6rem) var(--edge) clamp(4rem, 7vw, 7rem); background: var(--paper); }
.welcome-editorial > .eyebrow { grid-column: 1; margin: 0; }
.welcome-heading, .welcome-story { min-width: 0; }
.hero-image .welcome-heading { margin: 0; padding: 2.5rem var(--edge); text-align: center; color: var(--white); text-transform: none; }
.welcome-heading .eyebrow { margin-bottom: 1.25rem; }
.welcome-heading h1 { font-size: clamp(4rem, 7.6vw, 8.5rem); line-height: .88; letter-spacing: -.035em; margin: 0 0 1.5rem; }
.welcome-heading .doctor-names { margin: 0; gap: .25rem 1.25rem; color: inherit; justify-content: center; align-items: center; }
.welcome-story { grid-column: 1; grid-row: 2; width: 100%; justify-self: start; }
.welcome-story h2 { line-height: .95; }
.welcome-description { font: 1rem/1.7 Arial, sans-serif; margin: 0 0 1.6rem; max-width: 29rem; }
.welcome-story .text-link { gap: .75rem; }
.opening-hours { grid-column: 2; grid-row: 2; min-width: 0; width: 100%; max-width: 20rem; justify-self: end; align-self: start; padding: 0; }
#oeffnungszeiten { scroll-margin-top: 3rem; }
.opening-hours h2 { font-size: 1.75rem; margin: 0 0 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.hours-list { display: grid; grid-template-columns: 1fr; gap: .65rem; margin: 0; }
.hours-list > div { display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.hours-list dt { font-size: 1rem; text-transform: uppercase; margin: 0; }
.hours-list dd { margin: 0; font: .875rem/1.65 Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Maschinenhaus principle: only the photo is viewport-fixed. The complete
   image window and its lettering move with ordinary document scrolling. */
@media (min-width: 761px) and (min-aspect-ratio: 4/3) and (prefers-reduced-motion: no-preference) {
  .hero-image { padding-block: 100svh 18svh; background-image: url("assets/images/praxis-team.jpg"); background-size: max(100vw, calc(150svh + 144px)) auto; background-position: center -96px; background-repeat: no-repeat; background-attachment: fixed; }
  .hero-image { filter: saturate(1.045) contrast(1.025); }
  .hero-image img { position: absolute; inset: 0; height: 100%; opacity: 0; }
  /* Eased alpha ramp: gentle at both ends, without a hard middle stop.
     The small blur softens interpolation seams while the photo stays sharp. */
  .hero-image::after { content: ""; position: absolute; inset: calc(100svh - 18rem) -24px -24px; background: linear-gradient(to bottom, rgba(10,17,23,0) 0%, rgba(10,17,23,.022) 7%, rgba(10,17,23,.081) 14%, rgba(10,17,23,.168) 21%, rgba(10,17,23,.275) 28%, rgba(10,17,23,.39) 35%, rgba(10,17,23,.505) 42%, rgba(10,17,23,.611) 49%, rgba(10,17,23,.699) 56%, rgba(10,17,23,.758) 63%, rgba(10,17,23,.78) 70%, rgba(10,17,23,.78) 100%); filter: blur(12px); pointer-events: none; }
  .hero-image .welcome-heading { position: relative; z-index: 1; padding: 0 var(--edge); }
  .hero-image .welcome-heading h1 { font-size: clamp(3rem, 5.6vw, 5.8rem); margin-bottom: .8rem; }
  .hero-image .welcome-heading .eyebrow { margin-bottom: .65rem; }
}
.statement-index { margin-right: 1.5rem; }
.welcome-story h2, .section-heading h2, .team h2, .contact h2, .emergency h2 { font-size: clamp(2.7rem, 4.5vw, 5rem); margin: 0 0 2rem; }
.services { background: var(--paper); }
.section-heading { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.service-layout { display: grid; grid-template-columns: minmax(17rem, .7fr) minmax(23rem, 1.15fr); align-items: start; gap: clamp(2rem, 7vw, 8rem); }
.service-image { margin: 0; position: sticky; top: 1rem; overflow: hidden; }
.service-image img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.service-image figcaption { display: grid; gap: .35rem; }
.service-image figcaption span { font-family: Arial, sans-serif; font-size: .875rem; line-height: 1.5; text-transform: none; color: var(--muted); }
.service-inline-image { display: none; margin: .5rem 0 1.5rem; }
.service-inline-image img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.service-inline-image figcaption { font: .875rem/1.5 Arial, sans-serif; text-transform: none; color: var(--muted); }
.service-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; display: flex; gap: .8rem; align-items: baseline; padding: 1rem 2rem .9rem 0; list-style: none; cursor: pointer; font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1.15; }
summary::after { content: '+'; position: absolute; right: 0; font-family: Arial, sans-serif; font-size: 1.1rem; font-weight: 400; }
details[open] > summary::after { content: '−'; }
summary::-webkit-details-marker { display: none; }
.service-list summary { scroll-margin-top: 1rem; }
summary span { font-size: 1rem; flex: 0 0 2.1rem; }
.detail-body { padding: .4rem 1rem 1.5rem 2.9rem; font-family: Arial, sans-serif; font-size: 1rem; line-height: 1.65; }
.detail-body p { margin: 0 0 1rem; }
.detail-body p:last-child { margin-bottom: 0; }
details > p { max-width: 43rem; padding: 0 0 1.5rem 2.9rem; margin: 0; line-height: 1.25; font-family: Arial, sans-serif; font-size: .96rem; }
.team { background: var(--ink); color: var(--white); padding-top: clamp(2rem, 5vw, 5rem); }
.team-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .65fr); align-items: end; gap: 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.team-heading h2 { margin-bottom: 0; }
.team-gallery { display: grid; gap: clamp(4rem, 9vw, 9rem); max-width: 78rem; margin: auto; }
.team-member { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.member-portrait { margin: 0; max-width: 31rem; width: 100%; }
.member-portrait img { aspect-ratio: 2 / 3; object-fit: cover; }
.team-member:nth-child(even) .member-portrait { grid-column: 2; grid-row: 1; justify-self: end; }
.team-member:nth-child(even) .member-copy { grid-column: 1; grid-row: 1; }
.member-copy { min-width: 0; }
.member-copy h3 { font-size: clamp(2.4rem, 4.5vw, 4.7rem); line-height: .98; font-weight: 400; text-transform: uppercase; margin-bottom: 1.4rem; overflow-wrap: anywhere; }
.member-number { color: #c9c8bf; margin-bottom: 1.5rem; }
.member-role, .member-tasks { font: 1rem/1.65 Arial, sans-serif; }
.member-role { margin-bottom: 1rem; }
.member-tasks { padding: 1rem 0 0; border-top: 1px solid #ffffff40; color: #d8d7d0; }
.member-tasks span { display: block; }
.biography { border: 0; }
.biography summary { font-size: 1.1rem; padding: .3rem 1.5rem .3rem 0; width: fit-content; min-height: 36px; }
.bio { font-family: Arial, sans-serif; font-size: 1rem; line-height: 1.55; margin-top: 1rem; }
.bio table { border-collapse: collapse; width: 100%; }
.bio td { padding: .4rem .5rem .4rem 0; vertical-align: top; border-top: 1px solid #ffffff40; }
.bio td:first-child { width: 6.5rem; white-space: nowrap; }
.contact { background: var(--white); display: grid; grid-template-columns: minmax(17rem, .8fr) minmax(20rem, 1fr); align-items: start; gap: clamp(3rem, 9vw, 12rem); }
.contact-copy { max-width: 36rem; }
address { font-style: normal; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1; margin: 3rem 0 1.35rem; }
.contact-copy > p { font-family: Arial, sans-serif; font-size: 1rem; line-height: 1.45; }
.contact-copy > p a { border-bottom: 1px solid currentColor; }
.directions { max-width: 31rem; margin-top: 2rem !important; }
.contact-image { margin: 0; }
.contact-image img { aspect-ratio: 3 / 2; object-fit: contain; }
.contact-gallery { min-width: 0; }
.practice-slides { background: var(--paper); }
.practice-slide[hidden], .gallery-controls[hidden] { display: none; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; }
.gallery-status { margin: 0; font-size: 1rem; line-height: 1.35; }
.gallery-arrows { display: flex; gap: .5rem; flex-shrink: 0; }
.gallery-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font: 1.25rem/1 Arial, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.gallery-arrows button:hover { background: var(--ink); color: var(--white); }
.emergency { background: var(--paper); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-top: 5rem; padding-bottom: 5rem; }
.emergency h2 { font-size: clamp(2rem, 3vw, 3rem); }
.emergency h2 { margin-bottom: 0; }
.emergency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; font-family: Arial, sans-serif; font-size: .9rem; line-height: 1.45; }
.emergency-grid p { border-top: 1px solid var(--ink); padding-top: .7rem; }
.emergency-grid strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.emergency-grid a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer { background: var(--ink); color: var(--white); padding: 3rem var(--edge); display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 2rem; font-size: 1.05rem; }
.site-footer p { margin: 0; }
.footer-doctors { display: inline-flex; align-items: center; gap: .4em; }
.footer-links { display: flex; gap: 1rem; align-items: start; flex-wrap: wrap; }
.text-link .link-arrow { display: inline-block; width: .75em; height: .75em; flex: 0 0 .75em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.legal-header { position: static; background: var(--paper); }
.legal-main { max-width: 60rem; margin: auto; padding: clamp(4rem, 8vw, 7rem) var(--edge); background: var(--paper); min-height: 75vh; overflow-wrap: anywhere; }
.legal-main h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 3rem; }
.legal-main h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 3.5rem 0 1rem; }
.legal-main h3 { font-size: 1.25rem; text-transform: uppercase; font-weight: 400; margin: 2.2rem 0 .75rem; }
.legal-main p, .legal-main li { font-family: Arial, sans-serif; font-size: .98rem; line-height: 1.55; }
.legal-main address { font-family: Arial, sans-serif; font-size: 1rem; line-height: 1.55; margin: 1rem 0; }
.legal-main a { text-decoration: underline; text-underline-offset: 2px; }
.legal-main .phone-number { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

@media (max-width: 1000px) {
  .team-heading { grid-template-columns: 1fr; gap: 2rem; }
  .welcome-editorial { column-gap: 3rem; }
  .emergency { grid-template-columns: 1fr; }
  .emergency-grid { max-width: 48rem; }
  .contact { gap: 3rem; grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: minmax(0,.65fr) minmax(0,1fr); gap: 2rem; }
}
@media (max-width: 900px) {
  .site-header { align-items: start; }
  .menu-toggle { display: block; font-size: 1.28rem; min-height: 44px; min-width: 44px; }
  .main-nav { display: flex; grid-column: 1 / -1; flex-direction: column; gap: .7rem; padding: .7rem 0 0; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 44px; }
}
@media (max-width: 760px) {
  .site-header { padding-block: .5rem; align-items: center; column-gap: 1rem; row-gap: .75rem; background: var(--paper); }
  .wordmark { font-size: 1.125rem; line-height: .9; }
  .menu-toggle { font-size: 1.125rem; }
  .main-nav { padding-top: .25rem; padding-bottom: .5rem; }
  .welcome-editorial { grid-template-columns: 1fr; row-gap: 1.2rem; padding-block: 3rem 4rem; }
  .hero-image .welcome-heading { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, calc(var(--mobile-viewport, 100svh) * .06), 4rem) var(--edge); background: var(--paper); color: var(--ink); }
  .welcome-heading .eyebrow { font-size: .9rem; line-height: 1.3; margin-bottom: 1.1rem; }
  .welcome-heading h1 { font-size: clamp(3rem, 12vw, 4.25rem); margin-bottom: 1.25rem; }
  .welcome-heading .doctor-names { font-size: .8125rem; line-height: 1.55; }
  .welcome-story { max-width: 32rem; justify-self: start; }
  .opening-hours { grid-column: 1; grid-row: 3; max-width: 32rem; justify-self: start; padding-top: 0; margin-top: 1.8rem; }
  .hours-list { max-width: 17rem; }
  .hours-list > div { gap: 1.25rem; }
  .hero { padding-top: 0; }
  h1 { font-size: clamp(2.3rem, 9.6vw, 4.5rem); }
  /* The closed header is a 44px tap target plus 1rem vertical padding.
     A minimum (not fixed) height keeps the next chapter below the first
     screen while allowing short displays and larger text to scroll safely.
     JavaScript freezes the initial viewport height until the layout width
     changes; svh is the fallback when JavaScript is unavailable. */
  .hero-image { display: flex; flex-direction: column; height: auto; min-height: calc(100vh - 44px - 1rem); min-height: calc(var(--mobile-viewport, 100svh) - 44px - 1rem); background: var(--paper); overflow: visible; isolation: isolate; }
  /* The header and its background leave together. Pin the photo to the
     viewport edge afterwards, without leaving an empty header-sized strip. */
  .hero-image img { flex: 0 0 auto; aspect-ratio: 1.62; height: auto; position: sticky; top: 0; z-index: 0; transform: none; object-position: center bottom; }
  .section-heading, .team, .contact, .emergency { grid-template-columns: 1fr; }
  .section-number { margin-bottom: 0; }
  .section-heading, .emergency { gap: 1rem; }
  .service-layout { grid-template-columns: 1fr; }
  .service-image { display: none; }
  .service-inline-image { display: block; }
  .team-member { grid-template-columns: 1fr; gap: 2rem; }
  .team-member:nth-child(even) .member-portrait, .team-member:nth-child(even) .member-copy { grid-column: auto; grid-row: auto; justify-self: start; }
  .member-portrait { max-width: none; }
  .member-copy h3 { font-size: clamp(2.4rem, 9vw, 4rem); }
  .emergency-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .detail-body { padding-left: 0; padding-right: 0; }
  .contact-image img { aspect-ratio: 3 / 2; }
  .contact-location { display: none; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .footer-name { grid-column: 1 / -1; }
  .footer-links { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-links a { padding: .4rem 0; }
  .site-footer > p, .contact-copy { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .doctor-names { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .doctor-names .name-separator { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
