/* =========================================================================
   Unterseiten closinghub.de, Stufe 100k (ab 11.10.2026)
   Liegt ueber unterseite-hell.css und start-100k.css.
   Regeln: im lila Kopf Raster statt Ringe (Tobias 11.10.2026), Glas-Icons
   in fester Box, nur frei stehende Glasobjekte laufen beim Scrollen mit.
   Gliederung:
     1. Kopf mit Raster und Clip
     2. Glaskarten
     3. Ablauf synchron zum Clip
     4. Tastenfeld der Ergebnisse
     5. Handy
   ========================================================================= */

/* ---------- 1. Kopf mit Raster und Clip ---------------------------------- */
.u-ringe { display: none; }
.u-punkte {
  background-image: linear-gradient(rgba(192, 165, 251, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(192, 165, 251, .14) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 100% 0%, #000 15%, transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 100% 0%, #000 15%, transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, #000 10%, transparent 70%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
.u-clip-fenster { -webkit-mask-image: none; mask-image: none; bottom: auto; overflow: hidden; border-radius: 16px 0 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 60px 120px -50px rgba(5, 2, 15, .9); }
.u-clip-fenster .hero-clip { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; }
.uh-glas { width: 118px; right: 24px; top: -6px; rotate: -10deg; filter: drop-shadow(0 26px 30px rgba(5, 2, 15, .55)); }

/* ---------- 2. Glaskarten ------------------------------------------------ */
/* Ruhiger, heller Kopf statt Farbverlauf; Glas-Icon in gleich grosser Box. */
.u-kat--glas .u-kat-kopf { background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(108, 43, 242, .08), transparent 70%), linear-gradient(160deg, var(--tint-weak), var(--paper) 70%); }
.u-glas { width: 60px; height: 60px; border-radius: 16px; background: var(--paper); box-shadow: 0 10px 24px -14px rgba(76, 29, 149, .5), inset 0 0 0 1px var(--line); }
.u-glas img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(76, 29, 149, .25)); }

/* ---------- 3. Ablauf synchron zum Clip ---------------------------------- */
.ablauf { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px; align-items: center; }
.ab-links h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -.035em; }
.ab-links h2 em { font-style: normal; color: var(--accent); }
.ab-links .lead { margin-top: 16px; }
.sync { display: grid; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.sync li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--rahmen); overflow: hidden; cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.sync li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sync h3 { font-size: 17px; color: var(--ink-2); transition: color .3s var(--ease); }
.sync p { margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.sy-nr { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-mid); color: var(--accent); font: 600 15px/1 Outfit, sans-serif; transition: all .3s var(--ease); }
.sy-balken { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--fort, 0%); background: linear-gradient(90deg, var(--accent-soft), var(--accent)); }
.sync li.aktiv { background: linear-gradient(120deg, var(--tint), var(--paper) 85%); border-color: var(--accent-soft); box-shadow: 0 18px 36px -26px rgba(108, 43, 242, .55); }
.sync li.aktiv h3 { color: var(--ink); }
.sync li.aktiv .sy-nr, .sync li.fertig .sy-nr { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(108, 43, 242, .18); }
.sync li.fertig .sy-balken { width: 0; }
.ab-rechts { position: relative; }
.fenster--nah { margin: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 0 0 1px var(--rahmen), 0 50px 100px -50px rgba(60, 30, 120, .55), 0 0 120px rgba(108, 43, 242, .18); }
.fenster--nah .fenster-leiste { display: grid; grid-template-columns: 1fr minmax(0, 46%) 1fr; align-items: center; }
.fenster--nah video { display: block; width: 100%; height: auto; aspect-ratio: 1172 / 840; background: var(--tint-weak); }
.ab-g1 { width: 100px; left: -40px; bottom: 60px; rotate: -10deg; }
.tasten { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 22px 0 0; font-size: 14.5px; color: var(--ink-3); }
.tasten span { display: inline-flex; align-items: center; gap: 6px; }
.tasten kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px; background: var(--paper); border: 1px solid #DCD6EA; box-shadow: 0 1px 0 #DCD6EA; font: 600 12.5px/1 Manrope, sans-serif; color: var(--ink); }

/* ---------- 4. Tastenfeld der Ergebnisse --------------------------------- */
/* Jede Zahl als echte Taste; die Karte bleibt ruhig weiss. */
.fk-tastenfeld .u-kat-kopf { background: var(--paper); }
.fk-tastenfeld .fk-taste { width: 64px; height: 64px; border-radius: 14px; font-size: 26px; color: var(--ink); background: linear-gradient(180deg, #fff, var(--tint-weak)); border: 1px solid #DCD6EA; box-shadow: 0 4px 0 #DCD6EA, 0 14px 24px -14px rgba(76, 29, 149, .45); }
.fk-tastenfeld .u-kat:nth-child(2) .fk-taste { color: var(--accent); }

/* ---------- 5. Handy ----------------------------------------------------- */
@media (max-width: 1100px) {
  .ablauf { grid-template-columns: 1fr; gap: 40px; }
  .uh-glas { width: 84px; right: 12px; }
}
@media (max-width: 620px) {
  .ab-links { display: contents; }
  .ablauf > *, .ab-links > * { min-width: 0; }
  .ab-links h2 { order: 1; } .ab-links .lead { order: 2; margin-top: -24px; }
  .ab-rechts { order: 3; } .sync { order: 4; margin-top: 0; }
  .ab-g1 { width: 60px; left: -6px; bottom: 50px; }
  .uh-glas { width: 58px; right: 8px; top: -18px; }
  .fk-tastenfeld .fk-taste { width: 52px; height: 52px; font-size: 22px; }
  .glas-frei { translate: none; }
}

/* ---------- 6. Telefonie und folgende Seiten ----------------------------- */
/* Kopfbild voll sichtbar statt blass ausgeblendet. */
.u-fenster-klar { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.u-fenster-klar img { opacity: 1; filter: none; }
/* Schritte mit Glas-Icon ueber der Ueberschrift. */
.u-schritt--glas .u-glas { display: grid; place-items: center; margin-bottom: 16px; }
/* Glas-Marke ausserhalb einer Buehne nimmt die Bereichsfarbe. */
.feature-marke--hell { --farbe: var(--f); --farbe-tief: var(--f); margin-bottom: 20px; }
/* Dunkles Panel auf Unterseiten (Raster, Nachtviolett). */
.u-dunkel .u-zwei-kopf { position: static; }
.u-dunkel .u-zwei-kopf h2 { color: #fff; }
.u-dunkel .u-zwei-kopf h2 em { color: var(--accent-soft); }
.u-dunkel .u-zwei-kopf .lead { color: rgba(255, 255, 255, .74); }
.u-dunkel .u-fakten { border-top-color: rgba(255, 255, 255, .12); }
.u-dunkel .u-fakten li { color: rgba(255, 255, 255, .84); border-bottom-color: rgba(255, 255, 255, .12); }
.u-dunkel .u-haken { background: rgba(192, 165, 251, .18); color: var(--accent-soft); }
.ug-schloss { width: 96px; left: 84px; right: auto; top: auto; bottom: 36px; rotate: -8deg; filter: drop-shadow(0 26px 30px rgba(5, 2, 15, .55)); }
@media (max-width: 980px) { .u-dunkel .u-zwei { grid-template-columns: 1fr; gap: 28px; } .ug-schloss { width: 70px; left: auto; right: 20px; top: 20px; bottom: auto; } }
@media (max-width: 620px) { .ug-schloss { width: 52px; right: 14px; top: 14px; } .u-dunkel .u-zwei-kopf h2 { padding-right: 56px; } }
@media (min-width: 981px) { .u-dunkel .u-zwei-kopf { padding-bottom: 150px; } }

/* Handy: Glas-Box in Karten passt in die Icon-Spalte (vorher 60 px Box in
   40 px Spalte, das Glas lag auf der Ueberschrift). */
@media (max-width: 620px) {
  .u-kat-kopf:has(.u-glas) { grid-template-columns: 52px minmax(0, 1fr); }
  .u-kat .u-glas { width: 52px; height: 52px; border-radius: 14px; }
  .u-kat .u-glas img { width: 38px; height: 38px; }
}

/* Handy: Produktbild im lila Kopf steht vollstaendig oben, die Karte
   ueberlappt es nur noch leicht von unten (vorher lag sie fast ganz darauf). */
@media (max-width: 620px) {
  .u-hero--bild .u-medien { min-height: 0; padding: 6px 20px 24px 0; }
  .u-hero--bild .u-fenster { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; border-radius: 14px; }
  .u-hero--bild .u-fenster img { height: auto; }
  .u-hero--bild .u-medien .uk { position: relative; left: 0; bottom: auto; margin-top: -56px; width: min(330px, calc(100% - 12px)); }
}
