:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.76);
  --line: rgba(16, 24, 40, 0.10);
  --teal: #0f766e;
  --teal-dark: #134e4a;
  --cyan: #06b6d4;
  --lime: #bef264;
  --apricot: #ffb86b;
  --blueblack: #0b1220;
  --shadow: 0 28px 90px rgba(15, 23, 42, 0.16);
  --max-width: 1040px;
  --page-width: 1040px;
  --header-height: 104px;
  --footer-height: 78px;
  --radius-xl: 36px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(6, 182, 212, 0.23),
      transparent 28%
    ),
    radial-gradient(
      circle at 6% 80%,
      rgba(190, 242, 100, 0.28),
      transparent 30%
    ),
    linear-gradient(135deg, #f8fafc, var(--bg));
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      rgba(11, 18, 32, 0.04),
      transparent 34%
    ),
    radial-gradient(
      circle at 50% 120%,
      rgba(255, 184, 107, 0.20),
      transparent 38%
    );
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 112px 1fr 84px;
  align-items: center;
  gap: 26px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  transform-origin: 50% 50%;
  animation-name: logo-rotate-subtle;
  animation-duration: 180s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.logo {
  width: auto;
  height: 76px;
}

@keyframes logo-rotate-subtle {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--surface);
  color: var(--teal);
  transform: translateY(-1px);
  outline: none;
}

/* Aktiver Menüpunkt bei CSS-Target-Navigation */

body:not(:has(.page-section:target))
.main-nav a[href="#start"],
body:has(#start:target)
.main-nav a[href="#start"],
body:has(#behandlung:target)
.main-nav a[href="#behandlung"],
body:has(#ablauf:target)
.main-nav a[href="#ablauf"],
body:has(#kontakt:target)
.main-nav a[href="#kontakt"] {
  background: var(--surface);
  color: var(--teal);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.08);
}

.doctor-image-wrap {
  justify-self: end;
}

.doctor-image {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.18);
}

/* BASE */

.content {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.page-wrapper {
  width: min(var(--page-width), 100%);
  max-width: var(--page-width);
  margin-inline: auto;
}

.hero-stage,
.modern-page,
.contact-stage {
  width: 100%;
}

.page-wrapper > .hero-stage,
.page-wrapper > .modern-page,
.page-wrapper > .contact-stage {
  max-width: var(--page-width);
  margin-inline: auto;
}

.page-section {
  display: none;
  min-height:
    calc(
      100vh
      - var(--header-height)
      - var(--footer-height)
    );
  padding: 48px 0 82px;
  align-items: flex-start;
  justify-content: center;
  scroll-margin-top: var(--header-height);
}

.page-section:target {
  display: flex;
}

body:not(:has(.page-section:target)) #start {
  display: flex;
}

/* HERO */

.hero-stage {
  display: grid;
  grid-template-columns:
    minmax(0, 1.18fr)
    minmax(300px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.hero-main {
  position: relative;
  min-height: 510px;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      135deg,
      rgba(11, 18, 32, 0.96),
      rgba(19, 78, 74, 0.92)
    ),
    var(--blueblack);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-main::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.36);
  filter: blur(2px);
}

.hero-main::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(190, 242, 100, 0.28);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 24px;
  color: inherit;
  font-size:
    clamp(2.4rem, 4.6vw, 4.65rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size:
    clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size:
    clamp(1.1rem, 1.9vw, 1.3rem);
}

.hero-main .lead {
  color: rgba(255, 255, 255, 0.86);
}

.intro-text {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ASIDE */

.hero-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.info-panel,
.request-panel,
.modern-page,
.contact-hero,
.contact-card,
.booking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.info-panel,
.request-panel {
  padding: 32px;
}

.info-panel h2 {
  font-size: 1.65rem;
  margin-bottom: 22px;
  letter-spacing: -0.04em;
}

.info-row {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.info-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.info-row span {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.info-row strong {
  color: var(--ink);
  font-weight: 800;
}

.request-panel {
  background: rgba(255, 184, 107, 0.22);
  border:
    1px solid rgba(255, 184, 107, 0.42);
  color: var(--ink-soft);
}

.request-panel h3 {
  display: inline;
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 900;
}

.request-panel h3::after {
  content: ": ";
}

.request-panel p {
  display: inline;
  margin: 0;
  color: var(--ink-soft);
}

.request-panel p:first-of-type::after {
  content: "\A\A";
  white-space: pre;
}

.request-panel p:last-child {
  display: block;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.request-panel p:last-child strong {
  color: var(--ink);
}

/* BUTTONS */

.button,
.registration-widget {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.registration-widget:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.registration-widget:focus-visible,
.footer-inner a:focus-visible,
.contact-card a:focus-visible,
.crisis-links a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.button.primary,
.registration-widget {
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--teal)
    );
  color: #ffffff;
  box-shadow:
    0 18px 36px rgba(15, 118, 110, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  border:
    1px solid rgba(255, 255, 255, 0.18);
}

/* CONTENT */

.modern-page {
  width: 100%;
  max-width: none;
  padding: clamp(28px, 4vw, 46px);
}

.section-head {
  max-width: 850px;
}

.section-head .eyebrow,
.contact-hero .eyebrow {
  color: var(--teal);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.bento-card {
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.bento-card.wide {
  grid-column: 1 / -1;
  min-height: auto;
  background: #f8fafc;
}

.bento-card.accent {
  background:
    linear-gradient(
      135deg,
      rgba(190, 242, 100, 0.42),
      rgba(255, 255, 255, 0.82)
    );
}

.bento-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--blueblack);
  color: var(--lime);
  font-weight: 900;
}

.bento-card p,
.process-grid p,
.cost-list p,
.contact-hero p,
.contact-card p,
.booking-card p {
  color: var(--muted);
}

/* PROCESS */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.process-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.process-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--teal-dark);
  color: #ffffff;
  font-weight: 900;
}

.cost-strip {
  margin-top: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      135deg,
      rgba(11, 18, 32, 0.94),
      rgba(19, 78, 74, 0.90)
    );
  color: #ffffff;
}

.cost-strip h3 {
  color: #ffffff;
}

.cost-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.cost-list article {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border:
    1px solid rgba(255, 255, 255, 0.12);
}

.cost-list p {
  color: rgba(255, 255, 255, 0.74);
}

/* CONTACT */

.contact-stage {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    390px;
  gap: 24px;
  align-items: start;
}

.contact-hero {
  padding: clamp(30px, 5vw, 52px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(190, 242, 100, 0.30),
      transparent 34%
    ),
    var(--surface-soft);
}

.crisis-note {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 184, 107, 0.22);
  border:
    1px solid rgba(255, 184, 107, 0.38);
  color: var(--ink-soft);
}

.crisis-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.crisis-note > p > strong {
  color: var(--ink);
}

.crisis-links {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding-left: 1.2rem;
}

.crisis-links li {
  padding-left: 0.25rem;
  line-height: 1.55;
}

.crisis-links li::marker {
  color: var(--teal);
}

.crisis-links strong {
  color: var(--ink);
}

.crisis-links a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.crisis-links a:hover {
  color: var(--ink);
}

.contact-stack {
  display: grid;
  gap: 18px;
}

.contact-card,
.booking-card {
  padding: 28px;
}

.contact-card {
  font-style: normal;
}

.contact-card a {
  color: var(--teal);
  font-weight: 900;
}

.registration-widget {
  width: 100%;
}

/* FOOTER */

.site-footer {
  min-height: var(--footer-height);
  padding: 26px 0;
  background: var(--blueblack);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  margin-left: 18px;
}

/* RECHTLICHE UNTERSEITEN */

.legal-section {
  display: flex;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.legal-page a {
  color: var(--teal);
  font-weight: 900;
}

/* TABLET */

@media (max-width: 980px) {
  :root {
    --header-height: 134px;
  }

  .header-inner {
    min-height: auto;
    padding: 14px 0;
    grid-template-columns: 1fr 74px;
    grid-template-areas:
      "logo doctor"
      "nav nav";
    gap: 12px 18px;
  }

  .logo-link {
    grid-area: logo;
  }

  .doctor-image-wrap {
    grid-area: doctor;
  }

  .logo {
    height: 68px;
  }

  .doctor-image {
    width: 66px;
    height: 66px;
  }

  .main-nav {
    grid-area: nav;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .page-section {
    min-height:
      calc(
        100vh
        - var(--header-height)
      );
    padding: 36px 0 66px;
  }

  .hero-stage,
  .contact-stage {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: auto;
  }

  .bento-grid,
  .process-grid,
  .cost-list {
    grid-template-columns: 1fr;
  }

  .contact-stack {
    max-width: 650px;
  }
}

/* SMARTPHONE */

@media (max-width: 560px) {
  :root {
    --header-height: 116px;
  }

  .content {
    width:
      min(
        var(--max-width),
        calc(100% - 24px)
      );
  }

  .header-inner {
    width:
      min(
        var(--max-width),
        calc(100% - 24px)
      );
    grid-template-columns: 1fr 66px;
  }

  .logo {
    height: 56px;
  }

  .doctor-image {
    width: 54px;
    height: 54px;
    border-width: 3px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  .page-section {
    padding: 28px 0 54px;
  }

  .hero-main,
  .modern-page,
  .contact-hero {
    padding: 26px;
    border-radius: 26px;
  }

  .info-panel,
  .request-panel,
  .contact-card,
  .booking-card {
    padding: 24px;
    border-radius: 26px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .lead {
    font-size: 1.06rem;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .registration-widget {
    width: 100%;
  }

  .crisis-note {
    padding: 18px;
  }

  .crisis-links {
    gap: 14px;
    padding-left: 1.05rem;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner div {
    margin-top: 12px;
  }

  .footer-inner a {
    margin-left: 0;
    margin-right: 16px;
  }
}

@supports not selector(
  body:has(.page-section:target)
) {
  #start {
    display: flex;
  }
}

/* Logo-Animation hart aktivieren */

.logo-link {
  animation:
    logo-rotate-subtle
    180s
    linear
    infinite !important;
}

/* Hinweis zu Präsenz- und Onlineterminen */

.session-format-card {
  margin-top: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.session-format-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.3;
}

.session-format-card p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 560px) {
  .session-format-card {
    padding: 22px;
    border-radius: 20px;
  }
}