@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-latin.woff2") format("woff2");
}

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

:root {
  --ink: #142c35;
  --ink-soft: #506771;
  --blue: #2d88b7;
  --blue-dark: #1b6388;
  --sky: #d9edf6;
  --paper: #f5f6f2;
  --paper-deep: #e8edf0;
  --white: #ffffff;
  --line: #ced9dc;
  --positive: #e6efe9;
  --warning: #fff3cf;
  --shadow: 0 18px 54px rgba(25, 102, 113, 0.12);
  --card-shadow-rgb: 25, 102, 113;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --content: 78rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --font: "Libre Franklin", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "EB Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  content: "";
  display: block;
  height: 0.3rem;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--blue);
}

button,
summary {
  font: inherit;
}

:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--blue);
  outline-offset: 0.2rem;
}

.skip-link {
  background: var(--white);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  margin-inline: auto;
  max-width: var(--content);
  padding-inline: var(--gutter);
  width: 100%;
}

.notice {
  background: var(--warning);
  border-bottom: 1px solid #dccb96;
  color: #4b3b0e;
  font-size: 0.9rem;
  padding-block: 0.65rem;
  text-align: center;
}

.notice p {
  margin: 0;
}

.emergency-bar {
  background: #214f65;
  color: var(--white);
  font-size: 0.86rem;
}
.preview-accent { height: 4px; background: #214f65; }
.brand-symbol { display: block; width: 48px; height: 48px; overflow: hidden; flex-shrink: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #fff; margin-block: -6px; position: relative; z-index: 1; }
.brand .brand-symbol img { width: 127.43px; height: 48px; max-width: none; object-fit: fill; }
.brand-name { font-size: clamp(.8rem,1.05vw,.9rem); line-height: 1.15; color: var(--blue-dark); white-space: nowrap; }
@media (max-width: 40rem) { .brand-name { white-space: normal; max-width: 20ch; } }

.emergency-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  justify-content: space-between;
  min-height: 3rem;
  padding-block: 0.45rem;
}

.emergency-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
}

.preview-location {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.preview-badge {
  border: 1px solid rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  padding: 0.25rem 0.45rem;
  text-transform: uppercase;
}

.emergency-actions > div {
  white-space: nowrap;
}

.emergency-actions span {
  color: #b8c9cf;
  margin-right: 0.35rem;
}

.emergency-actions a {
  font-weight: 750;
  text-decoration: none;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(22, 49, 61, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 2.6rem;
}

.practice-banner { background: var(--blue-dark); color: #fff; }
.practice-banner-inner { padding-block: .35rem; text-align: center; }
.banner-messages { display: grid; }
.banner-message { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; align-self: center; }
.banner-message.is-active { opacity: 1; visibility: visible; }
.banner-message strong { display: inline; font-size: .9rem; line-height: 1.35; margin-right: .65rem; }
.banner-message p { display: inline; margin: 0; font-size: .85rem; line-height: 1.35; color: inherit; }
.practice-banner button { background: transparent; border: 1px solid #ffffff70; color: inherit; font-size: 1.75rem; min-height: 44px; cursor: pointer; }
.practice-banner button:focus-visible { outline: 3px solid white; outline-offset: 3px; }

@media (max-width: 47.99rem) {
  .practice-banner-inner { padding-block: .2rem; }
  .banner-message { font-size: .8rem; line-height: 1.12; }
  .banner-message strong { font-size: .8rem; line-height: 1.12; margin-right: .35rem; }
  .banner-message p { font-size: .78rem; line-height: 1.12; }
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  max-width: 100%;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  height: 3rem;
  object-fit: contain;
  object-position: left center;
  width: 9rem;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.97rem;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  align-items: center;
  display: none;
  gap: 1.25rem;
}

.desktop-nav a {
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-switch {
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  text-decoration: none;
}

.site-switch::before {
  background: var(--blue);
  border-radius: 0;
  content: "";
  height: 0.5rem;
  width: 0.5rem;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.45rem;
  list-style: none;
  padding: 0.55rem 0.8rem;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  content: "+";
  font-size: 1.05rem;
  line-height: 1;
}

.mobile-menu[open] summary::after {
  content: "–";
}

.mobile-menu nav {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: grid;
  min-width: min(19rem, calc(100vw - 2rem));
  padding: 0.6rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
}

.mobile-menu nav a {
  border-radius: 0;
  font-weight: 650;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  background: var(--sky);
}

.hero {
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4rem) var(--section);
  position: relative;
}

.hero::before {
  background: radial-gradient(circle, rgba(47, 131, 183, 0.18), transparent 68%);
  content: "";
  height: 31rem;
  position: absolute;
  right: -12rem;
  top: -10rem;
  width: 31rem;
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
}

.hero-copy {
  align-self: center;
  padding-top: 1rem;
}

.eyebrow {
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin-top: 0;
}

.editorial-base {
  font-family: var(--font);
  font-style: normal;
  font-weight: 720;
}

.editorial-accent {
  font-family: var(--font-editorial);
  font-style: normal;
  font-weight: 520;
}

h1 {
  font-size: clamp(2.85rem, 8vw, 6.8rem);
  font-weight: 670;
  letter-spacing: -0.065em;
  margin-bottom: 1.5rem;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: -0.025em;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  margin: 0;
  max-width: 37rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  background: var(--blue-dark);
  border: 1px solid var(--blue-dark);
  border-radius: 0;
  color: var(--white);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 760;
  gap: 0.55rem;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.button-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button-secondary:hover {
  color: var(--white);
}

.hero-phone {
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual::before {
  border: 1px solid rgba(22, 49, 61, 0.25);
  border-radius: var(--radius-lg);
  content: "";
  inset: 1rem -0.75rem -0.75rem 1rem;
  position: absolute;
}

.hero-visual img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  position: relative;
  width: 100%;
}

.image-caption {
  color: var(--ink-soft);
  font-size: 0.72rem;
  margin: 0.8rem 0 0 1rem;
  position: relative;
}

.editorial-number {
  background: var(--white);
  border-radius: 0;
  display: grid;
  font-size: 0.74rem;
  font-weight: 800;
  height: 3.4rem;
  letter-spacing: 0.12em;
  place-items: center;
  position: absolute;
  right: -0.6rem;
  top: -1.1rem;
  width: 3.4rem;
  z-index: 2;
}

.quick-facts {
  background: #fff;
  margin-top: 0;
  position: relative;
  z-index: 3;
}

.quick-facts-grid {
  background: var(--white);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: none;
  display: grid;
}

.quick-fact {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: .3rem 1rem;
}
.quick-fact span { margin-bottom: .1rem; }

.quick-fact:last-child {
  border-bottom: 0;
}

.quick-fact span,
.meta-label {
  color: var(--ink-soft);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.quick-fact strong,
.quick-fact a {
  font-weight: 720;
  overflow-wrap: anywhere;
}

.section {
  padding-block: var(--section);
  scroll-margin-top: 6rem;
}

#kontakt, #anfahrt-planen {
  scroll-margin-top: 8rem;
}

.section-white {
  background: var(--white);
}

.section-blue {
  background: var(--ink);
  color: var(--white);
}

#team.section-blue {
  background: linear-gradient(90deg, rgba(11, 31, 39, .82) 0%, rgba(11, 31, 39, .62) 34%, rgba(11, 31, 39, .18) 100%), #718b98;
  color: #fff;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.4rem, 6vw, 5rem);
}

.section-head h2,
.section-head p {
  margin-bottom: 0;
}

#vertrauen .section-head { grid-template-columns: 1fr; gap: .85rem; }
#trust-title { max-width: none; }
@media (min-width: 64rem) { #trust-title { font-size: clamp(2.8rem, 5.5vw, 5.2rem); white-space: nowrap; } }
.practice-obertor-photos { display: grid; gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2rem; }
.practice-obertor-photos figure { margin: 0; min-width: 0; }
.practice-obertor-photos img { display: block; width: 100%; height: auto; }
@media (min-width: 48rem) {
  .practice-obertor-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .practice-obertor-photos figure:first-child { grid-column: 1 / -1; width: min(100%, 47rem); justify-self: center; }
}

.section-intro {
  align-self: end;
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 42rem;
}

.section-blue .section-intro,
.section-blue .eyebrow {
  color: #bbd5df;
}

#team .section-intro,
#team .eyebrow,
#team .team-role,
#team .team-languages { color: #fff; }

.service-grid {
  display: grid;
  gap: clamp(1.4rem, 3.5vw, 3rem) clamp(2rem, 5vw, 5rem);
}

.service-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.5rem 1fr;
  padding: 0;
}

.service-number {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding-top: 0.3rem;
}

.archive-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.archive-card p, .archive-card h3 { margin: 0; }
.archive-card .button { margin-top: auto; }
@media (min-width: 64rem) {
  .team-group .team-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.service-card h3 {
  margin-bottom: 0.7rem;
}

.service-card p {
  color: var(--ink-soft);
  margin: 0;
}

.service-link {
  margin-top: 1.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
}

.services-overview-action {
  margin-top: clamp(3rem, 7vw, 6rem);
}

.practice-grid {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.practice-image {
  margin: 0;
}

.practice-image img {
  aspect-ratio: 16 / 11;
  border-radius: 0;
  object-fit: cover;
  width: 100%;
}

.practice-copy {
  align-self: center;
}

.practice-copy > p {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.fact-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.fact-list li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
  padding-block: 0.9rem;
}

.fact-list strong {
  font-size: 0.82rem;
}

.fact-list span {
  color: var(--ink-soft);
}

.team-list {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-member {
  display: grid;
  gap: 1rem;
  padding: 0;
}

.team-group + .team-group { margin-top: 3.5rem; }
.team-group h3 { margin-bottom: 1.5rem; }
@media (min-width: 64rem) {
  .team-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.team-member > img,
.team-placeholder {
  aspect-ratio: 1 / 1;
  background: #284751;
  object-fit: cover;
  object-position: 50% 28%;
  width: 100%;
}

.team-placeholder {
  display: grid;
  place-items: center;
}

.team-member > img[src$="-20260924.jpg"] { object-position: center top; }
.team-member > img[src$="kresz-blau-schulter-20260925.png"] { object-fit: contain; object-position: center bottom; background: #fff; }

.team-placeholder span {
  color: #c7dbe2;
  font-family: var(--font-editorial);
  font-size: clamp(3rem, 8vw, 6rem);
}

.team-copy {
  display: grid;
  gap: 0.25rem;
}

.team-member strong {
  font-size: 1.04rem;
}

.team-role,
.team-languages {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.team-languages { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; }
.team-languages-grid { display: grid; grid-template-columns: max-content max-content; justify-content: start; }
.team-language { display: inline-flex; align-items: center; gap: 0.35rem; }
.team-language .language-flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 24px; }
.practice-text-only { max-width: 52rem; }
.emergency-button { margin-top: 1rem; font-size: 0.85rem; }

.empty-state {
  border: 1px dashed currentColor;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.trust-grid {
  display: grid;
  gap: 1rem;
}

.certificate-card,
.membership-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.certificate-card {
  background: var(--positive);
}

.certificate-card p,
.membership-card p {
  color: var(--ink-soft);
}

.certificate-card .button {
  margin-top: 0.75rem;
}

.membership-list {
  display: grid;
  gap: 1rem;
}

.membership-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 6.5rem 1fr;
}

.membership-card img {
  max-height: 3.8rem;
  object-fit: contain;
  object-position: left center;
}

.membership-card h3,
.membership-card p {
  margin-bottom: 0.35rem;
}

.map-preview-wrap { margin-top: 3rem; }
.map-preview-title { margin: 0 0 1.25rem; }
.map-preview { display: block; max-width: 42rem; margin-inline: auto; color: var(--blue-dark); text-decoration: none; }
.map-preview img { display: block; width: 100%; height: auto; }
.map-preview-label { display: block; padding: .85rem 1rem; background: #f0f6f7; font-weight: 700; text-align: center; }
.map-preview:hover .map-preview-label { text-decoration: underline; }
.map-preview:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 5px; }
.location-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 0;
}

.contact-card address {
  font-style: normal;
  margin-bottom: 1.5rem;
}

.location-grid h2 {
  font-size: clamp(1.25rem, 3vw, 2.6rem);
  line-height: 1.15;
}
.contact-card h2 { white-space: nowrap; }
.contact-card address { overflow-wrap: normal; }

.contact-lines {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.email-note {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.hin-note {
  color: var(--ink-soft);
  display: block;
  font-size: 0.76rem;
  margin-top: 0.2rem;
}

.hours-list {
  border-top: 1px solid var(--line);
  margin: 0;
  font-size: 0.9rem;
}

.hours-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: max-content minmax(0, 1fr);
  padding-block: 0.4rem;
}

.hours-row dt,
.hours-row dd {
  margin: 0;
}

.hours-row dd {
  color: var(--ink-soft);
  text-align: right;
  font-size: 0.85rem;
  white-space: nowrap;
}

.directions-list {
  display: grid;
  gap: 1.3rem;
}

.directions-list p {
  color: var(--ink-soft);
  margin: 0.25rem 0 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 730;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding-block: 1.3rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--blue);
  content: "+";
  font-size: 1.7rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  color: var(--ink-soft);
  max-width: 48rem;
  padding: 0 0 1.5rem;
}

.callout {
  background: linear-gradient(120deg, #fff 45%, #eef7fa);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-dark);
  border-radius: 0;
  box-shadow: -3px -3px 12px rgba(11, 31, 39, .06);
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.6rem, 5vw, 3.5rem);
}
.section:has(> .shell > .callout) { background: #fff; }
.callout h2 { font-size: clamp(1.65rem, 2.7vw, 2.7rem); line-height: 1.15; max-width: 22ch; margin-block: .7rem 1rem; }
.callout > div > p:last-child { max-width: 52ch; color: var(--ink-soft); }

.callout h2,
.callout p {
  margin-bottom: 0;
}

.callout-actions {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.callout-emergency {
  font-size: 0.86rem;
}

.site-footer {
  background: #0f2731;
  color: var(--white);
  padding-block: 3.5rem 2rem;
}

.mobile-callbar {
  bottom: calc(0.7rem + env(safe-area-inset-bottom));
  left: 0.7rem;
  position: fixed;
  right: 0.7rem;
  z-index: 60;
}

.mobile-callbar a {
  align-items: center;
  background: var(--blue-dark);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  box-shadow: 0 0.8rem 2.5rem rgba(25, 102, 113, 0.3);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  min-height: 3.6rem;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
}

.mobile-callbar span {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-callbar strong {
  font-size: 0.95rem;
}

.has-callbar {
  padding-bottom: calc(4.7rem + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand p,
.footer-address,
.footer-meta {
  color: #b8cbd2;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  width: fit-content;
}

.footer-email-note {
  color: #b8cbd2;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: -0.25rem;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.legal-hero {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.legal-hero h1 {
  max-width: 13ch;
}

.legal-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: var(--section);
}

.legal-nav {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.legal-copy {
  max-width: 50rem;
}

.legal-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  margin-top: 2.7rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 2rem 0 0.4rem;
}

.legal-copy ul {
  padding-left: 1.25rem;
}

.status-note {
  background: var(--warning);
  border-left: 0.3rem solid #c69c23;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
}

.not-found {
  align-items: center;
  display: grid;
  min-height: 65vh;
  padding-block: var(--section);
}

.not-found-copy {
  max-width: 48rem;
}

.not-found-code {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.image-hero {
  background: #718b98;
  color: var(--white);
  min-height: clamp(36rem, 66vw, 53rem);
  overflow: hidden;
  position: relative;
}

.image-hero-media,
.image-hero-overlay,
.image-hero-content {
  inset: 0;
  position: absolute;
}

.image-hero-media {
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
  width: 100%;
}

.image-hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 31, 39, 0.82) 0%, rgba(11, 31, 39, 0.62) 34%, rgba(11, 31, 39, 0.08) 67%),
    linear-gradient(0deg, rgba(11, 31, 39, 0.45) 0%, transparent 40%);
}

.image-hero-content {
  align-items: center;
  display: flex;
  z-index: 1;
}

.image-hero-copy {
  max-width: 43rem;
  padding-block: 5rem;
}

.image-hero-copy .eyebrow,
.image-hero-copy .hero-lead {
  color: #eef7fa;
}

.image-hero-copy h1 {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 7.2rem);
  max-width: 9ch;
}

.image-hero-copy h1 .editorial-accent {
  font-size: 1.08em;
}

.image-hero-copy .button {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.image-hero-copy .button:hover {
  background: var(--sky);
  border-color: var(--sky);
}

.image-hero-caption {
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  margin: 0;
  max-width: min(34rem, calc(100% - 2rem));
  position: absolute;
  right: var(--gutter);
  text-align: right;
  z-index: 2;
}

.practice-gallery {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.gallery-column { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); min-width: 0; }
.featured-treatments { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.lachgas-highlight,
.services-intro-card,
#praxis .practice-copy,
#vertrauen .certificate-card,
#vertrauen .membership-card {
  background: linear-gradient(135deg, rgba(27, 63, 79, .09), transparent 48%), #fff;
  border: 1px solid;
  border-color: #aebfc7 #e7edef #e7edef #aebfc7;
  border-radius: 0;
  box-shadow: inset 7px 7px 18px -12px rgba(11, 31, 39, .3);
  padding: clamp(1.5rem,4vw,3rem);
}
.lachgas-highlight {
  padding: .9rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.services-intro-card { padding-block: 1rem; align-items: center; border-right: 0; border-bottom: 0; box-shadow: none; background: linear-gradient(to bottom, transparent 65%, #fff 100%), linear-gradient(to right, rgba(27,63,79,.09), transparent 55%), #fff; }
.practice-photo-grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2rem; }
.practice-photo-grid figure { margin: 0; min-width: 0; }
.practice-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
@media (min-width: 48rem) { .practice-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.services-intro-card h2 { margin: 0; }
#aus-der-praxis .archive-card .button { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.directions-card, .directions-card .directions-list { display: flex; flex-direction: column; }
.directions-card .directions-list { flex: 1; }
#anfahrt .directions-card .hero-actions { display: flex; flex-direction: column; align-items: flex-start; margin-top: auto; padding-top: 1.5rem; gap: .65rem; }
#anfahrt .directions-card .hero-actions .button, #anfahrt .emergency-button { width: 20rem; max-width: 100%; min-height: 3.25rem; }
@media (min-width: 48rem) {
  #anfahrt .contact-card { display: flex; flex-direction: column; align-items: flex-start; }
  #anfahrt .contact-card .hours-list { width: 100%; margin-bottom: 1.25rem; }
  #anfahrt .contact-card .emergency-button { margin-top: auto; }
}
#praxis, #anfahrt, #vertrauen, #aus-der-praxis, #sponsoring, #faq { background: #fff; }
#praxis .practice-text-only { max-width: none; }
#team .section-head, #aus-der-praxis .section-head, #sponsoring .section-head { grid-template-columns: 1fr; gap: .85rem; }
#team .section-intro, #aus-der-praxis .section-intro, #sponsoring .section-intro { align-self: start; }
.services-overview-action .button, #anfahrt .hero-actions .button { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.services-overview-action .button:hover, #anfahrt .hero-actions .button:hover { background: var(--ink); border-color: var(--ink); }
#anfahrt .contact-lines a { color: var(--blue-dark); font-weight: 650; }
.service-card .service-link { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.service-card .service-link:hover { background: var(--ink); border-color: var(--ink); }
#anfahrt .contact-card { background: #fff; }
#vertrauen > .shell, #aus-der-praxis > .shell, #sponsoring > .shell, #anfahrt > .shell, #faq > .shell {
  position: relative;
}
#vertrauen > .shell::before, #aus-der-praxis > .shell::before, #sponsoring > .shell::before, #anfahrt > .shell::before, #faq > .shell::before {
  content: '';
  display: block;
  position: absolute;
  top: -1.5rem;
  left: calc(var(--gutter) - .65rem);
  width: min(22rem, 85%);
  height: 4rem;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(var(--card-shadow-rgb),.55), transparent) top left / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(var(--card-shadow-rgb),.55), transparent) top left / 1px 100% no-repeat,
    radial-gradient(ellipse at top left, rgba(var(--card-shadow-rgb),.12), transparent 72%);
  box-shadow: inset 5px 5px 12px -8px rgba(var(--card-shadow-rgb),.4);
  mask-image: linear-gradient(to right, #000, transparent), linear-gradient(to bottom, #000, transparent);
  mask-composite: intersect;
}
#aus-der-praxis .archive-card { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.lachgas-highlight .button { margin-top: auto; min-height: 2.75rem; padding: .55rem .95rem; }
@media (min-width: 64rem) { .featured-treatments { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.lachgas-highlight h2 { font-size: clamp(1.45rem,2.2vw,1.9rem); max-width: 100%; color: var(--ink); margin: 0 0 .5rem; }
.lachgas-highlight .featured-treatment-subtitle { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.image-hero .hero-contact-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.hero-contact-actions .button { width: fit-content; max-width: 100%; min-height: 3.25rem; padding: .8rem 1.25rem; text-align: center; justify-content: center; }
.hero-contact-actions a { text-decoration: none; }
.hero-contact-actions a:hover, .hero-contact-actions a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.hero-contact-actions .hero-phone { grid-column: 1 / -1; color: inherit; font-size: 1.35rem; font-weight: 700; width: fit-content; }
.hero-emergency { grid-column: 1 / -1; color: #fff; font-size: .85rem; line-height: 1.35; margin: -.25rem 0 0; }
.hero-emergency a { color: inherit; font-weight: 650; white-space: nowrap; text-underline-offset: .2em; }
@media (max-width: 47.99rem) {
  .image-hero .hero-contact-actions { grid-template-columns: 1fr; }
  .image-hero-content { position: relative; inset: auto; }
  .image-hero-copy { padding-block: 2.5rem 5rem; }
}
.lachgas-highlight p { max-width: 65ch; margin: 0 0 .65rem; line-height: 1.45; }
#leistungen { padding-block: clamp(7rem, 12vw, 11rem) calc(var(--section) / 2); }
#leistungen .section-head { margin-bottom: 2rem; }
#leistungen .service-card h3 { margin-bottom: .4rem; }
#leistungen .service-link { margin-top: .75rem; }
.sponsor-grid { display:grid; gap:2rem; }
.sponsor-card { display:block; padding:1.5rem; text-decoration:none; border:1px solid var(--line); background: #fff; box-shadow: -4px -4px 0 #171d20, -10px -10px 14px -5px rgba(11,31,39,.32); }
.sponsor-card img { height:9rem; width:100%; object-fit:contain; margin-bottom:1.5rem; }
.sponsor-card h3 { margin-bottom:.5rem; }
.treatment-original-images { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:2rem 0; }
.treatment-original-images figure { margin:0; }
.treatment-original-images img { width:100%; height:auto; }
.treatment-original-copy p { line-height:1.7; }
@media (min-width:48rem) { .sponsor-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.image-hero .button-secondary { background: var(--paper); color: var(--ink); }
@media (min-width: 80rem) {
  .quick-facts .quick-facts-grid { grid-template-columns: repeat(4, auto); }
  .quick-fact { padding: .3rem .85rem; }
  .quick-fact a { white-space: nowrap; overflow-wrap: normal; font-size: .9rem; }
}
@media (min-width: 48rem) and (max-width: 79.99rem) {
  .quick-facts .quick-facts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.practice-gallery-item {
  margin: 0;
}

.practice-gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.practice-gallery-item.gallery-portrait {
  margin-left: auto;
  width: 82%;
}

.practice-gallery-item.gallery-portrait img {
  aspect-ratio: 4 / 5;
}

.practice-gallery-item.gallery-flow {
  width: 91%;
}

.practice-gallery-item.gallery-detail {
  margin-left: auto;
  width: 100%;
}

.service-detail-hero {
  background: var(--sky);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.page-services .service-detail-hero,
.page-service .service-detail-hero,
.page-prices .service-detail-hero {
  background: #fff;
  box-shadow: none;
}

.subpage-intro-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(25, 102, 113, .38);
  background: linear-gradient(to bottom, transparent 55%, #fff 100%), linear-gradient(to right, rgba(25, 102, 113, .13), transparent 65%), #fff;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.subpage-intro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 7px 7px 18px -12px rgba(25, 102, 113, .52);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

.subpage-intro-card .hero-lead { margin-bottom: 0; }

.service-detail-hero h1 {
  overflow-wrap: anywhere;
  font-size: clamp(2.9rem, 8vw, 6.7rem);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.service-detail-hero .hero-lead {
  max-width: 54rem;
}

.service-breadcrumb {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.service-back-link {
  margin-top: 2rem;
}

.service-overview-list {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.service-overview-list .service-grid-illustrated { grid-template-columns: 1fr; gap: 1.75rem; }
.service-card-illustrated {
  grid-template-columns: minmax(75px, .55fr) minmax(0, 1fr);
  align-content: start;
  gap: 1.25rem .75rem;
  padding: 1.35rem;
  position: relative;
  isolation: isolate;
  background: linear-gradient(to bottom, transparent, #fff 90%), linear-gradient(to right, rgba(25,102,113,.08), transparent 85%);
  border: 0;
  box-shadow: none;
  transition: transform .2s ease;
}
.service-card-illustrated::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-top: 2px solid var(--blue-dark); border-left: 1px solid #94b5bf; box-shadow: inset 8px 8px 18px -12px rgba(25,102,113,.45); mask-image: linear-gradient(135deg, #000, transparent 75%); }
.service-card-illustrated > .service-number { position: absolute; top: 1.1rem; left: 1.1rem; padding: 0; }
.service-card-illustrated:hover,
.service-card-illustrated:focus-within { transform: translateY(-2px); }
.service-card-illustrated > div:last-child { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.service-card-illustrated h3 { font-size: clamp(1.05rem, 1.55vw, 1.35rem); overflow-wrap: anywhere; }
.service-card-illustrated .service-link { margin-top: auto; transform: translateY(.25rem); }
.service-card-illustrated p { padding-bottom: 1rem; font-size: .9rem; line-height: 1.55; }
.service-overview-image { grid-column: 1; background: transparent; border: 0; align-self: center; }
.service-overview-image img { display: block; width: 100%; height: 135px; object-fit: contain; }
@media (min-width: 48rem) {
  .service-overview-list .service-grid-illustrated { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card-illustrated { grid-template-rows: 1fr; gap: 1.25rem; padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .service-card-illustrated { transition: none; } .service-card-illustrated:hover, .service-card-illustrated:focus-within { transform: none; } }
.service-card-illustrated { padding-bottom: 0; }
.service-group-heading { grid-column: 1 / -1; margin: 1.5rem 0 0; color: var(--blue-dark); font-size: 1rem; letter-spacing: .035em; }
.service-group-heading:first-child { margin-top: 0; }
.service-card-text-only { grid-template-columns: 2.5rem minmax(0, 1fr); }
.service-card-text-only > div:last-child { grid-column: 2; }
@media (min-width: 48rem) {
  .service-card-illustrated h3 { min-height: 2lh; }
}
/* Small homepage accents: long horizontal fade, short vertical fade. */
#leistungen .service-card:not(.service-card-illustrated) { position: relative; isolation: isolate; padding: 1rem 0 0 1rem; }
#leistungen .service-card:not(.service-card-illustrated)::before {
  content: ''; position: absolute; top: 0; left: 0; width: min(62%, 16rem); height: 4rem;
  z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(var(--card-shadow-rgb), .5), transparent) top left / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(var(--card-shadow-rgb), .5), transparent) top left / 1px 100% no-repeat;
  box-shadow: inset 7px 7px 15px -10px rgba(var(--card-shadow-rgb), .38);
  mask-image: linear-gradient(to right, #000, transparent), linear-gradient(to bottom, #000, transparent);
  mask-composite: intersect;
}
.treatment-original-images .treatment-example { max-width: 276px; }
.treatment-example figcaption { margin-top: .5rem; font-weight: 700; color: var(--blue-dark); }
.service-card-illustrated .service-link { transform: none; }

.service-detail-layout {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
}

.service-detail-copy > p:not(.eyebrow),
.service-detail-callout > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.service-detail-copy > p:not(.eyebrow) {
  font-size: 1.08rem;
  max-width: 46rem;
}

.service-detail-points {
  counter-reset: points;
  display: grid;
  gap: 1.2rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.service-detail-points li {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.25rem 1fr;
}

.service-detail-points li::before {
  color: var(--blue-dark);
  content: counter(points, decimal-leading-zero);
  counter-increment: points;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
}

.service-detail-callout {
  align-self: start;
  background: var(--paper);
  border-left: 0.3rem solid var(--blue);
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.service-detail-callout h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.service-detail-phone {
  display: block;
  margin-top: 1rem;
}

.service-related-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.service-related-card {
  display: flex;
  flex-direction: column;
}

.service-related-card p {
  color: #c5d6dc;
}

.service-related-link {
  align-self: start;
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
  margin-top: auto;
}

.price-grid {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
}

:is(.page-services, .page-service, .page-prices) .service-detail-hero { padding-block: clamp(2rem, 3vw, 3rem) 0; }
.page-prices main { min-height: 100svh; display: flex; flex-direction: column; }
.page-prices main > .section { flex: 1; }
:is(.page-services, .page-service, .page-prices) .service-breadcrumb { margin-bottom: 2rem; }
:is(.page-services, .page-service, .page-prices) .service-detail-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); max-width: none; margin-bottom: 1rem; }
:is(.page-services, .page-service, .page-prices) .subpage-intro-card { padding-block: 1.5rem; }
:is(.page-services, .page-service, .page-prices) .service-detail-hero .hero-lead { font-size: 1rem; }
:is(.page-services, .page-service, .page-prices) main > .section { padding-block: clamp(2.5rem, 4vw, 3.5rem) 3rem; }
.page-service .service-back-link { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.page-service .service-back-link:hover { background: var(--ink); border-color: var(--ink); }
.page-prices .price-status { color: var(--blue-dark); font-weight: 700; }
.page-prices .price-status > strong { color: var(--ink); display: block; margin-bottom: 1.25rem; }
.page-prices .taxpoint-row { display: block; line-height: 1.5; }
.page-prices .taxpoint-row + .taxpoint-row { margin-top: .25rem; }
.page-prices .price-status { margin: 0 0 clamp(3rem, 5vw, 4.5rem); padding: 1.1rem 1.5rem; line-height: 1.8; max-width: none; }
.page-prices .price-status { min-height: calc(9em + 2.2rem + 2px); }
.page-prices .price-grid { gap: 1.5rem; }
.page-prices .price-card h2 { font-size: 1.4rem; margin: .5rem 0; }
.page-prices .price-card p { font-size: 1rem; }

.price-card h2 {
  font-family: var(--font);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.035em;
  margin: 0.65rem 0 1rem;
}

.price-card p {
  color: var(--ink-soft);
  margin: 0;
}

.price-status {
  background: linear-gradient(120deg, #fff 45%, #eef7fa);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-dark);
  border-radius: 0;
  box-shadow: -3px -3px 12px rgba(11, 31, 39, .06);
  padding: clamp(1.6rem, 5vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
  max-width: 54rem;
}

.contact-card h2 {
  max-width: none;
  overflow-wrap: normal;
  text-wrap: nowrap;
}

@media (min-width: 48rem) {
  .mobile-callbar {
    display: none;
  }

  .has-callbar {
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .hero-copy {
    padding-bottom: 3rem;
  }

  .hero-visual {
    margin-top: 2.5rem;
  }

  .hero-visual img {
    aspect-ratio: 4 / 5;
  }

  .quick-facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-fact {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .quick-fact:last-child {
    border-right: 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  }

  .practice-gallery {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-gallery-item.gallery-anchor {
    grid-column: auto;
    grid-row: auto;
  }

  .practice-gallery-item.gallery-portrait {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    width: 100%;
  }

  .practice-gallery-item.gallery-flow {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    width: 100%;
  }

  .practice-gallery-item.gallery-detail {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .service-detail-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  }

  .service-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-grid,
  .location-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  }

  .team-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-member { align-content: start; }

  .trust-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  }

  .callout {
    align-items: center;
    grid-template-columns: 1fr auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .legal-layout {
    grid-template-columns: 14rem 1fr;
  }
}

@media (min-width: 90rem) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }
}

@media (min-width: 80rem) {
  .hero {
    padding-top: 3rem;
  }

  .hero-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .hero-visual img {
    aspect-ratio: 16 / 12;
    min-height: 39rem;
  }

  .team-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-member:nth-child(even) {
    margin-top: 0;
  }

  .team-member:nth-child(3n + 2) { margin-top: 0; }

  .service-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .header-inner { flex-wrap: wrap; gap: 0.65rem; padding-block: 0.15rem; }
  .brand { flex-direction: row; align-items: center; gap: .65rem; width: auto; flex: 1; min-width: 0; }
  .brand-name { min-width: 0; }
  .brand-copy strong { font-size: clamp(0.72rem, 3.3vw, 0.97rem); }
  .brand-copy span { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared open corner: only decoration fades, never the text or images. */
:is(.lachgas-highlight, .services-intro-card, #praxis .practice-copy, #vertrauen .certificate-card, #vertrauen .membership-card, .callout, .price-status, .sponsor-card, .service-card-illustrated) {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  background: linear-gradient(to bottom, transparent 35%, #fff 100%), linear-gradient(to right, rgba(var(--card-shadow-rgb), .1), transparent 85%), #fff;
}
:is(.lachgas-highlight, .services-intro-card, #praxis .practice-copy, #vertrauen .certificate-card, #vertrauen .membership-card, .callout, .price-status, .sponsor-card, .service-card-illustrated)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border: 0;
  background:
    linear-gradient(to right, rgba(var(--card-shadow-rgb), .65), transparent 95%) top left / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(var(--card-shadow-rgb), .65), transparent 90%) top left / 1px 100% no-repeat;
  box-shadow: inset 8px 8px 18px -10px rgba(var(--card-shadow-rgb), .48);
  mask-image: linear-gradient(to right, #000, transparent), linear-gradient(to bottom, #000, transparent);
  mask-composite: intersect;
}

@media print {
  .emergency-bar,
  .site-header,
  .hero-actions,
  .callout,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
