/* houdaflow. – Coming Soon
   Bewusst ohne Webfonts von Drittanbietern (DSGVO) und ohne JavaScript. */

:root {
  --bg: #fbfaf8;
  --fg: #0b0b12;
  --muted: #5d5d6c;
  --subtle: #8a8a98;
  --line: rgba(11, 11, 18, 0.08);
  --surface: rgba(255, 255, 255, 0.62);

  --violet: #7b5cff;
  --rose: #ff5c93;
  --peach: #ffb071;
  --gradient: linear-gradient(100deg, var(--violet) 0%, var(--rose) 55%, var(--peach) 100%);

  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection {
  background: rgba(123, 92, 255, 0.18);
}

/* ---------- Hintergrund ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  will-change: transform;
}

.orb--violet {
  width: 46vmax;
  height: 46vmax;
  top: -18vmax;
  left: -12vmax;
  background: radial-gradient(circle at 50% 50%, #b9a8ff 0%, rgba(185, 168, 255, 0) 70%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.orb--rose {
  width: 40vmax;
  height: 40vmax;
  top: 8vmax;
  right: -16vmax;
  background: radial-gradient(circle at 50% 50%, #ffb3cd 0%, rgba(255, 179, 205, 0) 70%);
  animation: drift-b 30s var(--ease) infinite alternate;
}

.orb--peach {
  width: 38vmax;
  height: 38vmax;
  bottom: -20vmax;
  left: 22vw;
  background: radial-gradient(circle at 50% 50%, #ffd5b0 0%, rgba(255, 213, 176, 0) 70%);
  animation: drift-c 34s var(--ease) infinite alternate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
  opacity: 0.55;
}

@keyframes drift-a {
  to {
    transform: translate3d(8vmax, 6vmax, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-7vmax, 5vmax, 0) scale(0.94);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-6vmax, -7vmax, 0) scale(1.1);
  }
}

/* ---------- Header ---------- */

.site-header {
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
}

.wordmark {
  display: inline-block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.wordmark__dot {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 6rem) var(--gutter);
}

.hero__title {
  margin: 0;
  font-size: clamp(3rem, 11.5vw, 7.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__title > span {
  display: block;
  padding-bottom: 0.06em; /* Platz für Unterlängen bei background-clip */
}

.hero__accent {
  background: var(--gradient);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34rem;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--muted);
  text-wrap: pretty;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.625rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0.6875rem 1.25rem 0.6875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 2px rgba(11, 11, 18, 0.04), 0 8px 24px -12px rgba(123, 92, 255, 0.25);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
}

.badge__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}

.badge__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rose);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* ---------- Eingangsanimation ---------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(6px);
  animation: reveal 1s var(--ease) forwards;
}

.d0 { animation-delay: 0.05s; }
.d1 { animation-delay: 0.17s; }
.d2 { animation-delay: 0.32s; }
.d3 { animation-delay: 0.46s; }

.hero__accent.reveal {
  animation: reveal 1s var(--ease) 0.17s forwards, shimmer 9s ease-in-out 1.2s infinite alternate;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes shimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--subtle);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--fg);
}

/* ---------- Rechtstexte ---------- */

.legal {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 4rem) var(--gutter) clamp(3rem, 8vh, 6rem);
}

.legal h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.legal h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal address,
.legal li {
  color: var(--muted);
  font-style: normal;
}

.legal a {
  color: var(--fg);
  text-decoration-color: rgba(11, 11, 18, 0.25);
  text-underline-offset: 3px;
}

.legal .placeholder {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: rgba(255, 176, 113, 0.22);
  color: var(--fg);
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--fg);
}

/* ---------- Barrierefreiheit ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (min-width: 48rem) {
  .hero {
    padding-bottom: clamp(4rem, 12vh, 8rem);
  }
}
