/* ============================================================
   portal.css – Demokratie-Portal
   Barrierefrei: WCAG-AA-Kontraste, sichtbare Fokus-Ringe,
   Skip-Link, Touch-Ziele >= 44px, prefers-reduced-motion.
   Kontraste (auf #fff): --accent 7.9:1 · --text 15.4:1 ·
   --muted 5.9:1 · Button-Text weiss auf --accent 7.9:1
   ============================================================ */
:root{
  --accent:#1e4e8c;        /* Primär-Blau */
  --accent-dark:#153a69;   /* Hover/Active */
  --text:#1a2333;
  --muted:#525b69;
  --bg:#ffffff;
  --bg-soft:#f4f6f9;
  --border:#c9d1da;
  --focus:#b45309;         /* Fokus-Ring: kräftiges Orange, von Blau unterscheidbar */
  --ok:#1a6b3c; --warn:#8a5a00;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--text);background:var(--bg);line-height:1.65;font-size:1.0625rem}

/* ---- Fokus & Skip-Link (Barrierefreiheit) ---- */
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:2px}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent);color:#fff;
  padding:.8rem 1.2rem;z-index:100;text-decoration:none;font-weight:600}
.skip-link:focus{left:0}

/* ---- Header & Navigation ---- */
.site-header{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;align-items:center;
  justify-content:space-between;padding:1rem 5%;border-bottom:4px solid var(--accent)}
.site-logo{font-weight:700;font-size:1.25rem;text-decoration:none;color:var(--accent)}
.site-nav ul{display:flex;flex-wrap:wrap;gap:.25rem .5rem;list-style:none;margin:0;padding:0}
.site-nav a{display:inline-block;padding:.55rem .7rem;min-height:44px;
  text-decoration:none;color:var(--text);border-radius:6px}
.site-nav a:hover{background:var(--bg-soft);text-decoration:underline}
.site-nav a[aria-current="page"]{color:var(--accent);font-weight:700;
  box-shadow:inset 0 -3px 0 var(--accent)}

/* ---- Breadcrumb ---- */
.breadcrumb{padding:.6rem 5%;font-size:.9rem;color:var(--muted);background:var(--bg-soft)}
.breadcrumb a{color:var(--muted)}
.bc-sep{padding:0 .15rem}

/* ---- Inhalt ---- */
main{max-width:840px;margin:0 auto;padding:1.5rem 5% 3rem}
h1{font-size:2rem;line-height:1.25}
h2{font-size:1.45rem;margin-top:2.2rem;padding-top:.4rem;border-top:2px solid var(--bg-soft)}
h3{font-size:1.15rem}
a{color:var(--accent)}
a:hover{color:var(--accent-dark)}
img,svg{max-width:100%;height:auto}

/* ---- Komponenten ---- */
.def-box{border-left:5px solid var(--accent);background:var(--bg-soft);
  padding:1rem 1.25rem;border-radius:0 8px 8px 0}
.btn{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;
  padding:.75rem 1.4rem;min-height:44px;border-radius:8px;font-weight:600;border:2px solid var(--accent)}
.btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.btn-secondary{background:#fff;color:var(--accent)}
.btn-secondary:hover{background:var(--bg-soft);color:var(--accent-dark)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1rem;padding:0;margin:1.2rem 0;list-style:none}
.card{border:1px solid var(--border);border-top:4px solid var(--accent);
  border-radius:8px;padding:1rem 1.1rem;background:#fff}
.card-title{font-weight:700;font-size:1.05rem;margin:.1rem 0 .4rem}
.card-title a{text-decoration:none}
.card-title a:hover{text-decoration:underline}
.card p{margin:.3rem 0;font-size:.95rem}
.callout{border:1px solid var(--border);border-left:5px solid var(--accent);
  border-radius:0 8px 8px 0;padding:.9rem 1.1rem;background:var(--bg-soft);margin:1.2rem 0}
.table-wrap{overflow-x:auto;margin:1.2rem 0}
table{border-collapse:collapse;width:100%;font-size:.95rem}
caption{text-align:left;font-weight:600;padding:.4rem 0}
th,td{border:1px solid var(--border);padding:.55rem .7rem;text-align:left;vertical-align:top}
th{background:var(--bg-soft)}
figure{margin:1.5rem 0}
figcaption{font-size:.9rem;color:var(--muted);margin-top:.4rem}

/* ---- FAQ ---- */
.faq-item{border-bottom:1px solid var(--border);padding:.4rem 0}
.faq-q{margin:.7rem 0 .2rem}

/* ---- Footer ---- */
.site-footer{border-top:4px solid var(--accent);background:var(--bg-soft);
  padding:1.6rem 5%;font-size:.95rem}
.footer-claim{font-weight:700;color:var(--accent);margin:0 0 .6rem}
.footer-nav{display:flex;flex-wrap:wrap;gap:.2rem .5rem;margin-bottom:.8rem}
.footer-nav a{display:inline-block;padding:.45rem .55rem;min-height:44px;
  color:var(--text);text-decoration:none;border-radius:6px}
.footer-nav a:hover{text-decoration:underline;background:#fff}
.footer-credit,.footer-meta{margin:.25rem 0;color:var(--muted)}
.footer-credit a{color:var(--accent)}

@media (max-width:640px){
  .site-header{flex-direction:column;align-items:flex-start}
  h1{font-size:1.6rem}
}
