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

:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ---------- background: soft light + fine texture ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% -10%, #ffffff 0%, #f2f2f4 46%, #e6e6ea 100%);
}

.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.wash-a {
  width: 70vmax; height: 70vmax;
  left: -22vmax; top: -26vmax;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 68%);
  animation: floatA 30s ease-in-out infinite alternate;
}

.wash-b {
  width: 62vmax; height: 62vmax;
  right: -24vmax; bottom: -28vmax;
  background: radial-gradient(circle at 55% 45%, rgba(198,201,209,0.55) 0%, rgba(198,201,209,0) 70%);
  animation: floatB 36s ease-in-out infinite alternate;
}

@keyframes floatA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vw, 5vh, 0) scale(1.12); }
}
@keyframes floatB {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-6vw, -5vh, 0) scale(0.94); }
}

/* fine paper grain */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark .ch,
.wordmark .sp {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.22em);
  animation: rise 1.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}

.wordmark .sp { animation: none; opacity: 1; filter: none; transform: none; }

@keyframes rise {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.tagline {
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 0.85s forwards;
}

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

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 1.2s forwards;
}

.imprint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.35s var(--ease);
}

.imprint:hover,
.imprint:focus-visible { color: var(--ink); }

.imprint:focus-visible {
  outline: 1px solid rgba(0, 0, 0, 0.28);
  outline-offset: 6px;
  border-radius: 6px;
}

/* ---------- impressum page ---------- */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) 28px 64px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.05s forwards;
}

.page h1 {
  margin: 0 0 clamp(26px, 4.5vh, 44px);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(22px, 3.6vw, 32px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.045);
}

.card + .card { margin-top: 16px; }

.card h2 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card address,
.card p {
  margin: 0;
  font-style: normal;
  font-size: clamp(0.98rem, 2vw, 1.06rem);
  line-height: 1.68;
  color: var(--ink);
}

.card .note {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.card a { color: #0066cc; text-decoration: none; }
.card a:hover { text-decoration: underline; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  margin: 26px 0 0 -10px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

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

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .wash { animation: none; }
  .wordmark .ch, .tagline, .footer, .page {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
