/* Kita-Seiten – gemeinsames CSS (Tagesmutter Lichterfelde, Die 5 Strolche). Eine Datei, keine Frameworks. */

/* Schrift: Roboto lokal (kein Abruf bei Google) */
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gruen: #5b7b4a;
  --gruen-dunkel: #4a6b3a;
  --gruen-aktiv: #5ccc02;
  --bg: #f4f7f2;
  --text: #2f363e;
  --link: #0000ff;
  --krumen: #e9ece8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 16px/1.7 "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #111; color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 0; }

.wrap { max-width: 1140px; margin: 0 auto; background: var(--bg); box-shadow: 0 0 8px rgba(0, 0, 0, .22); min-height: 100vh; display: flex; flex-direction: column; }
.inner { padding: 0 25px; }

/* Kopf */
.banner a { display: block; }
.banner img { display: block; width: 100%; height: auto; }

/* Navigation */
.nav { background: var(--gruen); position: relative; }
.nav-toggle, .nav-burger { display: none; }
.menu { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu a { display: block; color: #fff; text-decoration: none; padding: 0 18px; line-height: 40px; font-size: 16px; }
.menu a:hover, .menu a:focus-visible { background: var(--gruen-dunkel); }
.menu a[aria-current="page"] { background: var(--gruen-aktiv); color: #0b2300; }
.menu a.cta { font-weight: 700; }
.menu a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.sub { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--gruen); display: none; z-index: 20; box-shadow: 0 6px 12px rgba(0, 0, 0, .25); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { white-space: nowrap; }

/* Brotkrumen */
.crumbs { background: var(--krumen); font-size: 14px; color: #666; }
.crumbs .inner { padding: 9px 25px; line-height: 1.4; }
.crumbs a { color: var(--link); }

/* Inhalt */
main { flex: 1; padding: 30px 45px 50px; }
h1 { margin: 6px 0 22px; font-size: 32px; line-height: 1.25; font-weight: 500; color: var(--text); }
h1 span { font-weight: 400; }
h2, h3 { line-height: 1.3; font-weight: 500; margin: 1.6em 0 .6em; }
h2 { font-size: 24px; } h3 { font-size: 20px; }
h4, h5, h6 { font-size: 16px; font-weight: 700; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .25em; }
hr { border: 0; border-top: 1px solid #c8d1c3; margin: 26px 0; clear: both; }
blockquote { margin: 0 0 1em; padding: .4em 1.2em; border-left: 4px solid var(--gruen); background: #fff; }
.entry img { mix-blend-mode: multiply; }
figure { margin: 0 0 1em; }
figure.alignleft { float: left; margin: 4px 24px 12px 0; }
figure.alignright { float: right; margin: 4px 0 12px 24px; }
figure.aligncenter, img.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
figcaption { font-size: 14px; color: #555; }
.ta-center { text-align: center; } .ta-right { text-align: right; }
.entry::after { content: ""; display: block; clear: both; }
.entry { max-width: 980px; }
.meta { color: #4a525a; font-size: 15px; margin: -10px 0 18px; }
.cats { margin-top: 26px; font-size: 15px; color: #4a525a; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1em; background: #fff; }
th, td { border: 1px solid #d5d9dd; padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: #eef2eb; }
audio { display: block; width: 100%; max-width: 560px; margin: 0 0 1em; }

/* Beitragskarten (Startseite und Archive) */
.cards { max-width: 1100px; }
.card { display: flex; align-items: stretch; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); margin: 0 0 30px; overflow: hidden; transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, .10); }
.card figure { margin: 0; flex: 0 0 300px; }
.card figure a { display: block; height: 100%; }
.card figure img { display: block; width: 300px; height: 100%; min-height: 190px; object-fit: cover; mix-blend-mode: normal; }
.card article { padding: 20px 25px; flex: 1; min-width: 0; }
.card h2 { margin: 0 0 .5em; font-size: 22px; line-height: 1.3; }
.card h2 a { color: var(--text); text-decoration: none; font-weight: 500; }
.card h2 a:hover { color: var(--gruen); }
.card-text p { margin: 0; color: #4a4a4a; line-height: 1.6; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pager a, .pager span { display: inline-block; min-width: 40px; padding: 7px 14px; text-align: center; background: #fff; border: 1px solid #c8d1c3; border-radius: 4px; text-decoration: none; }
.pager .current { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.pager a:hover { background: #eef2eb; }

/* Beitragsnavigation */
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid #c8d1c3; }
.post-nav a { display: block; max-width: 48%; text-decoration: none; color: var(--text); }
.post-nav a:hover { color: var(--gruen); }
.post-nav span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #5a6470; }
.post-nav .next { margin-left: auto; text-align: right; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; mix-blend-mode: normal; }
.gallery figcaption { margin-top: 4px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .86); }
dialog.lightbox img { display: block; max-width: 94vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 3px; mix-blend-mode: normal; }
dialog.lightbox .lb-cap { color: #fff; text-align: center; margin: 8px 0 0; font-size: 15px; }
dialog.lightbox button { position: fixed; top: 50%; background: rgba(0, 0, 0, .55); color: #fff; border: 0; font-size: 34px; line-height: 1; padding: 10px 16px; cursor: pointer; transform: translateY(-50%); }
dialog.lightbox button:hover { background: rgba(0, 0, 0, .8); }
dialog.lightbox .lb-prev { left: 8px; } dialog.lightbox .lb-next { right: 8px; }
dialog.lightbox .lb-close { top: 18px; right: 8px; transform: none; font-size: 28px; }

/* Karte (Zwei-Klick) */
.map { background: #fff; border: 1px solid #d3d3d3; padding: 16px 18px; margin: 0 0 1.2em; max-width: 640px; }
.map p { margin: 0 0 .6em; font-size: 15px; }
.map-load { font: inherit; background: var(--gruen); color: #fff; border: 0; padding: 8px 18px; cursor: pointer; border-radius: 3px; margin-right: 12px; }
.map-load:hover { background: var(--gruen-dunkel); }
.map-frame { display: block; width: 100%; height: 420px; border: 0; }
.map:has(.map-frame) { padding: 0; border: 0; background: none; }

/* Fuss */
.site-footer { background: var(--gruen); color: #fff; padding: 22px 0; font-size: 14px; }
.site-footer .inner { padding: 0 25px; }
.site-footer p { margin: 0; }
.site-footer a { color: #e8f0e4; }
.site-footer a:hover { color: #fff; }

/* Schmale Bildschirme */
@media (max-width: 860px) {
  main { padding: 22px 18px 40px; }
  .nav-burger { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; line-height: 46px; color: #fff; cursor: pointer; font-size: 18px; font-weight: 500; }
  .burger, .burger::before, .burger::after { display: block; width: 24px; height: 3px; background: #fff; position: relative; content: ""; }
  .burger::before { position: absolute; top: -8px; } .burger::after { position: absolute; top: 8px; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid #fff; outline-offset: -5px; }
  .menu { display: none; flex-direction: column; padding: 0; }
  .nav-toggle:checked ~ .menu { display: flex; }
  .menu a { line-height: 46px; border-top: 1px solid rgba(255, 255, 255, .22); }
  .has-sub > a::after { display: none; }
  .sub { display: block; position: static; box-shadow: none; }
  .sub a { padding-left: 36px; background: rgba(0, 0, 0, .12); }
  figure.alignleft, figure.alignright { float: none; margin: 0 0 1em; }
  figure.alignleft img, figure.alignright img { max-width: 170px; }
  h1 { font-size: 26px; }
  .card { flex-direction: column; }
  .card figure { flex: none; }
  .card figure img { width: 100%; height: 200px; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .nav, .skip, .banner, .post-nav { display: none; } .wrap { box-shadow: none; } }
