/* ============================================================
   futureplotter — BASIS-Stile ("Makro-Almanach")
   Geteilt von allen Seiten. Forecast-spezifische Stile liegen
   in forecast_style.css.
   ============================================================ */

/* Selbst gehostete Schriften — kein Google-Fonts-CDN, also kein Abfluss der
   Besucher-IP an Dritte. Lege die .woff2-Dateien unter assets/fonts/ ab
   (siehe Anleitung). Fehlt eine Datei, greift automatisch die System-Schrift
   aus dem jeweiligen Font-Stack in :root — die Seite bleibt also nutzbar. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fraunces-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fraunces-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --paper:      #f3ede2;
  --paper-2:    #ece3d4;
  --ink:        #1c1916;
  --ink-soft:   #4a443b;
  --muted:      #8a8174;
  --line:       #d3c8b6;
  --line-dark:  #b9ac96;
  --accent:     #d6451f;
  --accent-deep:#ab350f;

  /* „Chrome" (Kopf/Fuß/Menüs) ist in beiden Modi dunkel */
  --chrome-bg:   #1c1916;
  --chrome-text: #f3ede2;
  --chrome-line: rgba(243,237,226,0.12);
  --dot: rgba(28,25,22,0.05);            /* dezente Hintergrundpunkte */

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Archivo", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", monospace;

  --maxw: 1180px;
  --radius: 3px;
}

/* Dunkelmodus: nur die Inhaltspalette kippt, das Chrome bleibt dunkel */
:root[data-theme="dark"] {
  --paper:      #15120f;
  --paper-2:    #1e1a15;
  --ink:        #f1ebdf;
  --ink-soft:   #c2b9a8;
  --muted:      #8c8474;
  --line:       #2f2a22;
  --line-dark:  #423b31;
  --chrome-bg:  #211d18;
  --dot: rgba(243,237,226,0.05);
}

/* Vom Nutzer wählbare Schriftart (Einstellungen -> Schriftart).
   Stellt Fließtext UND Überschriften um, damit der Wechsel klar sichtbar ist.
   "Standard" (kein data-family) behält die gestaltete Fraunces/Archivo-Kombi. */
:root[data-family="serif"]  { --sans: "Fraunces", Georgia, "Times New Roman", serif; --serif: "Fraunces", Georgia, "Times New Roman", serif; }
:root[data-family="mono"]   { --sans: "IBM Plex Mono", ui-monospace, monospace;     --serif: "IBM Plex Mono", ui-monospace, monospace; }
:root[data-family="system"] { --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --serif: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;            /* kein horizontales Scrollen */
}

/* Feine Kornstruktur */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dezent driftendes Punkteraster im Hintergrund (reines CSS, kein Asset) */
body::after {
  content: ""; position: fixed; top: -20%; left: -20%; width: 140%; height: 140%;
  z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: bgDrift 80s linear infinite;
}
@keyframes bgDrift { from { transform: translate(0, 0); } to { transform: translate(44px, 44px); } }

/* Sticky-Footer auf Inhaltsseiten: Footer bleibt unten, auch bei wenig Inhalt */
body.page-body { display: flex; flex-direction: column; }
body.page-body main { flex: 1 0 auto; }
body.page-body footer { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* ----- Typografie ----- */
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
.label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; border-radius: var(--radius);
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; background: transparent; color: var(--muted); border-color: var(--line-dark); }
.btn:disabled:hover { background: transparent; color: var(--muted); border-color: var(--line-dark); transform: none; }

/* ============================================================
   Utility-Balken + Branding + Dropdowns
   ============================================================ */
.topbar { background: var(--chrome-bg); color: var(--chrome-text); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 32px; gap: 16px; }
.topbar .tagline { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,237,226,0.6); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.social { display: flex; align-items: center; gap: 13px; }
.social a { display: inline-flex; color: rgba(243,237,226,0.7); transition: color 0.15s ease; }
/* Kanäle noch nicht live -> Buttons (kein Sprung nach oben), dezent gedimmt */
.social .soc-btn { display: inline-flex; align-items: center; padding: 0; background: none; border: none;
                   color: rgba(243,237,226,0.45); cursor: pointer; transition: color 0.15s ease; }
.social .soc-btn:hover { color: rgba(243,237,226,0.8); }
.social svg { width: 16px; height: 16px; }
.social a:hover { color: var(--accent); }

/* Markenzeichen – ohne Rahmen, nur das Logo */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand-mark svg, .brand-mark img { width: 26px; height: 26px; object-fit: contain; transition: transform 0.2s ease; }
.brand:hover .brand-mark img, .brand:hover .brand-mark svg { transform: scale(1.08); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--chrome-text); }
.caret { display: inline-block; font-size: 0.78em; transition: transform 0.2s ease; }
.has-dropdown.open .drop-toggle .caret { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.drop-toggle { background: none; border: none; cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 0; }

/* Dunkle Menüs (passend zum Kopf), großzügiges Padding */
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 236px;
  background: var(--chrome-bg); border: 1px solid var(--chrome-line);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4); border-radius: 8px; overflow: hidden;
  display: none; z-index: 60;
}
.has-dropdown.open .dropdown-menu { display: block; animation: dropIn 0.18s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.topbar .dropdown-menu { left: auto; right: 0; }
.dropdown-menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 14px 20px; border-bottom: 1px solid var(--chrome-line);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(243,237,226,0.8);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(243,237,226,0.07); color: var(--chrome-text); }
.dropdown-menu a .tag { font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(243,237,226,0.45); }
.dropdown-menu a.live .tag { color: var(--accent); }
.dropdown-menu a.active { box-shadow: inset 2px 0 0 var(--accent); background: rgba(243,237,226,0.05); }
.dropdown-menu a.active span:first-child { color: var(--accent); }

/* gestaffeltes Einblenden der Menüpunkte */
.has-dropdown.open .dropdown-menu a { animation: itemIn 0.28s ease both; }
.has-dropdown.open .dropdown-menu a:nth-child(1) { animation-delay: 0.02s; }
.has-dropdown.open .dropdown-menu a:nth-child(2) { animation-delay: 0.05s; }
.has-dropdown.open .dropdown-menu a:nth-child(3) { animation-delay: 0.08s; }
.has-dropdown.open .dropdown-menu a:nth-child(4) { animation-delay: 0.11s; }
.has-dropdown.open .dropdown-menu a:nth-child(5) { animation-delay: 0.14s; }
.has-dropdown.open .dropdown-menu a:nth-child(6) { animation-delay: 0.17s; }
.has-dropdown.open .dropdown-menu a:nth-child(7) { animation-delay: 0.20s; }
@keyframes itemIn { from { opacity: 0; transform: translateX(-7px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   Navigationsleiste
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--chrome-bg);
  border-top: 1px solid var(--chrome-line); border-bottom: 2px solid var(--accent);
  box-shadow: 0 12px 30px -20px rgba(0,0,0,0.6); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 20px; }
.nav-links { list-style: none; display: flex; gap: 26px; }
/* Basis nur Schrift/Farbe (KEIN Padding hier -> überschreibt sonst das Dropdown) */
.nav-links a, .nav-links .drop-toggle {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(243,237,226,0.74); transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links .drop-toggle:hover { color: var(--chrome-text); }
/* oberste Navigationspunkte: Padding + gleitende Unterstreichung (spielerisch) */
.nav-links > li > a, .nav-links > li > .drop-toggle { position: relative; padding: 4px 0; }
.nav-links > li > a::after, .nav-links > li > .drop-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links > li > a:hover::after, .nav-links > li > .drop-toggle:hover::after,
.nav-links > li > a.active::after, .nav-links > li > .drop-toggle.active::after { transform: scaleX(1); }
.nav-links > li > a.active, .nav-links > li > .drop-toggle.active { color: var(--chrome-text); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.search { display: flex; }
.search input {
  font-family: var(--mono); font-size: 0.8rem; color: var(--chrome-text);
  background: rgba(243,237,226,0.06); border: 1px solid rgba(243,237,226,0.18); border-radius: var(--radius);
  padding: 7px 12px; width: 180px; transition: width 0.2s ease, border-color 0.15s ease;
}
.search input::placeholder { color: rgba(243,237,226,0.5); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; width: 230px; border-color: transparent; }

/* Icons im Kopf sind hell */
.nav-burger, .search-icon { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--chrome-text); align-items: center; justify-content: center; }
.settings-toggle { color: var(--chrome-text); padding: 6px; display: inline-flex; align-items: center; transition: color 0.15s ease; }
.settings-toggle:hover { color: var(--accent); }

/* Einstellungs-Panel (Individualisierung) */
.settings .dropdown-menu { left: auto; right: 0; min-width: 224px; padding: 4px; }
.set-row { padding: 11px 13px; border-bottom: 1px solid var(--chrome-line); }
.set-row:last-child { border-bottom: none; }
.set-label { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,237,226,0.5); margin-bottom: 8px; }
.set-opts { display: flex; gap: 6px; }
.set-opts button { flex: 1; font-family: var(--mono); font-size: 0.74rem; padding: 8px 0; border: 1px solid var(--chrome-line); background: transparent; color: rgba(243,237,226,0.82); cursor: pointer; border-radius: var(--radius); transition: all 0.14s ease; }
.set-opts button:hover { border-color: rgba(243,237,226,0.4); color: var(--chrome-text); }
.set-opts button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.set-fonts { flex-wrap: wrap; }
.set-fonts button { flex: 1 1 calc(50% - 3px); font-size: 0.72rem; padding: 8px 4px; text-transform: none; letter-spacing: 0; }

/* BETA-Badge neben dem Markennamen */
.brand-beta { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 6px; margin-left: 8px; line-height: 1; align-self: center; text-transform: uppercase; }

/* Login-Button in der Topbar (klar abgesetzt von den Social-Icons) */
.topbar-div { width: 1px; height: 16px; background: rgba(243,237,226,0.22); }
.login-btn, .acct-toggle { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 4px 12px; border: 1px solid rgba(243,237,226,0.32); border-radius: 999px; background: transparent; color: var(--chrome-text); cursor: pointer; transition: all 0.15s ease; }
.login-btn:hover, .acct-toggle:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.login-btn .login-ic, .acct-toggle .login-ic { width: 14px; height: 14px; }
.acct-toggle .caret { font-size: 0.7em; opacity: 0.85; }
.account-box .dropdown-menu { min-width: 210px; }

/* Login / Registrierung — Modal */
.auth-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(15,12,10,0.55); backdrop-filter: blur(3px); z-index: 3000; padding: 20px; }
.auth-overlay.open { display: flex; animation: authFade 0.18s ease; }
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
body.auth-open { overflow: hidden; }
.auth-modal { position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 32px 30px 26px; box-shadow: 0 24px 70px rgba(0,0,0,0.4); animation: authPop 0.2s ease; }
@keyframes authPop { from { transform: translateY(12px) scale(0.985); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-close { position: absolute; top: 14px; right: 15px; background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 7px; border-radius: 6px; transition: all 0.14s ease; }
.auth-close:hover { color: var(--ink); background: var(--paper-2); }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-brand { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.auth-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin: 7px 0 4px; }
.auth-sub { font-size: 0.83rem; color: var(--muted); }
.auth-tabs { display: flex; gap: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; font-family: var(--mono); font-size: 0.78rem; padding: 9px 0; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; transition: all 0.15s ease; }
.auth-tab:hover { color: var(--ink); }
.auth-tab.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.auth-error { background: rgba(214,69,31,0.10); border: 1px solid rgba(214,69,31,0.40); color: var(--accent); font-size: 0.8rem; line-height: 1.4; padding: 10px 13px; border-radius: 8px; margin-bottom: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.auth-field input { font-family: inherit; font-size: 0.92rem; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); transition: border-color 0.15s ease; }
.auth-field input::placeholder { color: var(--muted); opacity: 0.7; }
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-row-mini { display: flex; justify-content: flex-end; margin-top: -5px; }
.auth-link { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; font-size: 0.79rem; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.auth-check input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer; }
.auth-check a { color: var(--accent); }
.auth-submit { margin-top: 6px; font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.03em; padding: 12px 0; border: none; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; transition: filter 0.15s ease; }
.auth-submit:hover { filter: brightness(1.08); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.auth-switch { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-switch:hover { text-decoration: underline; }

/* Sprache-Auswahl im Einstellungspanel */
.set-select { width: 100%; font-family: var(--mono); font-size: 0.74rem; padding: 8px 10px; border: 1px solid var(--chrome-line); background: transparent; color: rgba(243,237,226,0.9); border-radius: var(--radius); cursor: pointer; }
.set-select:hover { border-color: rgba(243,237,226,0.4); }
.set-select option { color: #1c1916; }

/* Reset-Button */
.set-foot { display: flex; gap: 8px; padding: 12px 13px; }
.set-reset, .set-save { flex: 1; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 9px 14px; white-space: nowrap; cursor: pointer; border-radius: var(--radius); transition: all 0.14s ease; }
.set-reset { border: 1px solid var(--chrome-line); background: transparent; color: rgba(243,237,226,0.82); }
.set-reset:hover { border-color: var(--accent); color: var(--accent); }
.set-save { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.set-save:hover { filter: brightness(1.08); }
.set-save:disabled { border-color: var(--chrome-line); background: transparent; color: rgba(243,237,226,0.30); cursor: not-allowed; filter: none; }

/* Hinweis-Toast (z. B. "Bald verfügbar") */
.fp-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 14px); background: #1c1916; color: #f3ede2; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; padding: 11px 18px; border-radius: 8px; border: 1px solid rgba(243,237,226,0.16); box-shadow: 0 8px 30px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 2000; }
.fp-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ----- Mobile Navigation ----- */
/* Login/Konto erscheinen nur im mobilen Menü (Topbar ist dort ausgeblendet) */
.nav-auth-m { display: none; }

@media (max-width: 900px) {
  .topbar { display: none; }
  .nav-inner { position: relative; }
  .nav-burger, .search-icon { display: inline-flex; }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--chrome-bg); border-bottom: 2px solid var(--accent); box-shadow: 0 14px 28px rgba(0,0,0,0.4);
    display: none; padding: 6px 0; z-index: 55;
  }
  .nav.menu-open .nav-links { display: flex; animation: dropIn 0.18s ease; }
  .nav-links li { padding: 0 28px; }
  .nav-links > li > a, .nav-links > li > .drop-toggle { display: block; padding: 14px 0; font-size: 0.78rem; }
  .nav-links > li > a::after, .nav-links > li > .drop-toggle::after { display: none; }
  .nav-links .dropdown-menu { position: static; box-shadow: none; border: none; border-radius: 0; background: transparent; border-left: 2px solid var(--chrome-line); margin: 0 0 8px; }
  .nav-links .dropdown-menu a { padding-left: 14px; }
  .nav.menu-open .nav-auth-m:not(.hidden) { display: block; }
  .nav.menu-open .nav-auth-top { border-top: 1px solid var(--chrome-line); margin-top: 8px; padding-top: 8px; }

  .search { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 28px; background: var(--chrome-bg); border-bottom: 2px solid var(--accent); z-index: 56; }
  .nav.search-open .search { display: flex; }
  .nav.search-open .search input { width: 100%; }
}

/* ============================================================
   Dashboard
   ============================================================ */
.dash-hero { padding: 50px 0 26px; }
.dash-hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 600; margin: 12px 0 16px; max-width: 16ch; }
.dash-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 50ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.board-section { margin-top: 34px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.see-all { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--paper); color: var(--ink); transition: background 0.15s ease, transform 0.15s ease; }
.card:hover { background: var(--paper-2); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-cat { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--accent); }
.card-model { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-spark { height: 56px; margin: 2px 0; position: relative; }
.card-spark::before { content: ""; position: absolute; inset: 0; background-image: url("../../img/b_logo.webp"); background-repeat: no-repeat; background-position: center; background-size: 34px auto; opacity: 0.07; pointer-events: none; }
/* Sparkline-Farben aus Variablen -> passen sich Hell/Dunkel automatisch an */
.spark-hist { stroke: var(--ink-soft); }
.spark-fc   { stroke: var(--accent); }
.card-spark svg { position: relative; }
.card-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.12; }
.card-sum { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.loading { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); padding: 14px 2px; grid-column: 1 / -1; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 16px 15px; background: var(--paper); color: var(--ink); }
.cat.live { transition: background 0.15s ease; }
.cat.live:hover { background: var(--paper-2); }
.cat-no { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.cat-name { font-family: var(--serif); font-size: 1.2rem; }
.cat-status { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cat.live .cat-status { color: var(--accent); }
.cat.soon { opacity: 0.5; }
.cat.soon .cat-status { color: var(--muted); }
.cat.sel { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--accent); }
.cat.sel .cat-name { color: var(--accent); }
.cat.sel .cat-status { color: var(--accent); }

/* ============================================================
   Inhaltsseiten (page.php)
   ============================================================ */
.page { max-width: 760px; padding: 40px 0 80px; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 8px; }
.page h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 28px 0 10px; }
.page p, .page li { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 10px; }
.page ul { padding-left: 20px; margin-bottom: 10px; }
.page .placeholder { color: var(--accent-deep); background: rgba(214,69,31,0.08); padding: 0 4px; border-radius: 2px; }
.page-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.page-nav { display: flex; gap: 18px; margin: 18px 0 30px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-nav a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.page-nav a.active { color: var(--accent); }

/* ============================================================
   Banner (Fehlermeldungen, alle Seiten)
   ============================================================ */
.banner { border: 1px solid var(--accent); background: rgba(214,69,31,0.07); color: var(--accent-deep); font-family: var(--mono); font-size: 0.8rem; padding: 12px 16px; margin-bottom: 20px; }
.hidden { display: none !important; }

/* ============================================================
   Footer
   ============================================================ */
footer { background: var(--chrome-bg); color: var(--chrome-text); border-top: 2px solid var(--accent); padding: 38px 0 48px; margin-top: 60px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner { align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-note { font-family: var(--mono); font-size: 0.7rem; color: rgba(243,237,226,0.5); }
.footer-links { display: flex; flex-direction: column; gap: 9px; text-align: right; }
.footer-links a { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243,237,226,0.72); }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   Animation: gestaffeltes Einblenden
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.22s; } .d3 { animation-delay: 0.34s; } .d4 { animation-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } }

/* ============================================================
   Hero-Animation: Prognoselinie unter „Wohin die Zahlen laufen"
   ============================================================ */
.hero-plot { margin-top: 16px; max-width: 340px; height: 56px; }
.hero-plot svg { width: 100%; height: 100%; overflow: visible; }
.hp-line { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 430; stroke-dashoffset: 430; animation: hpDraw 1.6s cubic-bezier(0.4, 0.1, 0.2, 1) 0.35s forwards; }
.hp-dot { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: hpDot 0.35s ease 1.85s forwards, hpPulse 2.2s ease-in-out 2.3s infinite; }
@keyframes hpDraw  { to { stroke-dashoffset: 0; } }
@keyframes hpDot   { to { opacity: 1; } }
@keyframes hpPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.55); } }
@media (prefers-reduced-motion: reduce) {
  .hp-line { stroke-dashoffset: 0; animation: none; }
  .hp-dot { opacity: 1; animation: none; }
}

/* ============================================================
   Feedback-Knopf + Formular (spielerisch)
   ============================================================ */
.fb { position: fixed; right: 22px; bottom: 22px; z-index: 1120; }   /* über .favdock (1100): das Panel klappt nach oben auf */
body.cookie-visible .fb { display: none; }   /* nicht gleichzeitig mit dem Cookie-Hinweis zeigen */

.fb-launch { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--accent); border: none;
  border-radius: 999px; padding: 12px 18px; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(214,69,31,0.7); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.fb-launch:hover { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 16px 32px -8px rgba(214,69,31,0.85); }
.fb-launch svg { transition: transform 0.2s ease; }
.fb-launch:hover svg { transform: scale(1.12) rotate(6deg); }

.fb-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 320px; max-width: calc(100vw - 32px);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-dark); border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.45); overflow: hidden;
  transform-origin: bottom right; transform: translateY(8px) scale(0.96); opacity: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; }
.fb-panel.open { transform: translateY(0) scale(1); opacity: 1; }
.fb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: var(--chrome-bg); color: var(--chrome-text); }
.fb-head strong { font-family: var(--serif); font-size: 1.05rem; }
.fb-x { background: none; border: none; color: rgba(243,237,226,0.7); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.fb-x:hover { color: #fff; }
.fb-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fb-lead { font-size: 0.85rem; color: var(--ink-soft); }
.fb-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-cats button { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 11px; border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; cursor: pointer; transition: all 0.13s ease; }
.fb-cats button:hover { border-color: var(--ink); color: var(--ink); }
.fb-cats button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fb-body textarea { width: 100%; font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-dark); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.fb-body textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fb-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fb-hint { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); flex: 1; }
.fb-count { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; }
.fb-count.low { color: #c0473b; font-weight: 600; }
.fb-actions .btn { padding: 9px 16px; }

.fb-done { padding: 28px 18px; text-align: center; color: var(--ink); }
.fb-done p { font-size: 0.92rem; margin-top: 10px; color: var(--ink-soft); }
.fb-check { color: var(--accent); display: inline-flex; animation: fbPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.fb-check-tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: hpDraw 0.45s ease 0.15s forwards; }
@keyframes fbPop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ============================================================
   Cookie-Hinweis
   ============================================================ */
.cookie[hidden] { display: none; }
.cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 1200; display: flex; justify-content: center;
  animation: cookieIn 0.3s ease; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.cookie-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  width: min(720px, 100%); background: var(--chrome-bg); color: var(--chrome-text);
  border: 1px solid var(--chrome-line); border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.6); }
.cookie-text { font-size: 0.84rem; line-height: 1.5; color: rgba(243,237,226,0.82); flex: 1; min-width: 230px; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 16px; background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-actions .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.cookie-actions .btn.ghost { background: transparent; color: var(--chrome-text); border-color: rgba(243,237,226,0.4); }
.cookie-actions .btn.ghost:hover { background: rgba(243,237,226,0.1); color: #fff; }

/* Mobil: Widgets nicht zu breit, Feedback-Pille kompakt */
@media (max-width: 600px) {
  .fb { right: 14px; bottom: 14px; }
  .fb-launch { padding: 11px 15px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; }
  .cookie-inner { padding: 14px 16px; gap: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ===================================================================
   Konto-Seite (konto.php) — nutzt den Standard-Seitenrahmen .page,
   ergänzt nur Karten/Formulare. Unter .page p gewinnt durch .konto-Prefix.
   =================================================================== */
.konto h1 { font-size: 1.8rem; margin-bottom: 4px; }
.konto .sub { color: var(--muted); margin-bottom: 26px; font-size: 0.95rem; }
.konto-card { border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); padding: 22px 24px; margin-bottom: 22px; }
.konto-card h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 16px; color: var(--ink); }
.konto .fav-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.konto .fav-row:first-child { border-top: 0; }
.konto .fav-main { flex: 1; min-width: 0; }
.konto .fav-title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto .fav-meta { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.konto .fav-actions { display: flex; gap: 8px; flex-shrink: 0; }
.konto .fav-actions .btn { padding: 6px 15px; font-size: 0.82rem; }
.konto .fav-empty { color: var(--muted); padding: 6px 0; margin: 0; }
.konto .kform { display: grid; gap: 13px; max-width: 440px; }
.konto .kfield label { display: block; font-size: 0.88rem; margin-bottom: 5px; color: var(--ink-soft); }
.konto .kfield input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; box-sizing: border-box; }
.konto .kfield input:focus { outline: none; border-color: var(--accent); }
.konto .kmsg { font-size: 0.88rem; min-height: 1.1em; margin: 0; }
.konto .kmsg.err { color: var(--accent); }
.konto .kmsg.ok { color: #2c7a6b; }
.konto-guest { text-align: center; padding: 70px 0; color: var(--muted); }
.konto-guest .btn { margin-top: 14px; }

/* ============================================================
   Suchseite (suche.php)
   ============================================================ */
.search-hero { padding: 40px 0 24px; }
.search-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; line-height: 1.1; margin: 8px 0 22px; }
.search-bar { position: relative; max-width: 640px; }
.search-bar .sb-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-bar input { width: 100%; font-family: var(--sans); font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 10px; padding: 15px 46px 15px 46px; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sb-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: none; background: var(--paper-2); border-radius: 50%; color: var(--ink-soft); font-size: 1.15rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sb-clear.hidden { display: none; }

.search-layout { display: grid; grid-template-columns: 232px 1fr; gap: 36px; align-items: start; padding-bottom: 48px; }

.search-filters { position: sticky; top: 88px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.filter-reset { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: none; border: none; cursor: pointer; padding: 2px 0; }
.filter-reset:hover { color: var(--accent-deep); }
.filter-group { margin-bottom: 24px; }
.fg-label { display: block; font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fg-opts { display: flex; flex-direction: column; gap: 1px; }
.fopt { display: flex; align-items: center; gap: 9px; padding: 6px 6px; font-family: var(--sans); font-size: 0.9rem; color: var(--ink); cursor: pointer; border-radius: var(--radius); }
.fopt:hover { background: var(--paper-2); }
.fopt input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; cursor: pointer; margin: 0; }
.fopt span { flex: 1; }
.fopt em { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); font-style: normal; }
.fg-range { display: flex; gap: 12px; }
.fg-range label { flex: 1; display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.fg-range input { width: 100%; font-family: var(--mono); font-size: 0.85rem; padding: 8px 9px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.fg-range input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fg-empty { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding: 2px 0; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.results-count { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.sort-wrap { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sort-wrap select { font-family: var(--sans); font-size: 0.86rem; text-transform: none; letter-spacing: 0; padding: 8px 30px 8px 11px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8174' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; -webkit-appearance: none; appearance: none; color: var(--ink); cursor: pointer; }
.sort-wrap select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

@media (max-width: 860px) {
  .search-layout { grid-template-columns: 1fr; gap: 22px; }
  .search-filters { position: static; border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; background: var(--paper); }
  .filter-group { margin-bottom: 18px; }
  .filter-group:last-child { margin-bottom: 4px; }
}

/* ===================================================================
   Artikel / Nachrichten (data_article.php)
   =================================================================== */

/* Eyebrow / Rubrik + KI-Marke */
.kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.ai-tag { display: inline-block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; color: var(--ink-soft); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--muted); }

/* Kopf der Uebersicht — Editorial-Hero mit Luft zur Navigation */
.news-hero { padding: clamp(30px, 6vw, 66px) 0 28px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.news-hero-eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.news-hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 3.5rem); line-height: 1.03; letter-spacing: -0.015em; margin: 0 0 16px; max-width: 18ch; }
.news-hero-sub { font-size: 1.08rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* Themen-Filter (Berichte-Uebersicht) */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.nf-tab { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.nf-tab:hover { border-color: var(--line-dark); color: var(--ink); }
.nf-tab.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Leitgeschichte */
.news-lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-lead.no-img { grid-template-columns: 1fr; max-width: 72ch; }
.news-lead .thumb { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.news-lead .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.news-lead:hover .thumb img { transform: scale(1.03); }
.news-lead-body .kicker { display: block; margin-bottom: 10px; }
.news-lead h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 12px; }
.news-lead:hover h2 { color: var(--accent); }
.news-lead .teaser { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.55; margin: 0 0 14px; }

/* Raster weiterer Berichte */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 30px 24px; }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-card .thumb { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--paper-2); margin-bottom: 12px; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .kicker { display: block; margin-bottom: 7px; }
.news-card h3 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.2; margin: 0 0 8px; }
.news-card:hover h3 { color: var(--accent); }
.news-card .teaser { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin: 0 0 12px; flex: 1 0 auto; }

/* Dashboard: Berichte kompakt halten (Ueberblick statt dominante Story) */
.dash-news .news-card h3 { font-size: 1.06rem; }
.dash-news .news-card .thumb { aspect-ratio: 16 / 10; margin-bottom: 10px; }
.dash-news .news-card .teaser { font-size: 0.85rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Einzelartikel */
.article { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.article-back:hover { color: var(--accent); }
.article > .kicker { display: block; margin-bottom: 10px; }
.article-title { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 14px; }
.article-standfirst { font-family: var(--serif); font-size: 1.28rem; line-height: 1.4; color: var(--ink-soft); margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--muted); margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-hero { margin: 0 0 8px; border-radius: 5px; overflow: hidden; background: var(--paper-2); }
.article-hero img { width: 100%; display: block; }
.article-figcaption { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin: 0 0 30px; }
.article-figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.article-figcaption a:hover { color: var(--accent); }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--serif); line-height: 1.25; margin: 1.6em 0 0.5em; }
.article-body ul { margin: 0 0 1.15em; padding-left: 1.3em; }
.article-body li { margin: 0.35em 0; line-height: 1.7; }
.article-cta { margin: 30px 0 0; }
.article-disclaimer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* Leere/Fehler-Zustaende */
.article-empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.article-empty h1 { font-family: var(--serif); color: var(--ink); margin-bottom: 10px; }
.article-empty .btn { margin-top: 14px; }

@media (max-width: 720px) {
  .news-lead { grid-template-columns: 1fr; gap: 16px; }
  .news-hero { padding: 24px 0 22px; margin-bottom: 26px; }
}

/* ============================================================
   Hero-Globus — sichtbar ab genuegend Breite (>= 760px), skaliert mit
   der Viewport-Breite und verschwindet darunter (mobile Sicht).
   ============================================================ */
.dash-globe { display: none; }

@media (min-width: 760px) {
  .dash-hero { display: flex; align-items: flex-start; gap: clamp(1.5rem, 4vw, 4rem); }
  .dash-hero-copy { flex: 1 1 auto; min-width: 0; }
  .dash-globe {
    display: flex; flex: 0 0 auto; flex-direction: column;
    align-items: center; gap: .7rem;
  }
  .dash-globe .globe-stage { position: relative; width: clamp(180px, 25vw, 350px); aspect-ratio: 1; }
  .dash-globe .globe-stage canvas { width: 100%; height: 100%; display: block; }
  .dash-globe .globe-readout {
    font-family: var(--mono, monospace); font-size: .66rem; letter-spacing: .14em;
    color: var(--muted); text-transform: uppercase; display: flex; gap: 1.1rem;
  }
  .dash-globe .globe-readout b { color: var(--ink-soft); font-weight: 500; }
}

/* ============================================================
   Favoriten-Schnellzugriff (Dock ueber dem Feedback-Knopf).
   Nur sichtbar bei Login + min. 1 gespeichertem Chart (per JS gesteuert).
   ============================================================ */
.favdock { position: fixed; right: 22px; bottom: 76px; z-index: 1100; }
.favdock[hidden] { display: none; }
body.cookie-visible .favdock { display: none; }   /* nicht zusammen mit dem Cookie-Hinweis */

.favdock-launch { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 11px 17px; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.35); transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.favdock-launch:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.45); }
.favdock-launch svg { color: var(--accent); }

.favdock-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 300px; max-width: calc(100vw - 32px);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-dark); border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.45); overflow: hidden;
  transform-origin: bottom right; transform: translateY(8px) scale(0.96); opacity: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; }
.favdock-panel.open { transform: translateY(0) scale(1); opacity: 1; }
.favdock-panel[hidden] { display: none; }
.favdock-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px;
  background: var(--chrome-bg); color: var(--chrome-text); }
.favdock-head strong { font-family: var(--serif); font-size: 1rem; }
.favdock-x { background: none; border: none; color: rgba(243,237,226,0.7); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.favdock-x:hover { color: #fff; }
.favdock-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: min(60vh, 420px); overflow-y: auto; }

.favdock-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
  transition: border-color 0.13s ease, transform 0.13s ease, background 0.13s ease; }
.favdock-item:hover { border-color: var(--ink); transform: translateX(2px); background: var(--paper); }
.favdock-item .fx-star { color: var(--accent); flex: 0 0 auto; display: inline-flex; }
.favdock-item .fx-body { min-width: 0; }
.favdock-item .fx-title { font-family: var(--sans); font-size: 0.86rem; font-weight: 500; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favdock-more { text-align: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-soft); text-decoration: none; padding: 8px; border-radius: 8px; border: 1px dashed var(--line-dark);
  transition: color 0.13s ease, border-color 0.13s ease; }
.favdock-more:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 600px) {
  .favdock { right: 14px; bottom: 64px; }
  .favdock-launch { padding: 10px 14px; }
}

/* ---- Benachrichtigungsglocke (sitzt in der DUNKLEN Topbar -> chrome-Farben!) ---- */
.notif-box { position: relative; }
.notif-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: rgba(243,237,226,0.72); cursor: pointer; padding: 6px; border-radius: 7px; transition: color .14s ease, background .14s ease; }
.notif-toggle:hover { color: var(--chrome-text); background: rgba(243,237,226,0.09); }
.notif-ic { width: 20px; height: 20px; display: block; }
.notif-badge { position: absolute; top: 0; right: 0; min-width: 15px; height: 15px; padding: 0 3px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: .58rem; line-height: 15px; text-align: center; border-radius: 8px; box-sizing: border-box; }
.notif-menu { width: 320px; max-width: calc(100vw - 24px); padding: 0; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--chrome-line); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,237,226,0.5); }
.notif-readall { background: none; border: none; color: var(--accent); font-family: var(--mono); font-size: .66rem; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 4px; }
.notif-readall:hover { text-decoration: underline; }
.notif-list { max-height: 360px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.notif-empty { padding: 22px 14px; text-align: center; font-size: .82rem; color: rgba(243,237,226,0.5); }
.notif-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--chrome-line); text-decoration: none; color: var(--chrome-text); transition: background .12s ease; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(243,237,226,0.07); }
.notif-item.unread { background: rgba(214,69,31,0.16); }
.notif-item.unread:hover { background: rgba(214,69,31,0.24); }
.notif-item-title { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 2px; color: var(--chrome-text); }
.notif-item-body { display: block; font-size: .8rem; color: rgba(243,237,226,0.66); line-height: 1.35; }
.notif-item-when { display: block; font-size: .7rem; color: rgba(243,237,226,0.42); margin-top: 3px; }

/* ============================================================
   MOBIL (Handy, <= 640px) — durchgehend fingerfreundlich.
   Ergaenzt die bestehenden Breakpoints (600/720/860/900px).
   ============================================================ */
@media (max-width: 640px) {
  /* --- Glocke + Dropdown: darf nie aus dem Bild laufen --- */
  .notif-toggle { padding: 9px; }                       /* groesseres Touch-Ziel */
  .notif-menu { width: calc(100vw - 20px); max-width: none; right: -6px; }
  .notif-list { max-height: 60vh; }
  .notif-item { padding: 13px 14px; }
  .notif-readall { padding: 6px 2px; }

  /* --- Konto-Seite --- */
  .konto-card { padding: 16px 14px; border-radius: 10px; }
  .konto h1 { font-size: 1.5rem; }

  /* --- Suche: Karten volle Breite, Filter kompakt --- */
  .board { grid-template-columns: 1fr; }
  .results-head { gap: 10px; }
  .sort-wrap select { flex: 1 1 auto; min-width: 0; }
  .card { padding: 14px 15px; }
  .fopt { padding: 10px 6px; }                          /* Zeile gross genug zum Antippen */
  .fopt input { width: 17px; height: 17px; }

  /* --- Feedback-Panel begrenzt sich schon selbst (max-width: 100vw-32px) --- */

  /* --- Newsletter im Fuss: siehe partials/footer.php (eigener style-Block) --- */

  /* --- Allgemein: Formularfelder nie ueber den Rand --- */
  input, select, textarea { max-width: 100%; }
  /* iOS zoomt bei Feldern unter 16px automatisch hinein -> verhindern */
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="search"], select, textarea { font-size: 16px; }
}

/* Sehr schmale Geraete: der Spruch weicht Glocke und Konto */
@media (max-width: 420px) {
  .topbar .tagline { display: none; }
}

/* ----- Suche: einklappbare Filter (nur Handy) ----- */
.filters-toggle { display: none; }          /* am Desktop stehen die Filter immer offen */

@media (max-width: 860px) {
  /* Ab hier liegen die Filter ueber den Ergebnissen und waeren sonst sehr lang. */
  .filters-toggle {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 12px 14px; margin-bottom: 10px;
    background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius);
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink); cursor: pointer; transition: border-color 0.15s ease;
  }
  .filters-toggle:hover { border-color: var(--accent); }
  .ft-ic { width: 15px; height: 15px; flex: none; color: var(--muted); }
  .ft-txt { flex: 1 1 auto; text-align: left; }
  .ft-count { flex: none; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
              background: var(--accent); color: #fff; font-size: 0.62rem; line-height: 19px; text-align: center; }
  .ft-count.hidden { display: none; }
  .ft-chev { width: 15px; height: 15px; flex: none; color: var(--muted); transition: transform 0.2s ease; }
  .filters-toggle[aria-expanded="true"] .ft-chev { transform: rotate(180deg); }

  .filters-body { display: none; }
  .filters-body.open { display: block; animation: fbOpen 0.18s ease; }
  @keyframes fbOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

  .search-filters { position: static; }     /* kein sticky, wenn eingeklappt */
}