:root {
  --c-bg: #f8fbff;
  --c-bg-soft: #fffdf9;
  --c-surface: #ffffff;
  --c-surface-soft: #fffdfa;
  --c-line: #dde7f0;

  --c-text: #173045;
  --c-text-soft: #546b7d;
  --c-text-invert: #e7f1f8;

  --c-orange: #ef932f;
  --c-orange-strong: #d67619;
  --c-orange-soft: #fff4e7;

  --c-blue: #87bfd8;
  --c-blue-strong: #3e7394;
  --c-green: #8fc79b;
  --c-glass: rgba(255, 255, 255, 0.74);
  --c-glass-soft: rgba(255, 252, 246, 0.66);

  --c-footer: #f2f8fd;
  --c-footer-soft: #e9f2fa;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 10px 24px -18px rgba(18, 54, 78, 0.2);
  --shadow-md: 0 20px 42px -28px rgba(18, 54, 78, 0.22);
  --shadow-lg: 0 30px 62px -36px rgba(18, 54, 78, 0.24);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.7) 22%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 86% 4%, rgba(226, 244, 255, 0.54) 0%, rgba(226, 244, 255, 0) 46%),
    radial-gradient(circle at 78% 88%, rgba(222, 245, 229, 0.46) 0%, rgba(222, 245, 229, 0) 44%),
    linear-gradient(180deg, #ffffff 0%, rgba(236, 248, 255, 0.62) 52%, #ffffff 100%);
  background-size: 145% 145%, 150% 150%, 155% 155%, 100% 100%;
  animation: ambient-wash 24s ease-in-out infinite alternate;
}

.page-orb {
  display: none;
}

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

a {
  color: var(--c-blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.container {
  width: min(1160px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #ffffff;
  border-bottom: 1px solid rgba(19, 57, 79, 0.12);
  box-shadow: 0 10px 28px -24px rgba(8, 33, 48, 0.42);
}

.topbar {
  border-bottom: 1px solid rgba(19, 57, 79, 0.1);
  background: linear-gradient(90deg, #fffdf9 0%, #ffffff 55%, #f5fbf7 100%);
}

.topbar p {
  margin: 0;
  padding: 0.58rem 0;
  color: var(--c-text-soft);
  font-size: 0.92rem;
}

.topbar a {
  color: var(--c-orange-strong);
  font-weight: 800;
  text-decoration: none;
}

.nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.logo-link {
  width: min(286px, 46vw);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border: 1px solid var(--c-line);
  background: #ffffff;
  border-radius: 12px;
  padding: 0.52rem 0.8rem;
}

.menu-toggle strong {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #28475c;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1f3a4c;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.65rem 0.86rem;
  border-radius: 999px;
  transition: color 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--c-orange) 0%, #f4ae66 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #0f2230;
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(241, 141, 46, 0.14) 0%, rgba(241, 141, 46, 0.06) 100%);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.has-submenu {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu-toggle {
  display: none;
}

.has-submenu > ul {
  position: absolute;
  left: 0;
  top: calc(100% + 0.3rem);
  min-width: 228px;
  display: grid;
  gap: 0.18rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.has-submenu:hover > ul,
.has-submenu.is-open > ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: clamp(350px, 58vh, 560px);
  overflow: hidden;
  border-bottom: 1px solid rgba(105, 146, 171, 0.24);
  background: #dfeef9;
}

.hero.is-hidden {
  display: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-slide,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.72s ease, transform 1.25s ease;
}

.hero-slide.is-active,
.hero-image.is-active {
  opacity: 1;
  transform: scale(1);
}

body[data-route="angebot"] .hero-image {
  object-position: center 32%;
}

body[data-route="anaesthesie"] .hero {
  min-height: clamp(300px, 46vh, 460px);
}

body[data-route="anaesthesie"] .hero-image {
  object-position: center 42%;
}

body[data-route="team"] .hero-image {
  object-position: center 18%;
}

body[data-route="team"] .hero-slide {
  object-position: center 18%;
}

body[data-route="team"] .hero-slide:nth-child(2) {
  object-position: center 46%;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  min-height: inherit;
  display: grid;
  align-items: end;
  padding: clamp(2.6rem, 7vw, 4.3rem) 0;
  background:
    linear-gradient(110deg, rgba(14, 47, 67, 0.42) 0%, rgba(14, 47, 67, 0.18) 55%, rgba(14, 47, 67, 0.08) 100%),
    radial-gradient(circle at 12% 18%, rgba(239, 147, 47, 0.28) 0%, rgba(239, 147, 47, 0) 46%),
    radial-gradient(circle at 82% 12%, rgba(135, 191, 216, 0.22) 0%, rgba(135, 191, 216, 0) 44%);
  background-size: 120% 120%, 130% 130%, 130% 130%;
  animation: hero-glow 16s ease-in-out infinite alternate;
}

.hero-copy {
  width: min(820px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  justify-items: start;
  gap: 0.52rem;
  animation: hero-up 0.55s ease, hero-float 9s ease-in-out 0.8s infinite;
}

body[data-route="klinik"] .hero-media::before,
body[data-route="klinik"] .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

body[data-route="klinik"] .hero-media::before {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, rgba(116, 187, 218, 0.07), rgba(133, 196, 160, 0.05));
}

body[data-route="klinik"] .hero-media::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 92%),
    linear-gradient(180deg, rgba(9, 30, 44, 0.08), rgba(9, 30, 44, 0.12));
  mix-blend-mode: screen;
}

body[data-route="klinik"] .hero-slide {
  filter: contrast(1.01) saturate(1.03) brightness(0.98);
}

@keyframes hero-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-wash {
  0% {
    background-position: 0% 0%, 100% 0%, 76% 100%, 0% 0%;
  }
  100% {
    background-position: 8% 6%, 92% 8%, 84% 92%, 0% 0%;
  }
}

@keyframes hero-glow {
  0% {
    background-position: 0% 0%, 0% 0%, 100% 0%;
  }
  100% {
    background-position: 8% 3%, 5% 8%, 92% 6%;
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.hero-kicker {
  margin: 0;
  color: #356382;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(218, 236, 247, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(247, 252, 255, 0.14) 100%);
  backdrop-filter: blur(9px) saturate(1.03);
}

.hero-title {
  margin: 0;
  color: #123147;
  font-size: clamp(2rem, 5.2vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  max-width: 13ch;
  text-wrap: balance;
  display: inline-block;
  border-radius: 18px;
  padding: 0.34rem 0.72rem 0.44rem;
  border: 1px solid rgba(218, 236, 247, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(247, 252, 255, 0.14) 100%);
  backdrop-filter: blur(9px) saturate(1.03);
}

.hero-subtitle {
  margin: 0.06rem 0 0;
  color: #355267;
  max-width: 58ch;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  display: inline-block;
  border-radius: 14px;
  padding: 0.44rem 0.72rem;
  border: 1px solid rgba(218, 236, 247, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(247, 252, 255, 0.12) 100%);
  backdrop-filter: blur(8px) saturate(1.02);
}

.hero-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.33rem 0.74rem;
  border: 1px solid rgba(206, 116, 22, 0.42);
  background: linear-gradient(160deg, rgba(246, 160, 67, 0.22) 0%, rgba(232, 132, 32, 0.18) 100%);
  color: #e8f2f8;
  font-size: 0.79rem;
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.42rem;
}

.hero-controls button {
  border: 1px solid rgba(212, 229, 239, 0.95);
  background: rgba(255, 255, 255, 0.86);
  color: #24475d;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-controls button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.hero-controls.is-hidden {
  display: none;
}

.main-content {
  position: relative;
  z-index: 6;
  margin-top: 1.2rem;
  padding: 0 0 3.8rem;
}

body[data-route="datenschutz"] .main-content,
body[data-route="impressum"] .main-content {
  margin-top: 1.2rem;
}

.page-content {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  background: linear-gradient(180deg, #ffffff 0%, #fffcf7 100%);
  padding: clamp(1.15rem, 2.9vw, 2.15rem);
  box-shadow: var(--shadow-lg);
}

.page-content::before {
  content: none;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  margin: 0 0 0.58rem;
  color: #143144;
  line-height: 1.24;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 0.82rem;
}

.page-content h2 {
  font-size: clamp(1.26rem, 2.2vw, 1.86rem);
}

.page-content h3 {
  font-size: clamp(1.03rem, 1.9vw, 1.28rem);
  margin-top: 0.95rem;
}

.page-content h4 {
  font-size: 1.03rem;
  color: #2d495d;
}

.page-content p,
.page-content li {
  color: var(--c-text-soft);
}

.page-content ul {
  margin: 0.56rem 0 1.1rem;
  padding-left: 1.16rem;
}

.page-content > section + section {
  margin-top: 1.4rem;
}

.content-divider {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 1.2rem 0;
}

.split {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: minmax(0, 1.26fr) minmax(235px, 330px);
}

body[data-route="klinik"] .split {
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, 360px);
}

.side-image,
.contact-note {
  align-self: start;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(119, 153, 174, 0.28);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side-image img {
  width: 100%;
}

body[data-route="klinik"] .side-image {
  position: relative;
  justify-self: end;
  width: min(360px, 100%);
  margin-top: 1.35rem;
  padding: 0.58rem;
  border-radius: 20px;
  border: 1px solid rgba(184, 214, 229, 0.86);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(246, 252, 255, 0.72));
  box-shadow:
    0 22px 44px -30px rgba(25, 64, 88, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

body[data-route="klinik"] .side-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(140deg, rgba(239, 147, 47, 0.12), rgba(135, 191, 216, 0.08));
}

body[data-route="klinik"] .clinic-side-slider {
  display: grid;
  aspect-ratio: 3 / 4;
}

body[data-route="klinik"] .clinic-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  transform-origin: center;
  will-change: transform, opacity;
  border-radius: 14px;
  opacity: 0;
  filter: saturate(1.03);
  box-shadow: 0 16px 28px -24px rgba(21, 58, 80, 0.42);
}

body[data-route="klinik"] .clinic-slide.slide-a {
  opacity: 1;
  animation: clinic-slide-a 11s cubic-bezier(0.22, 0.64, 0.3, 1) infinite;
}

body[data-route="klinik"] .clinic-slide.slide-b {
  animation: clinic-slide-b 11s cubic-bezier(0.22, 0.64, 0.3, 1) infinite;
}

@keyframes clinic-slide-a {
  0%,
  43% {
    opacity: 1;
    transform: scale(1.05) translateX(0%);
  }
  52%,
  100% {
    opacity: 0;
    transform: scale(1.11) translateX(-2%);
  }
}

@keyframes clinic-slide-b {
  0%,
  43% {
    opacity: 0;
    transform: scale(1.11) translateX(2%);
  }
  52%,
  95% {
    opacity: 1;
    transform: scale(1.05) translateX(0%);
  }
  100% {
    opacity: 0;
    transform: scale(1.11) translateX(-2%);
  }
}

.contact-note {
  padding: 1rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(239, 147, 47, 0.18) 0%, rgba(239, 147, 47, 0) 44%),
    radial-gradient(circle at 10% 90%, rgba(143, 199, 155, 0.14) 0%, rgba(143, 199, 155, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
}

.contact-note h2 {
  margin-bottom: 0.36rem;
}

.contact-note img,
.contact-box img {
  width: min(250px, 100%);
  height: auto;
}

.feature-lists,
.service-cards,
.doctor-grid,
.contact-grid,
.accordion-grid {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.62rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(189, 214, 228, 0.56);
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 147, 47, 0.09) 0%, rgba(239, 147, 47, 0) 34%),
    radial-gradient(circle at 90% 88%, rgba(135, 191, 216, 0.1) 0%, rgba(135, 191, 216, 0) 38%),
    rgba(255, 255, 255, 0.42);
}

body[data-route="team"] .doctor-grid {
  grid-template-columns: minmax(320px, 860px);
  justify-content: center;
}

.surface-card,
.contact-box,
.doctor-card,
.legal,
.accordion-item {
  border: 1px solid rgba(183, 209, 224, 0.72);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--c-glass) 0%, var(--c-glass-soft) 100%);
  backdrop-filter: blur(8px);
}

.surface-card,
.contact-box,
.legal {
  padding: 1.05rem;
}

.surface-card,
.contact-box,
.doctor-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.surface-card::after,
.contact-box::after,
.doctor-card::after,
.footer-card::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -28%;
  width: 32%;
  height: 260%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  transform: translateX(-180%) rotate(14deg);
  transition: transform 0.95s ease;
}

.surface-card:hover,
.contact-box:hover,
.doctor-card:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 141, 46, 0.46);
  box-shadow: 0 16px 28px -24px rgba(17, 56, 78, 0.28);
}

.surface-card:hover::after,
.contact-box:hover::after,
.doctor-card:hover::after,
.footer-card:hover::after {
  transform: translateX(520%) rotate(14deg);
}

.doctor-card {
  overflow: hidden;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.doctor-body {
  padding: 1rem;
}

.doctor-body h3 {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ffc992;
  background: var(--c-orange-soft);
  color: #9f560f;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.26rem 0.68rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: #fffaf4;
  border-radius: 999px;
  border: 1px solid rgba(216, 115, 21, 0.74);
  background: linear-gradient(180deg, #f39b41 0%, #e57f1e 100%);
  padding: 0.7rem 1.22rem;
  box-shadow:
    0 18px 34px -24px rgba(241, 141, 46, 0.72),
    inset 0 1px 0 rgba(255, 241, 224, 0.65);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -44% auto -44% -26%;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 241, 223, 0.56), rgba(255, 255, 255, 0));
  transform: rotate(14deg) translateX(-150%);
  transition: transform 0.58s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 42px -24px rgba(241, 141, 46, 0.78),
    inset 0 1px 0 rgba(255, 245, 232, 0.8);
  filter: saturate(1.04);
}

.button:hover::after {
  transform: rotate(14deg) translateX(420%);
}

.accordion-grid {
  align-items: start;
}

.accordion-list {
  display: grid;
  gap: 0.78rem;
}

.accordion-item {
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
  color: #163347;
  padding: 0.9rem 0.96rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.accordion-trigger span {
  color: var(--c-orange-strong);
  font-size: 1.3rem;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-trigger span {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.accordion-panel-content {
  padding: 0.74rem 0.96rem 1rem;
}

.legal {
  max-width: 88ch;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.52s cubic-bezier(0.22, 0.78, 0.24, 1),
    transform 0.52s cubic-bezier(0.22, 0.78, 0.24, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.site-footer {
  position: relative;
  color: #2f4d63;
  background:
    radial-gradient(circle at 14% 16%, rgba(234, 247, 255, 0.52) 0%, rgba(234, 247, 255, 0) 50%),
    radial-gradient(circle at 88% 84%, rgba(220, 243, 227, 0.44) 0%, rgba(220, 243, 227, 0) 46%),
    linear-gradient(180deg, #ffffff 0%, rgba(232, 246, 250, 0.64) 100%);
  border-top: 1px solid rgba(186, 213, 229, 0.6);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2.3rem 0 1.45rem;
}

.footer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(206, 116, 22, 0.34);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: linear-gradient(160deg, rgba(246, 160, 67, 0.22) 0%, rgba(232, 132, 32, 0.18) 100%);
  backdrop-filter: blur(3px);
}

.footer-grid h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  color: #193548;
  font-size: 1.1rem;
}

.footer-grid p {
  color: #446076;
}

.footer-grid a {
  color: #1f5f86;
  font-weight: 700;
}

.footer-logo-wrap {
  display: grid;
  place-items: center;
  text-align: center;
  align-self: stretch;
  margin-top: 0;
}

.footer-logo-wrap.footer-card {
  background: linear-gradient(160deg, rgba(246, 160, 67, 0.22) 0%, rgba(232, 132, 32, 0.18) 100%);
  border-color: rgba(206, 116, 22, 0.34);
}

.footer-logo-wrap img {
  display: block;
  width: min(188px, 64vw);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 14px;
  padding: 0.68rem 0.82rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: logo-drift 8s ease-in-out infinite;
}

@keyframes logo-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .hero-overlay,
  .hero-copy,
  .footer-logo-wrap img {
    animation: none !important;
  }

  .surface-card::after,
  .contact-box::after,
  .doctor-card::after,
  .footer-card::after {
    display: none;
  }

  body[data-route="klinik"] .clinic-slide.slide-a,
  body[data-route="klinik"] .clinic-slide.slide-b {
    animation: none !important;
  }

  body[data-route="klinik"] .clinic-slide.slide-a {
    opacity: 1;
    transform: none;
  }

  body[data-route="klinik"] .clinic-slide.slide-b {
    display: none;
  }
}

.search-form {
  display: grid;
  gap: 0.36rem;
}

.search-form label {
  color: #2b4d64;
}

.search-row {
  display: flex;
  gap: 0.42rem;
}

.search-row input {
  flex: 1;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(181, 209, 225, 0.75);
  background: #ffffff;
  color: #264357;
  padding: 0.62rem 0.74rem;
}

.search-row input::placeholder {
  color: #8ca3b3;
}

.search-row button {
  border: 1px solid rgba(216, 115, 21, 0.74);
  background: linear-gradient(180deg, #f39b41 0%, #e57f1e 100%);
  color: #fff8ef;
  border-radius: var(--radius-xs);
  padding: 0 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -18px rgba(241, 141, 46, 0.72);
}

.search-feedback {
  margin: 0.45rem 0 0;
  min-height: 1.2rem;
  color: #527089;
  font-size: 0.91rem;
}

.search-feedback.is-success {
  color: #bdeec7;
}

.search-feedback.is-error {
  color: #ffbdbd;
}

.socket {
  border-top: 1px solid rgba(186, 213, 229, 0.7);
}

.socket-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.91rem;
  color: #4a677e;
}

.socket nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.88rem;
}

.socket a {
  color: #c56f15;
  text-decoration: none;
}

.socket a.is-active {
  text-decoration: underline;
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 115, 21, 0.74);
  border-radius: 50%;
  background: linear-gradient(180deg, #f39b41 0%, #e57f1e 100%);
  color: #fff7ef;
  font-size: 1.28rem;
  cursor: pointer;
  box-shadow:
    0 16px 28px -20px rgba(241, 141, 46, 0.76),
    inset 0 1px 0 rgba(255, 244, 230, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

mark.search-hit {
  background: #ffe3bf;
  color: #1a1208;
  border-radius: 4px;
  padding: 0.02em 0.2em;
}

.button:focus-visible,
.search-row button:focus-visible,
.menu-toggle:focus-visible,
.submenu-toggle:focus-visible,
.main-nav a:focus-visible,
.scroll-top:focus-visible,
.hero-controls button:focus-visible,
.search-row input:focus-visible,
.accordion-trigger:focus-visible {
  outline: 2px solid rgba(239, 146, 59, 0.84);
  outline-offset: 2px;
}

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

  .main-nav {
    position: fixed;
    z-index: 86;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 88vw);
    padding: 5.1rem 1rem 1rem;
    border-left: 1px solid var(--c-line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: -10px 0 24px -22px rgba(13, 41, 58, 0.3);
    overflow: auto;
    transform: translateX(100%);
    transition: transform 0.24s ease;
  }

  .nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.12rem;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    border-radius: 10px;
  }

  .has-submenu {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.32rem;
    align-items: center;
  }

  .submenu-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--c-line);
    background: #ffffff;
    color: #2d4b5f;
    cursor: pointer;
  }

  .has-submenu > ul {
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    border: 1px solid rgba(209, 224, 233, 0.85);
    margin-top: 0.24rem;
  }

  .has-submenu.is-open > ul {
    display: grid;
  }

  .main-content {
    margin-top: 1rem;
  }

  .split,
  .feature-lists,
  .service-cards,
  .doctor-grid,
  .contact-grid,
  .accordion-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  body[data-route="klinik"] .split {
    grid-template-columns: 1fr;
  }

  body[data-route="klinik"] .side-image {
    width: 100%;
    justify-self: stretch;
  }

  body[data-route="klinik"] .clinic-side-slider {
    aspect-ratio: 3 / 4;
  }

  body[data-route="klinik"] .clinic-slide {
    height: 100%;
  }

  .hero-title {
    max-width: 15ch;
  }

  .hero-copy {
    width: 100%;
  }

  .footer-logo-wrap {
    order: -1;
  }

  .socket-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.82rem 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1160px, calc(100% - 1.4rem));
  }

  .topbar p {
    font-size: 0.83rem;
  }

  .nav-wrap {
    min-height: 82px;
  }

  .hero {
    min-height: 320px;
  }

  .hero-overlay {
    padding: 2.4rem 0 2rem;
  }

  .hero-controls {
    right: 0.56rem;
    bottom: 0.56rem;
  }

  .hero-controls button {
    font-size: 0.74rem;
    padding: 0.34rem 0.66rem;
  }

  .main-content {
    margin-top: 0.85rem;
    padding-bottom: 3rem;
  }

  body[data-route="datenschutz"] .main-content,
  body[data-route="impressum"] .main-content {
    margin-top: 0.85rem;
  }

  .page-content {
    border-radius: 22px;
    padding: 0.95rem;
  }
}
