/* Sponsor Eleven, Einstieg in drei Varianten. Baut auf ../origami/assets/style.css auf (Farben, Schrift, Kopf, Knopf, Feld). */

/* ---------- Gemeinsames ---------- */
.hv { position: relative; isolation: isolate; overflow: hidden; }
.hv-grund { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(9, 9, 11, .11) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 96%); mask-image: linear-gradient(#000 40%, transparent 96%); }
.hv h1 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.032em; text-wrap: balance; }
.hv-text { font-size: 18px; line-height: 1.55; color: var(--z600); text-wrap: balance; }
.hv-form { display: flex; width: 100%; max-width: 540px; flex-direction: column; }
.hv-form .einstieg-haken { margin-top: 14px; }

/* Fenster der App */
.hv-fenster { position: relative; z-index: 1; overflow: hidden; background: #fff; border: 1px solid var(--z200); border-radius: 14px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .14), 0 4px 12px rgba(0, 0, 0, .04); }
.hv-fenster::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 76px; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, 0), #fff 82%); }
.hv-fenster s11-ansicht { display: block; }
.hv-hinweis { position: absolute; right: 12px; bottom: 10px; z-index: 2; padding: 1px 8px; border: 1px solid var(--z200); border-radius: 99px; background: #fff; font-size: 11px; line-height: 16px; color: var(--z500); }

/* Signalfeld */
.sf { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s ease-out; }
.hv[data-bereit] .sf { opacity: 1; }
.sf svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sf-bahn { fill: none; stroke: rgba(31, 106, 69, .2); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; }
.sf-puls { fill: none; stroke: var(--akzent); stroke-width: 1.8; stroke-linecap: round; opacity: 0; }
.sf-knoten { position: absolute; width: 0; height: 0; }
.sf-knoten::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 99px; background: var(--akzent); opacity: .55; }
.sf-knoten::after { content: ""; position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 16px; border: 1px solid rgba(31, 106, 69, .28);
  animation: sf-ring 3.6s ease-out infinite; animation-delay: calc(var(--sf-n, 0) * -.9s); }
@keyframes sf-ring { 0% { transform: scale(.72); opacity: 0; } 25% { opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }
.sf-marke { position: absolute; left: 0; top: 0; opacity: 0; transform: scale(.55); transition: opacity 1.1s ease-out, transform 1.1s var(--weich); }
.sf-marke.da { opacity: 1; transform: none; }
.sf-marke.weg { opacity: 0; transform: scale(.8); transition-duration: .25s; }
/* Logo als Signal: halb durchsichtig, bis es losläuft */
.sf-kachel, .sf-flug { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid rgba(9, 9, 11, .08); box-shadow: 0 8px 18px -8px rgba(9, 9, 11, .22); }
.sf-kachel { position: absolute; left: -19px; top: -19px; opacity: .6; animation: sf-schweben 6s ease-in-out infinite; animation-delay: calc(var(--sf-n, 0) * -1.3s); }
.sf-kachel img, .sf-flug img { width: 24px; height: 24px; object-fit: contain; }
@keyframes sf-schweben { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.sf-schild { position: absolute; left: 0; top: 28px; transform: translateX(-50%); padding: 0 7px; border: 1px solid var(--z200); border-radius: 99px; background: rgba(255, 255, 255, .86); font-size: 12.5px; line-height: 19px; white-space: nowrap; color: var(--z700); }
.sf-flug { position: absolute; left: 0; top: 0; margin: -19px 0 0 -19px; will-change: transform, opacity; box-shadow: 0 12px 26px -8px rgba(31, 106, 69, .45); border-color: rgba(31, 106, 69, .25); }
.sf-glut { position: absolute; width: 150px; height: 36px; margin: -18px 0 0 -75px; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(47, 143, 91, .5), rgba(47, 143, 91, 0)); }

/* Entwurfshilfe: zwischen den Varianten wechseln (nicht Teil der Seite) */
.hv-wahl { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border: 1px dashed var(--z400); border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 6px 20px rgba(0, 0, 0, .1); font-size: 12px; line-height: 16px; color: var(--z500); white-space: nowrap; }
.hv-wahl a { padding: 6px 10px; border: 1px solid var(--z200); border-radius: 8px; background: #fff; font-weight: 600; color: var(--z700); text-decoration: none; }
.hv-wahl a:hover { border-color: var(--z400); }
.hv-wahl a[aria-current="page"] { border-color: var(--schwarz); background: var(--schwarz); color: #fff; }
.hv-danach { padding: 8px 0 120px; }

/* ---------- A „Zulauf“: zentriert, ganzes Fenster 16:10, Signale fallen von beiden Seiten oben ins Fenster ---------- */
.hv-a { padding-top: 44px; text-align: center; }
.hv-a h1 { max-width: 900px; margin: 0 auto; font-size: 60px; }
.hv-a .hv-text { max-width: 620px; margin: 18px auto 0; }
.hv-a .hv-form { margin: 26px auto 0; align-items: center; }
.hv-a .hv-fenster { width: min(1040px, calc(100% - 48px)); margin: 36px auto 0; aspect-ratio: 16 / 10; }
.hv-a .hv-fenster::after { height: 120px; }

/* ---------- B „Geteilt“: Text links, Liste rechts bis an den Rand, Signale landen genau in der obersten Zeile ---------- */
.hv-b { padding: 88px 0 64px; }
.hv-b-raster { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 110px; align-items: center; max-width: 1300px; margin-inline: auto; padding-inline: 24px; }
.hv-b h1 { font-size: 58px; }
.hv-b .hv-text { margin-top: 20px; max-width: 440px; }
.hv-b .hv-form { margin-top: 30px; max-width: 460px; }
.hv-b .hv-form .einstieg-haken { justify-content: flex-start; }
.hv-b-rechts { position: relative; margin-right: calc((100vw - min(100vw, 1300px)) / -2 - 24px); }
.hv-b .hv-fenster { height: 580px; border-right: 0; border-radius: 14px 0 0 14px; }
.hv-b .hv-fenster s11-ansicht { width: 1178px; margin-left: -228px; }   /* Maßstab .95, ohne Seitenleiste (240 Entwurfspixel) */
.hv-b .hv-hinweis { right: auto; left: 14px; }

/* ---------- C „Bühne“: kleine Überschrift, Liste in der Mitte, Signale von beiden Seiten, Karte Einschätzung zur neuen Zeile ---------- */
.hv-c { padding: 44px 0 72px; text-align: center; }
.hv-c h1 { margin: 0 auto; font-size: 52px; }
.hv-c .hv-text { max-width: 860px; margin: 14px auto 0; font-size: 17px; }
.hv-c .hv-form { margin: 24px auto 0; align-items: center; }
.hv-c .hv-fenster { width: 700px; max-width: calc(100% - 48px); height: 500px; margin: 34px auto 0; }
.hv-c .hv-fenster s11-ansicht { width: 1141px; margin-left: -221px; }   /* Maßstab .92, ohne Seitenleiste */
.hv-c .hv-fenster::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: 36px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%); }
/* über dem Signalfeld (z-index 3), sonst scheinen Knoten und Bahnen durch die Karte */
.hv-karte { position: absolute; z-index: 4; width: 336px; overflow: hidden; opacity: 0; text-align: left; background: #fff; border: 1px solid var(--z200); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .2), 0 4px 12px rgba(0, 0, 0, .05); }
.hv-karte .hv-beispiel { display: block; padding: 0 14px 8px; text-align: right; font-size: 11px; line-height: 15px; color: var(--z500); }

/* ---------- schmale Fenster ---------- */
/* Der eine Knoten für schmale Fenster: sitzt über dem Fenster, das Schild steht rechts neben dem Logo */
/* Er zeigt eine Meldung (Logo, Firma, Anlass), die mittig über dem Fenster auftaucht und dann als Logo in die oberste Zeile fällt.
   Ohne Meldung bleibt der Platz leer: kein einzelner Punkt, kein Ring. */
.sf-knoten.sf-kompakt { display: none; left: 50%; }
.sf-kompakt::before, .sf-kompakt::after { display: none; }
.sf-kompakt .sf-marke { display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 48px); padding: 5px 14px 5px 5px; border: 1px solid var(--z200); border-radius: 999px; background: #fff; box-shadow: 0 10px 28px -10px rgba(9, 9, 11, .28), 0 2px 6px rgba(9, 9, 11, .05); white-space: nowrap; transform: translate(-50%, -50%) translateY(10px) scale(.92); }
.sf-kompakt .sf-marke.da { transform: translate(-50%, -50%); }
.sf-kompakt .sf-marke.weg { transform: translate(-50%, -50%) scale(.96); }
.sf-kompakt .sf-kachel { position: static; flex: none; width: 32px; height: 32px; border-radius: 999px; opacity: 1; box-shadow: none; animation: none; }
.sf-kompakt .sf-kachel img { width: 20px; height: 20px; }
.sf-kompakt .sf-schild { position: static; display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; transform: none; font-size: 14px; line-height: 20px; color: var(--z500); }
.sf-kompakt .sf-schild b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--schwarz); }
.sf-kompakt .sf-schild span { flex: none; }
.sf-kompakt .sf-schild span::before { content: "·"; margin-right: 6px; color: var(--z400); }
@media (max-width: 1179px) {
  .hv-c .sf, .hv-c .hv-karte { display: none; }
  .hv-a h1 { font-size: 52px; }
  .hv-c h1 { font-size: 44px; }
}
/* Tablet hochkant und Telefon: statt der fünf Knoten neben der Überschrift ein Knoten über dem Fenster */
@media (max-width: 1023px) {
  .hv-a .sf-knoten { display: none; }
  .hv-a .sf-knoten.sf-kompakt { display: block; }
  .hv-a .hv-fenster { margin-top: 64px; }
}
@media (max-width: 1099px) {
  .hv-b .sf { display: none; }
  .hv-b-raster { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; }
  .hv-b h1 { font-size: 48px; }
}
@media (max-width: 859px) {
  .hv-b { padding-top: 48px; }
  .hv-b-raster { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hv-b-rechts { margin-right: -24px; }
  .hv-b .hv-fenster { height: 440px; }
  .hv-a h1, .hv-b h1, .hv-c h1 { font-size: 40px; }
  .hv-a .hv-fenster { aspect-ratio: auto; height: 420px; }
  /* Ausschnitt beginnt genau am Hauptbereich: Seitenleiste 240 Entwurfspixel × Maßstab 1000/1180 = 203 px (vorher 230, das schnitt „Tabelle“ an) */
  .hv-a .hv-fenster s11-ansicht { width: 1000px; margin-left: -203px; }
  .hv-c .hv-fenster { height: 420px; }
  .hv-wahl span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-knoten::after, .sf-kachel { animation: none; }
}

/* ---------- Einbau in die Seite ---------- */
.hv .einstieg-form { margin: 26px auto 0; }
.hv .einstieg-wechsel { display: none; }
.hv .marke { display: none; margin-bottom: 20px; }
@media (max-width: 1023px) { .hv .marke { display: inline-flex; } }
@media (max-width: 1179px) { #karte-wahl { display: none; } }
/* Tablet quer mit schmalem Rand (1024 bis 1179 px): Überschrift zweizeilig, damit die Knoten links und rechts frei stehen */
@media (min-width: 1024px) and (max-width: 1179px) { .hv-a h1 { max-width: 620px; } }
/* Tablet hochkant: Fenster hoch genug, dass die Karte Einschätzung unter der neuen Zeile ganz hineinpasst */
@media (min-width: 768px) and (max-width: 859px) { .hv-a .hv-fenster { height: 480px; } }
/* Telefon und schmales Tablet: Die Karte Einschätzung steht fest unter dem Fenster und überlappt dessen Unterkante. So bleibt die Liste sichtbar. */
@media (max-width: 767px) {
  .hv-a { padding-bottom: 4px; }
  .hv-a .hv-fenster { height: 372px; }
  .hv-a .hv-hinweis { display: none; }
  .hv-a .hv-karte { position: relative; left: auto; top: auto; bottom: auto; width: calc(100% - 64px); max-width: 360px; min-height: 196px; margin: -72px auto 0; }
}

/* Telefon: Das Fenster läuft nach rechts und unten weich aus, statt hart abzubrechen.
   So endet keine Spalte mitten im Wort, und unter der Karte sind weder Rand noch Ecke des Fensters zu sehen. */
@media (max-width: 767px) {
  .hv-a .hv-fenster {
    border-radius: 14px 0 0 0; border-right: 0; border-bottom: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 130px), transparent calc(100% - 40px)), linear-gradient(to right, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 130px), transparent calc(100% - 40px)), linear-gradient(to right, #000 calc(100% - 56px), transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    margin-right: 0; width: calc(100% - 24px); margin-left: 24px;
  }
  .hv-a .hv-fenster::after { display: none; }
  .hv-a .hv-karte { margin-top: -96px; }
}
