/* Dateipfad: assets/css/bi-ohne-event.css
   Öffentliche Seiten «Ohne Event» (ohne_event.php): Übersicht /ohne-event und je Art (/wichteln-online, /termin-umfrage-online,
   /kosten-teilen-online). Gleicher Stil wie «Dein Eventplaner», «Beispiele» und «Funktionen» (Seitenkopf: includes/sections/page_hero.php). */

.egl-wrap { max-width: var(--container-wide-width, 1140px); margin: 0 auto; padding: 0 4%; box-sizing: border-box; width: 100%; }
.egl-section { margin: 0 auto 70px; }
.egl-head { text-align: center; max-width: 700px; margin: 0 auto 34px; }
.egl-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(39, 113, 200, 0.08); border: 1px solid rgba(39, 113, 200, 0.2); padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: var(--primary-color, #2771c8); margin-bottom: 12px; }
.egl-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: var(--text-main, #0f172a); margin: 0 0 10px; letter-spacing: -0.5px; line-height: 1.2; }
.egl-head p { font-size: 0.95rem; color: var(--text-muted, #64748b); margin: 0; line-height: 1.6; }

/* Knöpfe unter dem Seitenkopf */
.egl-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: -6px auto 56px; padding: 0 4%; }
.egl-cta-row .btn { padding: 14px 24px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; justify-content: center; }
.egl-cta-row .btn-primary { box-shadow: 0 8px 20px rgba(39, 113, 200, 0.25); }

/* Karten (allgemein) */
.egl-card { background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 22px; padding: 26px 24px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03); box-sizing: border-box; min-width: 0; }

/* Übersicht: die drei Arten */
.egl-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.egl-kinds.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* vier Arten: 2 × 2 statt 3 + 1 */
.egl-kind { display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--k-c); scroll-margin-top: 90px; }
.egl-kind-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--k-bg); color: var(--k-c); }
.egl-kind h3 { margin: 0; font-size: 1.3rem; font-weight: 900; color: var(--text-main, #0f172a); }
.egl-kind p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-muted, #64748b); }
.egl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.egl-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; color: var(--text-main, #0f172a); }
.egl-list i { color: #10b981; margin-top: 3px; }
.egl-kind-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.egl-kind-acts .btn { justify-content: center; font-size: 0.86rem; padding: 11px 10px; }
.egl-kind-acts .btn-primary { background: var(--k-c); border-color: var(--k-c); }

/* Schritte */
.egl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: egls; }
.egl-step { position: relative; padding-top: 30px; }
.egl-step-n { position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; color: #ffffff; background: var(--k-c, var(--primary-color, #2771c8)); box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15); }
.egl-step-ic { font-size: 1.3rem; color: var(--k-c, var(--primary-color, #2771c8)); margin-bottom: 10px; display: block; }
.egl-step b { display: block; font-size: 1.02rem; color: var(--text-main, #0f172a); margin-bottom: 6px; }
.egl-step p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--text-muted, #64748b); }

/* Zwei Karten nebeneinander (wie «Der Hintergrund / Unser Ansatz») */
.egl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.egl-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.egl-two h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 900; color: var(--text-main, #0f172a); line-height: 1.3; }
.egl-two p { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.65; color: var(--text-muted, #64748b); }
.egl-note { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 12px 14px; font-size: 0.86rem; font-weight: 700; color: var(--text-main, #0f172a); background: var(--bg-body, #f8fafc); margin-top: 14px; }

/* Ausprobieren: Handy mit dem echten Baustein (Beispiel-Modus, Eingaben bleiben im Browser)
   Aufbau: .egl-phone (Gehäuse mit Tasten) › .egl-screen (Bildschirm) › Statusleiste + Adresszeile (fest) · .egl-scroll (scrollt,
   ohne sichtbare Scrollleiste) · .egl-more (Hinweis «weiter unten», verschwindet beim Scrollen) · .egl-homebar */
.egl-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; scroll-margin-top: 90px; }
.egl-try h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900; margin: 10px 0 12px; color: var(--text-main, #0f172a); letter-spacing: -0.4px; line-height: 1.2; }
.egl-try > div > p { font-size: 0.95rem; line-height: 1.65; color: var(--text-muted, #64748b); margin: 0 0 18px; }
.egl-device { width: 100%; max-width: 364px; margin: 0 auto; }
.egl-phone {
    position: relative; background: #0b1220; border-radius: 56px; padding: 11px;
    box-shadow: inset 0 0 0 2px #2b3446, inset 0 0 0 5px #0b1220, 0 2px 0 1px #1e293b, 0 34px 60px -18px rgba(15, 23, 42, 0.45), 0 14px 28px rgba(15, 23, 42, 0.12);
}
/* Seitentasten: links laut/leise, rechts Ein/Aus */
.egl-phone::before, .egl-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #1e293b; }
.egl-phone::before { left: -3px; top: 150px; height: 92px; background: linear-gradient(#1e293b 0 40px, transparent 40px 52px, #1e293b 52px 92px); }
.egl-phone::after { right: -3px; top: 168px; height: 70px; }
.egl-screen {
    position: relative; display: flex; flex-direction: column; isolation: isolate; overflow: hidden;
    background: var(--bg-body, #f8fafc); border-radius: 45px; height: clamp(560px, calc(100vh - 150px), 720px); box-sizing: border-box;
}
.egl-status { flex: none; position: relative; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 34px; box-sizing: border-box; color: var(--text-main, #0f172a); }
.egl-time { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.2px; font-variant-numeric: tabular-nums; }
.egl-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 98px; height: 29px; border-radius: 16px; background: #0b1220; }
.egl-icons { display: inline-flex; align-items: center; gap: 5px; }
.egl-icons svg { display: block; fill: currentColor; }
.egl-url { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 14px 8px; height: 32px; border-radius: 11px; background: rgba(15, 23, 42, 0.06); font-size: 0.78rem; font-weight: 600; color: var(--text-main, #0f172a); }
.egl-url i { font-size: 0.66rem; color: var(--text-muted, #64748b); }
.egl-scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 6px 12px 34px; box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; outline: none;
}
.egl-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.egl-scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--k-c, var(--primary-color, #2771c8)); }
/* Unten weich ausblenden, solange es weitergeht */
.egl-screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 2; pointer-events: none; background: linear-gradient(rgba(248, 250, 252, 0), var(--bg-body, #f8fafc) 78%); transition: opacity 0.25s ease; }
.egl-screen.is-end::after { opacity: 0; }
.egl-more {
    position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0); background: var(--bg-card, #ffffff); color: var(--k-c, var(--primary-color, #2771c8));
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; cursor: pointer;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease; animation: eglNudge 2.2s ease-in-out infinite;
}
.egl-screen:not(.is-scrolled):not(.is-end) .egl-more { opacity: 1; pointer-events: auto; }
@keyframes eglNudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4px); } }
.egl-homebar { position: absolute; left: 50%; bottom: 8px; z-index: 3; transform: translateX(-50%); width: 124px; height: 5px; border-radius: 3px; background: rgba(15, 23, 42, 0.82); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .egl-more { animation: none; } }
/* Hinweise «Beispiel …» der Bausteine stehen schon unter dem Handy */
.egl-scroll .is-demo { display: none; }
.egl-screen .public-card { background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 22px; padding: 18px 14px; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05); margin: 0 0 14px; box-sizing: border-box; }
.egl-screen-head { text-align: center; padding: 6px 6px 14px; }
.egl-screen-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; padding: 4px 10px; border-radius: 999px; background: var(--k-bg); color: var(--k-c); }
.egl-screen-head b { display: block; font-size: 1.15rem; margin-top: 8px; color: var(--text-main, #0f172a); }
.egl-screen-head small { display: block; font-size: 0.74rem; color: var(--text-muted, #64748b); margin-top: 2px; }
/* Im Handy immer die schmale Darstellung der Bausteine (auch auf breiten Bildschirmen) */
.egl-screen .ph-title { font-size: 1.3rem; margin: 10px 0 6px; max-width: none; letter-spacing: -0.3px; }
.egl-screen .poll-opt { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "date info" "btns btns"; align-items: stretch; }
.egl-screen .poll-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.egl-screen .poll-btns.no-maybe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.egl-screen .ko-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.egl-screen .ko-tabs button { font-size: 0.74rem; flex: 1 1 auto; overflow-wrap: normal; }
.egl-screen .zm-title { font-size: 1.15rem; }
.egl-screen .gs-cards, .egl-screen .gs-opts, .egl-screen .gb-list { grid-template-columns: minmax(0, 1fr); }
.egl-try-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: 0.8rem; color: var(--text-muted, #64748b); margin: 18px 6px 0; line-height: 1.45; text-align: center; }
.egl-try-note i { color: var(--k-c, #10b981); margin-top: 2px; }

/* Stärken */
.egl-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.egl-feat-ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; background: var(--k-bg, rgba(39, 113, 200, 0.1)); color: var(--k-c, var(--primary-color, #2771c8)); margin-bottom: 14px; }
.egl-feat b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; color: var(--text-main, #0f172a); margin-bottom: 6px; }
.egl-feat p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--text-muted, #64748b); }
.egl-prem { font-size: 0.66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, 0.12); color: #b45309; display: inline-flex; gap: 4px; align-items: center; }

/* Anlässe */
.egl-uses { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.egl-use { background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); padding: 9px 16px; border-radius: 20px; font-size: 0.86rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--text-main, #0f172a); }
.egl-use i { color: var(--k-c, var(--primary-color, #2771c8)); }


/* Weitere Arten */
.egl-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.egl-others.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.egl-other { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; transition: transform 0.2s ease, border-color 0.2s ease; }
.egl-other:hover { transform: translateY(-3px); border-color: var(--k-c); }
.egl-other b { display: block; font-size: 1rem; color: var(--text-main, #0f172a); }
.egl-other span { font-size: 0.82rem; color: var(--text-muted, #64748b); line-height: 1.45; }
.egl-other .egl-kind-ic { flex-shrink: 0; width: 46px; height: 46px; font-size: 1.1rem; }

@media (max-width: 960px) {
    .egl-kinds, .egl-feats, .egl-others { grid-template-columns: 1fr 1fr; }
    .egl-steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
    .egl-try { grid-template-columns: 1fr; }
    .egl-try { gap: 36px; }
}
/* Touch: am Ende des Beispiels scrollt die Seite weiter; der Pfeil ist nur ein Hinweis (Tippen geht an den Knopf darunter) */
@media (pointer: coarse) {
    .egl-scroll { overscroll-behavior-y: auto; }
    .egl-screen:not(.is-scrolled):not(.is-end) .egl-more { pointer-events: none; width: 32px; height: 32px; bottom: 20px; font-size: 0.75rem; }
}
@media (max-width: 640px) {
    .egl-section { margin-bottom: 52px; }
    .egl-kinds, .egl-kinds.is-4, .egl-feats, .egl-others, .egl-others.is-4, .egl-two, .egl-steps { grid-template-columns: 1fr; }
    .egl-card { padding: 22px 18px; }
    .egl-cta-row { flex-direction: column; margin-bottom: 44px; }
    .egl-cta-row .btn { width: 100%; box-sizing: border-box; }
    /* Handy im Handy: etwas schmaler, damit daneben die Seite weiter scrollt; am Ende scrollt die Seite weiter */
    .egl-device { max-width: 348px; }
    .egl-phone { border-radius: 50px; padding: 9px; }
    .egl-scroll { padding-left: 9px; padding-right: 9px; }
    .egl-screen .public-card, .egl-screen .eg-card { padding-left: 12px; padding-right: 12px; }
    .egl-screen { border-radius: 41px; height: min(640px, 74vh); height: min(640px, 74svh); }
}

/* Wichteln im Handy: Beispiel der echten Seite ohne Event (includes/eigen/demo.php) */
.egl-screen .eg-card { padding: 18px 14px; border-radius: 18px; margin-bottom: 12px; box-shadow: none; }
.egl-screen .eg-two { grid-template-columns: 1fr; gap: 0; }
.egl-screen .eg-h2 { font-size: 1rem; }

/* Links zur Anleitung unter «So funktioniert's» */
.egl-guides { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 22px 0 0; font-size: 0.88rem; color: var(--text-muted, #64748b); text-align: center; }
.egl-guides a { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 999px; padding: 7px 14px; font-weight: 800; color: var(--text-main, #0f172a); text-decoration: none; }
.egl-guides a:hover { border-color: var(--primary-color, #2771c8); color: var(--primary-color, #2771c8); }
.egl-guides a i { color: var(--primary-color, #2771c8); }
