/* Schriftzug: Syne (SIL Open Font License, lokal eingebunden) */
@font-face {
  font-family: "Syne";
  src: url("fonts/syne.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --display: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #0f0f0f;
  --fg: #ffffff;
  --muted: #8c8c8c;
  /* Linienstärke wie die Slogan-Linien im Logo (3 px im Bild, bei 600 px Breite) */
  --line: 1.25px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

main, footer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Hintergrundvideo */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}
/* 16:9-Video, das den Bildschirm immer vollständig bedeckt (wie "cover"),
   egal ob Handy hochkant, Tablet oder breiter Monitor */
.bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc(100dvh * 16 / 9));
  height: max(100dvh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 0;
  background: #000;
  color-scheme: light; /* verhindert helle Ränder im Bunny-Player */
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.video-on .bg iframe, .video-on .bg video { opacity: 1; }
/* Nach zwei Durchläufen: Video stoppt und wird weich auf 20 % abgedunkelt */
.video-on.video-dim .bg iframe, .video-on.video-dim .bg video { opacity: 0.2; transition: opacity 4s ease; }
/* Dunkler Schleier: links und unten dichter, wo der Text steht */
.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.55) 60%, rgba(10, 10, 10, 0.45) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0) 45%);
}
.has-video .hold, .has-video footer { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.has-video .kicker, .has-video .lead, .has-video .links a, .has-video footer { color: #b8b8b8; }

/* Platzhalter */
.hold {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 64px;
}
.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 10vw, 150px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
/* Logo statt Schriftzug */
h1.logo { line-height: 0; }
h1.logo img { display: block; width: clamp(260px, 44vw, 600px); height: auto; }
.brand img { display: block; width: 120px; height: auto; }
.lead { margin: 28px 0 48px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.links { display: flex; gap: 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 16px; }
.links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.links a:hover { color: var(--fg); }

/* Aufruf unter dem Logo */
.cta-sub { margin: 36px 0 28px; color: #d0d0d0; font-size: 18px; }
.cta-idea { color: #f9ae36; }
.cta-mark { text-decoration: underline; text-decoration-color: #f9ae36; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Kontaktformular auf dunkelgrauer Fläche */
.contact {
  display: grid;
  gap: 18px;
  max-width: 600px;
  padding: clamp(20px, 3vw, 32px);
  background: #222;
  border: var(--line) solid #f9ae36;
  color: var(--fg);
  text-shadow: none;
}
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact label span {
  display: block;
  margin-bottom: 4px;
  color: #a8a8a8;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact input, .contact textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}
.contact input:focus, .contact textarea:focus { outline: 0; border-color: #fff; }
.contact :focus-visible { outline-color: #fff; }
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#captcha { min-height: 65px; }
.send { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.contact button {
  padding: 13px 28px;
  border: var(--line) solid #f9ae36;
  border-radius: 0;
  background: #f9ae36;
  color: #0f0f0f;
  font: 700 16px/1 var(--display);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact button:hover { background: transparent; color: #f9ae36; }
.contact button:disabled { opacity: 0.5; cursor: wait; }
.status { margin: 0; font-size: 16px; color: #b8b8b8; }
.status[data-kind="ok"] { color: #9be59b; }
.status[data-kind="error"] { color: #ff9b8f; }
.note { margin: 0; font-size: 13px; color: #8c8c8c; }
.note a { color: inherit; }
.contact + .links, .clients + .links, .clients + .social { margin-top: 36px; }
.social .links { margin-top: 0; }
/* Überschriften nur so breit wie ihr Text (Drohnen-Parallax reagiert nur dort) */
.form-title, .clients h2, .social h2 { width: fit-content; }

/* Kundenlogos unter dem Formular */
.clients { max-width: 560px; margin-top: 48px; }
.clients:has(ul:empty) { display: none; }
.clients h2, .social h2 {
  margin: 0 0 20px;
  color: #f9ae36;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.clients ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.clients li:hover img { opacity: 1; }
@media (max-width: 560px) {
  .clients ul { gap: 18px 24px; }
  .clients img { height: 28px; max-width: 90px; }
}
@media (max-width: 560px) {
  .contact .row { grid-template-columns: 1fr; }
}

/* Drohne als Mauszeiger */
.drone-on, .drone-on * { cursor: none !important; }
.drone-on input, .drone-on textarea { cursor: text !important; }
.drone {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  will-change: transform;
}
.drone.is-visible { opacity: 1; }
.drone.is-away { opacity: 0; }
.drone svg { display: block; transition: transform 0.2s ease; }
.drone.is-hot svg { transform: scale(1.35); }
.drone .disc { fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; }
.drone .blade line { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.drone .blade { animation: spin 0.18s linear infinite; transform-box: fill-box; transform-origin: center; }
.drone .blade.rev { animation-direction: reverse; }
.drone .led { fill: #ff3b30; }
.drone.is-hot .led { fill: #39ff88; }
@keyframes spin { to { transform: rotate(360deg); } }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 32px;
  color: var(--muted);
  font-size: 13px;
}
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Impressum & Datenschutz */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.top a { text-decoration: none; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--fg); }
.brand { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.legal { max-width: 720px; margin: 0; padding-block: 48px 96px; }
/* Überschrift im Stil des Logos: fette Grotesk wie "scator" */
.legal h1 { font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 900; font-size: clamp(24px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 28px; }
.legal h2 { font-size: 18px; font-weight: 500; margin: 36px 0 8px; }
.legal p { margin: 0 0 12px; color: var(--muted); }

/* Landeplatz unten rechts – Comic-Stil wie die Drohne */
/* Platz unter dem Footer, damit Impressum/Datenschutz nicht verdeckt werden */
footer { padding-bottom: 120px; }
.pad {
  position: fixed;
  bottom: clamp(12px, 2.2vw, 26px);
  right: clamp(12px, 3vw, 40px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}
.pad-icon { flex: none; display: block; overflow: visible; animation: pad-bob 2.6s ease-in-out infinite; }
.pad:hover .pad-icon, .pad.is-landing .pad-icon { animation: pad-wiggle 0.5s ease-in-out infinite; }
.pad-disc { fill: #f9ae36; stroke: #fff; stroke-width: 3.5; }
.pad-dash { fill: none; stroke: rgba(15, 15, 15, 0.45); stroke-width: 2; stroke-dasharray: 5 4; }
.pad-progress {
  fill: none;
  stroke: #0f0f0f;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.25s ease;
}
.pad.is-landing .pad-progress { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s linear; }
.pad-h-outline { fill: none; stroke: #0f0f0f; stroke-width: 10; stroke-linecap: round; }
.pad-h { fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; }
.pad.is-landing .pad-h { stroke: #0f0f0f; }
.pad-light { fill: #ff3b30; stroke: #fff; stroke-width: 1.5; animation: pad-blink 1.2s steps(2, jump-none) infinite; }
.pad-light:nth-of-type(even) { animation-delay: 0.6s; }
.pad.is-landing .pad-light { fill: #39ff88; animation: none; }

/* Sprechblase links neben dem Landeplatz, erscheint erst beim Darüberfahren */
.pad-text {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  display: grid;
  gap: 3px;
  padding: 10px 16px 11px;
  border: var(--line) solid #f9ae36;
  border-radius: 16px 16px 5px 16px;
  background: #0f0f0f;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(8px, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* nur über "Hier landen?" (oder per Tastatur), nicht während die Drohne landet */
.pad:has(.arrow-label:hover):not(.is-landing) .pad-text, .pad:focus-visible:not(.is-landing) .pad-text {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) scale(1);
}
/* Touch-Geräte haben kein Mouseover: dort bleibt die Blase sichtbar */
@media (hover: none), (pointer: coarse) {
  .pad-text { opacity: 1; visibility: visible; transform: translate(0, -50%); }
}
.pad-text strong {
  color: #f9ae36;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 18px; /* wie "Hier landen?" */
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pad-hint { color: #e8e8e8; font-size: 15px; }
.pad-hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .pad-hint-mouse { display: none; }
  .pad-hint-touch { display: inline; }
}

/* Geschwungener Pfeil links oberhalb, zeigt nach unten auf den Landeplatz */
.pad-arrow {
  position: absolute;
  bottom: 14px;
  right: calc(100% - 6px);
  width: 170px;
  pointer-events: none;
}
.pad-arrow svg { display: block; overflow: visible; transform: scaleY(-1); }
.arrow-line, .arrow-head { fill: none; stroke: #fff; stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.arrow-line { stroke-dasharray: 1 0; }
.arrow-label {
  position: absolute;
  left: -34px;
  top: -22px;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  transform: rotate(-6deg);
  transform-origin: center;
  animation: label-wiggle 2.6s ease-in-out infinite; /* im Takt des Landeplatzes */
}
.pad-arrow svg { transition: opacity 0.2s; }
.pad:hover .pad-arrow svg, .pad.is-landing .pad-arrow svg { opacity: 0; }
/* "Hier landen?" ist der Hover-Auslöser für die Sprechblase */
.arrow-label { pointer-events: auto; padding: 6px 8px; margin: -6px -8px; }

@keyframes pad-bob { 50% { transform: translateY(-3px); } }
@keyframes pad-wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes pad-blink { 50% { opacity: 0.25; } }
@keyframes label-wiggle { 0%, 100% { transform: rotate(-6deg) translateY(0); } 25% { transform: rotate(-8deg) translateY(-2px); } 50% { transform: rotate(-4deg) translateY(-3px); } 75% { transform: rotate(-7deg) translateY(-1px); } }


@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .pad-arrow { display: none; }
}
@media (max-width: 560px) {
  .pad { gap: 6px; }
  .pad-icon { width: 52px; height: 52px; }
  .pad-text { padding: 7px 11px 8px; }
  .pad-text strong { font-size: 15px; }
  .pad-hint { font-size: 13px; }
  .kicker { margin-top: 56px; }
}
.drone.is-landing svg { transform: scale(0.8); }
.drone.is-landing .led { fill: #f9ae36; }

/* Showreel-Popup */
.reel {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  border: 0;
  background: #000;
  color: var(--fg);
  overflow: visible;
}
.reel::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); }
.reel-frame { aspect-ratio: 16 / 9; }
/* pointer-events: none = keine YouTube-Einblendungen beim Drüberfahren */
.reel-frame iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.reel-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 2.5px solid #fff;
  border-radius: 999px;
  background: #0f0f0f;
  color: #fff;
  font: 800 14px/1 var(--display);
  letter-spacing: 0.02em;
  cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  transition: border-color 0.2s, color 0.2s;
}
.reel-sound:hover { border-color: #f9ae36; color: #f9ae36; }
.reel-sound svg { display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.reel-sound .spk { fill: currentColor; }
.reel-sound .cross { display: none; }
.reel-sound.is-muted .wave { display: none; }
.reel-sound.is-muted .cross { display: inline; }
.reel-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 400 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
.reel-close:hover { border-color: #f9ae36; color: #f9ae36; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .drone .blade, .pad-icon, .pad-light, .pad-arrow, .arrow-label { animation: none !important; }
}

/* Seite passt in die Fensterhöhe (fit.js): keine Scrollbalken,
   Footer-Links links, damit der Landeplatz unten rechts sie nicht verdeckt */
html.fit { overflow: hidden; }
html.fit .hold { padding-block: 32px 16px; }
html.fit footer { justify-content: flex-start; gap: 16px 32px; padding-block: 16px 24px; }

/* Drei Punkte hinter "Neue Webseite in Produktion": blinken nacheinander (Ladezustand) */
.dots { margin-left: 2px; color: var(--fg); font-weight: 700; font-size: 1.35em; line-height: 0; letter-spacing: 0.08em; }
.dots span { animation: dot-blink 1.4s ease-in-out infinite; opacity: 0.3; }
.dots span:nth-child(2) { animation-delay: 0.25s; }
.dots span:nth-child(3) { animation-delay: 0.5s; }
@keyframes dot-blink { 0%, 100% { opacity: 0.3; } 35% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; opacity: 1; } }

/* Überschrift über dem Formular */
.form-title {
  margin: 12px 0 19px; /* plus 28px Abstand vom Text darüber */
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}

/* Button bleibt gesperrt, bis das Captcha bestanden ist */
.contact button:disabled:not([aria-busy="true"]) { cursor: not-allowed; }
.contact button:disabled:hover { background: #f9ae36; color: #0f0f0f; }
