/* WerbeSpot – Bewegungsebene: See im Hero, Wortwechsel, Scroll-Einblendungen, Lichtschein, Zeitleiste, Laufband */

/* ===== Hero mit See-Canvas ===== */
.hero { position: relative; overflow: hidden; }
#see { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--grund)); z-index: 0; pointer-events: none; }
.see-hinweis { position: absolute; z-index: 1; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--text-3); }

/* Wechselndes Wort mit Maske */
.wechsel { display: grid; overflow: hidden; height: 1.12em; line-height: 1.12; padding-bottom: .04em; }
.wechsel span { grid-area: 1 / 1; transform: translateY(110%); transition: transform .7s cubic-bezier(.16, 1, .3, 1); white-space: nowrap; }
.wechsel span.an { transform: translateY(0); }
.wechsel span.raus { transform: translateY(-110%); }

/* Überschriften Wort für Wort aufdecken */
.aufdecken .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.aufdecken .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.aufdecken.sichtbar .w > span { transform: none; }

/* Allgemeine Scroll-Einblendung */
.rein { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.rein.sichtbar { opacity: 1; transform: none; }

/* Lichtschein unter der Maus auf Karten */
.karte { position: relative; }
.karte::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 178, 122, .10), transparent 45%); }
.karte:hover::after { opacity: 1; }

/* Drehende Leuchtkante beim empfohlenen Paket */
@property --winkel { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.preis.empfohlen { border-color: transparent; }
.preis.empfohlen::after { opacity: 1; inset: -1px; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--winkel), transparent 0 70%, var(--warm) 80%, var(--warm-tief) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: drehen 5s linear infinite; }
@keyframes drehen { to { --winkel: 360deg; } }

/* ===== So geht's: Leitung und Mini-Animationen ===== */
.schritte { position: relative; }
.leitung { position: absolute; left: 0; right: 0; top: 74px; height: 4px; z-index: 0; pointer-events: none; }
.leitung svg { width: 100%; height: 40px; overflow: visible; }
.schritt { z-index: 1; }
.mini { height: 150px; margin: 18px 0 6px; border-radius: 12px; background: var(--grund-2); border: 1px solid var(--glas-rand); position: relative; overflow: hidden; }
/* 01: Adresse tippen + Fotos */
.mini .tipp { position: absolute; left: 16px; right: 16px; top: 18px; height: 38px; border-radius: 999px; border: 1px solid var(--glas-rand); padding: 0 14px;
  display: flex; align-items: center; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; }
.mini .tipp::after { content: ""; width: 2px; height: 18px; background: var(--warm); margin-left: 2px; animation: blinken 1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.mini .fotos { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.mini .fotos i { width: 54px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, #2b4a6b, #13283f); transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.mini .fotos i:nth-child(2) { background: linear-gradient(135deg, #6b4a2b, #3f2813); }
.mini .fotos i:nth-child(3) { background: linear-gradient(135deg, #2b6b4f, #133f2d); }
.mini .fotos i.da { transform: scale(1); }
/* 02: Drehbuchzeilen */
.mini .zeile { position: absolute; left: 16px; height: 10px; border-radius: 6px; background: var(--glas-rand); width: 0; transition: width .6s ease; }
.mini .zeile.warm { background: var(--warm); opacity: .8; }
.mini .marker { position: absolute; left: 14px; width: 4px; height: 22px; background: var(--warm); border-radius: 2px; transition: top .4s ease; }
/* 03: Player */
.mini .bildschirm { position: absolute; inset: 14px 14px 46px; border-radius: 8px; overflow: hidden; background: #000; }
.mini .bildschirm video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mini .leiste { position: absolute; left: 14px; right: 60px; bottom: 22px; height: 6px; border-radius: 3px; background: var(--glas-rand); overflow: hidden; }
.mini .leiste i { display: block; height: 100%; width: 0; background: var(--warm); }
.mini .runter { position: absolute; right: 16px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--gruen); color: #04130b;
  display: grid; place-items: center; font-weight: 700; animation: huepfen 1.4s ease-in-out infinite; }
@keyframes huepfen { 50% { transform: translateY(-5px); } }

/* ===== Zeitleiste hinter dem Vorteile-Bereich ===== */
.mit-zeitleiste { position: relative; overflow: hidden; }
.zeitleiste { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.spur { position: absolute; left: 0; right: 0; height: 26px; border-top: 1px solid rgba(255,255,255,.04); }
.clip { position: absolute; top: 4px; height: 18px; border-radius: 5px; background: linear-gradient(90deg, rgba(227,102,12,.18), rgba(227,102,12,.06)); border: 1px solid rgba(255,178,122,.18); }
.clip.blau { background: linear-gradient(90deg, rgba(79,140,214,.18), rgba(79,140,214,.05)); border-color: rgba(143,180,217,.18); }
.keyframe { position: absolute; top: 9px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--warm); opacity: .5; }
.kopf { position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--warm), transparent); box-shadow: 0 0 18px var(--warm); }
.kopf::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 10px solid var(--warm); }

/* ===== Laufband ===== */
.laufband { overflow: hidden; border-top: 1px solid var(--glas-rand); border-bottom: 1px solid var(--glas-rand); padding: 22px 0; margin: 10px 0 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.laufband div { display: flex; gap: 46px; width: max-content; animation: laufen 40s linear infinite; font-family: var(--serif); font-size: 34px; color: var(--text-3); white-space: nowrap; }
.laufband span::after { content: "✦"; color: var(--warm-tief); margin-left: 46px; font-size: 20px; vertical-align: middle; }
@keyframes laufen { to { transform: translateX(-50%); } }

/* ===== Linien-Icons ===== */
.icon { position: absolute; top: 24px; left: 28px; width: 44px; height: 44px; }
.icon path, .icon circle, .icon rect { fill: none; stroke: var(--warm); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease .2s; }
.sichtbar .icon path, .sichtbar .icon circle, .sichtbar .icon rect, .icon.sichtbar path, .icon.sichtbar circle, .icon.sichtbar rect { stroke-dashoffset: 0; }

/* Stimmen: Schallwelle */
.stimme .welle { display: flex; gap: 3px; align-items: center; height: 26px; margin-left: auto; }
.stimme .welle i { width: 3px; height: 6px; border-radius: 2px; background: var(--text-3); }
.stimme.spielt .welle i { background: var(--warm); animation: balken .8s ease-in-out infinite; }
.stimme.spielt .welle i:nth-child(2n) { animation-delay: .15s; } .stimme.spielt .welle i:nth-child(3n) { animation-delay: .3s; }
@keyframes balken { 50% { height: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rein, .aufdecken .w > span { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .leitung { display: none; } .laufband div { font-size: 26px; } }

/* ===== Unterseiten: ruhige See als fester Hintergrund ===== */
.see-fix { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; opacity: .45; pointer-events: none; }

/* ===== Handy-Menü ===== */
.menu-knopf { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glas-rand); background: var(--glas); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-knopf i { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-offen .menu-knopf i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-offen .menu-knopf i:nth-child(2) { opacity: 0; }
.menu-offen .menu-knopf i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-knopf { display: flex; }
  .nav .wrap > .knopf { display: none; }
  .menu-offen .nav nav { display: flex; position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 24px 24px;
    background: rgba(7, 11, 18, .97); border-bottom: 1px solid var(--glas-rand); backdrop-filter: blur(14px); }
  .menu-offen .nav nav a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--glas-rand); color: var(--text); }
  /* Überschrift: wechselndes Wort in eigene Zeile */
  h1 { font-size: 44px; }
  .hero { padding-top: 40px; }
  .hero p.leise { font-size: 18px; }
  .url-feld { flex-direction: column; border-radius: 22px; }
  .url-feld input { padding: 14px 16px; }
  .url-feld .knopf { width: 100%; }
  .geraete { height: 380px; margin-top: 10px; }
  .monitor { width: 86%; top: 20px; }
  .handy { width: 130px; border-width: 5px; border-radius: 26px; }
  .see-hinweis { display: none; }
  section { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .gross, .bento .breit { grid-column: auto; grid-row: auto; }
  .bento .karte { min-height: 190px; padding-top: 86px; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .galerie figure:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 12; }
  .stimme { flex-wrap: wrap; }
  .preis .betrag { font-size: 54px; }
  .status { flex-wrap: wrap; row-gap: 18px; }
  .status div { flex: 0 0 33.33%; }
  .status div::after { display: none; }
  .navi .knopf { flex: 1; }
  .navi { gap: 12px; }
  footer .wrap { flex-direction: column; }
}

/* Hero-Überschrift passend zur Spalte */
.hero h1 { font-size: clamp(42px, 5.6vw, 80px); }
.hero .wrap { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Rasterspalten dürfen schrumpfen (sonst Überlauf auf dem Handy) */
.auftrag-raster > *, .zusammen > *, .szene > * { min-width: 0; }
.szene textarea, .prompt-zeile input { width: 100%; min-width: 0; }
@media (max-width: 900px) { .szene { grid-template-columns: 40px 1fr; gap: 10px; } .szene .nr { font-size: 28px; } .prompt-zeile { flex-direction: column; } }

/* Änderungswünsche: Einordnung und Vorschläge */
.einordnung { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }
.einordnung.frei { background: #4FD69522; color: var(--gruen); }
.einordnung.runde { background: #E3660C22; color: var(--warm); }
.einordnung.extra { background: #FF6B6B22; color: var(--rot); }
.chat .knopf { margin-top: 10px; }
.vorschlaege { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.vorschlaege button { background: var(--glas); color: var(--text-2); border: 1px solid var(--glas-rand); border-radius: 999px; padding: 6px 14px; font: 14px var(--sans); cursor: pointer; }
.vorschlaege button:hover { border-color: var(--warm); color: var(--text); }
