/* echtgut CI – gemeinsame Basis für alle Entwürfe
   Farben aus Logo (#3674EF), Website (Navy, Lime) und Instagram (Sky-Hintergrund, Bögen, Namensboxen).
   Kontrast-Regeln:
   - Lime nur auf Navy (13,9:1), nie als Text auf Weiß.
   - Logo-Blau für Flächen, Bögen und große Schrift. Kleine blaue Schrift auf Hell: --blue-ink (6,2:1).
   - Blau als Text auf Navy: --blue-soft (7:1). */

/* Satoshi Variable (Indian Type Foundry), selbst gehostet – keine Verbindung zu Fontshare */
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Variable.woff2") format("woff2"), url("fonts/Satoshi-Variable.woff") format("woff"), url("fonts/Satoshi-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0A1E45;
  --navy-2: #13306A;
  --navy-3: #1B3B7A;
  --blue: #3674EF;
  --blue-ink: #2557D6;
  --blue-soft: #7FA8FF;
  --lime: #CCFF00;
  --sky: #E8EFFD;
  --tint: #F3F6FD;
  --white: #FFFFFF;
  --ink: #0A1E45;
  --mute: #5B6880;
  --mute-on-navy: #A9B6CF;
  --line: #DCE4F2;
  --line-on-navy: rgba(255,255,255,.14);
  --danger: #D93F45;

  --font: "Satoshi", system-ui, sans-serif; /* Satoshi Variable (selbst gehostet, assets/fonts), Achse 300–900 */

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow: 0 1px 2px rgba(10,30,69,.06), 0 24px 48px -24px rgba(10,30,69,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
::selection { background: var(--lime); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-navy :focus-visible, .navy :focus-visible { outline-color: var(--lime); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }

/* Buttons – Mindesthöhe 48px, eine Bezeichnung pro Aktion */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 14px; border: 0; font: 700 1.02rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--lime:hover { box-shadow: 0 10px 28px -8px rgba(204,255,0,.55); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(127,168,255,.12); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--sky); }

.link { color: var(--blue-ink); font-weight: 600; text-underline-offset: 3px; }
.on-navy .link, .navy .link { color: var(--blue-soft); }

/* Logo: weißes PNG, auf hellem Grund als Navy-Monochrom */
.logo { display: block; width: 140px; height: 30px; background: var(--navy); -webkit-mask: url("https://imagedelivery.net/Jm89B8AIfQAltAp3PilZqw/ba73af02-f7a8-4407-2731-0e3e84633b00/public") left center / contain no-repeat; mask: url("https://imagedelivery.net/Jm89B8AIfQAltAp3PilZqw/ba73af02-f7a8-4407-2731-0e3e84633b00/public") left center / contain no-repeat; }
.logo--white { background: #fff; }

/* Fließtext-Einleitungen in Satoshi Light */
.hero-lede, .head p, .sec-head p, .hero-foot p, .lede { font-weight: 300; }

/* CI-Bogen (Geometrie in ci.js) */
svg.eg-arc { color: var(--blue); overflow: visible; display: block; height: auto; }

/* Namensbox wie auf Instagram */
.tag { display: inline-block; background: #fff; color: var(--blue-ink); font-weight: 700; font-size: 1rem; line-height: 1.2; padding: 10px 14px; letter-spacing: -0.01em; }
.tag small { display: block; color: var(--mute); font-weight: 500; font-size: .82rem; margin-top: 2px; letter-spacing: 0; }

/* Chip */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 700; background: var(--lime); color: var(--navy); }
.chip--sky { background: var(--sky); color: var(--blue-ink); }

/* Navigation inkl. Mobilmenü */
.nav { position: sticky; top: 0; z-index: 40; transition: background .25s, box-shadow .25s; }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; opacity: .78; padding: 10px 0; }
.nav-links a:hover { opacity: 1; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav--navy { background: var(--navy); color: #fff; }
.nav--navy.scrolled { box-shadow: 0 1px 0 var(--line-on-navy); }
.nav--light { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.nav--light.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-panel { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-end .btn { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-panel { position: absolute; left: 0; right: 0; top: 76px; padding: 8px 24px 24px; background: inherit; box-shadow: 0 20px 30px -20px rgba(10,30,69,.4); }
  .nav-panel.open { display: block; }
  .nav-panel a:not(.btn) { display: block; padding: 14px 0; text-decoration: none; font-weight: 600; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav--navy .nav-panel a:not(.btn) { border-color: var(--line-on-navy); }
  .nav-panel .btn { width: 100%; margin-top: 16px; }
}

/* Logo-Laufband mit Pause */
.ticker-row { display: flex; align-items: center; gap: 16px; }
.ticker { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 64px; align-items: center; width: max-content; animation: tick 50s linear infinite; }
.ticker:hover .ticker-track, .ticker-row.paused .ticker-track { animation-play-state: paused; }
.ticker img { height: 30px; width: auto; filter: grayscale(1); opacity: .6; }
.on-navy .ticker img { filter: brightness(0) invert(1); opacity: .5; }
.ticker-pause { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.on-navy .ticker-pause { border-color: var(--line-on-navy); }
.ticker-pause svg { width: 16px; height: 16px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 48px; padding: 22px 56px 22px 0; position: relative; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -9px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .2s var(--ease), margin .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .a { padding: 0 0 24px; color: var(--mute); max-width: 64ch; }
.faq .a ul { margin: 8px 0; padding-left: 20px; }
.on-navy.faq details, .navy .faq details { border-color: var(--line-on-navy); }
.on-navy.faq .a, .navy .faq .a { color: var(--mute-on-navy); }
.on-navy.faq summary::after, .navy .faq summary::after { border-color: var(--lime); }

/* Mobile Sticky-CTA */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; padding: 8px; background: var(--navy); border-radius: 18px; box-shadow: 0 16px 40px rgba(10,30,69,.4); transform: translateY(140%); transition: transform .3s var(--ease); }
  .mcta.show { transform: none; }
  .mcta .btn { flex: 1; }
  .mcta .call { flex: none; width: 48px; padding: 0; background: var(--navy-3); color: #fff; }
  body { padding-bottom: 88px; }
}

/* Video-Dialog */
.vdlg { border: 0; padding: 0; background: #000; border-radius: var(--r-md); width: min(1000px, 94vw); overflow: visible; }
.vdlg::backdrop { background: rgba(10,30,69,.85); }
.vdlg .ratio { position: relative; padding-top: 56.25%; border-radius: var(--r-md); overflow: hidden; }
.vdlg iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vdlg .close { position: absolute; top: -56px; right: 0; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 0; background: var(--lime); color: var(--navy); font: 700 .95rem var(--font); cursor: pointer; }

footer.ci-foot { background: var(--navy); color: var(--mute-on-navy); padding: 40px 0; font-size: .95rem; }
footer.ci-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer.ci-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer.ci-foot a { text-decoration: none; padding: 10px 0; }
footer.ci-foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
