/* ============================================================
   monovo Teaser — ein dunkler Viewport, monochrom
   ============================================================ */

/* Schriften: Inter Variable, self-hosted (DSGVO) */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304,
    U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304,
    U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design-Tokens */
:root {
  --bg: #050505;
  --planet: #020202;
  --weiss: #f4f4f3;
  --grau: #a6a6a3;
  --grau-tief: #6e6e6b;
  --linie: rgba(255, 255, 255, 0.12);
  --linie-sanft: rgba(255, 255, 255, 0.07);
  --flaeche: rgba(255, 255, 255, 0.05);
  --glow-rand: rgba(255, 255, 255, 0.55);
  --glow-nah: rgba(255, 255, 255, 0.2);
  --glow-fern: rgba(255, 255, 255, 0.09);
  --knopf-text: #0a0a0a;
  --radius-pill: 999px;
  --radius-video: 18px;
  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Grundgerüst */
* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { background-color: var(--bg); }

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

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--weiss);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Hintergrund: Sterne (Canvas) + Horizont-Bogen (CSS)
   ------------------------------------------------------------ */
#sterne {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.horizont {
  position: fixed;
  inset: auto 0 0 0;
  height: 38vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* weicher Lichtschein über dem Bogen */
.horizont::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 95% at 50% 100%, var(--glow-fern), transparent 72%);
  animation: atmen 9s ease-in-out infinite alternate;
}

/* Planet im Gegenlicht: dunkle Kurve mit hellem Randsaum */
.horizont::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  width: 220%;
  height: 300%;
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  background: var(--planet);
  box-shadow:
    0 -1px 0 var(--glow-rand),
    0 -7px 26px var(--glow-nah),
    0 -28px 90px var(--glow-fern),
    inset 0 16px 44px rgba(255, 255, 255, 0.05);
}

@keyframes atmen {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}

/* ------------------------------------------------------------
   Bühne (Hauptinhalt, zentriert)
   ------------------------------------------------------------ */
.buehne {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vh, 48px) clamp(16px, 4vw, 32px);
}

.stapel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2vh, 20px);
  width: 100%;
  max-width: 720px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-pill);
  background: var(--flaeche);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grau);
}

.badge .punkt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--weiss);
  box-shadow: 0 0 8px var(--glow-rand);
  animation: pulsieren 2.6s ease-in-out infinite;
}

@keyframes pulsieren {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Titel-Überschrift (Layout-Skizze Albin 21.09.):
   vier Zeilen, jede füllt die Spaltenbreite (Fit-to-width per cqw).
   Mobile: kompakter Zweizeiler, sonst passt die Seite nicht in einen Viewport. */
.titelspalte, .videospalte { display: contents; }

.titel {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: clamp(1.3rem, 4.4vw + 0.35rem, 1.7rem);
  line-height: 1.16;
  color: var(--weiss);
}

/* Umbruch des Mobile-Zweizeilers: „First Premium“ / „Business Hub“ */
.titel .z-premium::after { content: "\A"; white-space: pre; }

/* Beschreibung */
.beschreibung {
  font-size: clamp(0.86rem, 0.5vw + 0.7rem, 0.98rem);
  color: var(--grau);
  max-width: 52ch;
  line-height: 1.65;
}

.beschreibung strong {
  color: var(--weiss);
  font-weight: 560;
}

/* Video */
.video-rahmen {
  position: relative;
  width: min(560px, 100%);
  margin-block: clamp(4px, 1vh, 12px);
  border-radius: var(--radius-video);
  box-shadow:
    0 0 0 1px var(--linie-sanft),
    0 0 46px rgba(255, 255, 255, 0.07),
    0 22px 60px rgba(0, 0, 0, 0.55);
}

.video-rahmen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-video);
  object-fit: cover;
  background: var(--planet);
  filter: grayscale(1); /* Kundenwunsch 21.09.: Clip in Schwarz-Weiß */
}

/* monovo-Logo dezent über der oberen rechten Videoecke */
.video-logo {
  position: absolute;
  top: 5.5%;
  right: 3.5%;
  width: 13%;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

/* Ton-Knopf am Videorahmen */
.ton {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--linie);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--grau);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ton:hover { color: var(--weiss); border-color: rgba(255, 255, 255, 0.4); }

.ton svg { width: 19px; height: 19px; }

.ton .ton-an { display: none; }
.ton[aria-pressed="true"] { color: var(--weiss); }
.ton[aria-pressed="true"] .ton-aus { display: none; }
.ton[aria-pressed="true"] .ton-an { display: block; }

/* ------------------------------------------------------------
   Formular
   ------------------------------------------------------------ */
.eintragen {
  width: 100%;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eintragen .zeile {
  display: flex;
  gap: 10px;
}

.eintragen input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 20px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-pill);
  background: var(--flaeche);
  color: var(--weiss);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.eintragen input[type="email"]::placeholder { color: var(--grau-tief); }

.eintragen input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.eintragen button {
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--weiss);
  color: var(--knopf-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.eintragen button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.eintragen button:active { transform: translateY(0); }

.eintragen button:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.eintragen .hinweis {
  font-size: 0.72rem;
  color: var(--grau-tief);
}

.eintragen .hinweis a {
  color: var(--grau);
  text-underline-offset: 2px;
}

.eintragen .meldung {
  font-size: 0.9rem;
  color: var(--grau);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--flaeche);
}

.eintragen .meldung.erfolg {
  color: var(--weiss);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Honeypot: unsichtbar für Menschen */
.hp {
  position: absolute;
  left: -6000px;
  top: auto;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.fuss {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px clamp(16px, 4vw, 32px);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  font-size: 0.78rem;
  color: var(--grau-tief);
}

.fuss a { text-decoration: none; transition: color 0.2s ease; }
.fuss a:hover { color: var(--weiss); }

.fuss-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sprachen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid var(--linie-sanft);
}

.sprachen .aktiv { color: var(--weiss); font-weight: 600; }

.fuss-mitte { color: var(--grau-tief); }
.fuss-mitte a { text-decoration: underline; text-underline-offset: 2px; }

.fuss-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fuss-social a { display: inline-flex; color: var(--grau-tief); }
.fuss-social a:hover { color: var(--weiss); }
.fuss-social svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------
   Einblenden beim Laden
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: aufsteigen 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.badge.reveal { animation-delay: 0.05s; }
.titel.reveal { animation-delay: 0.16s; }
.video-rahmen.reveal { animation-delay: 0.3s; }
.beschreibung.reveal { animation-delay: 0.42s; }
.eintragen.reveal { animation-delay: 0.52s; }

@keyframes aufsteigen {
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz, 404)
   ------------------------------------------------------------ */
.unterseite {
  background:
    radial-gradient(70% 40% at 50% 115%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--bg);
}

.kopf {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 4vh, 36px) clamp(16px, 4vw, 32px) 0;
  display: flex;
  justify-content: center;
}

.kopf img { width: 128px; height: auto; opacity: 0.92; }

.recht {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 43rem;
  margin-inline: auto;
  padding: clamp(28px, 5vh, 56px) clamp(16px, 4vw, 32px) 56px;
}

.recht h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 640;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

.recht h2 {
  font-size: 1.15rem;
  font-weight: 620;
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
}

.recht h3 {
  font-size: 0.98rem;
  font-weight: 620;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.recht p {
  color: var(--grau);
  font-size: 0.93rem;
  margin-bottom: 0.85rem;
}

.recht a { color: var(--weiss); text-underline-offset: 2px; }

.recht .stand { font-size: 0.8rem; color: var(--grau-tief); }

.zurueck {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--grau);
  text-decoration: none;
  border: 1px solid var(--linie);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.zurueck:hover { color: var(--weiss); border-color: rgba(255, 255, 255, 0.35); }

/* 404 */
.fehlerseite {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

.fehlerseite .code {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--weiss);
}

.fehlerseite p { color: var(--grau); margin-top: 0.4rem; }

/* ------------------------------------------------------------
   Breakpoints
   ------------------------------------------------------------ */
@media (max-width: 560px) {
  .eintragen .zeile { flex-direction: column; }
  .eintragen button { width: 100%; }
  .fuss {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .video-rahmen { width: 100%; }
}

/* niedrige Viewports (Handys quer, kleine Laptops): kompakter stapeln.
   Wichtig: Auf schmalen Screens bleibt das Video immer exakt so breit wie
   das Formular; schrumpfen darf es bei wenig Höhe nur auf breiten Screens. */
@media (max-height: 760px) {
  .stapel { gap: 10px; }
  .buehne { padding-block: 16px; }
}

@media (max-height: 760px) and (min-width: 561px) and (max-width: 899px) {
  .video-rahmen { width: min(470px, 92%); }
}

/* sehr niedrige Viewports (z. B. iPhone SE, Safari mit Leisten):
   alles inkl. Footer ohne Scrollen, eingespart wird in den Abständen */
@media (max-height: 700px) {
  .stapel { gap: 7px; }
  .buehne { padding-block: 6px; }
  .badge { padding: 5px 14px; font-size: 0.68rem; }
  .beschreibung { font-size: 0.82rem; line-height: 1.55; }
  .eintragen { gap: 8px; }
  .fuss {
    padding-block: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    gap: 6px 18px;
  }
}

@media (max-height: 700px) and (min-width: 561px) and (max-width: 899px) {
  .video-rahmen { width: min(470px, 86%); }
  .titel { font-size: 1.15rem; }
}

/* ------------------------------------------------------------
   Zweispalter ab 900 px (Layout-Skizze Albin 21.09.):
   Überschrift links, Video mit Text und Formular rechts
   ------------------------------------------------------------ */
@media (min-width: 900px) {
  .stapel {
    display: grid;
    /* rechts wächst mit, gedeckelt auf 660 px — links bleibt so nie zu schmal */
    grid-template-columns: minmax(0, 1fr) minmax(0, min(660px, 62%));
    align-items: center;
    column-gap: clamp(44px, 5vw, 76px);
    max-width: 1140px;
    text-align: left;
  }

  .titelspalte {
    display: block;
    container-type: inline-size;
  }

  .videospalte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(14px, 2vh, 20px);
    min-width: 0;
  }

  .badge { margin-bottom: clamp(18px, 3.2vh, 30px); }

  /* Fit-to-width: jede Zeile füllt die Spaltenbreite (cqw = 1 % davon),
     Faktor = 100 / Zeilenbreite in em bei Inter 900 */
  .titel { font-size: 0; letter-spacing: 0; line-height: 1; }
  .titel .zeile {
    display: block;
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: -0.012em;
  }
  .titel .z-premium::after { content: none; }
  .titel .z-first    { font-size: 35.4cqw; }
  .titel .z-premium  { font-size: 20.9cqw; }
  .titel .z-business { font-size: 20.1cqw; }
  .titel .z-hub      { font-size: 47.5cqw; }

  .beschreibung { max-width: none; }

  .video-rahmen { width: 100%; margin-block: 0; }
}

/* Zweispalter auf niedrigen Laptops: rechte Spalte schmaler,
   damit alles inkl. Footer in den Viewport passt */
@media (min-width: 900px) and (max-height: 760px) {
  .stapel { grid-template-columns: minmax(0, 1fr) minmax(0, min(560px, 62%)); max-width: 1024px; }
}

@media (min-width: 900px) and (max-height: 700px) {
  .stapel { grid-template-columns: minmax(0, 1fr) minmax(0, min(500px, 62%)); max-width: 920px; }
  .videospalte { gap: 10px; }
}

/* sehr große Screens (QHD+): großzügiger */
@media (min-width: 2000px) and (min-height: 1100px) {
  body { font-size: 18px; }
  .stapel { max-width: 1440px; grid-template-columns: minmax(0, 1fr) minmax(0, 820px); column-gap: 96px; }
  .videospalte { gap: 26px; }
  .eintragen { max-width: 540px; }
  .fuss { font-size: 0.85rem; }
}

/* ------------------------------------------------------------
   Reduzierte Bewegung: alles ruhigstellen, Seite bleibt vollwertig
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .horizont::before, .badge .punkt { animation: none; }
  .eintragen button { transition: none; }
}
