/* ==========================================================================
   Referenz yoggl – baut auf case-db.css auf
   Zweitfarbe: Koralle-Pink aus der yoggl-Marke
   ========================================================================== */
.yg-page { --db: #E8455A; --db-hi: #FF6B7D; --db-soft: #FDE7EA; }
.yg-page .db-accent { background: linear-gradient(120deg, #E8455A, #FF6B7D 55%, #FFA07A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yg-page .db-live i { background: var(--db); box-shadow: 0 0 0 4px rgba(232, 69, 90, .2); }
.yg-page .section-dark .ap-num { background-image: linear-gradient(120deg, #FFC4CC 0%, var(--db-hi) 50%, var(--db) 100%); }
.yg-page .db-title { font-size: clamp(2.75rem, 6.4vw, 5.75rem); }
.yg-page .db-facts dt { font-size: clamp(2rem, 3.6vw, 3.25rem); }

/* ---------- Telefonrahmen ---------- */
.yg-phone { position: relative; margin: 0; }
.yg-phone img { display: block; width: 100%; height: auto; border-radius: 34px; border: 8px solid #1C1C21; box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08); background: #000; }
.yg-phone figcaption { margin-top: 16px; text-align: center; font-size: .9375rem; font-weight: 600; color: var(--on-dark-2); }

/* 01: drei Telefone, das mittlere vorn */
.yg-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); max-width: 980px; margin: 0 auto; align-items: center; }
.yg-phones .yg-phone { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.yg-phones .p2 { transform: translateY(40px) scale(1.06); z-index: 1; }
.yg-phones.is-inview .yg-phone { opacity: 1; transform: none; }
.yg-phones.is-inview .p2 { transform: scale(1.06); transition-delay: .15s; }
.yg-phones.is-inview .p3 { transition-delay: .3s; }
.yg-chip { position: absolute; z-index: 2; padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 700; white-space: nowrap; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .5s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.yg-chip.c1 { left: -24px; top: 30%; }
.yg-chip.c2 { right: -18px; top: 16%; }
.yg-phones.is-inview .yg-chip { opacity: 1; transform: none; }
.yg-phones.is-inview .c1 { transition-delay: 1s; } .yg-phones.is-inview .c2 { transition-delay: 1.4s; animation: yg-float 3.2s ease-in-out 2s infinite; }
@keyframes yg-float { 50% { transform: translateY(-6px); } }

/* 02: Beratung */
.yg-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.yg-h { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.045em; line-height: 1.03; color: #fff; }
.yg-left { margin-left: 0; margin-right: 0; }
.yg-steps { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.yg-steps li { display: flex; align-items: center; gap: 14px; font-size: 1.125rem; font-weight: 600; color: #fff; }
.yg-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(232, 69, 90, .16); color: var(--db-hi); font-size: .875rem; }
.yg-solo { max-width: 320px; justify-self: center; }
.yg-tap { position: absolute; left: 82%; top: 40.2%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255, 107, 125, .55); box-shadow: 0 0 0 0 rgba(255, 107, 125, .6); opacity: 0; }
.yg-solo.is-inview .yg-tap { animation: yg-tap 3.6s ease-in-out 1s infinite; }
@keyframes yg-tap { 0%, 20% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 125, .6); } 55% { opacity: .9; box-shadow: 0 0 0 22px rgba(255, 107, 125, 0); } 70%, 100% { opacity: 0; } }

/* 03: Beteiligung – drei Karten mit Pfeilen */
.yg-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: none; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.yg-flow li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1), border-color .5s var(--ease); }
.yg-flow li + li::before { content: ""; position: absolute; left: -29px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.yg-flow.is-inview li { opacity: 1; transform: none; }
.yg-flow.is-inview .f2 { transition-delay: .5s; } .yg-flow.is-inview .f3 { transition-delay: 1s; }
.yg-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--db-soft); color: var(--db); }
.yg-ic .icon { width: 22px; height: 22px; }
.f2 .yg-ic { background: #FBEFD9; color: #A15C07; }
.f3 .yg-ic { background: #E7F4EC; color: #1E7A3E; }
.yg-flow.is-inview .f3 { border-color: rgba(30, 122, 62, .35); transition-delay: 1s; }
.yg-n { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.yg-flow b { font-size: 1.1875rem; letter-spacing: -0.02em; }
.yg-flow small { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.yg-flow + .ap-tiles { margin-top: 48px; }

/* 04: Verwaltung */
.yg-browser { max-width: 1080px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #111; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .8s var(--ease), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.yg-browser.is-inview { opacity: 1; transform: none; }
.yg-browser .db-ed-bar { background: #1A1A1E; border-bottom-color: #26262B; color: var(--on-dark-2); }
.yg-browser .db-ed-bar span { color: #fff; }
.yg-browser img { display: block; width: 100%; height: auto; }
.yg-admin-tiles { margin-top: 20px; }

@media (max-width: 960px) {
  .yg-split { grid-template-columns: 1fr; }
  .yg-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .yg-chip { display: none; }
}
@media (max-width: 640px) {
  .yg-phones { grid-template-columns: 1fr; max-width: 280px; gap: 28px; }
  .yg-phones .p2, .yg-phones.is-inview .p2 { transform: none; }
  .yg-phone img { border-width: 6px; border-radius: 28px; }
  .yg-flow { grid-template-columns: 1fr; gap: 34px; }
  .yg-flow li + li::before { left: 50%; top: -24px; margin: 0 0 0 -7px; transform: rotate(135deg); }
}
@media (prefers-reduced-motion: reduce) {
  .yg-phones .yg-phone, .yg-chip, .yg-browser { opacity: 1 !important; transform: none !important; }
  .yg-tap { display: none; }
}
/* Wort-Kacheln: lange Wörter passen in die Kachel */
.yg-page .ap-tiles .ap-num { font-size: clamp(2.5rem, 4.6vw, 4.25rem); white-space: normal; overflow-wrap: anywhere; }
