/* ==========================================================================
   Kieferorthopädische Praxis Dr. Nikolas Wilhelm M.Sc. — Bad Kreuznach & Lauterecken
   Modern Editorial Redesign (new/)
   Direction: Uneven Photographs | Brand Navy (#1f4171) & Warm Alabaster (#f5f5f0)
   Self-Hosted WOFF2 Fonts | Strict 5-Step Type Scale | Zero External CDNs
   ========================================================================== */

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-latin-ext-wght.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Original Brand Palette — Royal Orthodontic Navy, Architectural Cool Stone & Clinical White */
  --bg-canvas: #f3f5f8;
  --bg-surface: #ffffff;
  --bg-stone: #e5eaf0;
  --bg-navy-tint: #dce5f2;
  --bg-dark: #142847;

  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #334155;

  --accent-primary: #1f4171;
  --accent-hover: #152e52;
  --accent-focus: #1f4171;
  --accent-warm: #c26a00;

  --status-urgent-bg: #fee2e2;
  --status-urgent-text: #7f1d1d;
  --status-ok-bg: #dcfce7;
  --status-ok-text: #14532d;

  --line-form: #94a3b8;
  --line-table: #cbd5e1;

  /* Strict 5-Step Type Scale */
  --font-sans: 'Work Sans', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --size-display: clamp(1.85rem, 5.6vw, 4.85rem);
  --size-h2: clamp(1.4375rem, 2.5vw, 2.35rem);
  --size-h3: 1.25rem;   /* 20px */
  --size-body: 1.0625rem; /* 17px */
  --size-small: 0.9375rem; /* 15px */

  /* Layout */
  --container-max: 1320px;
  --page-pad: clamp(1.125rem, 5vw, 4rem);
  --header-height: 76px;
}

/* ==========================================================================
   1. DEFENSIVE TYPOGRAPHY, HYPHENATION & RESET (320px–430px SAFE)
   ========================================================================== */

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

html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main *,
.site-header *,
.site-footer * {
  min-width: 0;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
p,
li,
th,
td,
label,
legend,
dd,
dt {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p,
li,
td,
th,
label,
dd,
dt {
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Headlines avoid mid-word hyphenation unless an extraordinary word exceeds viewport */
h1,
h2,
h3,
h4 {
  hyphens: manual;
  -webkit-hyphens: manual;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: var(--size-display);
  font-weight: 600;
  line-height: 1.04;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: var(--size-h2);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--size-h3);
  line-height: 1.22;
  margin-bottom: 0.65rem;
}

h4 {
  font-size: var(--size-body);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

p {
  margin-bottom: 1.1rem;
  max-width: 66ch;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

a:hover {
  color: var(--accent-hover);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Focus Accessibility (WCAG AA+) */
:focus-visible {
  outline: 3px solid var(--accent-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* ==========================================================================
   2. BUTTONS & INTERACTIVE CONTROLS (FLAT SQUARE GEOMETRY)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  hyphens: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms ease;
}

@media (max-width: 380px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-stone);
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--bg-navy-tint);
  color: var(--text-primary);
}

.btn-surface {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
}

.btn-surface:hover,
.btn-surface:focus-visible {
  background-color: var(--bg-navy-tint);
  color: var(--accent-hover);
}

.btn-sm {
  min-height: 44px;
  padding: 0.55rem 1.05rem;
}

/* ==========================================================================
   3. TOP STATUS BAR & SITE HEADER
   ========================================================================== */

.top-bar {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-size: var(--size-small);
  padding-block: 0.45rem;
}

@media (max-width: 767px) {
  .top-bar {
    display: none;
  }
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.top-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.top-bar a {
  color: #ffffff;
  font-weight: 600;
}

.top-bar a:hover {
  color: #dbeafe;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--bg-surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background-color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-size: var(--size-small);
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }
}

.desktop-nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.35vw, 1.35rem);
}

.nav-link {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  hyphens: none;
  padding-block: 0.4rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent-primary);
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-call-btn {
  display: none;
}

.header-cta-btn {
  display: none;
}

@media (min-width: 640px) {
  .header-cta-btn {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.9rem;
  background-color: var(--bg-stone);
  color: var(--text-primary);
  border: none;
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 600;
  white-space: nowrap;
  hyphens: none;
  flex-shrink: 0;
  cursor: pointer;
}

.menu-toggle:hover {
  background-color: var(--bg-navy-tint);
}

@media (min-width: 1120px) {
  .desktop-nav {
    display: block;
  }
  .header-call-btn {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-surface);
  padding-block: 1.25rem 1.75rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.7rem 0.85rem;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] {
  background-color: var(--bg-navy-tint);
  color: var(--accent-primary);
}

.mobile-drawer-actions {
  display: grid;
  gap: 0.65rem;
}

/* ==========================================================================
   4. HERO SECTION — UNEVEN PHOTOGRAPHS GALLERY OPENING
   ========================================================================== */

.hero {
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  background-color: var(--bg-canvas);
}

.hero-top-row {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.hero-headline {
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.hero-composition {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-composition {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
  .hero-left-col {
    grid-column: 1 / 6;
    padding-top: 0.5rem;
  }
  .hero-right-stage {
    grid-column: 6 / 13;
  }
}

.hero-lead {
  font-size: var(--size-body);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-locations-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 540px) {
  .hero-locations-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-loc-block {
  background-color: var(--bg-surface);
  padding: 1.1rem 1.25rem;
}

.hero-loc-block h2,
.hero-loc-block h3 {
  font-size: var(--size-small);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-loc-block p {
  font-size: var(--size-small);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Slow Crossfade Principal Stage */
.hero-crossfade-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-stone);
  overflow: hidden;
}

.hero-crossfade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1600ms ease-in-out;
}

.hero-crossfade-img.is-active {
  opacity: 1;
  position: relative;
}

.hero-secondary-offset {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}

@media (min-width: 640px) {
  .hero-secondary-offset {
    grid-template-columns: 5fr 7fr;
  }
}

.hero-offset-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-stone);
}

.hero-offset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-offset-caption {
  background-color: var(--bg-surface);
  padding: 1.15rem 1.35rem;
  font-size: var(--size-small);
  color: var(--text-secondary);
}

/* ==========================================================================
   5. SECTIONS & UNEVEN PHOTOGRAPHS GALLERY COMPOSITIONS
   ========================================================================== */

.section {
  padding-block: clamp(4rem, 9vw, 8.5rem);
}

.section-surface {
  background-color: var(--bg-surface);
}

.section-stone {
  background-color: var(--bg-stone);
}

.section-navy-tint {
  background-color: var(--bg-navy-tint);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #e2e8f0;
}

.section-dark a:not(.btn) {
  color: #93c5fd;
}

.section-header {
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.section-lead {
  font-size: var(--size-body);
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 0;
}

/* ==========================================================================
   6. STRUCTURED LEISTUNGSÜBERSICHT & LIVE TREATMENT ADVISOR
   ========================================================================== */

.services-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2.25rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 768px) {
  .services-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1120px) {
  .services-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-pillar {
  background-color: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-pillar-alt {
  background-color: transparent;
}

.service-icon-wrap {
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  background-color: var(--bg-canvas);
  padding: 12px;
}

.service-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  display: grid;
  gap: 0.55rem;
  font-size: var(--size-small);
  color: var(--text-secondary);
}

.service-list li {
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Interactive Live Thing: Kieferorthopädie-Wegweiser */
.advisor-shell {
  background-color: var(--bg-navy-tint);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.advisor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .advisor-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.advisor-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.advisor-legend {
  font-size: var(--size-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.advisor-options {
  display: grid;
  gap: 0.6rem;
}

.advisor-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.advisor-option:hover,
.advisor-option:has(input:checked) {
  background-color: var(--bg-surface);
}

.advisor-option input[type="radio"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.advisor-option-text strong {
  display: block;
  font-size: var(--size-small);
  color: var(--text-primary);
}

.advisor-option-text span {
  display: block;
  font-size: var(--size-small);
  color: var(--text-muted);
}

.advisor-result-panel {
  background-color: var(--bg-surface);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.advisor-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.25rem 1.5rem;
  font-size: var(--size-small);
}

.advisor-meta-table th,
.advisor-meta-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line-table); /* taste-skill-ignore */
}

.advisor-meta-table th {
  width: 34%;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   7. UNEVEN PHOTOGRAPHS GALLERY — PRAXIS, TRADITION & TEAM
   ========================================================================== */

.uneven-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .uneven-stage {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
  .uneven-item-portrait {
    grid-column: 1 / 6;
    margin-top: 3.5rem;
  }
  .uneven-item-landscape {
    grid-column: 7 / 13;
  }
  .uneven-item-text-left {
    grid-column: 1 / 6;
  }
  .uneven-item-wide-right {
    grid-column: 6 / 13;
  }
  .uneven-item-wide-left {
    grid-column: 1 / 8;
  }
  .uneven-item-text-right {
    grid-column: 8 / 13;
    margin-top: 2.5rem;
  }
}

.gallery-print {
  background-color: var(--bg-surface);
  padding: 1rem;
}

.gallery-print img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-print figcaption {
  padding-top: 0.75rem;
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* Mobile Uneven Widths per Direction Sheet */
@media (max-width: 767px) {
  .uneven-mobile-left {
    width: 88%;
    margin-right: auto;
  }
  .uneven-mobile-right {
    width: 84%;
    margin-left: auto;
  }
}

/* Team Portraits Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .team-grid .team-card:nth-child(2) {
    margin-top: 2.75rem;
  }
  .team-grid .team-card:nth-child(3) {
    margin-top: 1.25rem;
  }
}

.team-card {
  background-color: var(--bg-surface);
}

.team-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--bg-stone);
}

.team-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.team-card:hover .team-card-media img {
  transform: scale(1.03);
}

.team-card-body {
  padding: 1.35rem 1.5rem;
}

.team-card-role {
  font-size: var(--size-small);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* History Timeline / Generation Cards */
.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.history-card {
  background-color: var(--bg-surface);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 420px) {
  .history-card {
    grid-template-columns: 1fr;
  }
}

.history-portrait {
  width: 96px;
  aspect-ratio: 138 / 196;
  background-color: var(--bg-stone);
  overflow: hidden;
}

.history-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empfohlen / Aktuelles */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .news-grid .news-card:nth-child(2) {
    margin-top: 3rem;
  }
}

.news-card {
  background-color: var(--bg-surface);
}

.news-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-stone);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem 1.75rem;
}

.news-date {
  font-size: var(--size-small);
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   8. PATIENTEN-ENTLASTUNGS-MODUL (ONLINE-FORMULAR & ONBOARDING-CHECKLISTE)
   ========================================================================== */

.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .booking-layout {
    grid-template-columns: 7fr 5fr;
  }
}

.form-panel {
  background-color: var(--bg-surface);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.onboarding-infobox {
  background-color: var(--bg-navy-tint);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.onboarding-highlight {
  background-color: var(--bg-surface);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.checklist li {
  background-color: transparent;
  padding: 0.4rem 0;
  font-size: var(--size-small);
}

.checklist li strong {
  display: block;
  color: var(--accent-primary);
  margin-bottom: 0.2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: var(--size-body);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--line-form); /* taste-skill-ignore */
  border-radius: 0;
}

.form-control:focus {
  background-color: var(--bg-surface);
  border-color: var(--accent-primary);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1.25rem 1.5rem;
  font-size: var(--size-small);
  color: var(--text-secondary);
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.form-feedback {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: var(--size-small);
  font-weight: 600;
}

.form-feedback.is-error {
  background-color: var(--status-urgent-bg);
  color: var(--status-urgent-text);
}

.form-feedback.is-success {
  background-color: var(--status-ok-bg);
  color: var(--status-ok-text);
}

/* ==========================================================================
   9. STANDORTE & ZWEI-STUFEN-KARTENINTEGRATION (GOOGLE MAPS GATEWAY)
   ========================================================================== */

.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 960px) {
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.location-card {
  background-color: var(--bg-surface);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem 1.5rem;
  font-size: var(--size-small);
}

.contact-table th,
.contact-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line-table); /* taste-skill-ignore */
}

.contact-table th {
  width: 36%;
  color: var(--text-muted);
  font-weight: 600;
}

.map-container {
  margin-top: 1.25rem;
  background-color: var(--bg-stone);
}

.map-fallback-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-stone);
}

.fallback-heading {
  font-size: var(--size-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fallback-text {
  font-size: var(--size-small);
  color: var(--text-secondary);
  margin-bottom: 0;
}

.map-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ==========================================================================
   10. DESIGNED EDITORIAL FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(5.5rem, 8vw, 4rem);
}

.footer-wordmark {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: 4fr 4fr 3fr 3fr;
  }
}

.site-footer h3 {
  color: #ffffff;
  font-size: var(--size-body);
  margin-bottom: 0.75rem;
}

.site-footer p {
  color: #cbd5e1;
  font-size: var(--size-small);
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #93c5fd;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: var(--size-small);
}

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--size-small);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.cookie-settings-link:hover {
  color: #93c5fd;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: var(--size-small);
  color: #cbd5e1;
}

/* ==========================================================================
   11. MOBILE STICKY QUICK-CONTACT CTA BAR (SMARTPHONES)
   ========================================================================== */

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background-color: var(--bg-surface);
  padding: 0.6rem var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* ==========================================================================
   12. COOKIE CONSENT MODAL (2-STEP GOOGLE MAPS GATEWAY)
   ========================================================================== */

.cookie-modal-backdrop {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 0.65rem;
  pointer-events: none;
}

.cookie-modal-backdrop[hidden] {
  display: none !important;
}

.cookie-modal-dialog {
  pointer-events: auto;
  max-width: 1080px;
  margin-inline: auto;
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 820px) {
  .cookie-modal-dialog {
    grid-template-columns: 7fr 5fr;
  }
}

.cookie-modal-title {
  color: #ffffff;
  font-size: var(--size-body);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cookie-modal-text {
  color: #e2e8f0;
  font-size: var(--size-small);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.cookie-modal-links {
  display: flex;
  gap: 0.6rem;
  font-size: var(--size-small);
}

.cookie-modal-links a {
  color: #93c5fd;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
}

@media (min-width: 820px) {
  .cookie-modal-actions {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   13. SUBPAGE & LEGAL LAYOUTS
   ========================================================================== */

.page-hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background-color: var(--bg-stone);
}

.legal-main {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.legal-article {
  background-color: var(--bg-surface);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.legal-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-block: 1.5rem 2.25rem;
}

@media (min-width: 768px) {
  .legal-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-meta-box {
  background-color: var(--bg-canvas);
  padding: 1.35rem 1.5rem;
}

.legal-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.photo-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .photo-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .photo-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-masonry figure:nth-child(3n+2) {
    margin-top: 2rem;
  }
}

/* ==========================================================================
   14. STAGGERED SCROLL REVEAL MOTION (PREFERS-REDUCED-MOTION SAFE)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html.js-enabled [data-reveal].is-pending {
    opacity: 0;
    transform: translateY(22px);
  }
  html.js-enabled [data-reveal] {
    transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
