/* Schriften lokal eingebunden (kein Abruf bei Google), Lizenz: fonts/OFL-*.txt */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-latin-700-normal.woff2") format("woff2");
}

/* Farben nach tanzschule-werz.de: Gelb #f4e856 (Primär), Türkis #75d1c1/#43b7a3, Text #222/#666.
   --accent-text: abgedunkeltes Türkis für kleine Schrift auf hellem Grund (5,05:1 auf #f7f7f7). */
:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --bg-2: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: rgba(34, 34, 34, 0.16);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --accent: #f4e856;
  --accent-2: #43b7a3;
  --accent-3: #ffffff;
  --accent-text: #26766a;
  --ink: #222222;
  --shadow: 0 24px 80px rgba(34, 34, 34, 0.16);
  --radius: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #101010;
  --text: #ffffff;
  --muted: #b6b6b6;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(12, 12, 12, 0.74);
  --panel-strong: rgba(12, 12, 12, 0.9);
  --accent: #f4e856;
  --accent-2: #75d1c1;
  --accent-3: #050505;
  --accent-text: #f4e856;
  --ink: #222222;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
  transition: background 500ms ease, color 500ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0 68%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}
::selection {
    background: var(--accent);
    color: var(--ink);
}
button {
  font: inherit;
}

.particle-field,
.noise-layer,
.scanline-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.particle-field {
  z-index: -2;
}

.noise-layer {
  z-index: -1;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.scanline-layer {
  z-index: 20;
  opacity: 0.12;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, 0.22) 10px);
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.site-nav,
.theme-toggle {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(44px, 5vw, 56px);
}

.brand-logo--light,
:root[data-theme="dark"] .brand-logo--dark {
  display: none;
}

:root[data-theme="dark"] .brand-logo--light {
  display: block;
}

.site-nav {
  display: flex;
  justify-content: right;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.9rem;
  padding-right: 10px;
}

.site-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.theme-toggle {
  width: 72px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.theme-toggle__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 78%, transparent);
  overflow: hidden;
}

.theme-toggle__icon {
  z-index: 1;
  text-align: center;
  font-size: 0.94rem;
}

.theme-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  transition: transform 260ms ease;
}

:root[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(32px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.55fr);
  gap: clamp(22px, 4vw, 48px);
  min-height: 100svh;
  padding: clamp(120px, 15vh, 160px) max(18px, calc((100vw - 1180px) / 2)) 74px;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-media img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: 0.38;
  filter: grayscale(0.36) saturate(0.82) contrast(1.05);
  transform: scale(1.04);
  animation: cinematicDrift 18s ease-in-out infinite alternate;
}

:root[data-theme="dark"] .hero-media img {
  opacity: 0.24;
  filter: grayscale(0.48) saturate(0.78) contrast(1.12) brightness(0.66);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--bg) 0 22%, transparent 58%),
    linear-gradient(0deg, var(--bg) 0 7%, transparent 38%),
    radial-gradient(circle at 70% 48%, transparent 0 18%, var(--bg) 70%);
}

.hero-media__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 62% 42%, #000 0 28%, transparent 64%);
  animation: gridSlide 9s linear infinite;
}

.hero-media__flare {
  position: absolute;
  top: 24%;
  right: 13%;
  width: 26vw;
  height: 26vw;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 54px color-mix(in srgb, var(--accent) 24%, transparent);
  animation: flareSpin 10s linear infinite;
}

.hero-media__flare::before,
.hero-media__flare::after {
  position: absolute;
  inset: 16%;
  content: "";
  border: 1px dashed color-mix(in srgb, var(--text) 34%, transparent);
  border-radius: 50%;
}

.hero-media__flare::after {
  inset: 35%;
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: clamp(0.76rem, 1.8vw, 0.92rem);
  text-transform: uppercase;
}

.eyebrow span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  animation: pulse 1.1s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(4rem, 12vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px) skewX(-4deg);
}

.button--primary {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--accent) 26%, transparent);
}

.button--ghost {
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.command-stack {
  display: grid;
  gap: 16px;
  transform-style: preserve-3d;
  animation: floatStack 7s ease-in-out infinite;
}

.terminal,
.signal-card,
.status-card,
.marquee-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.terminal {
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: var(--text);
}

.terminal-bar span:nth-child(2) {
  background: color-mix(in srgb, var(--text) 30%, transparent);
}

.terminal-bar span:nth-child(3) {
  background: var(--accent);
}

.terminal-bar strong {
  margin-left: auto;
}

.terminal-lines {
  min-height: 188px;
  padding: 18px;
  font-family: "Space Mono", monospace;
  font-size: 0.86rem;
}

.terminal-lines p {
  margin-bottom: 12px;
  color: var(--muted);
}

.terminal-lines span {
  color: var(--accent);
}

.signal-card {
  padding: 18px;
}

.signal-card__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 0.95;
}

.progress-rail {
  height: 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--muted) 20%, transparent);
  overflow: hidden;
}

.progress-rail span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--text), var(--accent));
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 36%, transparent);
  transition: width 700ms ease;
}

.ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52px;
  border-block: 1px solid var(--line);
  color: var(--ink);
  background: var(--accent);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: ticker 19s linear infinite;
}

.ticker span {
  padding: 0 34px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-section,
.process-section,
.site-footer {
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
}

.status-section {
  padding-top: clamp(68px, 10vw, 130px);
  padding-bottom: clamp(54px, 9vw, 110px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p,
.marquee-panel p,
.footer-kicker {
  margin-bottom: 8px;
  color: var(--accent-text);
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2,
.marquee-panel h2,
.site-footer h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  position: relative;
  min-height: 250px;
  padding: 22px;
  overflow: hidden;
}

.status-card::before {
  position: absolute;
  inset: auto -20% -44% 18%;
  height: 68%;
  content: "";
  background: var(--accent);
  filter: blur(32px);
  opacity: 0.16;
  transform: rotate(-9deg);
}

.status-card span {
  position: relative;
  display: inline-block;
  margin-bottom: 64px;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
}

.status-card h3 {
  position: relative;
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.status-card p {
  position: relative;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.process-section {
  padding-bottom: clamp(68px, 10vw, 130px);
}

.marquee-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: 22px;
  min-height: 360px;
  padding: clamp(22px, 5vw, 54px);
  align-items: center;
  overflow: hidden;
}

.marquee-panel::after {
  position: absolute;
  inset: auto 0 0;
  height: 24px;
  content: "";
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 28px,
    var(--ink) 28px 56px
  );
}

.orbit {
  position: relative;
  width: min(48vw, 280px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: flareSpin 13s linear infinite reverse;
}

.orbit::before,
.orbit::after,
.orbit span {
  position: absolute;
  border-radius: 50%;
}

.orbit::before {
  inset: 18%;
  content: "";
  border: 1px dashed color-mix(in srgb, var(--text) 36%, transparent);
}

.orbit::after {
  inset: 39%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 30%, transparent);
}

.orbit span {
  width: 18px;
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent);
}

.orbit span:nth-child(1) {
  top: 2%;
  left: 47%;
}

.orbit span:nth-child(2) {
  right: 8%;
  bottom: 23%;
  background: var(--text);
}

.orbit span:nth-child(3) {
  bottom: 13%;
  left: 12%;
  background: var(--accent);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 74%, transparent);
}

.site-footer address,
.footer-contact {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-contact a:hover {
  color: var(--accent-text);
}

.reveal {
  opacity: 0;
  transform: translateY(34px) rotateX(8deg);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

#impressum,
#datenschutz {
  scroll-margin-top: 120px;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 75ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-contact span {
  color: var(--muted);
}

.legal {
  padding: clamp(42px, 7vw, 80px) max(18px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 74%, transparent);
}

.site-footer h2,
.legal h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  text-transform: none;
}

.legal h2 {
  margin-bottom: 20px;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

.legal p {
  max-width: 75ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal a,
.footer-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.legal .footer-kicker {
  margin-bottom: 8px;
  color: var(--accent-text);
}

.legal .legal__credit {
  margin-top: 40px;
  font-size: 0.9rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

@keyframes cinematicDrift {
  from {
    transform: scale(1.04) translate3d(-1%, -1%, 0);
  }
  to {
    transform: scale(1.12) translate3d(2%, 1%, 0);
  }
}

@keyframes gridSlide {
  to {
    background-position: 42px 42px;
  }
}

@keyframes flareSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

@keyframes floatStack {
  50% {
    transform: translateY(-18px) rotateX(3deg) rotateY(-4deg);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 118px;
  }

  .hero-content {
    max-width: none;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.6rem, 19vw, 6.8rem);
  }

  .command-stack {
    max-width: 520px;
  }

  .section-heading,
  .status-grid,
  .marquee-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    gap: 18px;
  }
}

@media (max-width: 520px) {

  .hero {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  h1 span {
    -webkit-text-stroke-width: 1px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .terminal-lines {
    font-size: 0.76rem;
  }
}

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