/* Shared styles for the content pages (/foerderung/, /auszahlung-steuer/, /anbieter/). The calculator (index.html) has its own inline styles. */
:root { --bg: #f4faf4; --card: #ffffff; --primary: #2e7d32; --primary-dark: #1b5e20; --text: #1f2b21; --body: #3d4a40; --muted: #55635a; --faint: #8a9e90; --border: #e3ebe4; --line: #edf2ee; --warn-bg: #fff8e6; --warn: #c28a00 }
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.7 }
a { color: var(--primary) }
a:hover { color: var(--primary-dark) }

/* Header */
.site-head { background: #fff; border-bottom: 1px solid var(--border) }
.site-head-inner { max-width: 1100px; margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--primary-dark); text-decoration: none; font-size: 1rem }
.brand img { width: 30px; height: 30px }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; font-size: .9rem }
.site-nav a { color: var(--muted); text-decoration: none; padding: .2rem 0 }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary-dark) }
.site-nav a[aria-current="page"] { font-weight: 700 }
.site-nav .nav-cta { background: var(--primary); color: #fff; border-radius: 999px; padding: .4rem 1rem; font-weight: 700 }
.site-nav .nav-cta:hover { background: var(--primary-dark); color: #fff }

/* Article */
main { max-width: 820px; margin: 0 auto; padding: 1.6rem 16px 3rem }
.crumbs { font-size: .82rem; color: var(--faint); margin: 0 0 1rem }
.crumbs a { color: var(--faint); text-decoration: none }
.crumbs a:hover { color: var(--primary) }
h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.15; color: var(--primary-dark); margin: 0 0 1rem; font-weight: 800 }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.4rem }
.updated { font-size: .82rem; color: var(--faint); margin: -.6rem 0 1.6rem }
h2 { font-size: 1.4rem; line-height: 1.3; color: var(--primary-dark); margin: 2.4rem 0 .7rem; scroll-margin-top: 1rem }
h3 { font-size: 1.08rem; color: var(--text); margin: 1.6rem 0 .4rem }
p, ul, ol { color: var(--body); margin: 0 0 1rem }
li { margin: .25rem 0 }
strong { color: var(--text) }

/* Quick answer box */
.answer { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 1.6rem }
.answer p:last-child, .answer ul:last-child { margin-bottom: 0 }
.answer-title { font-weight: 800; color: var(--primary-dark); margin: 0 0 .4rem; font-size: .95rem }

/* Table of contents */
.toc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.2rem; margin: 0 0 1.6rem; font-size: .95rem }
.toc p { margin: 0 0 .3rem; font-weight: 700; color: var(--text) }
.toc ol { margin: 0; padding-left: 1.2rem }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin: 0 0 1rem }
table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45 }
th, td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top }
thead th { background: var(--bg); font-size: .8rem; color: var(--muted); font-weight: 700 }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0 }
td.num, th.num { text-align: right; white-space: nowrap }
.table-note { font-size: .8rem; color: var(--faint); margin: -.4rem 0 1.2rem }

/* Hint boxes */
.hint { background: var(--warn-bg); border-left: 4px solid var(--warn); border-radius: 6px; padding: .75rem 1rem; margin: 0 0 1.2rem; font-size: .95rem; color: var(--text) }
.hint p:last-child { margin: 0 }

/* Calculator CTA */
.cta { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: #fff; border-radius: 16px; padding: 1.4rem 1.5rem; margin: 2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap }
.cta p { color: #e8f5e9; margin: 0; max-width: 520px }
.cta strong { color: #fff; display: block; font-size: 1.1rem; margin-bottom: .2rem }
.cta a { background: #fff; color: var(--primary-dark); font-weight: 800; text-decoration: none; border-radius: 999px; padding: .75rem 1.5rem; white-space: nowrap }
.cta a:hover { background: #e8f5e9; color: var(--primary-dark) }

/* Related pages */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0 0 }
.related a { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; text-decoration: none; color: var(--text) }
.related a:hover { border-color: var(--primary) }
.related strong { display: block; color: var(--primary-dark) }
.related span { font-size: .88rem; color: var(--muted) }

.disclaimer { font-size: .8rem; color: var(--faint); margin: 2.4rem 0 0 }

/* Provider table (anbieter page) */
.prov-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .8rem; font-size: .85rem; color: var(--muted) }
.prov-sort button { border: 1px solid #cfd8dc; background: #fff; color: var(--text); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .82rem; cursor: pointer }
.prov-sort button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff }
.prov-table { min-width: 860px; font-size: .86rem }
.prov-table tbody th { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 160px; font-weight: 400 }
.prov-name { display: flex; align-items: center; gap: .6rem }
.prov-name img, .prov-mono { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; object-fit: contain }
.prov-mono { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .6rem; font-weight: 800 }
.prov-name strong { display: block; font-size: .9rem }
.prov-name small { display: block; color: var(--faint); font-size: .74rem }
.prov-table td strong { color: var(--primary-dark); white-space: nowrap }
.prov-table td.prov-open, .prov-table td.prov-open strong { color: #8a6d1a }
.prov-link { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 700; color: #fff; background: var(--primary); border-radius: 999px; padding: .35rem .85rem; text-decoration: none }
.prov-link:hover { background: var(--primary-dark); color: #fff }
.prov-risk, .prov-ad { font-size: .95rem; line-height: 1.6; color: var(--text); background: var(--warn-bg); border-left: 4px solid var(--warn); border-radius: 6px; padding: .7rem .9rem; margin: 0 0 1rem }
.prov-ad { background: var(--bg); border-left-color: var(--primary) }
.prov-ad[hidden] { display: none }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }


/* Footer */
.site-foot { text-align: center; padding: 32px 16px 24px; margin-top: 40px; border-top: 1px solid #cfd8dc; background: var(--bg); font-size: 12.5px; color: var(--faint) }
.site-foot p { margin: 8px 0 0; color: var(--faint) }
.site-foot a { color: var(--faint); text-decoration: none }
.site-foot a:hover { color: var(--primary) }
.site-foot .badge { color: var(--primary); font-weight: 600; margin: 0 0 14px }
.site-foot .by { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px }
.site-foot .by img { width: 48px; height: 48px }
.site-foot .sep { color: #cfd8dc; margin: 0 8px }

/* Cookie banner (injected by seiten.js) */
#avd-consent { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #1f2b21; color: #e8f5e9; padding: 14px 20px; font-size: 13px; z-index: 99999; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap }
#avd-consent a { color: #81c784 }
#avd-consent button { border-radius: 20px; cursor: pointer; font: inherit; padding: 8px 18px }
#avd-consent .ok { background: var(--primary); color: #fff; border: 0 }
#avd-consent .no { background: transparent; color: #a5b4a9; border: 1px solid #a5b4a9 }

@media (max-width: 600px) {
  body { font-size: 16px }
  .site-nav { font-size: .85rem }
  .cta { padding: 1.2rem }
}

/* Anbieter page: one <main> with narrow and wide columns */
main.flush { max-width: none; padding: 0 0 3rem }
.col { max-width: 820px; margin: 0 auto; padding: 0 16px }
.col:first-child { padding-top: 1.6rem }
.col.wide { max-width: 1100px }

/* FAQ: same look as the calculator page (#aboutSection .faq-item in index.html) — white card, collapsed */
.faq { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: .4rem 1.6rem; margin: 0 0 1.6rem }
.faq-item { border-top: 1px solid #edf2ee }
.faq-item:first-child { border-top: 0 }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0 }
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after { content: "+"; flex-shrink: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #f4faf4; color: #2e7d32; font-weight: 700; font-size: 1.1rem; line-height: 1.6rem; text-align: center }
.faq-item[open] summary::after { content: "−" }
.faq-item summary:hover h3 { color: #2e7d32 }
.faq-item summary:focus-visible { outline: 2px solid #2e7d32; outline-offset: 2px; border-radius: 6px }
.faq-item h3 { font-size: 1.02rem; font-weight: 700; color: #1f2b21; margin: 0 }
.faq-item p { margin: 0 0 1rem; color: #3d4a40; font-size: .95rem }
@media (max-width: 600px) { .faq { padding: .3rem 1.1rem } }
