/* Forge vorstellen (werefine.de, Startseite, #forge): links Text, rechts ein Browserfenster, in dem die Seite flackernd entsteht.
   Gleicher Seitenhintergrund wie überall. Die Animation läuft einmal, sobald der Abschnitt ins Bild kommt (Skript setzt data-ready und .is-on);
   ohne Skript oder bei reduzierter Bewegung steht die fertige Seite statisch da. */
#forge { position: relative; }
.fg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.fg-copy { text-align: left; }
.fg-copy .section-title { text-align: left; margin: 0 0 var(--head-sub-gap, 1.25rem); max-width: 18ch; }
.fg-copy .label { text-align: left; margin: 0 0 var(--head-label-gap, .75rem); }
.fg-lead { margin: 0 0 1rem; max-width: 52ch; font-size: var(--lead-size, 1.02rem); line-height: 1.6; color: var(--muted); }
.fg-note { margin: 0 0 1.8rem; max-width: 52ch; font-size: .95rem; line-height: 1.6; color: var(--text); }

.fg-stage { display: flex; justify-content: center; }
.fg-win { --e: cubic-bezier(.23, 1, .32, 1); width: min(100%, 520px); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #0e151d;
  box-shadow: 0 30px 80px -30px rgba(45,255,160,.28), 0 0 0 1px rgba(255,255,255,.02); }
.fg-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .8rem; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.fg-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2b384a; }
.fg-url { margin-left: .6rem; flex: 1; max-width: 220px; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 99px; padding: .22rem .7rem; }
.fg-screen { padding: 1rem; display: grid; gap: .9rem; aspect-ratio: 16 / 11; align-content: start; }
.fg-screen u, .fg-screen s, .fg-screen b, .fg-screen em { display: block; text-decoration: none; }
.fg-nav { display: flex; justify-content: space-between; align-items: center; }
.fg-nav b { width: 54px; height: 10px; border-radius: 4px; background: var(--green); }
.fg-nav span { display: flex; gap: .55rem; }
.fg-nav u { width: 28px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.fg-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: .9rem; align-items: center; }
.fg-photo { aspect-ratio: 4 / 3; border-radius: 8px; background:
  radial-gradient(circle at 70% 28%, rgba(255,209,102,.55) 0 9%, transparent 10%),
  linear-gradient(200deg, transparent 52%, rgba(10,16,22,.55) 53%),
  linear-gradient(135deg, rgba(45,255,160,.45), rgba(76,196,255,.4)); }
.fg-h { display: grid; gap: .5rem; }
.fg-h u { height: 11px; border-radius: 4px; background: rgba(255,255,255,.88); }
.fg-h u:nth-child(2) { width: 72%; }
.fg-h s { width: 46%; height: 20px; border-radius: 99px; margin-top: .3rem; background: var(--green); }
.fg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.fg-cards u { aspect-ratio: 5 / 4; border-radius: 8px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.08); }
.fg-stars { display: flex; align-items: center; gap: .3rem; }
.fg-stars span { width: 12px; height: 12px; background: var(--amber, #ffd166); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.fg-stars em { width: 74px; height: 6px; margin-left: .5rem; border-radius: 3px; background: rgba(255,255,255,.2); }

/* Flackern: einmalig, gestaffelt, endet auf voller Deckkraft. */
.fg-win[data-ready]:not(.is-on) .fg-el { opacity: 0; }
.fg-win.is-on .fg-el { animation: fg-flick .85s linear var(--d, 0s) both; }
.fg-win.is-on .fg-bar { animation: fg-bar .7s ease-out both; }
@keyframes fg-flick { 0% { opacity: 0 } 10% { opacity: .9 } 18% { opacity: .08 } 32% { opacity: .75 } 41% { opacity: .2 } 58% { opacity: 1 } 70% { opacity: .65 } 82% { opacity: 1 } 100% { opacity: 1 } }
@keyframes fg-bar { from { opacity: 0 } to { opacity: 1 } }

@media (max-width: 900px) {
  .fg-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .fg-copy .section-title { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .fg-win .fg-el, .fg-win .fg-bar { animation: none !important; opacity: 1 !important; } }
