/* === nulleinspeisung-ratgeber.de === */

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fef3c7;
  --green: #16a34a;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
  --max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.75;
  color: var(--text); background: var(--bg);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; }

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 20px; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.site-logo span { color: var(--amber); }
.site-nav { display: flex; gap: 2px; }
.site-nav a {
  color: rgba(255,255,255,.78); font-size: .9rem; font-weight: 500;
  padding: 6px 13px; border-radius: 6px;
  text-decoration: none; white-space: nowrap; transition: all .15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-nav a.active { color: var(--amber); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; }

.mobile-nav { display: none; flex-direction: column; background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,.08); }
.mobile-nav a { padding: 13px 20px; color: rgba(255,255,255,.82); font-size: .93rem; border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; }
.mobile-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, #0f172a 0%, #1a3a6e 55%, #0f2040 100%);
  color: #fff; padding: 72px 20px 64px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: var(--amber); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.78); max-width: 600px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat { text-align: center; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--amber); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all .15s; line-height: 1;
}
.btn-primary { background: var(--amber); color: #1a1a1a; }
.btn-primary:hover { background: var(--amber-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,158,11,.4); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1d4ed8; text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .87rem; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--bg-white); }
.section-dark { background: var(--navy); color: #fff; padding: 60px 0; }
.section-title { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.section-subtitle { color: var(--text-light); font-size: 1rem; margin-bottom: 40px; max-width: 620px; }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.card-link { font-size: .86rem; font-weight: 600; color: var(--blue); }

/* Topic Link Cards */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.topic-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: all .15s;
}
.topic-card:hover { box-shadow: var(--shadow-md); border-color: var(--amber); transform: translateY(-2px); text-decoration: none; }
.topic-icon { font-size: 1.7rem; flex-shrink: 0; }
.topic-text h3 { font-size: .96rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.topic-text p { font-size: .84rem; color: var(--text-light); line-height: 1.5; margin: 0; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: linear-gradient(135deg, #1e3a5f 0%, var(--navy) 100%);
  color: #fff; border-radius: 12px; padding: 36px 40px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.highlight-box-text { flex: 1; min-width: 220px; }
.highlight-box h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.highlight-box p { color: rgba(255,255,255,.78); font-size: .93rem; margin: 0; }

/* ===== INFO BOXES ===== */
.info-box {
  border-left: 4px solid var(--amber); background: var(--amber-light);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 24px 0;
}
.info-box.blue { border-color: var(--blue); background: var(--blue-light); }
.info-box.green { border-color: var(--green); background: #f0fdf4; }
.info-box p { font-size: .9rem; margin: 0; }
.info-box strong { display: block; margin-bottom: 5px; color: var(--text); }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--amber); color: #1a1a1a;
  border-radius: 50%; font-weight: 800; font-size: .88rem;
  display: flex; align-items: center; justify-content: center; margin-top: 3px;
}
.step-body h3 { font-size: .98rem; font-weight: 700; margin-bottom: 5px; }
.step-body p { font-size: .9rem; color: var(--text-light); margin: 0; }

/* ===== TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 24px 0; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.compare-table th { background: var(--navy); color: #fff; padding: 13px 16px; text-align: left; font-size: .84rem; font-weight: 600; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-white); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #f8fafc; }
.yes { color: #16a34a; font-weight: 700; }
.no { color: #dc2626; }
.partly { color: #d97706; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg-white);
  border: 2px solid var(--amber); border-radius: 12px; padding: 28px;
  margin: 28px 0; box-shadow: 0 4px 24px rgba(245,158,11,.12);
}
.product-badge {
  display: inline-block; background: var(--amber); color: #1a1a1a;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 14px;
}
.product-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.product-card .product-desc { color: var(--text-light); font-size: .93rem; margin-bottom: 18px; }
.product-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 16px 0 22px; }
.product-feature { display: flex; align-items: flex-start; gap: 8px; font-size: .87rem; }
.product-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; background: var(--bg-white); overflow: hidden; }
.faq-q {
  padding: 16px 20px; font-weight: 600; font-size: .95rem;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  list-style: none; user-select: none;
}
.faq-q::marker, .faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--amber); flex-shrink: 0; font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 20px 16px; font-size: .91rem; color: var(--text-light); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* ===== ANZEIGE / AFFILIATE ===== */
.anzeige-badge {
  display: inline-block; background: var(--amber); color: #1a1a1a;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; margin-right: 5px; vertical-align: middle;
}
.affiliate-note {
  background: #f1f5f9; border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 0 8px 8px 0; padding: 14px 18px;
  font-size: .82rem; color: var(--text-light); line-height: 1.65; margin-top: 32px;
}
.affiliate-note strong { color: var(--text); }

/* ===== ARTICLE ===== */
.article-layout { display: grid; grid-template-columns: 1fr 290px; gap: 48px; align-items: start; }
.article-sidebar { position: sticky; top: 78px; }
.toc-box {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.toc-box h4 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-light); margin-bottom: 12px;
}
.toc-box ul { list-style: none; padding: 0; }
.toc-box li { margin-bottom: 5px; }
.toc-box a {
  font-size: .85rem; color: var(--text); text-decoration: none;
  display: block; padding: 4px 10px;
  border-left: 2px solid var(--border); transition: all .12s;
}
.toc-box a:hover { border-color: var(--amber); color: var(--blue); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: #fff; border-radius: 10px; padding: 22px; margin-top: 20px; text-align: center;
}
.sidebar-cta h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.sidebar-cta p { font-size: .82rem; color: rgba(255,255,255,.72); margin-bottom: 16px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: .82rem; color: var(--text-light); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span::before { content: ' › '; color: var(--border); }

/* ===== PROSE ===== */
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 40px 0 14px; padding-top: 8px; }
.prose h3 { font-size: 1.08rem; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin-bottom: 16px; }
.prose a { color: var(--blue); }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 52px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .logo { color: #fff; font-size: 1.2rem; font-weight: 800; display: block; margin-bottom: 10px; text-decoration: none; }
.footer-brand .logo span { color: var(--amber); }
.footer-brand p { font-size: .84rem; line-height: 1.7; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .86rem; text-decoration: none; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .81rem;
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: #fff; }
.footer-affiliate-note { font-size: .77rem; color: rgba(255,255,255,.35); margin-top: 10px; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.07); padding-top: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 50px 20px 42px; }
  .section { padding: 44px 0; }
  .highlight-box { padding: 26px 20px; gap: 20px; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}

/* ===== DROPDOWN NAV ===== */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.chev { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.nav-dropdown:hover .chev,
.nav-dropdown:focus-within .chev { transform: rotate(180deg); }
.dropdown-menu {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12);
  min-width: 220px; padding: 12px 8px 8px; z-index: 100;
  display: flex; flex-direction: column;
  transition: opacity .2s 320ms, visibility .2s 320ms;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  visibility: visible; opacity: 1; pointer-events: auto;
  transition: opacity .15s, visibility .15s;
}
.dropdown-menu a {
  color: var(--navy); font-size: .88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 7px; text-decoration: none; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--amber); }

/* ===== MOBILE NAV LABELS ===== */
.mobile-nav-label {
  display: block; padding: 10px 20px 4px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}
.mobile-nav-sub { padding-left: 36px !important; font-size: .88rem !important; }

/* ===== HERO BADGE SVG ===== */
.hero-badge { display: inline-flex; align-items: center; gap: 6px; }
.hero-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ===== SVG ICONS ===== */
.card-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; background: rgba(245,158,11,.1); border-radius: 14px; }
.card-icon svg { width: 28px; height: 28px; stroke: var(--amber); stroke-width: 1.5; fill: none; }
.topic-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; background: rgba(245,158,11,.1); border-radius: 12px; }
.topic-icon svg { width: 24px; height: 24px; stroke: var(--amber); stroke-width: 1.5; fill: none; }
