@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(97.5% 0.004 85);
  --text: oklch(17% 0.01 60);
  --text-muted: oklch(42% 0.01 60);
  --line: oklch(80% 0.006 60);
  --focus: oklch(17% 0.01 60);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* ---------- Kreis-Cursor (nur bei Maus) ---------- */

.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor,
  .has-cursor a,
  .has-cursor .reel-link {
    cursor: none;
  }

  .has-cursor .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: oklch(100% 0 0);
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
  }

  .has-cursor .cursor.is-visible {
    opacity: 1;
  }

  .cursor-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    transition: transform 0.35s var(--ease-out);
  }

  .cursor.is-hovering .cursor-dot {
    transform: scale(2.6);
  }
}

/* ---------- Ortszeit oben links ---------- */

.local-time {
  position: fixed;
  top: clamp(16px, 3vw, 32px);
  left: clamp(16px, 3vw, 32px);
  z-index: 2;
  display: flex;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.3s forwards;
}

.local-time-sep {
  color: var(--line);
}

/* ---------- Showreel ---------- */

/* Vorschau-Kachel: läuft stumm in Schleife, damit klar ist, dass es etwas zu sehen gibt */
.reel-link {
  --navy: oklch(22% 0.045 262);
  position: fixed;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: clamp(150px, 16vw, 232px);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.6s forwards;
}

.reel-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -18px oklch(20% 0.04 262 / 0.45);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.reel-thumb-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Abspiel-Knopf im Stil des Kreis-Cursors, mit ruhigem Puls */
.reel-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--navy);
  transition: transform 0.4s var(--ease-out);
}

.reel-thumb-play::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 14px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid oklch(97% 0.006 85);
}

.reel-thumb-play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--navy);
  animation: play-pulse 2.4s var(--ease-out) 2.4s infinite;
}

.reel-link:hover .reel-thumb {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 0 1px var(--text-muted), 0 18px 40px -18px oklch(20% 0.04 262 / 0.55);
}

.reel-link:hover .reel-thumb-play {
  transform: scale(1.15);
}

.reel-link-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.reel-link-time {
  color: var(--text-muted);
}

@keyframes play-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .reel-link {
    width: 132px;
    gap: 8px;
  }

  .reel-thumb-play {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
  }

  .reel-thumb-play::before {
    left: 13px;
    top: 10px;
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 11px;
  }

  .reel-link-label {
    font-size: 0.6875rem;
  }

  .reel-link-time {
    display: none;
  }
}

.reel {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(56px, 8vh, 88px) 16px 24px;
  border: 0;
  background: var(--bg);
  color: var(--text);
}

.reel[open] {
  display: grid;
  place-items: center;
  animation: fade-up 0.5s var(--ease-out);
}

.reel::backdrop {
  background: var(--bg);
}

.reel,
.reel * {
  cursor: auto;
}

.reel-video {
  display: block;
  max-width: min(100%, 1440px);
  max-height: calc(100dvh - clamp(56px, 8vh, 88px) - 24px);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}

.reel-close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  min-height: 44px;
  margin: -12px -12px 0 0;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Startseite ---------- */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 24px 16px;
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vh, 64px);
  text-align: center;
}

.hero-name {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  color: var(--text);
}

.hero-name-follow,
.hero-name-float {
  display: block;
  will-change: transform;
}

.hero-name-float {
  animation: float 7s ease-in-out 1.6s infinite;
}

/* Maske je Zeile: Polster nach außen, damit Ober-/Unterlängen nicht abgeschnitten werden */
.hero-line {
  display: block;
  overflow: hidden;
  padding: 0.1em 0.12em 0.06em;
  margin: -0.1em -0.12em -0.06em;
}

.hero-line-inner {
  display: block;
  padding-right: 0.075em;
  transform: translateY(105%);
  filter: blur(8px);
  animation: line-in 1.3s var(--ease-out) forwards;
}

.hero-line:nth-child(2) .hero-line-inner {
  animation-delay: 0.14s;
}

.status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.9s forwards;
}

.status li + li::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 20px;
  vertical-align: middle;
  background: var(--line);
}

.status-strong {
  color: var(--text);
  font-weight: 500;
}

.footer {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.1s forwards;
}

.legal {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal a {
  display: inline-block;
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

@media (max-width: 560px) {
  .status {
    flex-direction: column;
  }

  .status li + li::before {
    display: none;
  }
}

@keyframes line-in {
  to {
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Rechtsseiten ---------- */

.legal-page {
  max-width: 70ch;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 112px) 16px 96px;
  line-height: 1.65;
}

.legal-back {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--text-muted);
  text-decoration: none;
}

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

.legal-page h1 {
  margin: 0 0 48px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.legal-page h2 {
  margin: 48px 0 12px;
  font-size: 1.25rem;
  font-weight: 500;
  text-wrap: balance;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  text-wrap: pretty;
}

.legal-page ul {
  padding-left: 1.2em;
}

.legal-page a {
  text-underline-offset: 4px;
}

/* Rückfall ohne JavaScript: umgedrehter Quelltext wird richtig herum angezeigt */
.reversed {
  unicode-bidi: bidi-override;
  direction: rtl;
}

@media (prefers-reduced-motion: reduce) {
  .hero-line-inner,
  .status,
  .footer,
  .local-time,
  .reel-link,
  .reel[open] {
    animation: none;
    transform: none;
    filter: none;
    opacity: 1;
  }

  .hero-name-float,
  .reel-thumb-play::after {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
