/* =========================================================================
   Festzinskompass – reines CSS (kein Tailwind-Build, keine Frameworks)
   Nachbildung des Designs aus dem ursprünglichen React/Tailwind-Projekt.
   ========================================================================= */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/playfairdisplay/v37/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKdFvXDXbtM.woff2") format("woff2");
}

:root {
  --radius: 4px;
  --background: oklch(0.98 0.003 80);
  --foreground: oklch(0.15 0.03 250);
  --card: oklch(1 0 0);
  --primary: oklch(0.3 0.12 250);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.94 0.01 80);
  --muted: oklch(0.94 0.01 80);
  --muted-foreground: oklch(0.45 0.03 250);
  --accent: oklch(0.5 0.22 30);
  --accent-foreground: oklch(0.98 0 0);
  --border: oklch(0.88 0.015 80);

  --navy-1: #1a1a2e;
  --navy-2: #16213e;
  --navy-3: #0f3460;
  --navy-4: #0a1628;

  --c-blue: #3b82f6;
  --c-emerald: #10b981;
  --c-amber: #f59e0b;
  --c-violet: #8b5cf6;
  --c-rose: #f43f5e;
  --c-teal: #14b8a6;
  --c-indigo: #6366f1;
  --c-gray: #6b7280;
}

html.dark {
  --background: oklch(0.12 0.02 250);
  --foreground: oklch(0.93 0.008 80);
  --card: oklch(0.17 0.025 250);
  --primary: oklch(0.7 0.15 210);
  --primary-foreground: oklch(0.12 0.02 250);
  --secondary: oklch(0.22 0.025 250);
  --muted: oklch(0.22 0.025 250);
  --muted-foreground: oklch(0.65 0.025 250);
  --accent: oklch(0.62 0.22 30);
  --accent-foreground: oklch(0.98 0 0);
  --border: oklch(0.28 0.025 250);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  margin: 0;
  line-height: 1.2;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.flex-1 { flex: 1; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-md { max-width: 896px; margin: 0 auto; padding: 0 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; }
.mb-4 { margin-bottom: 16px; }

.muted { color: var(--muted-foreground); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.strong-white { font-weight: 700; color: #fff; }
.block { display: block; }
.muted.small.block { margin-top: 6px; }
.center { text-align: center; }
.sm { font-size: 15px; }
.lg { font-size: 18px; }
.accent-text { color: var(--accent); }

.clamp-2 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ---- Icons ---- */
.ic { flex-shrink: 0; }
.ic-8 { width: 8px; height: 8px; }
.ic-10 { width: 10px; height: 10px; }
.ic-12 { width: 12px; height: 12px; }
.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-24 { width: 24px; height: 24px; }
.ic.white { color: #fff; }
.ic.amber { color: var(--c-amber); }
.ic.emerald { color: var(--c-emerald); }
.ic.blue { color: var(--c-blue); }
.ic.violet { color: var(--c-violet); }
.ic.accent { color: var(--accent); }

/* =========================================================================
   HEADER
   ========================================================================= */
.topbar { background: var(--navy-1); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; font-size: 12px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: rgba(255,255,255,.7); font-weight: 600; }
.topbar-right a:hover { color: #fff; }
.muted-70 { color: rgba(255,255,255,.7); }
.sep { color: rgba(255,255,255,.5); }
.live { display: flex; align-items: center; gap: 6px; color: #34d399; }

.ticker-bar { background: var(--navy-2); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.ticker-inner { display: flex; align-items: center; gap: 12px; padding: 6px 16px; }
.ticker-tag { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 2px; flex-shrink: 0; }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; }
.ticker-track { display: flex; gap: 32px; white-space: nowrap; width: max-content; animation: ticker-scroll 30s linear infinite; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ticker-symbol { font-weight: 600; color: rgba(255,255,255,.9); }
.ticker-value { color: rgba(255,255,255,.6); }
.ticker-change { display: flex; align-items: center; gap: 2px; font-weight: 500; }
.ticker-change.positive { color: #34d399; }
.ticker-change.negative { color: #f87171; }
.ticker-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { background: none; border: none; color: rgba(255,255,255,.6); padding: 6px; border-radius: 2px; display: flex; }
.icon-btn:hover { color: #fff; }

.brandbar { background: var(--navy-3); border-bottom: 1px solid rgba(255,255,255,.1); }
.brandbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px; gap: 12px; }
.brand-info { display: flex; flex-direction: column; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.3; }
.brand-info-title { font-weight: 600; color: #fff; font-size: 14px; }
.brand-info-sub { color: rgba(255,255,255,.5); font-size: 10px; }
.brand-logo { display: flex; align-items: center; gap: 8px; }
.brand-logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), #f59e0b); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-logo-text { display: flex; flex-direction: column; }
.brand-name { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
.brand-tagline { font-size: 10px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .15em; margin-top: 2px; }
.brandbar-right { display: flex; align-items: center; gap: 12px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #f59e0b; color: var(--navy-1); font-size: 14px; font-weight: 700; border-radius: 2px; }
.btn-cta:hover { background: #fbbf24; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; padding: 8px; }
.mobile-toggle .icon-close { display: none; }
.mobile-toggle.is-open .icon-open { display: none; }
.mobile-toggle.is-open .icon-close { display: block; }

.mainnav { background: var(--card); border-bottom: 1px solid var(--border); }
.nav-desktop { display: flex; align-items: center; gap: 0; }
.nav-desktop a { display: block; padding: 12px 16px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: color-mix(in oklab, var(--foreground) 70%, transparent); border-bottom: 2px solid transparent; }
.nav-desktop a:hover { color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, transparent); }
.nav-desktop a.active { color: var(--accent); border-bottom-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, transparent); }

.search-panel { display: none; padding: 12px 0; border-top: 1px solid var(--border); }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 8px; max-width: 400px; }
.search-form input { flex: 1; padding: 8px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 2px; background: var(--card); color: var(--foreground); }
.search-form input:focus { outline: none; border-color: var(--accent); }
.search-form button { padding: 8px 16px; background: var(--accent); color: var(--accent-foreground); font-size: 14px; font-weight: 600; border: none; border-radius: 2px; }

.mobile-nav { display: none; padding: 12px 0; }
.mobile-nav.open { display: block; }
.mobile-nav .search-form { padding: 0 16px; margin-bottom: 12px; }
.mobile-nav-label { font-size: 12px; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .05em; padding: 0 16px; margin-bottom: 8px; }
.mobile-nav-link { display: block; padding: 10px 16px; font-size: 14px; font-weight: 600; color: color-mix(in oklab, var(--foreground) 80%, transparent); border-radius: 2px; }
.mobile-nav-link.active { color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.mobile-nav-link.secondary { font-weight: 500; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.mobile-nav-divider { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }

.breaking { background: var(--accent); color: #fff; }
.breaking-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 12px; }
.breaking-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breaking-tag { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 2px; flex-shrink: 0; }
.breaking-text { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: var(--navy-1); color: #fff; font-size: 12px; font-weight: 600; border-radius: 2px; flex-shrink: 0; }
.breaking-link:hover { background: var(--navy-2); }

/* =========================================================================
   HERO / KATEGORIEN
   ========================================================================= */
.hero { padding: 16px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hero-featured-media { position: relative; overflow: hidden; border-radius: 2px; }
.hero-featured-media img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; }
.hero-featured:hover img { transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.3) 55%, transparent); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.hero-content h2 { font-size: 20px; font-weight: 700; color: #fff; margin: 12px 0 8px; line-height: 1.25; }
.hero-excerpt { display: none; color: rgba(255,255,255,.8); font-size: 15px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: rgba(255,255,255,.6); font-size: 12px; }
.hero-meta span { display: flex; align-items: center; gap: 4px; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }

.badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 2px; }
.badge-sm { font-size: 10px; padding: 2px 8px; }
.badge-xs { font-size: 9px; padding: 1px 6px; }
.badge-blue { background: var(--c-blue); }
.badge-emerald { background: var(--c-emerald); }
.badge-amber { background: var(--c-amber); }
.badge-violet { background: var(--c-violet); }
.badge-rose { background: var(--c-rose); }
.badge-teal { background: var(--c-teal); }
.badge-indigo { background: var(--c-indigo); }
.badge-gray { background: var(--c-gray); }

.side-card, .news-card, .list-card, .mini-card { border: 1px solid var(--border); border-radius: 2px; background: var(--card); transition: box-shadow .2s, border-color .2s; }
.side-card:hover, .news-card:hover, .list-card:hover, .mini-card:hover { border-color: color-mix(in oklab, var(--accent) 40%, transparent); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.side-card { padding: 12px; display: block; }
.side-card.grow { flex: 1; }
.side-card h3 { font-size: 15px; font-weight: 700; margin-top: 8px; line-height: 1.3; }
.side-card h3.sm { font-size: 13px; }
.side-card:hover h3 { color: var(--accent); }

.cat-bar { padding: 12px 0; border-bottom: 1px solid var(--border); }
.cat-bar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 2px; background: var(--card); text-align: center; }
.cat-card:hover { border-color: color-mix(in oklab, var(--accent) 40%, transparent); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cat-icon-wrap { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s; flex-shrink: 0; }
.cat-card:hover .cat-icon-wrap { transform: scale(1.1); }
.cat-icon-wrap.emerald { background: var(--c-emerald); }
.cat-icon-wrap.amber { background: var(--c-amber); }
.cat-icon-wrap.violet { background: var(--c-violet); }
.cat-icon-wrap.blue { background: var(--c-blue); }
.cat-icon-wrap.teal { background: var(--c-teal); }
.cat-icon-wrap.indigo { background: var(--c-indigo); }
.cat-card-text { display: block; text-align: center; }
.cat-card-name { display: block; font-size: 14px; font-weight: 600; }
.cat-card:hover .cat-card-name { color: var(--accent); }
.cat-card-desc { display: block; font-size: 11px; color: var(--muted-foreground); }

/* =========================================================================
   LAYOUT: Hauptbereich + Sidebar
   ========================================================================= */
.main-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 20px; }
.col-main, .col-side { min-width: 0; }
.section-block { padding-top: 16px; }
.section-block.bordered-top { border-top: 1px solid var(--border); margin-top: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-title { display: flex; align-items: center; gap: 8px; }
.section-title h2 { font-size: 20px; font-weight: 700; }
.section-title h2.sm { font-size: 18px; }
.bar { width: 4px; height: 24px; border-radius: 2px; display: block; }
.bar.accent { background: var(--accent); }
.bar.emerald { background: var(--c-emerald); }
.bar.violet { background: var(--c-violet); }
.section-link { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-link:hover { opacity: .8; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.weitere-top { display: grid; grid-template-columns: 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.stack-col { display: flex; flex-direction: column; gap: 12px; }

.news-card { overflow: hidden; display: block; }
.news-card-media { overflow: hidden; }
.news-card-media img { width: 100%; height: 144px; object-fit: cover; transition: transform .5s; }
.news-card-media.tall img { height: 176px; }
.news-card-media.short img { height: 112px; }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-body { padding: 12px; }
.news-card-body h3 { font-size: 15px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.news-card-body h3.lg { font-size: 18px; }
.news-card-body h3.sm { font-size: 14px; }
.news-card:hover h3 { color: var(--accent); }
.news-card-body p { color: var(--muted-foreground); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.news-card-body p.small { font-size: 12px; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--muted-foreground); font-size: 12px; }
.card-meta.small { font-size: 11px; }
.card-meta span { display: flex; align-items: center; gap: 4px; }

.list-articles { display: flex; flex-direction: column; gap: 12px; }
.list-card { display: flex; gap: 12px; padding: 12px; }
.list-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.list-card-body { flex: 1; min-width: 0; }
.list-card-body h3 { font-size: 14px; font-weight: 700; margin-top: 4px; line-height: 1.3; }
.list-card:hover h3 { color: var(--accent); }

.tip-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.tip-box { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 2px; }
.tip-box.blue { background: linear-gradient(to right, #eff6ff, #eef2ff); }
.tip-box.amber { background: linear-gradient(to right, #fffbeb, #fff7ed); }
html.dark .tip-box.blue { background: linear-gradient(to right, rgba(30,58,138,.3), rgba(49,46,129,.3)); border-color: rgba(255,255,255,.1); }
html.dark .tip-box.amber { background: linear-gradient(to right, rgba(120,53,15,.3), rgba(124,45,18,.3)); border-color: rgba(255,255,255,.1); }
.tip-icon { width: 40px; height: 40px; border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tip-icon.blue { background: #dbeafe; color: #2563eb; }
.tip-icon.amber { background: #fef3c7; color: #d97706; }
html.dark .tip-icon.blue { background: rgba(30,58,138,.5); color: #60a5fa; }
html.dark .tip-icon.amber { background: rgba(120,53,15,.5); color: #fbbf24; }
.tip-box h4 { font-size: 14px; font-weight: 700; color: var(--foreground); }
.tip-box p { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; line-height: 1.4; }

/* =========================================================================
   SIDEBAR (Marktüberblick, Zinsen, Newsletter, Trending, Tags)
   ========================================================================= */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-panel { border: 1px solid var(--border); border-radius: 2px; background: var(--card); padding: 16px; }
.side-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.side-panel-head h3 { font-size: 16px; font-weight: 700; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-box { text-align: center; padding: 10px; background: var(--secondary); border-radius: 2px; border: 1px solid color-mix(in oklab, var(--border) 50%, transparent); }
.stat-icon { display: block; margin: 0 auto 4px; width: 16px; height: 16px; }
.stat-icon.emerald svg { color: var(--c-emerald); }
.stat-icon.blue svg { color: var(--c-blue); }
.stat-icon.amber svg { color: var(--c-amber); }
.stat-icon.violet svg { color: var(--c-violet); }
.stat-value { font-size: 14px; font-weight: 700; }
.stat-label { font-size: 10px; color: var(--muted-foreground); }

.rates-list { display: flex; flex-direction: column; }
.rate-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rate-row:last-child { border-bottom: none; }
.rate-left { display: flex; align-items: center; gap: 10px; }
.rate-rank { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rate-rank.gold { background: #f59e0b; }
.rate-rank.silver { background: #9ca3af; }
.rate-rank.bronze { background: #b45309; }
.rate-rank.plain { background: var(--primary); }
.rate-bank { font-size: 14px; font-weight: 600; line-height: 1.2; }
.rate-info { font-size: 12px; color: var(--muted-foreground); }
.rate-value { font-size: 14px; font-weight: 700; color: var(--c-emerald); }
.btn-block { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 12px; padding: 8px; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--accent-foreground); border: none; border-radius: 2px; }
.btn-block:hover { opacity: .9; }

.side-panel.newsletter h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 8px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 2px; background: var(--card); color: var(--foreground); }
.newsletter-form button { padding: 8px 16px; background: var(--accent); color: var(--accent-foreground); font-weight: 600; font-size: 14px; border: none; border-radius: 2px; }
.newsletter-success { display: flex; align-items: center; gap: 8px; color: var(--c-emerald); font-weight: 500; font-size: 14px; }

.trending-list { display: flex; flex-direction: column; gap: 12px; }
.trending-item, .related-item { display: flex; gap: 10px; align-items: flex-start; }
.trending-num { font-size: 18px; font-weight: 700; color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); line-height: 1; margin-top: 2px; }
.trending-item h4, .related-item h4 { font-size: 12px; font-weight: 600; line-height: 1.3; }
.trending-item:hover h4, .related-item:hover h4 { color: var(--accent); }
.trending-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted-foreground); font-size: 10px; }
.trending-meta span { display: flex; align-items: center; gap: 3px; }
.related-item img { width: 64px; height: 56px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); border-radius: 2px; background: var(--secondary); }
.tag:hover { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }
.tag.tag-xs { font-size: 10px; padding: 2px 8px; }

.side-panel.tip-emerald { border-color: #a7f3d0; background: #ecfdf5; }
html.dark .side-panel.tip-emerald { border-color: #065f46; background: rgba(6,95,70,.3); }
.side-panel.tip-emerald h3 { font-size: 15px; font-weight: 700; color: #065f46; margin-bottom: 8px; }
html.dark .side-panel.tip-emerald h3 { color: #6ee7b7; }
.side-panel.tip-emerald p { font-size: 12px; color: #047857; line-height: 1.4; }
html.dark .side-panel.tip-emerald p { color: #6ee7b7; }
.tip-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #047857; margin-top: 8px; }
html.dark .tip-link { color: #6ee7b7; }
.tip-link:hover { text-decoration: underline; }

/* =========================================================================
   ARTIKEL-SEITE
   ========================================================================= */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-foreground); margin-bottom: 16px; }
.breadcrumb a { display: flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--accent); }

.article-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.article-title { font-size: 26px; font-weight: 700; line-height: 1.25; margin-top: 12px; margin-bottom: 12px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--muted-foreground); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.share-btn { margin-left: auto; display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--accent); font-weight: 500; font-size: 14px; }
.share-btn:hover { opacity: .8; }
.article-hero-media { border-radius: 2px; overflow: hidden; margin-bottom: 24px; }
.article-hero-media img { width: 100%; height: 280px; object-fit: cover; }
.article-excerpt { font-size: 16px; font-weight: 500; line-height: 1.6; margin-bottom: 20px; padding-left: 16px; border-left: 4px solid var(--accent); }
.prose p { color: color-mix(in oklab, var(--foreground) 90%, transparent); line-height: 1.7; margin-bottom: 16px; }
.disclaimer-box { margin-top: 24px; padding: 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 2px; }
html.dark .disclaimer-box { background: rgba(120,53,15,.3); border-color: #92400e; }
.disclaimer-box p { font-size: 12px; color: #78350f; line-height: 1.5; }
html.dark .disclaimer-box p { color: #fde68a; }

.same-category { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.same-category h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.mini-card { padding: 12px; display: block; }
.mini-card img { width: 100%; height: 96px; object-fit: cover; border-radius: 2px; margin-bottom: 8px; }
.mini-card h4 { font-size: 12px; font-weight: 600; line-height: 1.3; }
.mini-card:hover h4 { color: var(--accent); }

/* =========================================================================
   KATEGORIE-SEITE
   ========================================================================= */
.category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cat-stripe { width: 12px; height: 32px; border-radius: 2px; flex-shrink: 0; }
.cat-stripe.emerald { background: var(--c-emerald); }
.cat-stripe.amber { background: var(--c-amber); }
.cat-stripe.violet { background: var(--c-violet); }
.cat-stripe.blue { background: var(--c-blue); }
.cat-stripe.teal { background: var(--c-teal); }
.cat-stripe.indigo { background: var(--c-indigo); }
.category-head h1 { font-size: 26px; font-weight: 700; }
.category-head p { color: var(--muted-foreground); margin-top: 4px; font-size: 14px; }
.empty-state { text-align: center; padding: 48px 0; }
.empty-state p { color: var(--muted-foreground); font-size: 18px; }
.empty-state a { color: var(--accent); font-weight: 600; margin-top: 12px; display: inline-block; }
.empty-state a:hover { text-decoration: underline; }

/* =========================================================================
   STATISCHE SEITEN (Kontakt, Impressum, Datenschutz, Haftungsausschluss)
   ========================================================================= */
.page-hero { background: linear-gradient(to right, var(--primary), color-mix(in oklab, var(--primary) 90%, transparent)); padding: 40px 0; }
.page-hero h1 { font-size: 30px; font-weight: 700; color: var(--primary-foreground); }
.page-hero p { color: color-mix(in oklab, var(--primary-foreground) 70%, transparent); margin-top: 8px; }
.page-title { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.page-lead { color: var(--muted-foreground); font-size: 17px; margin-bottom: 32px; }

.stack-gap { display: flex; flex-direction: column; gap: 24px; }
.stack-gap-sm { display: flex; flex-direction: column; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 32px; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 24px; }
.panel:hover { box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { margin-bottom: 0; }
.panel-icon { width: 36px; height: 36px; border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.panel-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.panel-icon.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.panel-icon.emerald { background: linear-gradient(135deg, #10b981, #047857); }
.panel-icon.amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.panel-icon.emerald-dark { background: linear-gradient(135deg, #059669, #0d9488); }
.panel-icon.teal { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.panel-icon.rose { background: linear-gradient(135deg, #f43f5e, #db2777); }
.panel-icon.gray { background: linear-gradient(135deg, #6b7280, #374151); }
.panel-body { padding-left: 48px; color: color-mix(in oklab, var(--foreground) 90%, transparent); }
.panel-body p { margin-bottom: 4px; }
.eyebrow { font-size: 11px; font-weight: 700; color: #059669; text-transform: uppercase; letter-spacing: .05em; }
.panel-divider { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.panel.tint-emerald { background: linear-gradient(to right, #ecfdf5, #f0fdfa); border-color: #a7f3d0; }
.panel.tint-blue { background: linear-gradient(to right, #eff6ff, #eef2ff); border-color: #bfdbfe; }
html.dark .panel.tint-emerald { background: rgba(6,95,70,.2); border-color: #065f46; }
html.dark .panel.tint-blue { background: rgba(30,58,138,.2); border-color: #1e3a8a; }

.dot-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.dot-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-list.teal li::before { background: var(--c-teal); }
.dot-list.emerald li::before { background: var(--c-emerald); }

.risk-list { display: flex; flex-direction: column; gap: 12px; }
.risk-item { padding: 12px; background: var(--secondary); border-radius: 2px; border-left: 4px solid; }
.risk-item.rose { border-color: #fb7185; }
.risk-item.amber { border-color: #fbbf24; }
.risk-item.blue { border-color: #60a5fa; }
.risk-item.violet { border-color: #a78bfa; }

/* =========================================================================
   KONTAKT-FORMULAR
   ========================================================================= */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form textarea { padding: 10px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 2px; background: var(--background); color: var(--foreground); font-family: inherit; resize: none; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.info-rows { display: flex; flex-direction: column; gap: 16px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { margin-top: 24px; }
.footer-accent { height: 4px; background: linear-gradient(to right, var(--accent), #f59e0b, #10b981); }
.footer-main { background: var(--navy-4); color: #d1d5db; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand h3 { font-size: 20px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 12px; color: #d1d5db; line-height: 1.5; margin-bottom: 12px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9ca3af; }
.footer-contact .ic { color: #fbbf24; }
.footer-heading { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; color: #fbbf24; }
.footer-list { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.footer-list a { display: flex; align-items: center; gap: 8px; color: #d1d5db; }
.footer-list a:hover { color: #fcd34d; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.emerald { background: #34d399; } .dot.amber { background: #fbbf24; } .dot.violet { background: #a78bfa; } .dot.blue { background: #60a5fa; } .dot.teal { background: #2dd4bf; }
.footer-company { font-size: 12px; color: #d1d5db; display: flex; flex-direction: column; gap: 4px; }
.bafin-badge { margin-top: 12px; padding: 10px; border-radius: 2px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.bafin-badge-title { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: #34d399; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.bafin-badge-title .ic { color: #34d399; }
.bafin-badge p { font-size: 10px; color: #9ca3af; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 16px; padding-top: 16px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.footer-hint { font-size: 10px; color: rgba(253,230,138,.8); line-height: 1.5; }
.footer-hint strong { color: #fcd34d; }
.footer-legal-row { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; color: #6b7280; text-align: center; }
.footer-legal-row p { display: flex; align-items: center; gap: 6px; }
.footer-legal-row .ic { color: #34d399; }

/* =========================================================================
   404
   ========================================================================= */
.notfound { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.notfound-inner { text-align: center; }
.notfound-inner h1 { font-size: 64px; font-weight: 700; color: var(--muted-foreground); }
.notfound-inner h2 { font-size: 26px; font-weight: 600; margin-top: 8px; }
.notfound-inner p { color: var(--muted-foreground); font-size: 17px; margin: 16px 0 24px; }
.notfound-inner .btn-cta { color: #fff; }

/* =========================================================================
   TOASTS
   ========================================================================= */
.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 999; max-width: 320px; }
.toast { padding: 12px 16px; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: 4px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.15); animation: toast-in .2s ease-out; }
.toast.success { border-left: 4px solid var(--c-emerald); }
.toast.info { border-left: 4px solid var(--c-blue); }
.toast.error { border-left: 4px solid var(--c-rose); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   HELPERS
   ========================================================================= */
.hide-sm { }
.hide-lg { display: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 640px) {
  .cat-bar-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero-excerpt { display: block; }
  .hero-content h2 { font-size: 24px; }
  .hero-featured-media img { height: 320px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .same-category .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .weitere-top { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .tip-grid { grid-template-columns: repeat(2, 1fr); }
  .list-card img { width: 128px; height: 80px; }
  .nav-desktop { display: flex !important; }
  .mobile-toggle { display: none !important; }
  .mobile-nav { display: none !important; }
  .footer-legal-row { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}

@media (max-width: 767px) {
  .hide-sm { display: none !important; }
  .mobile-toggle { display: flex; }
  .brandbar .brand-logo-icon { width: 28px; height: 28px; }
}

@media (min-width: 1024px) {
  .hide-lg { display: flex; }
  .hero-grid { grid-template-columns: 2fr 1fr; }
  .hero-content h2 { font-size: 30px; }
  .main-grid { grid-template-columns: 2fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .same-category .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cat-bar-grid { grid-template-columns: repeat(6, 1fr); }
  .article-grid { grid-template-columns: 2fr 1fr; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===================================================================
   KADO 2026-10-29 — Farbpalette Refresh (nur Farben/Radius, Layout unverändert)
   Rollback: style.css aus backups/festgeldzinscheck-20261029/
   =================================================================== */
:root{
  --radius: 6px;
  --background: #FAFAF8;
  --foreground: #0F1B2A;
  --card: #FFFFFF;
  --primary: #0F2A47;
  --primary-foreground: #FFFFFF;
  --secondary: #EEF1F4;
  --muted: #EEF1F4;
  --muted-foreground: #55637A;
  --accent: #A9822F;
  --accent-foreground: #FFFFFF;
  --border: #E3E7EC;

  --navy-1: #0F2A47;
  --navy-2: #132F4F;
  --navy-3: #1B3E66;
  --navy-4: #08182A;

  --c-blue: #2C6EA8;
  --c-emerald: #12876C;
  --c-amber: #B98A2E;
  --c-violet: #6A5A94;
  --c-rose: #B04A5E;
  --c-teal: #11807A;
  --c-indigo: #4A5FB4;
  --c-gray: #6B7280;
}
html.dark{
  --background: #0B1622;
  --foreground: #E8EDF3;
  --card: #121F2E;
  --primary: #8FB8DC;
  --primary-foreground: #0B1622;
  --secondary: #182636;
  --muted: #182636;
  --muted-foreground: #9AA9BC;
  --accent: #D9B45B;
  --accent-foreground: #0B1622;
  --border: #22334A;
}
/* dezente Veredelung: weichere Kanten + ruhigere Hover-Schatten */
.panel, .side-card, .news-card, .list-card, .mini-card, .cat-card, .btn, .badge{border-radius: var(--radius);}
.panel:hover, .side-card:hover, .news-card:hover, .list-card:hover, .mini-card:hover, .cat-card:hover{box-shadow: 0 3px 14px rgba(15,42,71,.08);}
