/* Inklusionsbeirat Bassum – Design „Bunt & Mutig“ */
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --accent: #3f5410;          /* Links, Buttons (per Einstellung überschreibbar) */
  --accent-dark: #26340a;
  --nav: #92ad4c;             /* Grün: Hero-Fläche */
  --nav-dark: #7d9640;
  --nav-text: #1a2210;
  --ink: #222a1a;
  --yellow: #edcd00;
  --red: #b70000;
  --mint: #d9e6ae;
  --slate: #5b666b;
  --text: #222a1a;
  --muted: #4a5540;
  --line: #222a1a;
  --bg: #fbfbf6;
  --bg-soft: #f1f4e6;
  --radius: 14px;
  --maxw: 1200px;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 4px solid #1b5fd1; outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -80px; background: var(--ink); color: #fff; padding: .7rem 1.1rem; z-index: 100; border-radius: 0 0 10px 10px; font-weight: 600; }
.skip-link:focus { top: 0; color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 2.5rem; }
.container.narrow { max-width: 860px; }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--muted); }

/* Kopf */
.topbar { background: var(--ink); color: #fff; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: .6rem; }
.login-link { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; padding: .25rem .8rem; border: 2px solid #fff; border-radius: 999px; min-height: 32px; }
.login-link:hover { background: #fff; color: var(--ink); }
.social { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; color: #fff; text-decoration: none; border-radius: 50%; }
.social a:hover { background: var(--yellow); color: var(--ink); }

.site-header { background: #fff; border-bottom: 3px solid var(--ink); }
.header-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.site-logo img { max-height: 70px; width: auto; }
.site-title { margin: 0; font-size: 1.6rem; line-height: 1.15; font-weight: 800; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-desc { margin: 0; color: var(--muted); }

.primary-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nav-toggle { display: none; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .65rem 1.3rem; font: inherit; font-weight: 600; cursor: pointer; }
.menu { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; align-items: center; }
.menu a, .nav-contact { display: block; padding: .7rem 1.1rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.menu a:hover { background: var(--bg-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.menu a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.nav-contact { background: var(--red); color: #fff; padding-left: 1.4rem; padding-right: 1.4rem; }
.menu a.nav-contact { background: var(--red); color: #fff; }
.menu a.nav-contact:hover { background: #8f0000; color: #fff; box-shadow: none; }
.nav-search { position: relative; }
.nav-search summary { list-style: none; cursor: pointer; display: inline-flex; padding: .7rem; border-radius: 50%; color: var(--ink); }
.nav-search summary::-webkit-details-marker { display: none; }
.nav-search summary:hover, .nav-search[open] summary { background: var(--bg-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.nav-search form { position: absolute; right: 0; top: calc(100% + .4rem); background: #fff; padding: .8rem; display: flex; gap: .5rem; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); width: min(92vw, 360px); z-index: 60; }
.nav-search input[type=search] { flex: 1; min-width: 0; }

/* Inhalt */
.page-wrap { padding-top: 3rem; padding-bottom: 4rem; }
.content-area:focus { outline: none; }
.archive-title { font-size: 2.4rem; line-height: 1.15; font-weight: 800; margin: 0 0 1.75rem; }

/* Startseite */
.hero { background: var(--nav); color: var(--nav-text); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; padding-top: 4rem; padding-bottom: 4.5rem; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero-feature { flex: 1 1 380px; min-width: 0; }
.squares { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.squares span { width: 22px; height: 22px; border-radius: 5px; display: block; }
.squares span:nth-child(1) { background: var(--yellow); }
.squares span:nth-child(2) { background: var(--ink); }
.squares span:nth-child(3) { background: #fff; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; font-weight: 800; margin: 0 0 1.4rem; color: #1a2210; }
.hero p.lead { font-size: 1.35rem; margin: 0 0 2rem; max-width: 34rem; color: #1a2210; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn, button { font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: .8rem 1.6rem; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; }
.btn:hover, button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.9rem; }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 800; }
.btn-yellow:hover { background: #fff; color: var(--ink); border-color: #fff; }

.feature-card { display: block; background: #fff; border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 10px 10px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.feature-card:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--ink); }
.feature-card .media { height: 260px; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .body { padding: 1.4rem 1.6rem 1.7rem; }
.feature-card h2 { font-size: 1.55rem; line-height: 1.25; margin: .8rem 0 0; font-weight: 800; }
.pill { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: .88rem; padding: .15rem .8rem; border-radius: 999px; }

.section { padding: 4rem 0 1rem; }
.section h2.section-h { font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin: 0 0 .5rem; }
.section .sub { margin: 0 0 1.75rem; font-size: 1.15rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; text-decoration: none; color: var(--ink); border: 3px solid transparent; border-radius: 20px; padding: 1.5rem; font-size: 1.35rem; line-height: 1.2; font-weight: 800; height: 100%; }
.tile span { font-size: 1rem; font-weight: 600; margin-top: 1rem; }
.tile:hover { color: var(--ink); border-color: var(--ink); }
.tiles li:nth-child(4n+1) .tile { background: var(--yellow); }
.tiles li:nth-child(4n+2) .tile { background: var(--mint); }
.tiles li:nth-child(4n+3) .tile { background: var(--slate); color: #fff; }
.tiles li:nth-child(4n+3) .tile:hover { color: #fff; border-color: var(--ink); }
.tiles li:nth-child(4n+4) .tile { background: #fff; border-color: var(--ink); }

/* Karten */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { box-shadow: 6px 6px 0 var(--ink); }
.card-media { display: block; height: 200px; overflow: hidden; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.ph { display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-weight: 800; font-size: 1.5rem; line-height: 1.15; color: var(--ink); text-decoration: none; }
.card-body { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.cat-badge { display: inline-block; background: var(--mint); color: var(--ink); font-size: .8rem; font-weight: 600; padding: .1rem .7rem; border-radius: 999px; text-decoration: none; }
.cat-badge:hover { background: var(--yellow); color: var(--ink); }
.card-title { margin: .3rem 0 .4rem; font-size: 1.35rem; line-height: 1.3; font-weight: 800; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.card-meta { margin: 0; font-size: .88rem; color: var(--muted); }
.card-meta a { color: var(--muted); }
.card-excerpt { margin: .2rem 0 .8rem; flex: 1; }
.read-more { align-self: flex-start; font-weight: 600; }

.cta { background: var(--ink); color: #fff; margin-top: 4rem; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.cta h2 { font-size: 2.25rem; font-weight: 800; margin: 0 0 .6rem; line-height: 1.15; }
.cta p { margin: 0; font-size: 1.25rem; color: #e6edd2; max-width: 36rem; }

/* Formulare */
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 4px solid #1b5fd1; outline-offset: 2px; }
.search-form { display: flex; gap: .5rem; }
.search-form.big { margin-bottom: 1.5rem; max-width: 560px; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-row.check { display: flex; gap: .7rem; align-items: flex-start; }
.form-row.check input { margin-top: .35rem; width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--ink); }
.form-row.check label { font-weight: 400; margin: 0; }
.req { color: var(--red); }
.field-help { font-size: .95rem; color: var(--muted); margin: .25rem 0 .8rem; }
.captcha-q { display: block; margin-top: .25rem; font-weight: 800; color: var(--ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.5rem; border: 3px solid var(--ink); }
.notice p { margin: 0 0 .4rem; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice-success { background: var(--mint); }
.notice-error { background: #ffd9d9; border-color: var(--red); }
.notice-info { background: var(--bg-soft); }

/* Beitrag & Seite */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1.25rem; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; }
.breadcrumb a { color: var(--muted); }
.entry-title { font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.15; font-weight: 800; margin: .8rem 0 .7rem; }
.entry-meta { color: var(--muted); margin: 0 0 1.75rem; font-size: .98rem; }
.entry-meta a { color: var(--muted); }
.entry-image { margin: 0 0 2rem; }
.entry-image img { width: 100%; max-height: 560px; object-fit: contain; border: 3px solid var(--ink); border-radius: 20px; background: #fff; }
.entry-content { overflow-wrap: anywhere; font-size: 1.125rem; line-height: 1.75; }
.entry-content h2 { font-size: 1.75rem; line-height: 1.25; font-weight: 800; margin: 2.2rem 0 .8rem; }
.entry-content h3 { font-size: 1.35rem; font-weight: 800; margin: 1.8rem 0 .6rem; }
.entry-content img { border-radius: 14px; margin: 1.2rem auto; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption { font-size: .92rem; color: var(--muted); margin-top: .4rem; }
.entry-content hr { border: 0; border-top: 3px solid var(--ink); margin: 2rem 0; }
.entry-content blockquote { margin: 1.5rem 0; padding: .8rem 1.4rem; border-left: 8px solid var(--yellow); background: var(--bg-soft); border-radius: 0 14px 14px 0; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 2px solid var(--ink); padding: .55rem .8rem; text-align: left; }
.badge-draft { background: var(--yellow); padding: .1rem .6rem; border-radius: 999px; font-size: .82rem; margin-left: .4rem; font-weight: 600; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0; }
.post-nav a { display: block; border: 3px solid var(--ink); border-radius: 16px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); background: #fff; }
.post-nav a:hover { box-shadow: 5px 5px 0 var(--ink); }
.post-nav .next { grid-column: 2; text-align: right; }
.post-nav .prev { grid-column: 1; }
.post-nav .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.post-nav .t { font-weight: 800; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2.5rem 0 0; }
.pagination a, .pagination span { display: block; padding: .55rem 1rem; border: 3px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.pagination a:hover { background: var(--bg-soft); }
.pagination .current { background: var(--yellow); }
.section-title { font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin: 0 0 1rem; }

/* Kommentare */
.comments { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list.children { margin: 1rem 0 0 2.5rem; }
.comment { margin-bottom: 1.25rem; }
.comment > article { display: flex; gap: .9rem; }
.comment-avatar { width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.comment-main { flex: 1; min-width: 0; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: .9rem 1.1rem; }
.comment-head { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: baseline; font-size: .98rem; }
.comment-date { color: var(--muted); font-size: .88rem; }
.comment-text { margin: .4rem 0; overflow-wrap: anywhere; }
.comment-reply { font-weight: 600; font-size: .95rem; }
.badge-admin { background: var(--ink); color: #fff; font-size: .72rem; padding: .08rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.respond { margin-top: 2rem; background: var(--bg-soft); border: 3px solid var(--ink); border-radius: 20px; padding: 1.6rem; }
#cancel-reply { font-size: .95rem; font-weight: 400; margin-left: .8rem; }
.related { margin-top: 3.5rem; }
.related .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Fuß */
.site-footer { background: #fff; border-top: 3px solid var(--ink); }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.widget-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 .7rem; }
.site-footer ul.plain li { border-bottom: 1px solid #c8cfb4; }
.site-footer ul.plain a { display: block; padding: .45rem 0; color: var(--ink); text-decoration: none; }
.site-footer ul.plain a:hover { text-decoration: underline; }
.visit-count { font-size: 2.2rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
.footer-bottom { border-top: 3px solid var(--ink); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; padding-top: 1.5rem; padding-bottom: 1.8rem; font-size: 1rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; }
.footer-links a, .copyright a { color: var(--ink); font-weight: 600; }
.copyright { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .container { padding: 0 1.1rem; }
  .hero-inner { padding-top: 2.5rem; padding-bottom: 3rem; gap: 2rem; }
  .feature-card { box-shadow: 6px 6px 0 var(--ink); }
  .feature-card .media { height: 200px; }
  .tiles, .card-grid, .related .card-grid, .footer-widgets { grid-template-columns: 1fr; }
  .section h2.section-h, .cta h2, .archive-title { font-size: 1.9rem; }
  .page-wrap { padding-top: 2rem; }
  .nav-toggle { display: inline-block; }
  .primary-nav { width: 100%; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; order: 3; }
  .menu.open { display: flex; }
  .menu a { background: var(--bg-soft); }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next, .post-nav .prev { grid-column: 1; text-align: left; }
  .comment-list.children { margin-left: 1rem; }
  .topbar-date { display: none; }
  .topbar-inner { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .primary-nav, .cta, .site-footer, .comments, .post-nav, .related { display: none; } }
