/* Einlasspilot website: dark mode. The normal design (light content, dark hero/navigation/footer) stays the default;
   the switch in the footer (ep.js) sets html.ep-dark and remembers it. Only the light parts change here:
   hero, navigation, departure board, footer and the demo widgets (which show a customer's website) stay as they are. */

/* the switch in the footer */
.ep-theme-switch { display: inline-flex; align-items: center; gap: 0.6rem; font: inherit; font-size: 0.85rem; color: #cbd5e1; background: none;
  border: 0; padding: 0.2rem 0; cursor: pointer; }
.ep-theme-switch[hidden] { display: none; }
.ep-ts-track { position: relative; width: 62px; height: 32px; border-radius: 999px; flex: none;
  background: linear-gradient(135deg, #7dd3fc, #fcd34d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 2px 6px rgba(0, 0, 0, .25);
  transition: background .4s; overflow: hidden; }
html.ep-dark .ep-ts-track { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.ep-ts-track i { position: absolute; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .4s, transform .5s; }
.ep-ts-track i:nth-child(1) { width: 3px; height: 3px; left: 10px; top: 8px; }
.ep-ts-track i:nth-child(2) { width: 2px; height: 2px; left: 18px; top: 19px; }
.ep-ts-track i:nth-child(3) { width: 2px; height: 2px; left: 26px; top: 10px; }
html.ep-dark .ep-ts-track i { opacity: .9; }
.ep-ts-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #f59e0b; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), background .4s, color .4s; }
html.ep-dark .ep-ts-knob { transform: translateX(30px); background: #e0e7ff; color: #4338ca; }
.ep-ts-knob svg { width: 16px; height: 16px; position: absolute; transition: opacity .3s, transform .45s; }
.ep-ts-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
html.ep-dark .ep-ts-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
html.ep-dark .ep-ts-moon { opacity: 1; transform: none; }
.ep-theme-switch:hover .ep-ts-track { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 4px rgba(99, 102, 241, .25); }
.ep-theme-switch:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 4px; border-radius: 999px; }

/* soft colour change while switching (only then, so normal hovers keep their own timing) */
html.ep-theme-fade, html.ep-theme-fade *, html.ep-theme-fade *::before, html.ep-theme-fade *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important; }

/* ---- dark mode ------------------------------------------------------------------------------------------------ */
html.ep-dark { color-scheme: dark; background: #0c1222; }
html.ep-dark body { background: #0c1222 !important; }
html.ep-dark .ep-page { --ep-ink: #e8edf6; --ep-muted: #9aa8be; --ep-line: rgba(148, 163, 184, 0.16); color: var(--ep-ink); background: #0c1222; }
html.ep-dark .ep-page :is(h1, h2, h3, h4) { color: inherit; }
html.ep-dark .ep-page a:not(.wp-block-button__link) { color: #93c5fd; }
html.ep-dark .ep-nav a, html.ep-dark .ep-footer a { color: #94a3b8; }
html.ep-dark .ep-nav .ep-navlinks a { color: #cbd5e1; }
html.ep-dark .ep-nav a:hover, html.ep-dark .ep-footer a:hover, html.ep-dark .ep-nav .ep-navlinks a.ep-current { color: #fff; }
html.ep-dark .ep-kicker { color: #60a5fa !important; }

/* sections and cards */
html.ep-dark .ep-soft { background: #10182d !important; }
html.ep-dark :is(.ep-card, .ep-fgroup, .ep-contact-card, .ep-leg-card, .ep-bubble, .ep-bubble::before) {
  background: #141d35; border-color: var(--ep-line); }
html.ep-dark :is(.ep-card, .ep-fgroup, .ep-contact-card, .ep-leg-card) { box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8); }
html.ep-dark .ep-card:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 44px -20px rgba(59, 130, 246, .45); }
html.ep-dark .ep-icon img { background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(124, 58, 237, .22)); border-color: rgba(96, 165, 250, .3); }
html.ep-dark :is(.ep-features li, .ep-checks li, .ep-legal p, .ep-bubble) { color: #cbd5e1; }
html.ep-dark .ep-bubble b { color: #fff; }
html.ep-dark :is(.ep-note, .ep-tip) { background: rgba(59, 130, 246, .12); border-color: rgba(96, 165, 250, .4); color: #bfdbfe !important; }
html.ep-dark .ep-browser { background: #1e293b; }

/* FAQ */
html.ep-dark .ep-faq details { background: #141d35; border-color: var(--ep-line); }
html.ep-dark .ep-faq details[open] { border-color: rgba(96, 165, 250, .5); box-shadow: 0 10px 30px -20px rgba(59, 130, 246, .8); }
html.ep-dark .ep-faq summary::after { color: #60a5fa; }

/* forms (contact page) */
html.ep-dark .ep-form :is(input, select, textarea) { background: #0c1222; border-color: #334155; color: var(--ep-ink); }
html.ep-dark .ep-form :is(input, select, textarea)::placeholder { color: #64748b; }
html.ep-dark .ep-form .ep-consent { color: #cbd5e1; }

/* "Ablauf": track of the flying rocket */
html.ep-dark .ep-track { background: #1e293b; }

/* home page: flight route, tabs */
html.ep-dark .ep-route-bg { stroke: #334155; }
html.ep-dark .ep-leg-dot { background: #141d35; border-color: #334155; color: #94a3b8; }
html.ep-dark .ep-leg.ep-reached .ep-leg-dot { background: linear-gradient(135deg, #3b82f6, #7c3aed); border-color: transparent; color: #fff; }
html.ep-dark .ep-leg-chips li { color: #c7d2fe; background: rgba(99, 102, 241, .16); border-color: rgba(129, 140, 248, .35); }
html.ep-dark .ep-route-goal { background: linear-gradient(90deg, #3b82f6, #7c3aed); }
html.ep-dark .ep-nb-tab { background: #141d35; border-color: var(--ep-line); color: #cbd5e1; }
html.ep-dark .ep-nb-tab[aria-selected="true"] { background: #f8fafc; color: #0f172a; border-color: #f8fafc; }
html.ep-dark .ep-nb-anim { box-shadow: 0 0 0 1px rgba(148, 163, 184, .16); }

/* demo page: the try-it steps and the embed tabs follow the dark mode; the customer website (.ep-club) stays as it is */
html.ep-dark .ep-try-step { background: #141d35; border-color: var(--ep-line); }
html.ep-dark .ep-try-ticket { background: #0c1222; border-color: var(--ep-line); }
html.ep-dark .ep-try-ticket.is-vip { background: rgba(251, 191, 36, .1); border-color: rgba(252, 211, 77, .5); }
html.ep-dark .ep-try-scan:disabled { background: #1e293b; color: #64748b; }
html.ep-dark .ep-embed-tabs { background: #141d35; }
html.ep-dark .ep-embed-tabs button { color: #94a3b8; }
html.ep-dark .ep-embed-tabs button[aria-selected="true"] { background: #f8fafc; color: #0f172a; }
html.ep-dark .ep-club { --ep-ink: #2d2a24; color: #2d2a24; }

/* price page */
html.ep-dark :is(.ep-price, .ep-plan) { background: #141d35; border-color: var(--ep-line); }
html.ep-dark :is(.ep-price-top, .ep-plan-business) { background: linear-gradient(#141d35, #141d35) padding-box, var(--ep-grad) border-box; border-color: transparent; }
html.ep-dark .ep-plan-first { background: #0b1122; }
html.ep-dark :is(.ep-price-limit, .ep-plan-name) { color: #f1f5f9; }
html.ep-dark :is(.ep-included li, .ep-plan ul) { color: #cbd5e1; }
