/* RCL Premium Ventil-Expert — Design-Tokens 1:1 aus der RCL-Premium-Hauptseite
   (rcl-redesign.css / rcl-landing.css, Abgleich 07.07.2026 — O1 geschlossen):
   dunkles Grundthema #0d0f11, Surface #171a1e, Text #f3f4ef, Lime #c8d400,
   Schrift "Schibsted Grotesk" — SELBST gehostet (DSGVO: keine Google-Verbindung;
   Lizenz: SIL Open Font License). */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
:root {
  --paper: #0d0f11;
  --paper-2: #101316;
  --surface: #171a1e;
  --surface-2: #1c2024;
  --ink: #f3f4ef;
  --ink-2: #a7ada4;
  --muted: #8b918a;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .15);
  --lime: #c8d400;
  --lime-2: #dde673;
  --lime-tint: rgba(200, 212, 0, .14);
  --danger: #ff8f87;
  --danger-tint: rgba(255, 99, 88, .14);
  --ok: #9fdc8f;
  --ok-tint: rgba(120, 200, 100, .14);
  --warn: #f0c674;
  --warn-tint: rgba(240, 198, 116, .13);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 34px rgba(0, 0, 0, .5);
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper); color: var(--ink);
  font-size: 16px; line-height: 1.55;
}
a { color: var(--lime-2); }
h1, h2, h3 { letter-spacing: -.02em; }

/* Logo & Header */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--lime);
  color: var(--paper); font-weight: 800; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.logo-text { font-weight: 700; letter-spacing: .2px; color: var(--ink); }
.logo-text small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

.site-header {
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Tabs (Muster /jaz) */
.tabs {
  display: flex; gap: 4px; padding: 0 12px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs a {
  color: var(--ink-2); text-decoration: none; padding: 10px 14px; white-space: nowrap;
  border-bottom: 3px solid transparent; font-weight: 600; font-size: 14px;
}
.tabs a.active { color: var(--ink); border-bottom-color: var(--lime); }
.tabs a:hover { color: var(--ink); }

main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }

/* Karten */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card h2, .card h3 { margin-top: 0; }
.section-num {
  display: inline-flex; width: 26px; height: 26px; border-radius: 6px; background: var(--lime);
  color: var(--paper); font-weight: 800; font-size: 14px; align-items: center; justify-content: center;
  margin-right: 8px; vertical-align: -4px;
}

/* Buttons */
.btn {
  display: inline-block; border: 0; border-radius: 11px; cursor: pointer;
  padding: 13px 22px; font-size: 16px; font-weight: 700; min-height: 48px;
  font-family: var(--sans);
  background: var(--lime); color: var(--paper); text-decoration: none;
  transition: transform .08s ease, filter .18s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--lime-2); outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Formulare */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--ink-2); }
input, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 16px; font-family: var(--sans);
  background: var(--surface-2); color: var(--ink); min-height: 44px;
}
input::placeholder { color: var(--muted); }
.field { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1024px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Badges */
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.badge-a { background: var(--ok-tint); color: var(--ok); }
.badge-b { background: var(--warn-tint); color: var(--warn); }
.badge-c { background: rgba(255, 255, 255, .08); color: var(--muted); }
.badge-plan { background: var(--lime-tint); color: var(--lime-2); }

/* Meldungen */
.msg { border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 15px; }
.msg-error { background: var(--danger-tint); color: var(--danger); }
.msg-info { background: var(--lime-tint); color: var(--ink); }
.msg-warn { background: var(--warn-tint); color: var(--warn); }
.hidden { display: none !important; }

/* Tabellen & Definitionslisten */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 4px 16px; font-size: 15px; }
.kv dt { font-weight: 600; color: var(--ink-2); }
.kv dd { margin: 0; }
.kv .unbekannt, .unbekannt { color: var(--muted); font-style: italic; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* Trefferkarten */
.hit { cursor: pointer; transition: border-color .15s; }
.hit:hover { border-color: var(--lime); }
.hit h3 { margin: 0 0 4px; font-size: 17px; }
.hit .meta { color: var(--muted); font-size: 14px; }

/* Ladezustand */
.loader { text-align: center; color: var(--muted); padding: 40px 0; }
.spinner {
  width: 28px; height: 28px; border: 3px solid var(--line-2); border-top-color: var(--lime);
  border-radius: 50%; margin: 0 auto 10px; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  background: var(--paper-2); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; padding: 20px;
  text-align: center; line-height: 1.7;
}
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--ink-2); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { max-width: 440px; width: 100%; }
.login-card h1 { font-size: 24px; margin: 14px 0 2px; }
.login-sub { font-weight: 700; color: var(--ink-2); margin: 0 0 12px; }
.login-desc { color: var(--muted); font-size: 14px; }
.pw-row { position: relative; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 700;
  font-family: var(--sans); color: var(--ink-2); padding: 8px; min-height: 44px;
}

/* Bildanalyse */
.analyse-vorschau { max-width: 100%; border-radius: 10px; border: 1px solid var(--line-2); margin-top: 10px; }
