:root {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ink: #132033;
  --muted: #5a6678;
  --primary: #173f73;
  --primary-strong: #0f2d54;
  --accent: #c51b5d;
  --accent-dark: #a9144c;
  --line: #dce4ef;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(15, 45, 84, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: min(680px, 78vh);
  padding: 4.75rem 0 4.25rem;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(8, 20, 38, 0.86) 0%, rgba(8, 20, 38, 0.68) 47%, rgba(8, 20, 38, 0.18) 100%),
    url("assets/website/hero-praxisraum.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero__content {
  width: min(760px, 92vw);
}

.subpage-hero {
  padding: 3.2rem 0 2.2rem;
  background: #eaf0f8;
  border-bottom: 1px solid rgba(23, 63, 115, 0.1);
}

.subpage-hero__brand {
  color: var(--primary);
  text-decoration: none;
}

.subpage-hero .eyebrow {
  color: var(--primary);
}

.subpage-hero h1 {
  color: var(--primary-strong);
  margin-top: 1rem;
  max-width: 16ch;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.75rem;
}

.brand-badge__logo {
  width: 72px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
  flex: 0 0 auto;
}

.hero .brand-badge__logo {
  width: 108px;
  height: 68px;
  background: #fff;
  border-radius: 8px;
}

.subpage-hero .brand-badge__logo {
  filter: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.section-kicker {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.18;
}

h1 {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  max-width: 13ch;
}

.hero__headline {
  max-width: 22ch;
  margin-bottom: 1.05rem;
  font-size: clamp(2.35rem, 4.4vw, 4.25rem);
  line-height: 1.08;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.hero__headline::after {
  content: "";
  display: block;
  width: 5.8rem;
  height: 3px;
  margin-top: 0.82rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(197, 27, 93, 0.38);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  max-width: 19ch;
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero__meta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.hero-duty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem 0.72rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.95rem;
  padding: 0.68rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(8, 20, 38, 0.48);
  box-shadow: 0 14px 30px rgba(8, 20, 38, 0.2);
  backdrop-filter: blur(10px);
}

.hero-duty__label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-duty strong,
.hero-duty__time {
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
}

.hero-duty strong {
  font-size: 1rem;
}

.hero-duty__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero-duty__link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero__cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.cooperation-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  color: var(--primary-strong);
  box-shadow: 0 14px 30px rgba(8, 20, 38, 0.18);
}

.hero__cooperation {
  margin-top: 1rem;
}

.cooperation-mark span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.cooperation-mark img {
  width: 168px;
  height: auto;
  object-fit: contain;
}

.cooperation-mark--center {
  margin: 0 auto 1.2rem;
  border-color: #cfd9ea;
  background: #fff;
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(197, 27, 93, 0.28);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 3.6rem 0;
}

.section--tint {
  background: #eaf0f8;
  border-block: 1px solid rgba(23, 63, 115, 0.1);
}

.section--contact {
  background: var(--primary-strong);
  color: #fff;
}

.section--contact .section-kicker,
.section--contact a {
  color: #fff;
}

.section--legal {
  background: #fff;
  border-top: 1px solid var(--line);
}

.section-intro {
  color: var(--muted);
  max-width: 64ch;
  margin-bottom: 0.3rem;
}

.split {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1.28fr 1fr;
  align-items: start;
}

.highlight-card,
.panel,
.card,
.legal-block {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-card,
.panel,
.legal-block {
  padding: 1.35rem 1.2rem;
}

.panel {
  min-height: 100%;
}

ul {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
}

.gallery-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.gallery-header h2 {
  max-width: 20ch;
  margin-bottom: 0;
}

.gallery-header p:last-child {
  color: var(--muted);
  margin: 0;
}

.carousel {
  --carousel-control-size: 44px;
}

.carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: pan-x pan-y;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carousel__track {
  display: flex;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
  scroll-snap-align: center;
  background: #dce4ef;
}

.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(8, 20, 38, 0), rgba(8, 20, 38, 0.76));
  pointer-events: none;
}

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

.carousel__slide--portrait img {
  object-position: center 45%;
}

.carousel__slide figcaption {
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.16rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.carousel__slide figcaption strong {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.carousel__slide figcaption span {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.86);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.carousel__button,
.carousel__dot {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.carousel__button {
  width: var(--carousel-control-size);
  height: var(--carousel-control-size);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-size: 1.02rem;
  font-weight: 800;
}

.carousel__button:hover {
  background: var(--primary-strong);
}

.carousel__button:focus-visible,
.carousel__dot:focus-visible {
  outline: 3px solid rgba(197, 27, 93, 0.35);
  outline-offset: 3px;
}

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--carousel-control-size);
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa9bf;
  transition: transform 180ms ease, background 180ms ease;
}

.carousel__dot[aria-current] {
  background: var(--accent);
  transform: scale(1.45);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 1rem;
}

.media-card {
  position: relative;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 45, 84, 0.12);
  box-shadow: var(--shadow);
  background: #dce4ef;
}

.media-card--wide {
  min-height: 360px;
}

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

.media-card figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  color: #fff;
  background: rgba(8, 20, 38, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-weight: 800;
  font-size: 0.85rem;
}

.grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.card {
  padding: 1rem;
  font-weight: 700;
  min-height: 112px;
  display: flex;
  align-items: center;
}

.service-grid .card {
  border-left: 4px solid var(--accent);
}

.steps {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1rem;
}

.step__index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  margin-bottom: 0.5rem;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.promise {
  text-align: center;
}

.promise h2 {
  margin-inline: auto;
}

.quote {
  font-family: "Newsreader", serif;
  font-size: clamp(1.28rem, 2.5vw, 1.8rem);
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.pill-row {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.panel .pill-row {
  justify-content: flex-start;
}

.pill {
  border: 1px solid #cfd9ea;
  background: #fff;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-inline: auto;
}

.contact-grid {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 1.2rem;
}

.contact-grid--split {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.contact-grid--split p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid--split strong {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid--split a,
.contact-grid--split span {
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.legal-block {
  box-shadow: none;
}

.legal-block--wide {
  grid-column: 1 / -1;
}

.legal-block address {
  font-style: normal;
}

.legal-block p:last-child,
.legal-block address:last-child {
  margin-bottom: 0;
}

.patient-info {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
  gap: 1.15rem;
  align-items: start;
}

.patient-letter,
.patient-contact,
.info-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.patient-letter {
  padding: 1.55rem;
  box-shadow: var(--shadow);
}

.patient-letter h2 {
  max-width: 22ch;
}

.patient-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.info-block {
  padding: 1rem;
  box-shadow: none;
}

.info-block h3 {
  color: var(--primary);
}

.info-block p:last-child {
  margin-bottom: 0;
}

.info-block a {
  color: var(--primary);
  font-weight: 800;
}

.signature {
  margin-top: 1.2rem;
}

.patient-contact {
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.patient-contact h2 {
  max-width: 12ch;
}

.patient-contact .contact-grid {
  border-color: var(--line);
  background: #f8fafc;
  padding: 0.85rem;
}

.patient-contact .contact-grid p {
  margin: 0 0 0.8rem;
}

.patient-contact .contact-grid p:last-child {
  margin-bottom: 0;
}

.patient-contact .contact-grid strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--muted);
}

.patient-contact .contact-grid a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.patient-contact .small {
  margin: 1rem 0 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(23, 63, 115, 0.15);
  padding: 1.1rem 0 1.7rem;
  background: #fff;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #536176;
  font-size: 0.95rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.footer__logo {
  width: 74px;
  height: 46px;
  border-radius: 0;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.footer__links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-weight: 800;
}

.footer__links a {
  color: var(--primary);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.small {
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .split,
  .grid,
  .steps,
  .legal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .carousel__slide {
    min-height: 360px;
  }

  .media-card--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 680px;
    padding: 2.75rem 0 2.5rem;
    background-position: 58% center;
  }

  .hero__content {
    width: min(100%, 92vw);
  }

  .brand-badge {
    align-items: flex-start;
  }

  .brand-badge__logo {
    width: 58px;
    height: 36px;
    flex: 0 0 auto;
  }

  .hero .brand-badge__logo {
    width: 88px;
    height: 56px;
  }

  .cooperation-mark {
    gap: 0.6rem;
    padding: 0.55rem 0.62rem;
  }

  .cooperation-mark span {
    font-size: 0.66rem;
  }

  .cooperation-mark img {
    width: 145px;
    max-width: 48vw;
  }

  .hero-duty {
    display: grid;
    gap: 0.2rem;
    width: min(100%, 326px);
    margin-top: 0.85rem;
    padding: 0.66rem 0.74rem;
  }

  .hero-duty__label {
    font-size: 0.66rem;
  }

  .hero-duty strong,
  .hero-duty__time {
    font-size: 0.92rem;
  }

  .hero-duty__link {
    width: fit-content;
    min-height: 34px;
    margin-top: 0.18rem;
    font-size: 0.82rem;
  }

  .hero__cta {
    gap: 0.5rem;
    margin-top: 1.15rem;
  }

  .btn {
    min-height: 44px;
    padding: 0.68rem 0.9rem;
    font-size: 0.94rem;
  }

  .cooperation-mark--center {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  h1 {
    max-width: 10ch;
  }

  .hero__headline {
    max-width: 100%;
    font-size: clamp(2.05rem, 8.7vw, 3rem);
  }

  .hero__headline::after {
    width: 4.4rem;
    margin-top: 0.62rem;
  }

  .lead {
    font-size: 1rem;
  }

  .subpage-hero h1 {
    max-width: 14ch;
  }

  .split,
  .grid,
  .steps,
  .contact-grid--split,
  .legal-grid,
  .patient-info,
  .patient-info__grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.7rem 0;
  }

  .media-card,
  .media-card--wide {
    min-height: 260px;
  }

  .gallery-header {
    margin-bottom: 1rem;
  }

  .carousel__slide {
    aspect-ratio: 4 / 3;
    min-height: 286px;
  }

  .carousel__slide figcaption {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.8rem;
  }

  .carousel__slide figcaption span {
    font-size: 0.9rem;
  }

  .carousel__controls {
    gap: 0.7rem;
  }

  .carousel__dots {
    gap: 0.38rem;
  }

  .legal-block--wide {
    grid-column: auto;
  }

  .footer__inner {
    justify-content: center;
  }

  .footer__brand {
    justify-content: center;
    text-align: left;
  }
}
