/*
 * Pool Buddy – gemeinsame Gestaltung für öffentliche Seiten
 *
 * Nur auf öffentlich erreichbaren Landing-, Ratgeber-, FAQ-, Vergleichs-,
 * Premium- und Rechtstextseiten einbinden. Nicht in der eigentlichen App.
 *
 * Ladereihenfolge:
 *   fonts.css -> tailwind.css -> a11y.css -> public-pages.css -> dark.css
 */

:root {
  --public-bg: #f8f9ff;
  --public-surface: #fff;
  --public-surface-soft: #eef7ff;
  --public-text: #0b1c30;
  --public-muted: #3e4850;
  --public-outline: #dbe5ef;
  --public-primary: #006591;
  --public-primary-bright: #0ea5e9;
  --public-primary-mid: #0284c7;
  --public-radius-sm: 15px;
  --public-radius-md: 18px;
  --public-radius-lg: 24px;
  --public-shadow: 0 8px 30px -12px rgba(14, 165, 233, .25);
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: clip;
  background: var(--public-bg);
  color: var(--public-text);
  font-family: Inter, sans-serif;
}

@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

main,
header,
footer { max-width: 100%; }

h1,
h2,
h3,
h4,
.font-title { font-family: "Plus Jakarta Sans", sans-serif; }

section[id] { scroll-margin-top: 84px; }

/* Header und Navigation */
.site-header-inner {
  width: 100%;
  max-width: 1120px;
}

.site-brand { min-width: 0; }
.site-brand span { white-space: nowrap; }

.main-nav {
  display: none;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-dropdown { position: relative; }
.nav-dropdown-summary {
  list-style: none;
  cursor: default;
  user-select: none;
}
.nav-dropdown-summary::after {
  content: '⌄';
  display: inline-block;
  margin-left: 5px;
  font-size: 13px;
  transform: translateY(-1px);
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-summary::after { transform: rotate(180deg) translateY(-1px); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 80;
  display: none;
  min-width: 215px;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  padding-top: 16px; /* bridge the gap so mouse can travel from trigger to menu */
  margin-top: 0;
  border: 1px solid rgba(190, 200, 210, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 34px rgba(11, 28, 48, .16);
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #0b1c30;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible { background: #e5eeff; color: #006591; }
html[data-theme="dark"] .nav-dropdown-menu {
  border-color: rgba(127, 208, 255, .25);
  background: rgba(11, 28, 48, .98);
}
html[data-theme="dark"] .nav-dropdown-menu a { color: #e7f0ff; }
html[data-theme="dark"] .nav-dropdown-menu a:hover,
html[data-theme="dark"] .nav-dropdown-menu a:focus-visible { background: rgba(127, 208, 255, .15); color: #7fd0ff; }

.nav-link {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--public-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: #e5eeff;
  color: var(--public-primary);
}

.nav-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.nav-cta,
.language-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  line-height: 1.15;
  white-space: nowrap;
}

.language-pill { min-width: 44px; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
}

@media (max-width: 420px) {
  .site-header-inner {
    gap: 8px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-brand span { font-size: 16px !important; }
  .nav-actions { gap: 8px; }
  .nav-cta {
    padding-right: 13px !important;
    padding-left: 13px !important;
    font-size: 13px;
  }
  .language-pill {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}

/* Marken-Elemente */
.cta,
a.bg-primary-container,
button.bg-primary-container {
  background: linear-gradient(135deg, var(--public-primary-bright) 0%, var(--public-primary-mid) 55%, var(--public-primary) 130%);
  box-shadow: 0 8px 22px -8px rgba(2, 132, 199, .55);
}

.grad-text {
  background: linear-gradient(115deg, var(--public-primary-bright) 10%, var(--public-primary) 90%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-kicker {
  margin-bottom: 8px;
  color: var(--public-primary-bright);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.soft-glow { box-shadow: var(--public-shadow); }
.hero-glow { box-shadow: 0 0 80px 20px rgba(0, 101, 145, .1); }

@media (hover: hover) {
  .soft-glow {
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .soft-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -16px rgba(2, 132, 199, .32);
  }
}

.hero-halo { position: relative; }
.hero-halo::before {
  position: absolute;
  z-index: -1;
  top: 40px;
  left: 50%;
  width: min(560px, 100%);
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(14, 165, 233, .16), transparent 75%);
  content: "";
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -250px;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .21), transparent 68%);
  content: "";
}

.bubble {
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(14, 165, 233, .18);
  border-radius: 50%;
}

/* Sprungnavigation */
.jump-chips {
  display: flex;
  max-width: 100%;
  gap: 8px;
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 20px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.jump-chips::-webkit-scrollbar { display: none; }

.jump-chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e5eeff;
  color: var(--public-primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.jump-chip:hover,
.jump-chip:active { background: #c9e6ff; }

@media (min-width: 768px) {
  .jump-chips { justify-content: center; }
}

/* Allgemeine Karten und Status */
.card,
.feature-card,
.page-card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--public-outline);
  border-radius: var(--public-radius-lg);
  background: var(--public-surface);
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--public-radius-sm);
  background: #e5f5ff;
  color: var(--public-primary);
  font-size: 24px;
}

.step,
.step-num,
.flow-step-num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--public-primary);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

.step,
.flow-step-num {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.step-num {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-live { background: #dcfce7; color: #166534; }
.status-dev { background: #fff3cd; color: #755600; }
.check { color: var(--public-primary-mid); font-weight: 800; }

.notice {
  padding: 24px;
  border-left: 5px solid var(--public-primary-bright);
  border-radius: 0 var(--public-radius-md) var(--public-radius-md) 0;
  background: #eaf7ff;
}

/* Startseite: Installations-Panels und Roadmap */
.platform-tab {
  cursor: pointer;
  transition: all .2s ease;
}
.platform-tab.active { background: var(--public-primary); color: #fff; }
.platform-tab:not(.active) { background: #e5eeff; color: var(--public-primary); }
.install-panel { display: none; }
.install-panel.active { display: flex; }
.roadmap-dot {
  width: 10px;
  min-width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--public-primary);
}

@media (min-width: 768px) {
  .install-tabs { display: none !important; }
  .install-panel { display: flex !important; flex: 1; }
  .install-panels-wrapper { display: flex; gap: 2rem; }
  .install-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    color: var(--public-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
  }
}

@media (max-width: 767px) {
  .install-panel-header { display: none; }
  .install-panels-wrapper { display: block; }
}

/* Breadcrumbs und verwandte Ratgeber */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #6e7881;
  font-size: 13px;
}
.crumbs a { color: var(--public-primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.related-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--public-outline);
  border-radius: var(--public-radius-md);
  background: var(--public-surface);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: #7dd3fc;
  box-shadow: var(--public-shadow);
}
.related-card .related-title { color: var(--public-text); font-weight: 800; }
.related-card .related-desc { margin-top: 5px; color: var(--public-muted); font-size: 14px; }

/* FAQ */
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-toc a {
  padding: 8px 13px;
  border-radius: 999px;
  background: #e5eeff;
  color: var(--public-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.faq-toc a:hover { background: #c9e6ff; }

.faq details,
details.faq-item {
  overflow: hidden;
  border: 1px solid var(--public-outline);
  border-radius: var(--public-radius-md);
  background: var(--public-surface);
}

.faq summary,
details.faq-item summary {
  position: relative;
  padding: 20px 48px 20px 22px;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 750;
  list-style: none;
}
.faq summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--public-primary);
  content: "+";
  font-size: 22px;
}
details.faq-item[open] summary::after { content: "−"; }

.faq details p,
details.faq-item .faq-body,
details.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: #52606d;
  line-height: 1.7;
}

.faq-category { margin-top: 42px; }
.faq-category h2 { margin-bottom: 16px; }

/* Tabellen */
.cause-table,
.matrix {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--public-outline);
  border-radius: var(--public-radius-md);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--public-surface);
}
.cause-table th,
.cause-table td,
.matrix th,
.matrix td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--public-outline);
  text-align: left;
  vertical-align: top;
}
.cause-table th,
.matrix thead th { background: #eaf4fb; font-weight: 800; }
.cause-table tr:last-child td,
.matrix tr:last-child td,
.matrix tr:last-child th { border-bottom: 0; }

.badge-freq {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.badge-freq.high { background: #fee2e2; color: #991b1b; }
.badge-freq.mid { background: #fef3c7; color: #92400e; }
.badge-freq.low { background: #dcfce7; color: #166534; }

/* Vergleichs- und Persona-Karten */
.cat-grid,
.persona-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
  .cat-grid,
  .persona-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cat-card,
.persona-card {
  padding: 22px;
  border: 1px solid var(--public-outline);
  border-radius: var(--public-radius-lg);
  background: var(--public-surface);
}
.cat-card .cat-title,
.persona-card h3 { color: var(--public-text); font-weight: 800; }
.cat-card .cat-price { margin-top: 6px; color: var(--public-primary); font-weight: 800; }
.cat-card ul { margin-top: 14px; }
.cat-card ul li { margin-top: 8px; color: var(--public-muted); }
.cat-card .cat-examples,
.persona-card p { color: var(--public-muted); }
.cat-emoji { font-size: 30px; }
.persona-card .persona-pick { margin-top: 14px; color: var(--public-primary); font-weight: 800; }
.cell-yes { color: #166534; font-weight: 800; }
.cell-no { color: #991b1b; font-weight: 800; }
.cell-mid { color: #92400e; font-weight: 800; }
.disclaimer {
  padding: 18px 20px;
  border-radius: var(--public-radius-md);
  background: #eef4f8;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Rechtstexte und einfache Inhaltsseiten */
.prose-section h2,
.page-card h2 { margin-top: 28px; color: var(--public-text); font-weight: 800; }
.prose-section h2:first-child,
.page-card h2:first-child { margin-top: 0; }
.prose-section p,
.prose-section li,
.page-card p,
.page-card li { color: var(--public-muted); line-height: 1.7; }
.prose-section p,
.page-card p { margin-top: 12px; }
.prose-section ul,
.page-card ul { margin: 12px 0 0 20px; list-style: disc; }
.status-pill {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}
.contact-link { color: var(--public-primary); text-decoration: underline; }

/* Ergänzungen für Klassen der neuen Seiten, die im bestehenden kompilierten
   Tailwind-Build noch nicht vorkommen. */
.font-extrabold { font-weight: 800; }
.no-underline { text-decoration-line: none; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.gap-9 { gap: 2.25rem; }
.gap-y-2 { row-gap: .5rem; }
.px-9 { padding-right: 2.25rem; padding-left: 2.25rem; }
.pt-16 { padding-top: 4rem; }
.pb-12 { padding-bottom: 3rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Dunkelmodus: zentrale öffentliche Komponenten */
html[data-theme="dark"] {
  --public-bg: #0c1929;
  --public-surface: #101d2c;
  --public-surface-soft: #101d2c;
  --public-text: #cfe3f4;
  --public-muted: #8aaec5;
  --public-outline: #1e3042;
  --public-primary: #61caf8;
  --public-primary-bright: #61caf8;
  --public-primary-mid: #22a6df;
  --public-shadow: 0 12px 32px -14px rgba(0, 0, 0, .65);
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link[aria-current="page"],
html[data-theme="dark"] .jump-chip,
html[data-theme="dark"] .faq-toc a { background: #1e3042; color: #61caf8; }

html[data-theme="dark"] .jump-chip:hover,
html[data-theme="dark"] .jump-chip:active,
html[data-theme="dark"] .faq-toc a:hover { background: #263d52; }

html[data-theme="dark"] .card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .faq details,
html[data-theme="dark"] details.faq-item,
html[data-theme="dark"] .cause-table,
html[data-theme="dark"] .matrix,
html[data-theme="dark"] .cat-card,
html[data-theme="dark"] .persona-card { background: var(--public-surface); border-color: var(--public-outline); }

html[data-theme="dark"] .icon-box { background: #0a2a45; color: #61caf8; }
html[data-theme="dark"] .notice { background: #102a3c; }
html[data-theme="dark"] .disclaimer { background: #141f2e; }
html[data-theme="dark"] .cause-table th,
html[data-theme="dark"] .matrix thead th { background: #14283a; }
html[data-theme="dark"] .cause-table th,
html[data-theme="dark"] .cause-table td,
html[data-theme="dark"] .matrix th,
html[data-theme="dark"] .matrix td { border-color: var(--public-outline); }
html[data-theme="dark"] .faq details p,
html[data-theme="dark"] details.faq-item .faq-body,
html[data-theme="dark"] details.faq-item .faq-answer { color: var(--public-muted); }
html[data-theme="dark"] .status-live,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .badge-freq.low { background: rgba(82, 216, 124, .15); color: #52d87c; }
html[data-theme="dark"] .status-dev,
html[data-theme="dark"] .badge-freq.mid { background: rgba(240, 188, 114, .15); color: #f0bc72; }
html[data-theme="dark"] .badge-freq.high { background: rgba(255, 180, 171, .15); color: #ffb4ab; }
html[data-theme="dark"] .cell-yes { color: #52d87c; }
html[data-theme="dark"] .cell-no { color: #ffb4ab; }
html[data-theme="dark"] .cell-mid { color: #f0bc72; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .soft-glow,
  .related-card,
  .nav-link,
  .jump-chip { transition: none; }
  .soft-glow:hover,
  .related-card:hover { transform: none; }
}

@media print {
  header,
  footer,
  .jump-chips,
  .nav-actions { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card,
  .feature-card,
  .page-card,
  .related-card { break-inside: avoid; box-shadow: none !important; }
}

/* ── Trust Bar ─────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--public-primary);
  padding: 7px 20px;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  max-width: 1120px;
  margin: 0 auto;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.trust-sep {
  color: rgba(255, 255, 255, .45);
}

@media (max-width: 480px) {
  .trust-sep { display: none; }
  .trust-bar-inner { gap: 4px 10px; font-size: 11px; }
}

html[data-theme="dark"] .trust-bar {
  background: #0a2a45;
}

/* ── Pool Buddy Intelligence Section ───────────────────────────────── */
.intelligence-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #071828 0%, #0b2d45 45%, #0d3d5f 100%);
  color: #fff;
}

.intelligence-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .12), transparent 68%);
  pointer-events: none;
}

.intelligence-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .07), transparent 68%);
  pointer-events: none;
}

.intel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .15);
  border: 1px solid rgba(245, 158, 11, .35);
  color: #fbbf24;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.intel-card {
  padding: 22px;
  border-radius: var(--public-radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.intel-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--public-radius-sm);
  background: rgba(245, 158, 11, .18);
  color: #fbbf24;
  font-size: 22px;
  flex-shrink: 0;
}

.intel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, .5);
  transition: box-shadow .2s ease, transform .2s ease;
}

@media (hover: hover) {
  .intel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px rgba(245, 158, 11, .6);
  }
}

.intel-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}

@media (hover: hover) {
  .intel-secondary-cta:hover { background: rgba(255, 255, 255, .15); }
}

/* ── EU Norm Badge ──────────────────────────────────────────────────── */
.eu-norm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #edfaf1;
  border: 1px solid #86efac;
  color: #166534;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="dark"] .eu-norm-badge {
  background: rgba(22, 101, 52, .15);
  border-color: rgba(134, 239, 172, .25);
  color: #4ade80;
}

.norm-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

/* ── App Callout (Ratgeber-Seiten) ──────────────────────────────────── */
.app-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--public-radius-lg);
  background: linear-gradient(135deg, #e0f4ff 0%, #eff8ff 100%);
  border: 1px solid #bae6fd;
}

html[data-theme="dark"] .app-callout {
  background: linear-gradient(135deg, rgba(14, 165, 233, .1) 0%, rgba(14, 165, 233, .05) 100%);
  border-color: rgba(14, 165, 233, .2);
}

.app-callout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--public-primary);
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

.app-callout-body strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: var(--public-text);
  margin-bottom: 4px;
}

.app-callout-body p {
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px !important;
}

.app-callout-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--public-primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.app-callout-link:hover { text-decoration: underline; }

/* ── Intelligence Highlight (inline, für funktionen.html) ───────────── */
.intel-highlight {
  background: linear-gradient(135deg, #071828 0%, #0b3550 100%);
  border-radius: var(--public-radius-lg);
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.intel-highlight::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .15), transparent 70%);
  pointer-events: none;
}

.intel-highlight h3 { color: #fff; }
.intel-highlight p { color: rgba(255, 255, 255, .75); }
.intel-highlight ul li { color: rgba(255, 255, 255, .85); }
.intel-check { color: #fbbf24; font-weight: 800; }

/* ── Erweiterte Feature-Grid ───────────────────────────────────────── */
.feature-grid-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .feature-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .feature-grid-full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.feature-tile {
  padding: 18px;
  border-radius: var(--public-radius-md);
  background: var(--public-surface);
  border: 1px solid var(--public-outline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-tile-premium {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

html[data-theme="dark"] .feature-tile {
  background: var(--public-surface);
  border-color: var(--public-outline);
}

html[data-theme="dark"] .feature-tile-premium {
  background: rgba(14, 165, 233, .08);
  border-color: rgba(14, 165, 233, .2);
}

.feature-tile-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.label-free {
  background: #dcfce7;
  color: #166534;
}

.label-premium {
  background: rgba(245, 158, 11, .15);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, .3);
}

html[data-theme="dark"] .label-free { background: rgba(22, 101, 52, .2); color: #4ade80; }
html[data-theme="dark"] .label-premium { background: rgba(245, 158, 11, .1); color: #fbbf24; border-color: rgba(245, 158, 11, .2); }

/* ══ Mobile Hamburger Menu ══════════════════════════════════════════════════ */

/* Nav-CTA auf Mobile verstecken — Platz für Hamburger schaffen */
@media (max-width: 1023px) { .nav-cta { display: none !important; } }

.hamburger-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; padding: 0;
  color: #3e4850; flex-shrink: 0;
}
@media (max-width: 1023px) { .hamburger-btn { display: flex; } }

.hbg-bars { display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.hbg-bar {
  display: block; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  transform-origin: center;
}
.hamburger-btn[aria-expanded="true"] .hbg-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hbg-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn[aria-expanded="true"] .hbg-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(11,28,48,0.45); backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s;
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(290px, 82vw); z-index: 200;
  background: #fff;
  display: block;
  box-shadow: 6px 0 24px rgba(0,0,0,0.10);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav-drawer.is-open { transform: translateX(0); }

.mobile-nav-overlay { z-index: 199; }

@media (min-width: 1024px) {
  .mobile-nav-overlay,
  .mobile-nav-drawer { display: none !important; }
}

.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px; border-bottom: 1px solid #e5eeff;
  flex-shrink: 0;
}
.mobile-nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #0b1c30;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px;
}
.mobile-nav-close {
  width: 36px; height: 36px; border: none; background: none;
  border-radius: 8px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: #3e4850;
  flex-shrink: 0; transition: background 0.15s, color 0.15s;
}
.mobile-nav-close:hover { background: #e5eeff; color: #006591; }

.mobile-nav-body { padding: 12px 12px 24px; }

.mobile-nav-link {
  display: block !important; padding: 11px 12px;
  font-family: Inter, sans-serif; font-size: 15px; font-weight: 600;
  color: #3e4850 !important; text-decoration: none !important; border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.mobile-nav-link:hover, .mobile-nav-link:active { background: #e5eeff; color: #006591 !important; }
.mobile-nav-link[aria-current="page"] { background: #e5eeff; color: #006591 !important; }

.mobile-nav-sep { display: block; height: 1px; background: #e5eeff; margin: 8px 4px; }

.mobile-nav-group-label {
  display: block !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #8aaec5;
  padding: 10px 12px 4px; margin-top: 4px;
}
