:root {
  --bg: #f9f9ff;
  --surface: #ffffff;
  --surface-soft: #eef7f5;
  --ink: #324985;
  --muted: #324985;
  --primary: #0b777e;
  --primary-dark: #075d63;
  --accent: #d98262;
  --accent-soft: #fff3ed;
  --line: #d9e8e6;
  --shadow: 0 18px 50px rgba(16, 75, 79, 0.1);
  --radius: 8px;
  font-family: "Inter", "Nobile", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f9f9ff;
  line-height: 1.6;
  overflow-x: hidden;
}

body.reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  will-change: opacity, transform;
}

body.reveal-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.reveal-ready .reveal-on-scroll.reveal-delay-1 {
  transition-delay: 90ms;
}

body.reveal-ready .reveal-on-scroll.reveal-delay-2 {
  transition-delay: 180ms;
}

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

a {
  color: var(--primary-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(249, 249, 255, 0.94);
  border-bottom: 1px solid rgba(215, 231, 230, 0.8);
  backdrop-filter: blur(14px);
}

.header-inner,
.section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand img {
  width: 172px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.93rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
}

.section {
  padding: 4rem 0;
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(249, 249, 255, 0.84) 0%, rgba(249, 249, 255, 0.66) 46%, rgba(249, 249, 255, 0.48) 100%),
    url("../img/start-background-aerzte.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(249, 249, 255, 0.58);
}

.hero {
  min-height: min(680px, calc(100vh - 182px));
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Alexandria", "Nobile", system-ui, sans-serif;
  line-height: 1.16;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 2.15vw, 2.35rem);
  max-width: 24ch;
  overflow-wrap: anywhere;
}

.hero-title-line {
  display: block;
}

.hero-title-line-nowrap {
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.8rem, 2.15vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 1rem 0 0;
}

.hero-copy > p:not(.eyebrow) {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 62ch;
}

.section p:not(.eyebrow),
.section li,
.section dd {
  font-size: 1.2rem;
}

.hero-copy {
  min-width: 0;
}

.hero-copy p,
.section p,
.section li {
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 119, 126, 0.18);
}

.button.secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 2rem;
}

.section-copy,
.notice,
.service-card,
.legal-card,
.diagnostics article,
.strengths article,
.three-col article,
.process,
.info-grid article,
.appointment-grid article,
.faq-list details {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(25, 79, 86, 0.06);
}

.section-copy,
.contact-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.philosophy .three-col article {
  background: #DAE0F2;
  text-align: center;
}

.philosophy-icon {
  display: block;
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.philosophy .three-col article p {
  text-align: left;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  height: 100%;
}

.contact-panel {
  background: #dfe6f4;
  border: 1px solid #c5cfdf;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(50, 73, 133, 0.08);
}

.contact-panel h3 {
  margin-bottom: 0.75rem;
}

.contact-panel p {
  margin-top: 0.75rem;
}

.map-link {
  display: block;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  background: #fff;
}

.map-link img {
  width: 100%;
}

.map-link span {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 800;
}

.hours {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
}

.hours div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
}

.hours dt {
  font-weight: 800;
}

.hours dd {
  margin: 0;
  color: var(--muted);
}

.notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.25rem;
  color: var(--muted);
  background: #fff8f4;
  border: 1px solid #f2d5c7;
  border-radius: var(--radius);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  overflow: visible;
  padding: 0 0 2.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-card + .service-card {
  border-top: 1px solid rgba(50, 73, 133, 0.22);
  padding-top: 2.25rem;
}

.service-card-reverse {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--radius);
}

.service-card > div {
  min-width: 0;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.diagnostics,
.strengths,
.three-col,
.info-grid,
.appointment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.diagnostics article,
.strengths article,
.three-col article,
.info-grid article,
.appointment-grid article {
  padding: 1.25rem;
}

.diagnostic-icon {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.diagnostics h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  margin-top: 0;
  text-align: center;
}

.patient-info-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.patient-info-image {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #c7edf8;
}

.patient-info-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center bottom;
}

.patient-info-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.patient-info-heading {
  max-width: 620px;
  margin-bottom: 2rem;
}

.patient-info-heading h2 {
  margin: 0;
}

.patient-info-highlight {
  margin-bottom: 2.1rem;
  padding: 1.2rem 1.35rem;
  background: #dfe4f3;
  border: 1px solid #c5cce0;
  border-radius: var(--radius);
  color: var(--ink);
}

.patient-info-highlight h3 {
  margin-bottom: 0.45rem;
}

.patient-info-highlight p {
  margin: 0.45rem 0 0;
}

.patient-info-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
}

.patient-info-columns h3 {
  max-width: 13ch;
  margin-bottom: 0.8rem;
}

.patient-info-columns ul {
  margin: 0;
}

.patient-info-columns p {
  margin: 0;
}

.team-section {
  background: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-grid img {
  width: 100%;
  aspect-ratio: 2.357 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(25, 79, 86, 0.06);
}

.process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background-image:
    linear-gradient(90deg, rgba(249, 249, 255, 0.84) 0%, rgba(249, 249, 255, 0.66) 46%, rgba(249, 249, 255, 0.48) 100%),
    url("../img/praxisablauf-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
  box-shadow: none;
}

.process::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(249, 249, 255, 0.58);
}

.process-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.process .section-heading,
.process-inner > p {
  max-width: none;
}

.process .section-heading {
  margin-bottom: 1.7rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem 1.15rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.steps li {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.process-arrow {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 652 / 93;
  object-fit: fill;
}

.steps li:nth-child(2) .process-arrow {
  transform: translateY(-0.35rem);
}

.step-copy {
  padding: 0.9rem clamp(1rem, 2vw, 1.8rem) 0;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  color: var(--muted);
  margin-top: 0.35rem;
  max-width: 34ch;
}

.script-placeholder {
  margin-top: 1rem;
  padding: 1rem;
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px dashed #a9caca;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f7fcfc;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  padding: 1rem 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  color: var(--muted);
}

.legal-shell {
  padding-top: 4rem;
}

.legal-card {
  padding: clamp(1.25rem, 4vw, 2.6rem);
}

.legal-card h1 {
  max-width: none;
}

.legal-intro {
  max-width: 760px;
  color: var(--muted);
}

.legal-section {
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
}

.legal-section h3 {
  margin-top: 1.5rem;
}

.legal-list {
  margin: 1rem 0 0;
}

.legal-meta {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .split,
  .service-grid,
  .diagnostics,
  .strengths,
  .three-col,
  .patient-info-layout,
  .patient-info-columns,
  .info-grid,
  .appointment-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-card,
  .service-card-reverse {
    grid-template-columns: 1fr;
  }

  .patient-info-image img {
    min-height: 420px;
  }

  h1 {
    max-width: none;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: anywhere;
  }

  .process h2 {
    white-space: normal;
  }

  .process-arrow {
    min-height: 3.9rem;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section,
  .site-footer {
    width: calc(100% - 32px);
    max-width: 1120px;
  }

  .process {
    width: 100%;
    max-width: none;
  }

  .brand img {
    width: 128px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero {
    padding-top: 2rem;
    gap: 1.5rem;
  }

  h1,
  h2 {
    font-size: 1.6rem;
  }

  .hero-title-line-nowrap {
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-top: 1rem;
  }

  #or-open-assistant {
    right: 16px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 32px) !important;
    transform: scale(0.88) !important;
    transform-origin: right bottom !important;
  }
}

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

  body.reveal-ready .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
