@import url("fonts.css");

:root {
  --lime: #a8d820;
  --lime-soft: #cde68a;
  --lime-tint: #f2f8e1;
  --olive: #4f6b0b;
  --olive-dark: #3a4f06;
  --red: #c30203;
  --black: #0b0b0b;
  --ink: #23272b;
  --muted: #5e656b;
  --line: #dde1e4;
  --bg: #eceef0;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.masthead {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 80% 0%, #3a3a3a 0%, #121212 45%, #000 100%);
}
/* Rauch: drei zeitversetzte Schichten, die aufsteigen, wachsen und verwehen */
.smoke {
  position: absolute; right: 0; top: 0; bottom: 34px; width: min(62%, 720px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.smoke span {
  position: absolute; inset: -6% -4% -6% 0; background: url("../Images/smoke.jpg") right top / cover no-repeat;
  mix-blend-mode: screen; opacity: .85; will-change: transform, opacity;
}
.smoke-defs { position: absolute; width: 0; height: 0; }
@media (prefers-reduced-motion: no-preference) {
  .smoke span { opacity: 0; animation: smoke-rise 21s linear infinite; }
  .smoke span:nth-child(2) { animation-name: smoke-rise-flip; animation-delay: -7s; animation-duration: 23s; }
  .smoke span:nth-child(3) { animation-delay: -14s; animation-duration: 19s; background-position: 70% top; }
  @media (min-width: 961px) and (hover: hover) { .smoke { filter: url(#smokeWarp); } }
}
@keyframes smoke-rise {
  0%   { transform: translate3d(4%, 28%, 0) scale(.92) rotate(2deg);  opacity: 0; }
  18%  { opacity: .85; }
  65%  { opacity: .6; }
  100% { transform: translate3d(-10%, -32%, 0) scale(1.4) rotate(-5deg); opacity: 0; }
}
@keyframes smoke-rise-flip {
  0%   { transform: scaleX(-1) translate3d(-6%, 30%, 0) scale(.95) rotate(-3deg); opacity: 0; }
  20%  { opacity: .7; }
  65%  { opacity: .5; }
  100% { transform: scaleX(-1) translate3d(4%, -30%, 0) scale(1.35) rotate(4deg); opacity: 0; }
}
.masthead-inner {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto;
  padding: 26px 20px 74px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 18px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-logo {
  width: 86px; height: 86px; flex: none; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(168,216,32,.35), 0 10px 30px rgba(0,0,0,.5);
}
.brand-logo { overflow: hidden; }
.brand-logo img { width: 70px; height: 70px; object-fit: contain; }
.wordmark { line-height: 1; }
.wordmark .wm1 {
  font-family: var(--font-cond); font-weight: 700; font-size: clamp(34px, 6vw, 58px);
  letter-spacing: .01em; text-transform: uppercase; display: block;
}
.wordmark .wm1 b { color: var(--lime); font-weight: 700; }
.wordmark .wm2 { font-family: "Caveat", cursive; font-size: clamp(30px, 4.6vw, 46px); display: block; margin: -4px 0 0 clamp(60px, 11vw, 112px); }
.wordmark .wm3 { display: block; color: var(--lime); font-weight: 600; font-size: 14px; margin-top: 6px; letter-spacing: .02em; }
.pixels { position: absolute; left: max(20px, calc(50% - 600px)); bottom: 30px; z-index: 1; display: grid; grid-template-columns: repeat(10, 22px); grid-auto-rows: 22px; gap: 3px; opacity: .55; pointer-events: none; }
.pixels i { background: #6f8f2a; }
.pixels i.e { background: transparent; }
.pixels i.l { background: #93b83a; }
.pixels i.r { background: var(--red); opacity: 1; }
.curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 3; display: block; }

.menu-toggle {
  margin-left: auto; display: none; align-items: center; gap: 8px;
  background: var(--lime); color: #000; border: 0; border-radius: 999px;
  font: 600 16px var(--font); padding: 10px 18px; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 8px 20px 56px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }

/* ---------- Navigation ---------- */
.sidenav {
  position: sticky; top: 16px; background: var(--black); color: #fff;
  border-radius: var(--radius); padding: 14px 10px 18px; box-shadow: var(--shadow);
  max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin;
}
.sidenav h2 { font: 700 14px var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 4px 12px 10px; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav li { margin: 0; }
.sidenav a {
  display: block; color: #e9ece6; text-decoration: none; padding: 7px 12px; border-radius: 9px;
  font-size: 15.5px; line-height: 1.3;
}
.sidenav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidenav .lvl1 > li > a { font-weight: 600; }
.sidenav .lvl1 > li > a.on, .sidenav .lvl1 > li > a.cur { background: var(--lime); color: #000; }
.sidenav ul ul { margin: 4px 0 6px 14px; padding-left: 8px; border-left: 2px solid rgba(168,216,32,.35); }
.sidenav ul ul a { font-size: 14.5px; color: #c9cec4; padding: 5px 10px; }
.sidenav ul ul a.cur { color: var(--lime); font-weight: 600; }
.sidenav ul ul a.on { color: #fff; }

/* ---------- Content ---------- */
main { min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--olive); text-decoration: underline; }
.crumbs span + span::before, .crumbs a + span::before, .crumbs a + a::before, .crumbs span + a::before { content: "›"; margin: 0 8px; color: #9aa1a6; }
.page {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px); border-top: 6px solid var(--lime);
}
.page-title { font: 700 clamp(30px, 4vw, 40px)/1.1 var(--font-cond); margin: 0 0 6px; color: #000; letter-spacing: .005em; }
.page-sub { color: var(--muted); margin: 0 0 18px; font-size: 18px; }

.ce { margin: 0 0 34px; }
.ce::after { content: ""; display: table; clear: both; }
.ce > h2.ce-h {
  font: 700 clamp(22px, 2.4vw, 25px)/1.2 var(--font-cond); margin: 0 0 12px; color: #000;
  padding-left: 12px; border-left: 5px solid var(--lime);
}
.ce > h2.ce-h a { color: inherit; }
.ce-sub { color: var(--muted); margin: -6px 0 12px; font-weight: 600; }
.bodytext > :first-child { margin-top: 0; }
.bodytext > :last-child { margin-bottom: 0; }
.bodytext p { margin: 0 0 .85em; overflow-wrap: anywhere; }
/* Einheitliche Skala: Seitentitel 40 · Elementüberschrift 25 · Zwischenüberschrift 21 · Unterüberschrift 18 · Text 17 */
.bodytext h2, .bodytext h3 { font: 700 21px/1.25 var(--font-cond); color: #000; margin: 1.3em 0 .45em; letter-spacing: .005em; }
.bodytext h4, .bodytext h5 { font: 600 18px/1.35 var(--font); color: #000; margin: 1.2em 0 .35em; }
.bodytext strong { font-weight: 600; color: #111; }
.bodytext em { font-style: italic; }
.bodytext .hl { font-weight: 600; }
.bodytext p.text-center, .bodytext h3.text-center, .bodytext h4.text-center { text-align: center; }
.bodytext blockquote { margin: 1em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--lime); color: var(--muted); }
.bodytext ul, .bodytext ol { padding-left: 1.3em; margin: 0 0 1em; }
.bodytext li { margin: .2em 0; }
.bodytext li::marker { color: var(--olive); }
.bodytext hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.bodytext table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 15px; display: block; overflow-x: auto; }
.bodytext td, .bodytext th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.bodytext dt { font-weight: 600; }
.bodytext dd { margin: 0 0 .6em 1em; }
.tc { text-align: center; }
.hl { color: var(--red); }
.bodytext a { overflow-wrap: anywhere; }
.bodytext a[target="_blank"]::after { content: "↗"; font-size: .8em; margin-left: 2px; text-decoration: none; display: inline-block; }

/* Bilder */
.gallery { display: grid; gap: 12px; margin: 0 0 16px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery a.img, .gallery span.img { display: block; border-radius: 10px; overflow: hidden; background: #f3f4f5; border: 1px solid var(--line); }
.gallery a.img img { transition: transform .25s ease; width: 100%; }
.gallery a.img:hover img { transform: scale(1.025); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.45; font-style: italic; }
.gallery.pdf a.img { position: relative; }
.gallery.pdf a.img::after { content: "PDF"; position: absolute; right: 8px; top: 8px; background: var(--red); color: #fff; font: 700 12px var(--font); padding: 2px 7px; border-radius: 5px; }
.gallery.one { max-width: 760px; }
.gallery.one.small { max-width: 420px; }
.pos-c { margin-left: auto; margin-right: auto; }
.pos-r { margin-left: auto; }
.float-r, .float-l { width: min(42%, 380px); margin-bottom: 12px; }
.float-r { float: right; margin-left: 24px; }
.float-l { float: left; margin-right: 24px; }

/* Downloads */
.files { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.files li { margin: 0; }
.file {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--ink); background: #fafbfa;
  transition: border-color .15s, background .15s, transform .15s;
}
a.file:hover { border-color: var(--lime); background: var(--lime-tint); color: var(--ink); }
.file .ico { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 12px var(--font); letter-spacing: .03em; }
.file .ico.audio { background: var(--olive); }
.file .ico.other { background: #555; }
.file .fn { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.file .meta { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.file audio { width: 100%; margin-top: 8px; }
.file.audio { flex-wrap: wrap; }
.file.audio .txt { flex: 1 1 200px; }

.divider { border: 0; height: 4px; margin: 34px 0; background: linear-gradient(90deg, var(--lime) 0 64px, var(--line) 64px); border-radius: 2px; }

/* Unterseiten */
.subpages { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.subpages h2 { font: 700 15px var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cards a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px;
  background: var(--black); color: #fff; text-decoration: none; font-weight: 600; line-height: 1.25;
}
.cards a::after { content: "→"; color: var(--lime); transition: transform .15s; }
.cards a:hover { background: #222; color: var(--lime); }
.cards a:hover::after { transform: translateX(3px); }

.empty { color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-foot { background: var(--black); color: #cfd4cc; position: relative; padding: 56px 20px 28px; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--lime), var(--lime-soft)); }
.foot-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; }
.foot-logo { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.foot-logo { overflow: hidden; }
.foot-logo img { width: 60px; height: 60px; object-fit: contain; }
.site-foot h2 { font: 700 20px var(--font-cond); color: #fff; margin: 0 0 6px; }
.site-foot p { margin: 0 0 4px; font-size: 15.5px; }
.site-foot a { color: var(--lime); }
.site-foot a:hover { color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; text-align: right; }
.foot-links li { margin: 0 0 6px; }
.foot-bottom { max-width: 1240px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid #262626; font-size: 13.5px; color: #8b918a; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; z-index: 100; align-items: center; justify-content: center; padding: 56px 64px; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; background: #fff; }
.lb figcaption { color: #ddd; margin-top: 12px; text-align: center; font-size: 15px; max-width: 900px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: var(--lime); color: #000; }
.lb .x { top: 14px; right: 14px; }
.lb .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .wrap { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .sidenav { position: static; max-height: none; display: none; }
  .sidenav.open { display: block; }
  .masthead-inner { padding-bottom: 64px; }
  .pixels { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 4px 12px 40px; }
  .masthead-inner { padding: 18px 16px 56px; gap: 12px; flex-wrap: wrap; }
  .brand { gap: 12px; }
  .brand-logo { width: 58px; height: 58px; }
  .brand-logo img { width: 50px; height: 50px; }
  .wordmark .wm2 { margin-left: 44px; }
  .wordmark .wm3 { font-size: 12.5px; }
  .menu-toggle { margin-left: 0; }
  .smoke { width: 100%; opacity: .5; }
  .curve { height: 40px; }
  .float-r, .float-l { float: none; width: auto; margin: 0 0 14px; }
  .gallery { grid-template-columns: repeat(min(var(--cols, 1), 2), minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  .lb { padding: 56px 8px; }
  .lb .prev, .lb .next { top: auto; bottom: 10px; transform: none; }
}
@media print {
  .masthead, .sidenav, .site-foot, .menu-toggle, .subpages { display: none !important; }
  .wrap { display: block; padding: 0; }
  .page { box-shadow: none; border: 0; padding: 0; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.gallery.pos-c figure { margin-inline: auto; }
.gallery.pos-r figure { margin-left: auto; }

/* ---------- TYPO3-Inhaltselemente ---------- */
.text-center { text-align: center; }
.text-end { text-align: right; }
.gallery.o17, .gallery.o25 { float: right; margin-left: 24px; width: min(42%, 380px); margin-bottom: 12px; }
.gallery.o18, .gallery.o26 { float: left; margin-right: 24px; width: min(42%, 380px); margin-bottom: 12px; }
.gallery.one.o0 figure, .gallery.one.o8 figure { margin-inline: auto; }
.gallery.one.o0, .gallery.one.o8 { margin-inline: auto; }
.gallery.one.o1, .gallery.one.o9 { margin-left: auto; }
.gallery.one.o1 figure, .gallery.one.o9 figure { margin-left: auto; }
.gallery.o25 + .bodytext, .gallery.o26 + .bodytext { overflow: hidden; }
@media (max-width: 640px) {
  .gallery.o17, .gallery.o25, .gallery.o18, .gallery.o26 { float: none; width: auto; margin: 0 0 14px; }
}
.gallery a.img.pdf { position: relative; }
.gallery a.img.pdf::after { content: "PDF"; position: absolute; right: 8px; top: 8px; background: var(--red); color: #fff; font: 700 12px var(--font); padding: 2px 7px; border-radius: 5px; }

/* Datumszeile über Meldungen */
.ce-date, .bodytext p.date {
  display: inline-block; margin: 0 0 .6em; padding: 2px 10px; border-radius: 999px;
  background: var(--lime-tint); color: var(--olive-dark); font: 600 14px var(--font); letter-spacing: .02em;
  border: 1px solid var(--lime-soft);
}
.ce-date { margin: 0 0 8px; }
.bodytext p.date + * { margin-top: 0; }
.ce-sub { font-size: 17px; }
.bodytext ol { padding-left: 1.5em; }
.bodytext ol li::marker { font-weight: 600; }
.bodytext > p > strong:only-child { color: #000; }

/* Listen und Schriftverkehr */
.bodytext ul { list-style: none; padding-left: 0; }
.bodytext ul > li { position: relative; padding-left: 1.4em; margin: .45em 0; }
.bodytext ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em; border-radius: 2px; background: var(--lime); }
.bodytext ol > li { margin: .45em 0; padding-left: .2em; }
.bodytext blockquote { margin: 1em 0 1.2em; padding: 14px 18px; border-left: 4px solid var(--lime); background: #f6f7f5; border-radius: 0 10px 10px 0; color: var(--ink); font-size: 16px; }
.bodytext blockquote p:last-child { margin-bottom: 0; }

/* ---------- Mehr Luft im Inhalt ---------- */
.page { container-type: inline-size; }
.bodytext p { margin: 0 0 1em; }
.bodytext { line-height: 1.7; }
.ce-h + .ce-sub { margin-top: -4px; }
.ce-sub { color: var(--olive); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0 0 14px; }
.gallery.o17, .gallery.o25 { width: min(36%, 340px); margin-left: 28px; margin-bottom: 16px; }
.gallery.o18, .gallery.o26 { width: min(36%, 340px); margin-right: 28px; margin-bottom: 16px; }
.gallery.o8, .gallery.o9, .gallery.o10 { margin-top: 18px; }
@container (max-width: 700px) {
  .gallery.o17, .gallery.o25, .gallery.o18, .gallery.o26 { float: none; width: auto; margin: 0 0 16px; }
}

/* ---------- Startseite: Meldungen als Karten ---------- */
.page--home { background: transparent; box-shadow: none; border-top: 0; padding: 0; }
.page--home > .page-title { margin: 6px 4px 18px; }
.page--home > .ce {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(20px, 3.2vw, 36px); margin: 0 0 24px; border-top: 5px solid var(--lime);
}
.page--home > .ce > h2.ce-h { font-size: clamp(23px, 2.6vw, 28px); }
.page--home > .subpages { margin-top: 8px; padding-top: 0; border-top: 0; }

/* Zitat zum Einstieg */
.page--home > .ce:first-of-type {
  background: var(--black); color: #f1f3ee; border-top: 0; text-align: center;
  padding: clamp(30px, 4vw, 48px) clamp(20px, 5vw, 64px) clamp(26px, 3.5vw, 40px);
  background-image: radial-gradient(120% 100% at 50% 0%, #2a2a2a 0%, #0b0b0b 70%);
}
.page--home > .ce:first-of-type .gallery { margin: 14px auto 22px; }
.page--home > .ce:first-of-type figure { max-width: 120px !important; margin: 0 auto; }
.page--home > .ce:first-of-type a.img {
  width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--lime); background: #222;
  box-shadow: 0 0 0 6px rgba(168,216,32,.15);
}
.page--home > .ce:first-of-type a.img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.page--home > .ce:first-of-type .bodytext p:first-child {
  font: italic 500 clamp(20px, 2.6vw, 26px)/1.45 var(--font); color: #fff; max-width: 34em; margin: 0 auto 12px;
}
.page--home > .ce:first-of-type .bodytext p:last-child {
  font: 700 15px var(--font-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin: 0;
}
