/* common-trust.css — shared base for trust/closing pages (Sicherheit, Preise, Über uns, Kontakt) */
:root {
  --bg-base: #0a0e1a; --bg-elevated: #111827; --bg-overlay: #0f172a; --bg-subtle: #060912;
  --bg-highlight: #1e293b;
  --border-subtle: #1f2937; --border-default: #334155; --border-strong: #475569;
  --text-primary: #ffffff; --text-secondary: #cbd5e1; --text-muted: #94a3b8; --text-disabled: #64748b;
  --primary-400: #fbbf24; --primary-500: #f59e0b; --primary-600: #d97706;
  --info-400: #60a5fa; --info-500: #3b82f6;
  --violet-400: #c084fc; --violet-500: #a855f7; --violet-600: #9333ea;
  --teal-400: #2dd4bf; --teal-500: #14b8a6;
  --success: #10b981; --danger: #ef4444;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-base); color: var(--text-primary); font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; }
::selection { background: rgba(245,158,11,0.4); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
.mono { font-family: "JetBrains Mono", monospace; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; position: relative; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.subline { color: var(--text-secondary); font-size: 18px; line-height: 1.6; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all 180ms ease-out; min-height: 44px; }
.btn-primary { background: var(--primary-500); color: #0a0e1a; box-shadow: 0 0 40px rgba(245,158,11,0.22), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover { background: var(--primary-400); box-shadow: 0 0 60px rgba(245,158,11,0.4); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1px solid var(--border-default); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.btn-ghost { color: var(--text-secondary); padding: 12px 8px; }
.btn-ghost:hover { color: var(--text-primary); }

/* "Nach Pilotphase"-Hinweis — wird sichtbar an Demo-Buttons gehängt.
   - <a class="btn ..." data-after-pilot> rendert einen Badge ÜBER dem Button (oben rechts).
   - <div class="with-pilot-note"><a class="btn">…</a></div> rendert eine Zeile UNTER dem Button. */
.btn[data-after-pilot] { position: relative; overflow: visible; }
.btn[data-after-pilot]::after {
  content: "Nach Pilotphase";
  position: absolute;
  top: -12px; right: -12px;
  background: #ef4444;
  border: 2px solid #fff;
  color: #ffffff;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(239,68,68,0.55), 0 0 0 1px rgba(239,68,68,0.3);
  pointer-events: none;
  animation: pilotPulse 2.4s ease-in-out infinite;
}
@keyframes pilotPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(239,68,68,0.55), 0 0 0 0 rgba(239,68,68,0.55); }
  50%      { box-shadow: 0 4px 14px rgba(239,68,68,0.55), 0 0 0 8px rgba(239,68,68,0); }
}
.with-pilot-note { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.with-pilot-note.center { align-items: center; }
.pilot-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
  color: var(--violet-400);
  background: rgba(168,85,247,0.10);
  border: 1px solid rgba(168,85,247,0.32);
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}
.pilot-note::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-400); box-shadow: 0 0 6px var(--violet-400);
}
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 9999px; font-size: 12px; font-weight: 500; background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.pill-roadmap { background: rgba(168,85,247,0.10); border-color: rgba(168,85,247,0.30); color: var(--violet-400); }

/* ───────── Global Header ───────── */
header.site {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,14,26,0.72);
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(245,158,11,0);
  transition: border-color 220ms ease, box-shadow 260ms ease, background 220ms ease;
}
header.site.scrolled {
  background: rgba(10,14,26,0.86);
  border-bottom-color: rgba(245,158,11,0.22);
  box-shadow:
    0 1px 0 rgba(245,158,11,0.10),
    0 6px 24px -8px rgba(245,158,11,0.18),
    0 0 32px rgba(245,158,11,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); display: grid; place-items: center; color: #0a0e1a; font-weight: 900; font-size: 16px; box-shadow: 0 0 20px rgba(245,158,11,0.35); }
.logo-img { height: 44px; width: auto; display: block; }
.foot-brand-col .logo-img { height: 52px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: 6px; transition: color 150ms, background 150ms; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link-trigger { background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.mega-wrap.open .nav-link-trigger { color: var(--text-primary); background: var(--bg-elevated); }
.mega-wrap.open .nav-link-trigger svg { transform: rotate(180deg); }
.nav-link-trigger svg { transition: transform 200ms ease; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ───────── Mega Menu ───────── */
.mega-wrap { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(1140px, calc(100vw - 48px));
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 22px 0;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02),
    0 0 60px rgba(245,158,11,0.08);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.mega.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.mega::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(15,23,42,0.96);
  border-left: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 20px;
}
.mega-group { padding-bottom: 4px; }
.mega-group-h {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em;
  margin: 4px 12px 8px;
}
.mega-items { display: flex; flex-direction: column; gap: 2px; }
.mega-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 9px;
  transition: background 140ms ease;
}
.mega-item:hover { background: var(--bg-elevated); }
.mega-ic {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 7px;
  display: grid; place-items: center;
  border: 1px solid;
  margin-top: 1px;
}
.mega-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: inline-flex; align-items: center; gap: 8px; }
.mega-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(168,85,247,0.16); color: var(--violet-400); border: 1px solid rgba(168,85,247,0.30); }
.mega-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

.mega-foot {
  margin: 14px -22px 0; padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(245,158,11,0.04);
  border-radius: 0 0 13px 13px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.mega-foot-text { font-size: 12.5px; color: var(--text-muted); }
.mega-foot-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--primary-400);
  transition: gap 150ms ease;
}
.mega-foot-link:hover { gap: 10px; color: var(--primary-500); }

/* Page-Hero shared */
.ph { position: relative; padding: 96px 0 72px; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 70%);
}
.ph-inner { position: relative; z-index: 2; max-width: 760px; }
.ph-inner.center { margin: 0 auto; text-align: center; }
.ph h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 800; margin: 16px 0 18px; background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ph h1 .acc-amber { color: var(--primary-500); -webkit-text-fill-color: var(--primary-500); }
.ph h1 .acc-violet { color: var(--violet-400); -webkit-text-fill-color: var(--violet-400); }
.ph h1 .acc-teal { color: var(--teal-400); -webkit-text-fill-color: var(--teal-400); }
.ph-sub { color: var(--text-secondary); font-size: 19px; max-width: 580px; }
.ph-inner.center .ph-sub { margin-left: auto; margin-right: auto; }
.ph-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.ph-inner.center .ph-cta { justify-content: center; }

/* ───────── Footer (4 cols + brand) ───────── */
footer.site { background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); padding: 72px 0 32px; }
.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 3fr;
  gap: 64px;
  margin-bottom: 48px;
}
.foot-brand-col { max-width: 320px; }
.foot-brand-col .logo { font-size: 20px; }
.foot-blurb { font-size: 13.5px; color: var(--text-muted); margin-top: 16px; line-height: 1.65; }
.foot-meta { margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; color: var(--text-secondary); }
.foot-col a { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-muted); padding: 5px 0; transition: color 150ms; }
.foot-col a:hover { color: var(--text-primary); }
.foot-col .foot-all { color: var(--primary-400); font-weight: 600; margin-top: 4px; transition: gap 150ms ease, color 150ms ease; }
.foot-col .foot-all:hover { color: var(--primary-500); gap: 10px; }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  font-size: 12.5px; color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}
.foot-version { color: var(--text-disabled); font-size: 11.5px; }

/* Section heads */
.sect-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sect-head.left { margin-left: 0; text-align: left; }
.sect-head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; margin-bottom: 14px; }

/* ───────── Hamburger + Bottom Sheet (mobile nav) ───────── */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 150ms ease, border-color 150ms ease;
}
.hamburger:hover { background: var(--bg-highlight); border-color: var(--border-default); }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 998;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--bg-overlay);
  border-top: 1px solid var(--border-default);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5), 0 -1px 0 rgba(245,158,11,0.18);
}
.sheet.open { transform: translateY(0); }
.sheet-grab {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border-default);
  margin: 10px auto 0;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.sheet-close {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-secondary);
  transition: color 150ms ease, background 150ms ease;
}
.sheet-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  -webkit-overflow-scrolling: touch;
}
.sheet-section + .sheet-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.sheet-section-h {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.10em;
  margin: 0 8px 10px;
}
.sheet-mod, .sheet-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  min-height: 52px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: background 140ms ease;
}
.sheet-mod:hover, .sheet-link:hover { background: var(--bg-elevated); }
.sheet-mod-ic {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 7px;
  display: grid; place-items: center;
  border: 1px solid;
}
.sheet-mod-name { flex: 1; }
.sheet-mod > svg:last-child, .sheet-link > svg:last-child {
  margin-left: auto;
  color: var(--text-muted);
}
.sheet-link { font-weight: 600; }
.sheet-all { color: var(--primary-400); font-weight: 600; margin-top: 6px; }
.sheet-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}
.sheet-foot .btn { justify-content: center; min-height: 48px; }

/* ───────── Mobile Pass (≤1024px) ───────── */
@media (max-width: 1024px) {
  /* Header collapses to logo + hamburger */
  .nav-links { display: none; }
  .mega { display: none; }
  .nav-login, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav { gap: 12px; }

  /* Section padding hard-switch */
  .section { padding: 80px 0; }
  .container, .container-narrow { padding: 0 24px; }

  /* Hero */
  .ph { padding: 64px 0 48px; }
  .ph h1 { font-size: clamp(34px, 7vw, 44px); }
  .ph-sub { font-size: 17px; }

  /* Section heads */
  .sect-head { margin-bottom: 40px; }

  /* Touch targets — buttons, nav links, footer links all ≥44px */
  .btn { min-height: 48px; padding: 14px 20px; }
  .foot-col a { padding: 8px 0; min-height: 36px; }

  /* Footer collapses */
  .foot-top { grid-template-columns: 1fr; gap: 36px; margin-bottom: 36px; }
  .foot-brand-col { max-width: none; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  footer.site { padding: 56px 0 28px; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .foot-bot { flex-direction: column; align-items: flex-start; }
  .container, .container-narrow { padding: 0 20px; }
  .ph h1 { font-size: clamp(32px, 9vw, 40px); }
  .sheet-foot { grid-template-columns: 1fr; }
}

/* ───────── Helpers for prototype-specific mobile rules ───────── */
@media (max-width: 1024px) {
  .mobile-stack { grid-template-columns: 1fr !important; gap: 32px !important; }
  .mobile-center { text-align: center; }
  .mobile-hide { display: none !important; }
}
