:root {
  --bg: #0b1220;         /* Grundhintergrund dunkel */
  --card: #121a2b;       /* Kartenhintergrund */
  --muted: #9fb0d3;      /* Sekund�rtext */
  --text: #eaf1ff;       /* Prim�rtext */
  --brand: #5aa0ff;      /* Akzent/Brand */
  --brand-2: #22d3ee;    /* zweiter Akzent */
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --radius: 16px;
}
* { box-sizing: border-box }
html,body { height: 100% }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% -10%, rgba(90,160,255,.25), transparent 60%),
              radial-gradient(800px 400px at 90% -20%, rgba(34,211,238,.2), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none }
a:hover { text-decoration: underline }
.container { width: min(1120px, 96%); margin: 0 auto }
header {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px);
  background: linear-gradient(0deg, rgba(11,18,32,.65), rgba(11,18,32,.65));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display:flex; align-items:center; justify-content:space-between; padding: 14px 0 }
.logo { display:flex; align-items:center; gap:.6rem; font-weight: 700; letter-spacing:.2px }
.logo .mark { width: 28px; height: auto; display:block }
.header .logo .mark, header .logo .mark { width: 24px; }
.nav a.button { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #001028; padding: 10px 14px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow) }
.hero { display:grid; grid-template-columns: 1.1fr .9fr; gap: 36px; padding: 64px 0 36px; align-items: start }
.hero h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; margin: 12px 0 12px }
.hero p.lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); margin: 0 0 22px }
.pill { display:inline-flex; align-items:center; gap:.55rem; padding: 6px 10px; border-radius: 999px; background: rgba(90,160,255,.15); color: #cfe1ff; border: 1px solid rgba(90,160,255,.35); font-weight: 600; font-size: 14px }
.hero .cta { display:flex; gap:12px; flex-wrap: wrap; margin-top: 12px }
.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #001028; padding: 12px 16px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow); border: none; cursor: pointer }
.ghost { background: transparent; color: var(--text); padding: 12px 16px; border-radius: 12px; font-weight:700; border:1px solid rgba(255,255,255,.12); cursor:pointer }
/* Utility: conditional line break element (span based) */
.line-420 { display: inline; }
/* No break by default */
.line-420::before { content: ""; }
/* Bildkarte: 16px Innenabstand */
.hero .shot { background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; align-self: stretch }
/* Standard: responsiv, keine feste Höhe (für Mobile) */
.shot img { width: 100%; height: auto; display:block; object-fit: contain; border-radius: 12px }
/* Ab Desktop: Karte vollflächig mit Cropping füllen */
@media (min-width: 981px) {
  .shot img { height: 100%; object-fit: cover; }
}

.section { padding: 48px 0 }
.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow) }
.card h3 { margin: 8px 0 6px }
.card p { color: var(--muted); margin: 0 }
.kicker { text-transform: uppercase; letter-spacing: .12em; color: #c6d6ff; font-weight: 700; font-size: 12px }

.features { display:grid; grid-template-columns: 1fr 1fr; gap: 20px }
/* Align CTA buttons at bottom across feature cards */
.features .card { display: flex; flex-direction: column; gap: 18px; }
.features .card > p:last-of-type { margin-top: auto !important; }
.feat { display:flex; gap:14px; background: var(--card); border:1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding:16px }
.feat .icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex:none }

.pricing { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px }
.price { background: linear-gradient(145deg, rgba(90,160,255,.08), rgba(34,211,238,.08)); border:1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 20px; position:relative }
.price h3 { margin: 8px 0 4px }
.price .num { font-size: 36px; font-weight: 900 }
.price .per { color: var(--muted); font-size: 14px }
.price ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted) }

.faq { display:grid; grid-template-columns: 1fr 1fr; gap: 14px }
details { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px }
summary { cursor: pointer; font-weight: 700 }
footer { margin-top: 48px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.06); color: #c6d6ff }
.footgrid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px }
.copyright { margin-top: 16px; font-size: 13px; color: #95a7cc }

.badge { display:inline-flex; align-items:center; gap:.4rem; padding: 6px 8px; border-radius: 9px; background: rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.35); color:#bbf7d0; font-size:12px; font-weight:700 }

/* Responsive line-break helper for headings */
.break-450 { display: inline; }
@media (max-width: 450px) {
  .break-450 { display: block; }
  #features h2 { text-align: center; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .footgrid { grid-template-columns: 1fr 1fr; }
  /* Header CTA ausblenden, sobald Grid umbricht */
  header nav a.button { display: none; }
}

/* Header-Logo 72px breit, Leiste bleibt flach */
header .logo { position: relative; padding-left: calc(72px + .6rem); }
header .logo .mark {
  position: absolute;
  left: 0;
  top: 50%;
  width: 72px;
  height: auto;
  transform: translateY(-50%);
}
/* Bei schmalerem Layout (<=980px) Logo verkleinern, passend zum Grid-Umbruch */
@media (max-width: 980px) {
  header .logo .mark { width: 56px; }
  header .logo { padding-left: calc(56px + .6rem); }
}
@media (max-width: 480px) {
  header .logo .mark { width: 56px; }
  header .logo { padding-left: calc(56px + .6rem); }
}

/* Header: nur „Preise“ unter „Funktionen“ ab 400px und rechtsbündig */
@media (max-width: 400px) {
  /* Nav kann umbrechen und nach rechts ausrichten */
  header .nav > nav { display: flex; flex-wrap: wrap; justify-content: flex-end; padding-right: 8px; }
  /* „Preise“ unter „Funktionen“ und Text rechtsbündig */
  header .nav > nav a:nth-of-type(2) { flex: 0 0 100%; display: block; text-align: right; }
}
@media (max-width: 480px) {
  .footgrid { grid-template-columns: 1fr; }
}

/* Extra-small tweaks ≤420px */
@media (max-width: 420px) {
  /* Stack CTA buttons: primary oben, ghost darunter, ohne Vollbreite */
  .hero .cta { display: grid; grid-template-columns: auto; justify-items: start; row-gap: 8px; }
  /* Force line break for helper text below CTA */
  .line-420::before { content: "\A"; white-space: pre; }
}

/* Extra-compact header: FAQ ausblenden ≤400px */
@media (max-width: 400px) {
  header nav a[href$="faq.htm"] { display: none; }
}

/* Lightbox 2 – sichtbarer, fixer Schließen-Button und dunkler Overlay */
.lightboxOverlay { background: rgba(0,0,0,.82) !important; cursor: zoom-out; }
.lb-data .lb-number { display: none; }
.lb-data .lb-close {
  position: fixed; top: 16px; right: 16px; z-index: 99999;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6) !important; color: #fff !important;
  width: 44px !important; height: 44px !important; padding: 0 !important;
  border-radius: 12px; line-height: 1; opacity: 1 !important;
  text-decoration: none !important; font-weight: 800; font-size: 22px;
}
.lb-data .lb-close::after { content: "×"; }
.lb-data .lb-close:hover { background: rgba(0,0,0,.8) !important; }

/* Eigener Fallback-Schließen-Button */
#lb-custom-close {
  position: fixed; top: 16px; right: 16px; z-index: 100000;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(0,0,0,.7); color: #fff; font-size: 26px; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow);
}
  #lb-custom-close:hover { background: rgba(0,0,0,.85); }
  
  /* Fallback-Dialog (Lightbox-Ersatz) */
  #spp-lightbox::backdrop { background: rgba(0,0,0,.9); }
  #spp-lightbox { border: 0; padding: 0; background: transparent; width: 96vw; max-width: 1600px; }
#spp-lightbox .wrap { position: relative; }
#spp-lightbox img { width: 100%; height: auto; display: block; border-radius: 12px; }
#spp-lightbox #spp-lightbox-close {
  position: fixed; top: 16px; right: 16px; z-index: 100001;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  color: #fff; background: rgba(0,0,0,.7); font-size: 26px; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow);
}
#spp-lightbox #spp-lightbox-close:hover { background: rgba(0,0,0,.85); }

/* Fallback-Dialog: Navigation + Bildunterschrift */
#spp-lightbox .navbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(0,0,0,.7); color: #fff; font-size: 28px; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow);
}
#spp-lightbox #spp-prev { left: 16px; }
#spp-lightbox #spp-next { right: 16px; }
#spp-lightbox .navbtn:hover { background: rgba(0,0,0,.85); }
#spp-lightbox .pane { position: relative; }
  #spp-lightbox #spp-caption {
    position: static; margin-top: 10px; padding: 0;
    background: none; color: #cfe1ff; text-align: center; font-weight: 700;
  }
  
  /* Demo-Video-Dialog */
  #demo-video-dialog::backdrop { background: rgba(0,0,0,.9); }
  #demo-video-dialog { border: 0; padding: 0; background: transparent; width: 96vw; max-width: 1200px; }
  #demo-video-dialog .wrap { position: relative; }
  #demo-video-close {
    position: fixed; top: 16px; right: 16px; z-index: 100001;
    width: 44px; height: 44px; border: 0; border-radius: 12px;
    color: #fff; background: rgba(0,0,0,.7); font-size: 26px; font-weight: 800;
    cursor: pointer; box-shadow: var(--shadow);
  }
  #demo-video-close:hover { background: rgba(0,0,0,.85); }
