/* expandAI — shared dark theme */

/* SEO noscript fallback — only shown to crawlers without JS, never to real users */
noscript {
  display: none !important;
}

:root {
  --bg: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --surface: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --text-2: #b4b4b4;
  --text-3: #8a8a8a;
  --text-4: #5e5e5e;
  --accent: #a78bfa;
  --accent-2: #c4b5fd;
  --accent-soft: rgba(167, 139, 250, 0.12);
  --accent-ring: rgba(167, 139, 250, 0.35);
  --success: #34d399;
  --danger: #f87171;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo svg { height: 40px; width: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active:hover { color: var(--accent); }
.nav-spacer { flex: 1; }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--text);
  color: #0a0a0a;
}
.btn-primary:hover { background: #fff; }
.btn-accent {
  background: var(--accent);
  color: #1a1033;
}
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }
.btn-link {
  color: var(--text-2);
  background: transparent;
  padding: 10px 8px;
}
.btn-link:hover { color: var(--text); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 500;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
.h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.muted { color: var(--text-3); }
.gradient-text {
  background: linear-gradient(180deg, #fff 0%, #888 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Extend the paint box so descenders (g, j, p, y) aren't clipped
     by the tight heading line-height. Negative margin keeps layout intact. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.accent-text { color: var(--accent); }

/* ---------- Section base ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-divider {
  border-top: 1px solid var(--border);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---------- Showcase (professional) ---------- */
.showcase-section {
  position: relative;
}
.showcase-glow {
  display: none;
}
.showcase-stage {
  position: relative;
  padding: 16px 0 32px;
}
.showcase-stage::before {
  display: none;
}
@keyframes halo-rotate {
  to { transform: rotate(360deg); }
}

.showcase-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -30px rgba(0,0,0,0.7);
  z-index: 1;
}
.showcase-frame::after,
.showcase-frame::before {
  display: none;
}

/* Spotlight — four dim strips around the focused region */
.showcase-spot-top,
.showcase-spot-bottom,
.showcase-spot-left,
.showcase-spot-right {
  position: absolute;
  background: rgba(8, 8, 12, 0.5);
  pointer-events: none;
  z-index: 2;
}
.showcase-spot-top { top: 0; left: 0; right: 0; }
.showcase-spot-bottom { left: 0; right: 0; bottom: 0; }
.showcase-spot-left { left: 0; }
.showcase-spot-right { right: 0; }

/* Detection box transitions between feature regions */
.showcase-detect {
  transition: opacity 200ms ease;
}

/* Floating callouts — professional cards */
.callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.4);
  z-index: 4;
  white-space: nowrap;
}
.callout-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(167, 139, 250, 0.10);
  color: var(--accent-2);
}
.callout-icon-gradient {
  background: rgba(167, 139, 250, 0.10);
  color: var(--accent-2);
}
.callout-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.callout-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  line-height: 1.2;
  font-feature-settings: "tnum";
}
.callout-tail {
  display: none;
}

/* Placement */
.callout-1 { top: 16%; left: -16px; }
.callout-2 { top: 8%; right: -16px; }
.callout-3 { bottom: 20%; right: -20px; }

/* AI detection overlays */
.detect {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.detect::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(167, 139, 250, 0.85);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35),
    0 0 20px rgba(167, 139, 250, 0.30),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  animation: detect-pulse 2.4s ease-in-out infinite;
}
.detect-bruch::before {
  border-color: rgba(248, 113, 113, 0.95);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35),
    0 0 24px rgba(248,113,113,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
@keyframes detect-pulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.55; }
}
.detect-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 1px;
}
.detect-bruch .detect-corner { border-color: #f87171; }
.detect-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.detect-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.detect-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.detect-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.detect-label {
  position: absolute;
  bottom: 100%;
  left: -2px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  background: var(--accent);
  color: #1a1033;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  line-height: 1;
}
.detect-label-danger {
  background: rgba(248, 113, 113, 0.96);
  color: #2a0a0a;
}
.detect-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.6;
}
.detect-conf {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  opacity: 0.7;
  padding-left: 4px;
  border-left: 1px solid currentColor;
  margin-left: 2px;
}

/* Feature chips */
.showcase-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

@media (max-width: 1100px) {
  .callout-1 { left: 8px; }
  .callout-2 { right: 8px; }
  .callout-3 { right: 16px; }
  .callout-tail { display: none; }
}
@media (max-width: 720px) {
  .callout { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  color: var(--text-3);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 0.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { max-width: 320px; margin-top: -22px; }
.footer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-flag {
  display: inline-flex;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.footer-flag > span {
  flex: 1;
  display: block;
}
.footer-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  margin-left: -16px;
}
.footer-copy {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-4);
  margin-bottom: 16px;
}
.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-social {
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease;
}
.footer-social:hover { color: var(--text); }
.footer-social-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  display: inline-block;
}
.footer-spacer { min-width: 0; }
.footer h4 {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.footer-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-col-head h4 { margin: 0; }
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
  font-family: inherit;
}
.footer-lang:hover {
  color: var(--text);
  border-color: var(--text-3);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a {
  color: var(--text-3);
  font-size: 14px;
  transition: color 160ms ease;
}
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-4);
}
.footer-bottom a { color: var(--text-4); }
.footer-bottom a:hover { color: var(--text-2); }
.footer-bottom-dot { color: var(--text-4); opacity: 0.6; }

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-spacer { display: none; }
}
@media (max-width: 800px) {
  .nav-links { display: none; }
  .footer { padding: 64px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-spacer { display: none; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-bottom { margin-top: 48px; flex-wrap: wrap; }
  .section { padding: 64px 0; }
}

/* Trusted-by logos: keep on a single row on mobile */
@media (max-width: 720px) {
  .trust-logos {
    flex-wrap: nowrap !important;
    gap: 18px !important;
  }
  .trust-logos img {
    height: auto !important;
    width: auto !important;
    max-width: 30% !important;
    max-height: 40px !important;
  }
}

/* =====================================================================
   MOBILE — prevent horizontal scrolling site-wide, keep content visible
   ===================================================================== */

/* Hard guard: nothing may produce a horizontal scrollbar.
   `clip` (not `hidden`) so it never breaks the sticky nav. */
html, body { overflow-x: clip; max-width: 100%; }

/* Long German words / headings never push past the viewport edge */
h1, h2, h3, p, li, a, span { overflow-wrap: break-word; }

@media (max-width: 800px) {
  /* Tighter side margins = more usable width */
  .container,
  .nav-inner { padding-left: 20px; padding-right: 20px; }

  /* Compact, fits-on-screen navigation bar */
  .nav-inner { gap: 16px; flex-wrap: nowrap; }
  .nav-logo { flex: 0 0 auto; }
  .nav-logo svg { height: 30px; }
  .nav-cta { gap: 8px; flex: 0 0 auto; }
  .nav-cta .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; }

  /* Headings scaled down so they fit narrow screens */
  .h1 { font-size: clamp(34px, 11vw, 56px); }
  .h2 { font-size: clamp(27px, 7vw, 40px); }

  /* On phones the forced 3-line headline breaks would overflow; let it wrap naturally */
  br.h1-wrap { display: none; }

  /* Stack multi-column card / content grids vertically.
     Targets the 1fr-based layouts (cards, splits, form rows) but
     deliberately leaves fixed comparison tables untouched. */
  [style*="repeat(2"],
  [style*="repeat(3"],
  [style*="repeat(4"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1.35fr 1fr"],
  [style*="grid-template-columns: 1fr 1.35fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Phones: keep BOTH nav buttons visible but compact them — and tighten the
   bar's side padding — so "Anmelden" and "Ausprobieren" pull in from the
   edge and stay fully on-screen without horizontal scrolling. */
@media (max-width: 600px) {
  .nav-inner { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 8px 12px; font-size: 12.5px; }
  .nav-logo svg { height: 28px; }
}

@media (max-width: 380px) {
  .nav-inner { padding-left: 10px; padding-right: 10px; }
  .nav-cta .btn { padding: 7px 10px; font-size: 12px; }
}

/* Belt-and-braces: never let the page scroll sideways on small screens. */
@media (max-width: 800px) {
  html, body { overflow-x: hidden; }
}

/* Pricing comparison table: becomes a swipeable table on mobile instead
   of clipping its last column. */
@media (max-width: 700px) {
  .cmp-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }
  .cmp-table-wrap table { min-width: 460px; }
  .cmp-table-wrap th,
  .cmp-table-wrap td {
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 12.5px !important;
  }
}
