/* Nova Website: geteilte Styles für index.html und testen.html (Nav, Buttons, Footer,
 Abschnitts-Header, Reveals, Demo-Bausteine, Portal-Vorschau). Tokens kommen aus nova.css.
 Seitenspezifisches CSS bleibt inline in der jeweiligen Seite. */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--text-heading); }
.shell { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { scroll-margin-top: 80px; }
/* Logo-Farben der offiziellen Varianten (nie frei umfärben): positiv als Default, negativ auf Marine */
.logo-pos { --logo-ink: #0B2545; --logo-star: #FCA92C; --logo-sub: #475569; }
.logo-neg { --logo-ink: #FFFFFF; --logo-star: #FCA92C; --logo-sub: #CBD5E1; }
.ic { display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* Auf dem Handy ausblenden: Nebensachen, die Tablet und Desktop zeigen. !important, weil die Seiten-Styles
   nach site.css kommen und display selbst setzen (flex, grid). */
@media (max-width: 760px) { .hide-mobile { display: none !important; } }

/* ---------- Reveals ---------- */
.rv { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--border-default);
}
/* Navigation über dem Hero: transparent mit heller Schrift und Negativ-Logo, ab dem ersten Scrollen
   die weiße Glasleiste aus site.css. Die Klasse setzt das Skript in partials/site-nav.html (nur mit hero="1"). */
.nav { transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.nav.nav-hero { background: transparent; border-color: transparent; }
.nav.nav-hero .nav-logo svg { --logo-ink: #FFFFFF; --logo-star: #FCA92C; --logo-sub: #CBD5E1; }
.nav.nav-hero .nav-links a { color: #fff; }
.nav.nav-hero .nav-links a:hover, .nav.nav-hero .nav-links a:focus-visible,
.nav.nav-hero .nav-links a[aria-current="page"] { color: var(--accent-light); }
.nav.nav-hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.nav.nav-hero .btn-secondary:hover { border-color: #fff; color: #fff; }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-logo svg { display: block; width: 133px; height: 40px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-ctas { display: flex; align-items: center; gap: 8px; }
/* Schmale Breiten: erst die Buttons kurz („Portal“, „Angebot“), dann die Links („Start“, „Testen“),
   ganz schmal fällt „Start“ weg, das Logo führt ohnehin zur Startseite */
.nav-short { display: none; }
@media (max-width: 760px) {
  .nav-links { gap: 18px; }
  .nav-ctas .nav-long { display: none; }
  .nav-ctas .nav-short { display: inline; }
}
@media (max-width: 560px) { .nav-links .nav-long { display: none; } .nav-links .nav-short { display: inline; } }
@media (max-width: 440px) { .nav-home { display: none; } }
.nav .btn-s { white-space: nowrap; }
@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; gap: 12px; height: 64px; }
  .nav-logo svg { width: 116px; height: 35px; }
  .nav .btn-s { padding-inline: 12px; }
}
@media (max-width: 400px) {
  .nav-inner { gap: 10px; }
  .nav-logo svg { width: 100px; height: 30px; }
  .nav-links { font-size: 14px; }
  .nav .btn-s { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 340px) { .nav-links { display: none; } }
.nav-links a { color: var(--text-heading); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent-text); }

/* ---------- Buttons (Maße wie components/core/Button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-md); font-family: inherit; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; text-wrap: balance;
  text-decoration: none; text-align: center; cursor: pointer; border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* Mindesthöhe statt fester Höhe: lange Beschriftungen dürfen auf schmalen Handys zweizeilig umbrechen */
.btn-s { font-size: 14px; min-height: 36px; padding: 6px 14px; }
.btn-m { font-size: 15px; min-height: 44px; padding: 8px 20px; }
.btn-primary { background: var(--accent); color: var(--text-on-brand); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-brand); }
.btn-primary:active { background: var(--accent-active); }
.btn-secondary { background: var(--surface-card); color: var(--text-heading); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-inverse { background: #FFFFFF; color: var(--nova-marine); }
.btn-inverse:hover { background: var(--accent-50); }

.btn-l { font-size: 16px; min-height: 52px; padding: 10px 26px; }
.btn-ghost { background: transparent; color: var(--text-heading); }
.btn-ghost:hover { background: var(--accent-50); }
.btn-ghost:active { background: var(--accent-100); }

/* ---------- Gemeinsame Demo-Bausteine (Chat + Hausakte) ---------- */
@keyframes nvRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nvBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes nvRing {
  0% { box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(var(--accent-rgb),.6); }
  100% { box-shadow: 0 0 0 6px #fff, 0 0 0 22px rgba(var(--accent-rgb),0); }
}
.rise { animation: nvRise var(--dur-slow) ease-out; }
/* StatusPill (components/core/StatusPill) */
.spill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; white-space: nowrap; flex: none;
}
.spill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.spill-progress { background: var(--status-progress-bg); color: var(--status-progress-fg); }
.spill-planned { background: var(--status-planned-bg); color: var(--status-planned-fg); }
.spill-urgent { background: var(--status-error-bg); color: var(--status-error-fg); }
.case-box { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-page); border: 1px solid var(--border-default); }
.case-box > div { flex: 1; min-width: 0; }
.case-id { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.case-title { font-size: 14px; font-weight: 800; color: var(--text-heading); }
.case-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.human-box { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--nova-marine); color: #fff; font-size: 13px; line-height: 1.4; }
.human-ava { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-light); color: var(--nova-marine); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none; }
.pdf-tile { width: 32px; height: 38px; border-radius: 5px; background: var(--accent-50); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex: none; }

.hero-eyebrow, .sec-eyebrow {
  display: block; font-size: var(--text-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--accent-text); font-weight: 600; margin-bottom: 16px;
}
/* ---------- Abschnitts-Header ---------- */
.sec { padding: var(--section-y) 0; }
@media (max-width: 760px) { .sec { padding: 48px 0; } }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec h2 {
  font-size: var(--text-h2); line-height: var(--lh-h2); font-weight: 800; letter-spacing: var(--ls-h2);
  margin: 0 0 16px; text-wrap: pretty;
}
.sec-lede, .sec-head p { color: var(--text-secondary); font-size: 18px; line-height: 1.6; margin: 0; }

/* ---------- Portal-Vorschau (wie PortalPreview im UI-Kit) ---------- */
.p-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--text-body); }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--gray-50); border-bottom: 1px solid var(--border-default); }
.p-brand { display: flex; align-items: center; gap: 10px; }
.p-brand svg { display: block; }
.p-title { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-heading); }
.p-sub { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: right; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-default); }
.p-row:last-child { border-bottom: 0; }
.p-row > div { min-width: 0; }
.p-row-t { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.p-row-d { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.spill-running { background: var(--status-running-bg); color: var(--status-running-fg); }
.spill-done { background: var(--status-done-bg); color: var(--status-done-fg); }

/* ---------- Footer ---------- */
.footer { background: var(--surface-inverse); color: var(--text-on-inverse); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: center; }
.footer-grid > svg { display: block; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.footer-links { display: flex; gap: 10px 32px; flex-wrap: wrap; font-size: 14px; font-weight: 600; justify-content: center; }
.footer-links a { color: var(--text-on-inverse); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: var(--accent-light); }
.footer-legal { font-size: 14px; line-height: 1.6; color: var(--text-on-inverse-muted); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 24px; font-size: 13px; color: var(--text-on-inverse-muted); display: flex; justify-content: center; text-align: center; gap: 12px 28px; flex-wrap: wrap; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--text-on-inverse); }
