/* Gemeinsame Landing-Styles (Startseite, /funktionen/, /wissen/).
   Wird NACH dem Inline-<style> der Seite geladen und gewinnt daher bei
   gleicher Spezifität. Seitenspezifisches bleibt inline. */

/* ── Header ─────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav .brand { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; opacity: .85; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--c-accent); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.site-nav .nav-cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--c-accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 10px;
}
.site-nav .nav-cta:hover { background: var(--c-accent-hover); color: #fff; }
.nav-menu { display: none; position: relative; }
/* Startseite stylt details/summary global für die FAQ: hier neutralisieren */
details.nav-menu { padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
details.nav-menu summary { display: block; font-weight: 400; color: inherit; }
details.nav-menu summary::after { content: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; font-size: 22px; line-height: 1;
  padding: 6px 8px; border-radius: 8px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  display: flex; flex-direction: column; min-width: 180px; padding: 6px;
  background: #fff; border: 1px solid var(--c-border, #e5e7eb); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}
.nav-menu-panel a { padding: 10px 12px; border-radius: 8px; color: #0f172a; text-decoration: none; font-weight: 500; }
.nav-menu-panel a:hover { background: var(--c-accent-soft); }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .site-nav { gap: 10px; }
  .site-nav .nav-cta { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 420px) {
  .site-nav { gap: 6px; }
  .site-nav .brand { gap: 7px; font-size: .85rem; letter-spacing: 0; }
  .site-nav .brand-mark { width: 24px; height: 24px; }
  .site-nav .nav-cta { padding: 7px 10px; font-size: 13px; }
  .nav-menu summary { padding: 4px 6px; }
}

/* ── Feature-Zeilen (Ausschnitt | Text) ─────────────────── */
.feature-rows { display: flex; flex-direction: column; gap: 72px; margin-top: 40px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-text { text-align: left; }
.feature-text .eyebrow { margin-bottom: 8px; text-align: left; }
.feature-text h3 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; }
.feature-text p { margin: 0 0 12px; }
.feature-text .feature-fact {
  border-left: 3px solid var(--c-accent); padding: 4px 0 4px 12px;
  font-size: .95rem; color: var(--c-text-muted, #475569);
}
.feature-text .feature-link { font-weight: 600; text-decoration: none; }
.feature-text .feature-link:hover { text-decoration: underline; }
.feature-badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; vertical-align: middle;
  background: #f5b400; color: #1f1600;
}

/* ── Fensterrahmen um App-Ausschnitte ───────────────────── */
.snippet-frame {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 16px; overflow-x: auto;
  background: var(--color-page, #f5f6f8); border: 1px solid var(--color-line, #e6e8ee);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .28);
}
.snippet-caption { margin-top: 10px; font-size: .85rem; color: var(--c-text-muted, #64748b); text-align: center; }
.snippet-img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #e5e7eb; }

/* ── Hell/Dunkel-Regler ─────────────────────────────────── */
.theme-compare { position: relative; display: grid; --pos: 100%; }
.theme-compare > .snippet-frame { grid-area: 1 / 1; }
.theme-compare-top { clip-path: inset(0 0 0 var(--pos)); }
/* Griff = schmaler Streifen um die Trennlinie: nur hier wird gezogen,
   der Rest des Ausschnitts bleibt für Hover und Tooltips frei. */
.theme-compare-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 32px; margin-left: -16px;
  cursor: ew-resize; touch-action: none;
  background: linear-gradient(to right, transparent 14px, rgba(15, 23, 42, .25) 14px,
    #fff 15px, #fff 17px, rgba(15, 23, 42, .25) 17px, transparent 18px);
}
.theme-compare-line::after {
  content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #0f172a; font-size: 16px; box-shadow: 0 2px 8px rgba(15, 23, 42, .3);
}
/* Range-Input nur für Tastatur und Screenreader: unsichtbar, fokussierbar,
   deckt nichts ab. */
.theme-compare-range {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); border: 0; opacity: 0;
}
.theme-compare:focus-within .theme-compare-line::after { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.theme-compare:not(.is-live) .theme-compare-line { display: none; }

/* ── Hover-Hervorhebung im Diagramm ─────────────────────── */
.app-snippet svg g.is-dim { opacity: .22; }
.app-snippet svg g[tabindex]:focus { outline: none; }
.app-snippet svg g[tabindex]:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.app-snippet svg g { transition: opacity .15s ease; }

/* ── Kompakte Funktions-Leiste ──────────────────────────── */
.feature-strip { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-strip a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px;
  border: 1px solid var(--c-border, #e5e7eb); border-radius: 12px; background: #fff;
  color: inherit; text-decoration: none;
}
.feature-strip a:hover { border-color: var(--c-accent); }
.feature-strip .fs-icon { font-size: 20px; color: var(--c-accent); }
.feature-strip strong { font-size: 1rem; }
.feature-strip span:last-child { font-size: .9rem; color: var(--c-text-muted, #475569); }
.feature-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature-row .feature-media, .feature-row.reverse .feature-media { order: 2; }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .feature-strip { grid-template-columns: minmax(0, 1fr); }
  .snippet-frame { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-snippet svg g { transition: none; }
}
.feature-ctas .btn-secondary { color: var(--c-accent); border-color: var(--c-accent); background: transparent; }
.feature-ctas .btn-secondary:hover { background: var(--c-accent-soft); border-color: var(--c-accent); }
.feature-text .h3-like { font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; text-align: left; }
.breadcrumb { font-size: .9rem; color: var(--c-text-muted, #64748b); margin-bottom: 16px; }
.breadcrumb a { color: inherit; }
.page-title { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: 8px 0 12px; text-align: center; }
.feature-row { scroll-margin-top: 90px; }
