@font-face {
  font-family: "Comfortaa";
  src: url("/assets/fonts/comfortaa-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --violet: #662483;
  --violet-deep: #43205d;
  --magenta: #a3195b;
  --ink: #301f3a;
  --muted: #6c5b72;
  --paper: #fffdfd;
  --focus: #0b7285;
  --shadow: 0 26px 70px rgba(80, 34, 94, 0.19);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  font-family: "Comfortaa", "Trebuchet MS", sans-serif;
  background: #f8f2fb;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8f2fb;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--violet); }
a:hover { color: var(--magenta); }
.nowrap { white-space: nowrap; }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.stage {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 4rem) clamp(1rem, 7vw, 7rem);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 253, 255, 0.98) 0%, rgba(255, 251, 255, 0.93) 36%, rgba(255, 250, 255, 0.34) 68%, rgba(255, 255, 255, 0.06) 100%),
    url("/assets/hintergrund-klangschalen.jpg") right center / cover no-repeat;
}

.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8%;
  right: -8%;
  bottom: -7rem;
  height: 15rem;
  opacity: 0.34;
  background: url("/assets/trenner.svg") center / 74% 14px no-repeat;
  transform: rotate(-1deg);
}

.welcome-card {
  position: relative;
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 3vw, 3.1rem);
  border: 1px solid rgba(102, 36, 131, 0.15);
  border-radius: 2rem;
  background: rgba(255, 253, 255, 0.86);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand img {
  display: block;
  width: clamp(9.75rem, 19vw, 13.75rem);
  height: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  color: var(--magenta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 5px rgba(163, 25, 91, 0.1);
}

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

h1 {
  margin: 0.7rem 0 0.75rem;
  color: var(--violet);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: currentColor;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7e318f);
  box-shadow: 0 10px 24px rgba(102, 36, 131, 0.22);
}

.button-primary:hover { color: #fff; box-shadow: 0 13px 30px rgba(102, 36, 131, 0.3); }

.button-secondary {
  color: var(--magenta);
  border-color: rgba(163, 25, 91, 0.26);
  background: rgba(255, 255, 255, 0.76);
}

.button-secondary:hover { background: #fff; }

.divider {
  width: 100%;
  margin: 1.45rem 0 1.1rem;
  line-height: 0;
}

.divider img {
  display: block;
  width: min(100%, 24rem);
  height: 8px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem 2rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

.details-grid p { margin: 0; }
.details-grid address { font-style: normal; }
.detail-label { color: var(--violet); font-weight: 700; }

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 0.36rem 0.66rem;
  border-radius: 999px;
  color: var(--violet-deep);
  background: rgba(102, 36, 131, 0.075);
  font-size: 0.75rem;
  line-height: 1.35;
}

.appointments {
  margin: 1rem 0 0;
  color: var(--magenta);
  font-size: 0.86rem;
  font-weight: 700;
}

.sound-rings {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 46%;
  width: min(42vw, 34rem);
  aspect-ratio: 1;
  opacity: 0.25;
}

.sound-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(102, 36, 131, 0.28);
  border-radius: 50%;
  animation: resonance 8s ease-in-out infinite;
}

.sound-rings span:nth-child(2) { inset: 12%; animation-delay: -2.6s; }
.sound-rings span:nth-child(3) { inset: 24%; animation-delay: -5.2s; }

@keyframes resonance {
  0%, 100% { transform: scale(0.98); opacity: 0.3; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 7vw, 7rem);
  color: #fff;
  background: var(--violet-deep);
  font-size: 0.78rem;
}

.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: #fff; text-underline-offset: 0.25em; }
.site-footer a:hover { color: #f9bad8; }

.legal-page {
  min-height: 100svh;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(255, 253, 255, 0.92), rgba(250, 241, 252, 0.95)),
    url("/assets/hintergrund-klangschalen.jpg") right center / cover fixed no-repeat;
}

.legal-header {
  width: min(100%, 48rem);
  margin: 0 auto 0.5rem;
}

.brand-small { display: inline-block; line-height: 0; }
.brand-small img { width: 8.5rem; height: auto; }

.legal-card {
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(102, 36, 131, 0.13);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  overflow-wrap: normal;
  hyphens: manual;
}

.legal-card h2 {
  margin: 2rem 0 0.4rem;
  color: var(--violet-deep);
  font-size: 1.1rem;
  line-height: 1.35;
}

.legal-card p { margin: 0.35rem 0; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: 0.85rem; }
.legal-date { margin-top: 2.5rem !important; color: var(--muted); font-size: 0.82rem; }
.legal-footer { width: min(100%, 48rem); margin: 1rem auto 0; text-align: center; font-size: 0.82rem; }
.error-page { display: grid; place-items: center; }
.error-page .legal-card { text-align: center; }
.error-logo { width: 10rem; height: auto; }
.error-page .status { justify-content: center; }
.error-page .button { margin-top: 1rem; }

@media (max-width: 760px) {
  .stage {
    min-height: auto;
    padding: 1rem;
    padding-bottom: clamp(12rem, 50vw, 18rem);
    align-items: start;
    background:
      linear-gradient(180deg, rgba(255, 253, 255, 0.98) 0%, rgba(255, 251, 255, 0.9) 56%, rgba(255, 250, 255, 0.16) 100%),
      url("/assets/hintergrund-klangschalen.jpg") 73% bottom / auto 72% no-repeat,
      #f8f2fb;
  }

  .welcome-card {
    margin: 0 auto;
    border-radius: 1.45rem;
    background: rgba(255, 253, 255, 0.91);
  }

  h1 br { display: none; }
  .details-grid { grid-template-columns: 1fr; }
  .sound-rings { top: auto; right: -18%; bottom: 4%; left: auto; width: 74vw; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .welcome-card { padding: 1.25rem; }
  h1 { font-size: clamp(1.8rem, 10.8vw, 2.45rem); }
  .status { font-size: 0.68rem; line-height: 1.4; }
  .contact-actions { display: grid; }
  .button { width: 100%; font-size: 0.85rem; }
  .services { display: grid; }
  .services li { border-radius: 0.8rem; }
}

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