:root {
  --ink: #2a1055;
  --ink-soft: #514060;
  --paper: #f7f1ea;
  --paper-2: #efe5dc;
  --white: #ffffff;
  --logo-orange: #f2622e;
  --city-purple: #351465;
  --city-purple-deep: #1d0b3f;
  --copper: #bc7445;
  --copper-soft: #f2d2bf;
  --teal: #351465;
  --teal-soft: #f8dfcf;
  --line: rgba(42, 16, 85, 0.18);
  --shadow: 0 26px 70px rgba(42, 16, 85, 0.15);
  --max: 1190px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--paper) 0%, #fbf4ec 46%, var(--paper) 100%);
  color: var(--ink);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.panel-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px clamp(24px, 4.5vw, 58px);
  color: var(--ink);
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 14px;
  background: rgba(247, 241, 234, 0.92);
  box-shadow: 0 12px 44px rgba(42, 16, 85, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  width: clamp(176px, 18vw, 235px);
}

.brand img {
  width: 100%;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.info-button,
.menu-button,
.panel-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.info-button {
  min-height: 46px;
  padding: 0 22px;
  background: var(--city-purple);
  color: var(--white);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -7px;
}

.menu-lines::after {
  top: 7px;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(470px, 100%);
  height: 100svh;
  padding: 34px clamp(26px, 5vw, 56px);
  background: var(--paper);
  box-shadow: -24px 0 80px rgba(42, 16, 85, 0.2);
  transform: translateX(105%);
  transition: transform 240ms ease;
  overflow-y: auto;
}

.side-panel.is-open {
  transform: translateX(0);
}

.panel-close {
  display: block;
  margin: 0 0 70px auto;
  color: var(--copper);
}

.side-panel h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.side-panel p {
  color: var(--ink-soft);
}

.menu-panel nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.menu-panel nav a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.menu-panel p {
  margin: 28px 0 0;
  font-size: 0.98rem;
}

.termin-panel h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 18px;
}

.termin-panel > p {
  font-size: 0.98rem;
  margin: 0 0 28px;
}

.termin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.termin-grid-header {
  margin-bottom: 8px;
}

.termin-grid-header span {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.termin-calendar {
  margin-bottom: 22px;
}

.termin-day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.termin-day:hover:not(:disabled) {
  border-color: var(--logo-orange);
}

.termin-day.is-selected {
  background: var(--city-purple);
  border-color: var(--city-purple);
  color: var(--white);
}

.termin-day.is-closed {
  border-color: transparent;
  color: var(--ink-soft);
  opacity: 0.4;
  cursor: default;
}

.termin-slots {
  margin-bottom: 26px;
}

.termin-slots-label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 850;
  color: var(--ink);
}

.termin-slots-note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--copper);
}

.termin-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.termin-slot {
  min-height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.termin-slot:hover {
  border-color: var(--logo-orange);
}

.termin-slot.is-selected {
  background: var(--city-purple);
  border-color: var(--city-purple);
  color: var(--white);
}

.termin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.termin-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 850;
  color: var(--ink);
}

.termin-form input,
.termin-form textarea {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.termin-form textarea {
  resize: vertical;
}

.termin-selection {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.termin-submit {
  width: 100%;
}

.termin-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.termin-submit:disabled:hover {
  border-color: var(--line);
  background: var(--city-purple);
  color: var(--white);
  transform: none;
}

.termin-fallback {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.termin-fallback a {
  color: var(--copper);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.94fr);
  min-height: 100svh;
  background:
    linear-gradient(120deg, rgba(242, 98, 46, 0.1), transparent 32%),
    linear-gradient(180deg, var(--paper), #f3eadf);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px clamp(28px, 5vw, 64px) 72px;
}

.hero-copy h1,
section h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6.3vw, 7rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-copy p:not(.kicker),
.section-lead,
.concept-copy p,
.device-copy p,
.final-cta p,
.wide-text,
.practice-copy p {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
}

.hero-copy p:not(.kicker) {
  margin: 30px 0 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.kicker-muted {
  margin-bottom: 34px;
  color: var(--copper);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 30px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button.primary {
  border-color: var(--city-purple);
  background: var(--city-purple);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(53, 20, 101, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.34);
}

.button.dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.button:hover {
  border-color: var(--logo-orange);
  background: var(--logo-orange);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-grid,
.compact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(360px, 1fr);
  gap: clamp(32px, 8vw, 120px);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.section-intro h2,
.concept h2,
.device h2,
.compact-section h2,
.practice h2,
.final-cta h2 {
  color: var(--ink);
  font-size: clamp(2.45rem, 5vw, 5.6rem);
}

.link-list {
  grid-column: 1 / -1;
  display: grid;
  border-top: 1px solid var(--line);
}

.link-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  line-height: 1.15;
  transition: background 220ms ease, color 220ms ease, padding 220ms ease, transform 220ms ease;
}

.link-list span,
.steps span {
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.link-list b {
  color: var(--logo-orange);
  font-weight: 400;
  text-align: right;
}

.link-list a:hover {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--city-purple);
}

.known-treatments {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ink-soft);
}

.known-treatments span {
  color: var(--copper);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.known-treatments a,
.text-link {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--logo-orange);
  text-underline-offset: 8px;
}

.concept,
.device,
.practice {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1fr);
  gap: clamp(36px, 8vw, 96px);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(92px, 11vw, 160px) 0;
  border-top: 1px solid var(--line);
}

.concept-copy {
  align-self: start;
}

.steps {
  display: grid;
  border-top: 1px solid var(--line);
}

.steps article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, padding 220ms ease, transform 220ms ease;
}

.steps h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
}

.steps p {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.areas {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(53, 20, 101, 0.07) 0, rgba(53, 20, 101, 0.07) 50%, rgba(242, 98, 46, 0.08) 50%, rgba(242, 98, 46, 0.08) 100%),
    linear-gradient(180deg, #fbf2ea 0%, var(--paper) 100%);
}

.areas .section-intro h2,
.safety .concept-copy h2 {
  position: relative;
  padding-bottom: 22px;
}

.areas .section-intro h2::after,
.safety .concept-copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(220px, 52vw);
  height: 3px;
  background: linear-gradient(90deg, var(--logo-orange) 0 50%, var(--city-purple) 50% 100%);
}

.areas .link-list {
  border-top-color: rgba(42, 16, 85, 0.24);
}

.areas .link-list a {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 82px;
}

.areas .link-list a:hover {
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.42);
  transform: translateX(4px);
}

.areas .link-list a:hover span {
  color: var(--logo-orange);
}

.safety {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(242, 98, 46, 0.1) 0, rgba(242, 98, 46, 0.1) 50%, rgba(53, 20, 101, 0.07) 50%, rgba(53, 20, 101, 0.07) 100%),
    linear-gradient(180deg, var(--paper) 0%, #f7ebe0 100%);
}

.safety .steps {
  border-top-color: rgba(42, 16, 85, 0.22);
}

.safety .steps article {
  grid-template-columns: minmax(112px, 0.28fr) minmax(0, 1fr);
  gap: 12px 28px;
  padding: 30px 0;
}

.safety .steps article:hover {
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

.safety .steps span {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.safety .steps p {
  grid-column: 2;
  max-width: 680px;
}

.device {
  align-items: center;
}

.device-image {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.device-image img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  transition: transform 700ms ease;
}

.device-image:hover img {
  transform: scale(1.025);
}

.device-image figcaption,
.practice-note {
  padding: 18px 0;
  color: var(--copper);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
}

.facts div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--city-purple);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 500;
}

.facts dd {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.compact-section {
  display: block;
}

.compact-section h2,
.compact-section .wide-text {
  max-width: 900px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mini-grid article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid transparent;
  background: var(--paper);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.mini-grid article:hover {
  border-color: rgba(242, 98, 46, 0.4);
  box-shadow: 0 18px 40px rgba(42, 16, 85, 0.08);
  transform: translateY(-4px);
}

.mini-grid h3 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  font-weight: 400;
}

.mini-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.muted {
  padding-block: clamp(74px, 9vw, 120px);
  background: linear-gradient(180deg, #fbf2ea, var(--paper));
}

.practice {
  grid-template-columns: minmax(260px, 0.58fr) minmax(360px, 1fr);
  min-height: 520px;
  align-items: center;
}

.practice-note {
  align-self: stretch;
  display: flex;
  align-items: end;
  min-height: 360px;
  border-bottom: 1px solid var(--line);
}

.final-cta {
  padding: clamp(100px, 12vw, 170px) 24px;
  background:
    linear-gradient(135deg, var(--city-purple-deep) 0%, var(--city-purple) 48%, var(--logo-orange) 100%);
  color: var(--white);
  text-align: center;
}

.final-cta h2,
.final-cta .kicker {
  color: var(--white);
}

.final-cta p {
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta .hero-actions {
  justify-content: center;
}

.imprint {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(360px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.imprint-heading h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.imprint-grid {
  display: grid;
  gap: 26px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.imprint-grid address,
.imprint-grid p {
  margin: 0;
  font-style: normal;
}

.imprint-grid strong,
.imprint-grid a {
  color: var(--ink);
}

.floating-contact {
  position: fixed;
  right: 32px;
  bottom: 28px;
  z-index: 45;
  padding: 17px 24px;
  background: var(--city-purple);
  color: var(--white);
  box-shadow: 0 16px 44px rgba(42, 16, 85, 0.28);
  font-size: 0.9rem;
  font-weight: 850;
  animation: floatContact 4.8s ease-in-out infinite;
  transition: background 180ms ease, transform 180ms ease;
}

.floating-contact:hover {
  animation-play-state: paused;
  background: var(--logo-orange);
  transform: translateY(-3px);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 0.45fr) minmax(210px, 0.55fr);
  gap: 34px;
  padding: 54px clamp(24px, 5vw, 64px);
  background: var(--paper);
  color: var(--ink-soft);
}

.site-footer img {
  width: 172px;
  height: auto;
  margin-bottom: 18px;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 760;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

@keyframes floatContact {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 920px) {
  .hero,
  .section-grid,
  .concept,
  .device,
  .practice,
  .imprint,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 68svh;
  }

  .hero-image {
    width: 100%;
    height: 60vh;
    margin: 0 0 48px;
  }

  .areas,
  .safety {
    width: 100%;
    padding-inline: 24px;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-note {
    min-height: 160px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px 16px;
  }

  .brand {
    width: min(165px, 46vw);
  }

  .header-actions {
    gap: 12px;
  }

  .info-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .menu-button {
    font-size: 0.96rem;
  }

  .hero-copy {
    padding: 104px 20px 48px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.55rem);
  }

  .section-grid,
  .concept,
  .device,
  .practice,
  .imprint {
    width: calc(100% - 34px);
    padding-block: 72px;
  }

  .link-list a {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    min-height: 68px;
    font-size: 1.35rem;
  }

  .steps article {
    grid-template-columns: 1fr;
  }

  .steps p {
    grid-column: auto;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .areas,
  .safety {
    width: 100%;
    padding-inline: 17px;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
