/* Pfadfinder Breklum, Stamm Rüm Hart
   Schriften liegen lokal in /fonts (keine Abrufe bei Google). */

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  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;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-ext.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-italic-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
  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;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-italic-latin-ext.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  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;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3-latin-ext.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF;
}

/* Farben: hell ist Standard. Dunkel folgt der Systemeinstellung,
   außer jemand hat im Fuß der Seite "Hell" oder "Dunkel" gewählt (data-theme, gesetzt von js/theme.js). */
:root {
  --grund: #ffffff;
  --text: #1d2321;
  --text-leise: #5b6562;
  --gruen: #2f5d56;       /* Kluft, dunkel: Links */
  --gruen-hell: #e9f0ed;  /* Kluft, sehr hell: Kästen */
  --linie: #cfd9d5;
  --gelb: #f2c230;        /* Halstuch */
  --gelb-hell: #fdf0bf;   /* wie mit Textmarker */
  --auf-gruen: #ffffff;   /* Schrift auf grünen Knöpfen */
  --vorbei: #8a9390;

  --serif: "Literata", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #161616;
    --text: #e6e6e6;
    --text-leise: #a6a6a6;
    --gruen: #8fc4b9;
    --gruen-hell: #232323;
    --linie: #3a3a3a;
    --gelb-hell: #3b3314;
    --auf-gruen: #161616;
    --vorbei: #757575;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: #161616;
  --text: #e6e6e6;
  --text-leise: #a6a6a6;
  --gruen: #8fc4b9;
  --gruen-hell: #232323;
  --linie: #3a3a3a;
  --gelb-hell: #3b3314;
  --auf-gruen: #161616;
  --vorbei: #757575;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--grund); }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gruen); text-underline-offset: 0.15em; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 1rem; }
h2 { font-size: 1.55rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.4rem; }
p, ul, ol, dl, table, figure { margin: 0 0 1rem; }

.huelle { width: min(100% - 2 * var(--rand), 66rem); margin-inline: auto; }
.klein { font-family: var(--sans); font-size: 0.95rem; color: var(--text-leise); }
.einleitung { font-size: 1.25rem; line-height: 1.5; max-width: 40rem; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gelb); color: #1d2321; padding: 0.4rem 0.8rem; }
.skip:focus { top: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

/* Kopf */
.kopf { border-top: 6px solid var(--gruen); border-bottom: 1px solid var(--linie); font-family: var(--sans); }
.kopf__innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 2rem; padding-block: 0.75rem; }
.marke { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
/* Logo als Maske: nimmt die Textfarbe an, also schwarz im hellen und weiß im dunklen Design */
.marke__logo { flex: none; width: 2.85rem; height: 3.2rem; background: currentColor;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat; mask: url("../img/logo.png") center / contain no-repeat; }
.kopf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.5rem; }
.kopf nav a { color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 500; padding: 0.3rem 0; display: inline-block; }
.kopf nav a:hover { text-decoration: underline; }
.kopf nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; font-weight: 700; }

/* Startseite */
.start { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); gap: 2rem 3.5rem; padding-block: clamp(2rem, 5vw, 3.5rem) 2.5rem; align-items: start; }
.start__text p { font-size: 1.25rem; line-height: 1.5; max-width: 34rem; }

.kasten { background: var(--gruen-hell); padding: 1.4rem 1.5rem 1.1rem; font-family: var(--sans); font-size: 1.05rem; line-height: 1.45; }
.kasten h2 { font-size: 1.3rem; margin: 0 0 0.9rem; }
.kasten h3 { font-family: var(--sans); font-size: 1rem; margin: 1.3rem 0 0.4rem; }
.fakten { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 0; }
.fakten dt { font-weight: 700; }
.fakten dd { margin: 0; }
.naechste { border-top: 1px solid var(--linie); margin-top: 1.2rem; }
.naechste ol { list-style: none; margin: 0; padding: 0; }
.naechste li { display: flex; gap: 0.75rem; padding: 0.15rem 0; }
.naechste time { min-width: 4.6rem; font-variant-numeric: tabular-nums; }
.naechste .heute { background: var(--gelb); color: #1d2321; padding: 0 0.4rem; font-size: 0.9rem; font-weight: 700; align-self: center; }
.kasten__mehr { margin: 0.9rem 0 0; }

figure img { width: 100%; }
figcaption { font-family: var(--sans); font-size: 0.92rem; color: var(--text-leise); padding-top: 0.4rem; }
.bild { margin-bottom: 0; }
.bild img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 88%; }

/* Fließtext: Text schmal, Bilder dürfen breiter */
.artikel > * { max-width: 40rem; }
.artikel > .bilder-2, .artikel > .bild-breit { max-width: none; margin-block: 1.75rem; }
.artikel ul { padding-left: 1.2rem; }
.artikel li { margin-bottom: 0.3rem; }
.bilder-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bilder-2 figure { margin: 0; }

.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; }
.zwei--abschluss { border-top: 1px solid var(--linie); margin-top: 2.5rem; padding-bottom: 3.5rem; }
.zwei--infos { grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); align-items: start; }
.zwei--infos > .artikel > :first-child, .zwei--infos > div > section:first-child h2 { margin-top: 0; }
.zwei--infos .kasten { margin-top: 0.4rem; }
/* Infos: Downloads und Links als eigener Kasten neben den Fragen */
.downloads section + section { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); }
.downloads h2 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.downloads .liste { margin-bottom: 0.5rem; }
.downloads .liste li:last-child { border-bottom: 0; }
.downloads .klein { margin: 0; }

.knopf {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.05rem;
  background: var(--gruen); color: var(--auf-gruen); text-decoration: none; padding: 0.55rem 1rem; border-radius: 3px;
}
.knopf:hover { background: var(--text); color: var(--grund); }

/* Unterseiten */
.seite { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.liste { list-style: none; padding: 0; font-family: var(--sans); }
.liste li { padding: 0.35rem 0; border-bottom: 1px solid var(--linie); }
.konto { font-variant-numeric: tabular-nums; }

/* Termine */
.filter { font-family: var(--sans); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin: 1.5rem 0 0.5rem; }
.filter label { cursor: pointer; }
.filter input { accent-color: var(--gruen); width: 1rem; height: 1rem; vertical-align: -0.1em; margin-right: 0.3rem; }
.monate { columns: 3 17rem; column-gap: 3rem; font-family: var(--sans); font-size: 1.05rem; }
.monat { break-inside: avoid; padding-top: 1.25rem; }
.monat h2 { font-family: var(--sans); font-size: 1.15rem; margin: 0 0 0.3rem; padding-bottom: 0.25rem; border-bottom: 2px solid var(--text); }
.monat ol { list-style: none; margin: 0; padding: 0; }
.termin { display: grid; grid-template-columns: 6rem 1fr; gap: 0.5rem; padding: 0.2rem 0.4rem; margin-inline: -0.4rem; line-height: 1.35; }
.termin__wann { font-variant-numeric: tabular-nums; }
.termin__wann time + time { display: block; }
.termin--fest { background: var(--gelb-hell); font-weight: 600; margin-block: 2px; }
.termin small { display: block; font-weight: 400; font-size: 0.92rem; color: var(--text-leise); }
.termin.vorbei { color: var(--vorbei); background: none; }
.termin.vorbei small { color: inherit; }
.termin.naechster { box-shadow: inset 4px 0 0 var(--gruen); padding-left: 0.7rem; }
.termine--nur-fest .termin--gs, .termine--ohne-vorbei .termin.vorbei { display: none; }

/* Galerie */
.cloud { border-collapse: collapse; font-family: var(--sans); width: 100%; max-width: 40rem; }
.cloud th, .cloud td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.cloud th { width: 4.5rem; font-variant-numeric: tabular-nums; }
/* Übersicht: ein Abschnitt pro Jahr, darin die Alben */
.jahrgang { border-top: 2px solid var(--text); padding-top: 0.5rem; margin-top: 2.25rem; font-family: var(--sans); }
.jahrgang h3 { font-family: var(--sans); font-size: 1.3rem; margin: 0 0 0.9rem; font-variant-numeric: tabular-nums; }
.alben { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem 1.25rem; }
.alben a { display: block; color: var(--text); text-decoration: none; }
.alben img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gruen-hell); }
.alben strong { display: block; font-size: 1.1rem; margin-top: 0.45rem; line-height: 1.25; }
.alben span { display: block; font-size: 0.95rem; line-height: 1.35; color: var(--text-leise); }
.alben a:hover strong { text-decoration: underline; }
.alben a:hover img { opacity: 0.9; }

/* Seite einer Veranstaltung */
.pfad { font-family: var(--sans); font-size: 1rem; color: var(--text-leise); margin-bottom: 0.5rem; }
.fotos { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.fotos a { display: block; }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gruen-hell); }
.fotos a:hover img { opacity: 0.88; }
.blaettern { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--linie); font-family: var(--sans); }
.blaettern [rel="next"] { margin-left: auto; text-align: right; }

/* Großansicht (js/main.js). Ohne JavaScript öffnen die Links einfach das Bild. */
.grossbild { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, 0.96); color: #e6e6e6; font-family: var(--sans); }
.grossbild::backdrop { background: rgba(12, 12, 12, 0.96); }
.grossbild[open] { display: grid; grid-template-rows: auto 1fr; }
.grossbild__leiste { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; }
.grossbild__zahl { margin-right: auto; font-variant-numeric: tabular-nums; }
.grossbild button { font: inherit; font-size: 1rem; color: inherit; background: rgba(255, 255, 255, 0.1); border: 0; border-radius: 3px; padding: 0.45rem 0.9rem; cursor: pointer; }
.grossbild button:hover { background: rgba(255, 255, 255, 0.22); }
.grossbild__buehne { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 0.75rem 0.75rem; touch-action: pan-y; }
.grossbild__buehne img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.grossbild__zurueck, .grossbild__weiter { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.6rem !important; padding: 0.6rem 0.9rem !important; }
.grossbild__zurueck { left: 0.75rem; }
.grossbild__weiter { right: 0.75rem; }
@media (max-width: 46rem) {
  .fotos { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .alben { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.75rem; }
  .grossbild__zurueck, .grossbild__weiter { display: none; }
}

/* Klamotten */
.waren { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.5rem 2rem; font-family: var(--sans); }
.waren img { aspect-ratio: 1; object-fit: contain; background: #f4f4f2; }
.waren h2 { font-family: var(--sans); font-size: 1.15rem; margin: 0.75rem 0 0.3rem; }
.waren ul { list-style: none; margin: 0; padding: 0; }
.waren ul li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--linie); }
.waren span { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Fuß */
.fuss { background: var(--gruen-hell); font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
/* Fuß: links Name und Hell/Dunkel-Umschalter (setzt main.js darunter), rechts alle Links untereinander */
.fuss__innen { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.25rem 3rem; padding-block: 2rem; }
.fuss__links { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; }
.fuss__links li + li { margin-top: 0.35rem; }
.fuss__darstellung { grid-column: 1; grid-row: 1; }     /* Umschalter über dem Namen */
.fuss__innen > p:first-child { grid-column: 1; grid-row: 2; }
@media (max-width: 46rem) {
  .fuss__innen { grid-template-columns: minmax(0, 1fr); }
  .fuss__links { grid-column: 1; grid-row: 3; }
}
.fuss p { margin: 0; }
/* Hell/Dunkel-Umschalter im Fuß: drei Symbole in einer schmalen Leiste */
.darstellung { display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--linie); border-radius: 999px; background: var(--grund); }
.darstellung__titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.darstellung__wahl { position: relative; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; color: var(--text-leise); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.darstellung__wahl:hover { color: var(--text); }
.darstellung__wahl input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.darstellung__wahl svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.darstellung__wahl:has(input:checked) { background: var(--gruen-hell); color: var(--text); box-shadow: 0 0 0 1px var(--linie); }
.darstellung__wahl:has(input:focus-visible) { outline: 3px solid var(--gelb); outline-offset: 1px; }
.fuss .darstellung { background: var(--grund); }
.fuss .darstellung__wahl:has(input:checked) { background: var(--gruen); color: var(--auf-gruen); box-shadow: none; }
.fuss a { color: var(--text); }

@media (max-width: 46rem) {
  .start, .zwei, .zwei--infos { grid-template-columns: minmax(0, 1fr); }
  .bilder-2 { grid-template-columns: 1fr; }
  .huelle.bild { width: 100%; }
  .huelle.bild figcaption { padding-inline: var(--rand); }
  .zwei--infos .kasten { margin-top: 1.5rem; }
}

@media print {
  .kopf nav, .fuss, .filter { display: none; }
  .termin.vorbei { color: inherit; }
}

/* Entenmodus (versteckt, siehe js/main.js) */
.geheim-ente { display: inline-block; width: 0.85em; height: 0.8em; margin-left: 0.35em; padding: 0; border: 0; background: none; vertical-align: -0.05em; opacity: 0.35; cursor: default; }
.geheim-ente:hover, .geheim-ente:focus-visible, .geheim-ente[aria-pressed="true"] { opacity: 1; }
.geheim-ente svg { display: block; width: 100%; height: 100%; }
.geheim-ente:empty { display: none; }
/* In der Galerie: winzig auf dem Wasser eines Vorschaubilds */
.fotos li { position: relative; }
.geheim-ente--foto { position: absolute; width: 2.4%; min-width: 9px; height: auto; aspect-ratio: 10 / 9; margin: 0; transform: translate(-50%, -50%); opacity: 0.9; }
.geheim-ente--foto:hover { transform: translate(-50%, -50%) scale(1.6); }
.entenmodus .kopf { border-top-color: var(--gelb); }
.entenmodus .fuss { padding-bottom: 3.5rem; }   /* Platz für die Enten, in der Farbe des Fußes */
.teich { position: fixed; left: 0; right: 0; bottom: 0; height: 5rem; pointer-events: none; overflow: hidden; z-index: 5;
  background: linear-gradient(to top, #cfe3ea 0 0.9rem, transparent 0.9rem); }
.ente { position: absolute; bottom: 0.25rem; left: 0; pointer-events: auto; background: none; border: 0; padding: 0; line-height: 0; cursor: pointer;
  animation: schwimmen linear infinite; }
.ente__tier { display: block; animation: watscheln 0.5s ease-in-out infinite alternate; }
.ente svg { display: block; width: 100%; height: auto; }   /* schaut von sich aus nach rechts, also in Schwimmrichtung */
.quak { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); font: 700 0.9rem/1.3 var(--sans); color: #1d2321;
  background: var(--gelb); padding: 0.05rem 0.45rem; border-radius: 3px; white-space: nowrap; }
/* Ausschalter im Stil des Hell/Dunkel-Umschalters: abgerundete Leiste, Symbol im grünen Kreis */
.teich__aus { position: absolute; right: 0.75rem; bottom: 1.2rem; pointer-events: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 0.95rem/1 var(--sans); color: var(--text); background: var(--grund); border: 1px solid var(--linie); border-radius: 999px;
  padding: 3px 0.9rem 3px 3px; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12); transition: background-color 0.15s, color 0.15s; }
.teich__symbol { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--gruen); }
.teich__symbol svg { width: 1.3rem; height: auto; }
.teich__aus:hover { background: var(--gruen-hell); }
.teich__aus:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
@keyframes schwimmen { from { transform: translateX(-4rem); } to { transform: translateX(100vw); } }
@keyframes watscheln { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@media (prefers-reduced-motion: reduce) {
  .ente { animation: none; position: static; margin: 0 0.5rem; }
  .ente__tier { animation: none; }
  .teich { display: flex; justify-content: center; align-items: flex-end; padding-bottom: 0.25rem; }
  .teich__aus { position: static; margin-left: 1rem; }
}
@media print { .teich, .geheim-ente { display: none; } }
