/* Alltagshilfe Nord – Ratgeber (shared stylesheet, matches site design system) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/dm-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/dm-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/playfair-500.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/playfair-600.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/playfair-700.woff2') format('woff2'); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1B2A4A; --navy-light: #2C3E5F; --green: #5B8C3E; --green-light: #6FA24E;
  --green-pale: #EEF4E8; --cream: #F9FAFB; --white: #FFFFFF;
  --text: #1B2A4A; --text-mid: #3D4F6A; --text-light: #6B7C95;
  --border: rgba(27,42,74,0.08); --radius: 20px;
  --shadow: 0 4px 30px rgba(27,42,74,0.07); --shadow-lg: 0 16px 56px rgba(27,42,74,0.11);
}
html { scroll-behavior: smooth; font-size: 18px; }
body { font-family: 'DM Sans', -apple-system, sans-serif; color: var(--text); line-height: 1.75; background: var(--white); }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; color: var(--navy); }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* Top bar */
.top-bar { background: #1B2A4A; color: rgba(255,255,255,0.85); font-size: 0.76rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.top-bar-inner { max-width: 1120px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: center; align-items: stretch; height: 38px; }
.top-bar-left { display: flex; align-items: stretch; }
.top-bar-item { display: flex; align-items: center; gap: 10px; padding: 0 20px; position: relative; color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; transition: background 0.2s; }
a.top-bar-item:hover { background: rgba(255,255,255,0.06); color: white; }
.top-bar-item + .top-bar-item::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,0.1); }
.top-bar-icon { width: 22px; height: 22px; border-radius: 50%; background: #5B8C3E; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: white; flex-shrink: 0; line-height: 1; }

/* Nav */
nav { background: rgba(255,255,255,0.95); border-bottom: 1px solid rgba(27,42,74,0.08); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 12px 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { height: 46px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.nav-brand-name strong { font-weight: 800; }
.nav-brand-sub { font-size: 0.65rem; color: var(--green); font-weight: 600; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 0.92rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); }
.nav-cta { background: var(--green); color: white !important; padding: 12px 28px; border-radius: 12px; font-weight: 700; transition: all 0.2s; box-shadow: 0 2px 12px rgba(91,140,62,0.25); }
.nav-cta:hover { background: var(--green-light); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: 0.3s; }

/* Hero */
.page-hero { padding: 64px 0 40px; background: linear-gradient(160deg, #FFFFFF 0%, #F7F9F7 40%, #F0F5EC 100%); }
.page-hero .label { display: inline-block; color: var(--green); font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 20px; max-width: 760px; }
.page-hero h1 .green { color: var(--green); }
.page-hero .lead { font-size: 1.12rem; color: var(--text-mid); max-width: 680px; line-height: 1.85; }
.breadcrumb { font-size: 0.82rem; color: var(--text-light); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 0.86rem; color: var(--text-light); }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 16px; height: 16px; fill: var(--green); }

/* Hero illustration */
.hero-illustration { margin: 36px 0 0; }
.hero-illustration .illus-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--green-pale); }
.hero-illustration svg { width: 100%; height: auto; }

/* Article prose */
.article-body { padding: 56px 0 40px; }
.article-body p { color: var(--text-mid); font-size: 1.04rem; line-height: 1.9; margin-bottom: 22px; }
.article-body h2 { font-size: 1.7rem; margin: 44px 0 16px; }
.article-body h3 { font-size: 1.25rem; margin: 30px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.article-body ul li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-mid); font-size: 1rem; line-height: 1.7; }
.article-body ul li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--green-pale); color: var(--green); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.article-body ol { counter-reset: step; padding-left: 0; }
.article-body ol li { position: relative; padding-left: 44px; margin-bottom: 16px; color: var(--text-mid); line-height: 1.7; counter-increment: step; }
.article-body ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: var(--green); color: #fff; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; font-family: 'DM Sans', sans-serif; }
.article-body a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body strong { color: var(--navy); }

/* Info / highlight boxes */
.info-box { background: var(--green-pale); border-radius: 16px; padding: 28px 30px; margin: 32px 0; border-left: 4px solid var(--green); }
.info-box h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); }
.info-box p { margin: 0; color: var(--text-mid); font-size: 0.98rem; }
.info-box p + p { margin-top: 12px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; }
.fact { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; text-align: center; }
.fact .fact-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 8px; }
.fact .fact-label { font-size: 0.86rem; color: var(--text-light); }

/* In-article illustration banner */
.article-illus { margin: 40px 0 8px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.article-illus img { width: 100%; height: auto; display: block; }
.article-illus figcaption { font-size: 0.82rem; color: var(--text-light); text-align: center; padding: 10px 16px; background: var(--cream); }

/* FAQ */
.faq-section { padding: 20px 0 56px; }
.faq-section h2 { font-size: 1.7rem; margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; padding: 22px 26px; margin-bottom: 14px; background: var(--white); }
.faq-item h3 { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.faq-item p { color: var(--text-mid); font-size: 0.98rem; margin: 0; }

/* CTA */
.cta-box { background: var(--navy); border-radius: var(--radius); padding: 52px 48px; text-align: center; margin: 16px 28px 0; }
.cta-box h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 1.02rem; margin-bottom: 26px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-box .btn-green { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: var(--white); padding: 17px 34px; border-radius: 14px; font-size: 1.08rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 20px rgba(91,140,62,0.4); transition: all 0.25s; }
.cta-box .btn-green:hover { background: var(--green-light); transform: translateY(-2px); }

/* Ratgeber index grid */
.ratgeber-grid-section { padding: 64px 0 80px; }
.ratgeber-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rg-card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.rg-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.rg-card .rg-thumb { background: var(--green-pale); }
.rg-card .rg-thumb svg { width: 100%; height: auto; display: block; }
.rg-card .rg-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.rg-card .rg-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.rg-card h3 { font-size: 1.18rem; line-height: 1.35; margin-bottom: 10px; color: var(--navy); }
.rg-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.rg-card .rg-link { font-size: 0.88rem; font-weight: 700; color: var(--green); }

/* Related */
.related-section { padding: 56px 0 80px; background: var(--cream); }
.related-section h2 { text-align: center; font-size: 1.7rem; margin-bottom: 36px; }
.related-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all 0.3s; }
.related-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.related-card .rc-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 8px; display: block; }
.related-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; }

/* Footer */
footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 24px 0; text-align: center; font-size: 0.82rem; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 10px; }
footer a:hover { color: white; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 20px 28px; box-shadow: 0 4px 30px rgba(27,42,74,0.07); gap: 14px; z-index: 99; }
  .page-hero h1 { font-size: 1.9rem; }
  .ratgeber-grid, .related-row, .fact-grid { grid-template-columns: 1fr; }
  .cta-box { margin: 16px 0 0; border-radius: 0; padding: 44px 28px; }
  .top-bar-item:nth-child(2) { display: none; }
  .top-bar-item { padding: 0 12px; font-size: 0.72rem; gap: 6px; }
}
@media (max-width: 600px) {
  .top-bar-item { padding: 0 10px; font-size: 0.68rem; gap: 5px; }
  .top-bar-inner { height: 32px; }
}
