/* ==========================================================
   Früehligsfescht – Helfer- und Galerieseite im Look der v3
   (helfer.html, galerie.html)
   Wird NACH css/styles.css geladen und überschreibt dessen
   Aussehen: Schriften, Farben, Kopf, Knöpfe, Fuss.
   Die Bausteine (Schichtkarten, Zeitplan, Fotoraster) bleiben
   technisch dieselben wie bisher.
   ========================================================== */
:root {
  --see: #17384a;
  --see-hell: #5b7483;
  --papier: #ffffff;
  --himmel: #eaf6f8;
  --morgen: #fff6de;
  --hand: 'Caveat Brush', 'Comic Sans MS', cursive;
  --text: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  /* bisherige Namen aus styles.css auf die v3-Farben umlegen */
  --dunkel: #17384a;
  --creme: var(--seite, #ffffff);
  --radius: 6px;
  --schatten: 0 2px 10px rgba(23,56,74,.10);
}
html { scroll-padding-top: 96px; }
body {
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.55;
  color: var(--see); background: var(--seite, #fff);
}
body.seite-helfer { --seite: var(--morgen); }
body.seite-galerie { --seite: #ffffff; }
h1, h2, h3, .btn { font-family: var(--text); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 3px; }
.container { max-width: 1180px; padding: 0 24px; }

/* ---------- Wimpelkette ---------- */
.wimpel {
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22210%22%20height%3D%2240%22%20viewBox%3D%220%200%20210%2040%22%3E%3Cpath%20d%3D%22M0%203%20Q105%2023%20210%203%22%20fill%3D%22none%22%20stroke%3D%22%2317384a%22%20stroke-width%3D%221.2%22/%3E%3Cpath%20d%3D%22M8.0%204.5%20L34.0%208.4%20L21.0%2032.4Z%22%20fill%3D%22%23e65444%22/%3E%3Cpath%20d%3D%22M42.0%209.4%20L68.0%2011.8%20L55.0%2035.8Z%22%20fill%3D%22%2349aec1%22/%3E%3Cpath%20d%3D%22M76.0%2012.2%20L102.0%2013.0%20L89.0%2037.0Z%22%20fill%3D%22%23ffcc63%22/%3E%3Cpath%20d%3D%22M110.0%2013.0%20L136.0%2012.1%20L123.0%2037.0Z%22%20fill%3D%22%23bc83f4%22/%3E%3Cpath%20d%3D%22M144.0%2011.6%20L170.0%209.2%20L157.0%2035.6Z%22%20fill%3D%22%23f79f47%22/%3E%3Cpath%20d%3D%22M178.0%208.2%20L204.0%204.1%20L191.0%2032.2Z%22%20fill%3D%22%23fa88c3%22/%3E%3C/svg%3E") repeat-x;
  background-position: -14px 0;
}

/* ---------- Kopf (wie v3, bleibt oben stehen) ---------- */
.leiste { position: sticky; top: 0; z-index: 50; background: var(--seite, #fff); transition: box-shadow .2s; }
.leiste.unterwegs { box-shadow: 0 6px 18px -12px rgba(23,56,74,.55); }
.kopf { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 78px; display: flex; align-items: center; gap: 28px; }
.kopf-logo img { height: 68px; width: auto; transform-origin: left center; transition: transform .2s; }
.leiste.unterwegs .kopf-logo img { transform: scale(.8); }
.kopf-links { display: flex; gap: 22px; list-style: none; margin-left: auto; }
.kopf-links a {
  text-decoration: none; font-weight: 600; white-space: nowrap; padding: 4px 0;
  background: linear-gradient(var(--koralle), var(--koralle)) left bottom / 0 3px no-repeat;
}
.kopf-links a:hover, .kopf-links a[aria-current="page"] { background-size: 100% 3px; }
.kopf-menue { display: none; }
.knopf { display: inline-block; text-decoration: none; font-weight: 800; padding: 12px 22px; border-radius: 10px; font-size: 1rem; white-space: nowrap; }
.knopf-koralle { background: var(--koralle); color: #fff; }
.knopf:hover { filter: brightness(1.08); }

/* ---------- Seitentitel ---------- */
.helfer-kopf { max-width: 1180px; margin: 0 auto; padding: 40px 24px 8px; text-align: left; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; }
.helfer-kopf h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: .92; font-weight: 800; letter-spacing: -.035em; font-variation-settings: "opsz" 96; }
.helfer-kopf .section-sub { text-align: left; margin: 0; max-width: 38em; color: var(--see-hell); }
.helfer-kopf .section-sub small { display: block; margin-top: 8px; font-size: .92rem; }
.kopf-foto { position: relative; margin: 0; }
.section-sub, .lade-status, .tl-hinweis, .tl-achse, .schicht .hinweis { color: var(--see-hell); }
.gedaempft { color: var(--see-hell); }

/* ---------- Knöpfe ---------- */
.btn { border-radius: 10px; box-shadow: none; font-size: 1rem; padding: 12px 22px; transition: filter .15s; }
.btn:hover { transform: none; filter: brightness(1.08); }
.btn-primary { background: var(--koralle); color: #fff; }
.btn-secondary { background: #fff; color: var(--see); border: 2px solid var(--see); padding: 10px 20px; }
.btn-tuerkis { background: var(--see); color: #fff; }

/* ---------- Helferseite: Zettel "Einfach einteilen lassen" ---------- */
.helfer-oben { display: grid; grid-template-columns: 7fr 5fr; gap: 0; align-items: center; margin-top: 34px; }
.einteilen-box {
  position: relative; z-index: 1; background: var(--gelb); color: var(--see);
  border-radius: 0; max-width: none; margin: 0 -50px 0 0; padding: 36px 34px 32px;
  transform: rotate(-1.2deg); box-shadow: 0 10px 24px rgba(23,56,74,.18);
}
.einteilen-box::before {            /* Klebstreifen */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; margin-left: -55px;
  background: rgba(255,255,255,.65); transform: rotate(3deg);
}
.einteilen-box h2 { font-family: var(--hand); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--koralle); margin-bottom: 8px; }
.einteilen-box > p { opacity: 1; }
.einteilen-box input, .einteilen-box select { border-radius: 8px; border: 2px solid transparent; }
.einteilen-box input:focus, .einteilen-box select:focus { outline: none; border-color: var(--see); }
.einteilen-box .fehler-text { color: #fff; background: var(--koralle); }
.einteilen-ok { background: rgba(255,255,255,.6); border-radius: 8px; }
.helfer-foto { border-radius: 4px; width: 100%; height: auto; }
/* Zeile "Aktuell sind x von y Plätzen offen" (kommt mit festen Farben aus helfer.js) */
#inhalt > p[style] { text-align: left !important; color: var(--see-hell) !important; font-weight: 600 !important; margin-top: 6px; }
.selber-titel { font-family: var(--hand); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; color: var(--koralle); margin: 70px 0 6px; text-align: left; }
.selber-text { color: var(--see-hell); max-width: 40em; }
.demo-banner { border-radius: 6px; max-width: none; margin: 18px 0 0; text-align: left; font-weight: 600; }

/* ---------- Ansicht, Filter ---------- */
.ansicht-wahl { justify-content: flex-start; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.ansicht-wahl button { font-family: var(--text); font-weight: 600; border-radius: 10px; border: 2px solid var(--see); background: #fff; color: var(--see); box-shadow: none; }
.ansicht-wahl button.aktiv { background: var(--see); color: #fff; }
.filter { justify-content: flex-start; margin: 16px 0 6px; gap: 8px; }
.filter button { font-family: var(--text); font-weight: 600; border-radius: 999px; border: 2px solid var(--see); color: var(--see); background: transparent; padding: 7px 16px; }
.filter button.aktiv { background: var(--see); color: #fff; }
.nur-offen { font-weight: 600; color: var(--see); }

/* ---------- Schichten ---------- */
.bereich-titel { font-family: var(--hand); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 40px 0 14px; }
.bereich-titel .punkt {             /* kleiner Ballon statt Punkt */
  width: 15px; height: 18px; border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
}
.schicht { border-radius: 6px; border: 2px solid transparent; box-shadow: 0 2px 10px rgba(23,56,74,.10); }
.schicht.gewaehlt { border-color: var(--koralle); background: #fff3f0; }
.schicht .aufgabe { font-family: var(--text); font-weight: 800; }
.schicht .zeit { font-family: var(--hand); font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--see); }
.schicht .check { border-color: #c9d6dc; }
.zeitplan-wrap { border-radius: 6px; box-shadow: 0 2px 10px rgba(23,56,74,.10); }
.tl-zeile { border-top-color: #e3edf1; }
.tl-stunde-linie { background: #e3edf1; }
.tl-block { border-radius: 6px; font-family: var(--text); }
.auswahl-leiste { background: var(--see); }
.auswahl-leiste .btn-secondary { border-color: #fff; }

/* ---------- Anmeldedialog ---------- */
.dialog-hintergrund { background: rgba(23,56,74,.6); }
.dialog { border-radius: 6px; border-top: 0; }
.dialog h2 { font-family: var(--hand); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--koralle); margin-bottom: 8px; }
.dialog .gewaehlte-liste { background: var(--himmel); border-radius: 6px; }
.dialog input, .dialog textarea { border-radius: 8px; border-color: #c9d6dc; }

/* ---------- Galerie ---------- */
.galerie-gross { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.g-thumb { border-radius: 4px; box-shadow: none; background: var(--himmel); aspect-ratio: 4 / 3; }
.g-thumb img { transition: transform .4s ease; }
.g-thumb:hover { transform: none; }
.g-thumb:hover img { transform: scale(1.04); }
.lightbox { background: rgba(13,34,46,.95); }
.lightbox img { border-radius: 4px; }
.lb-zaehler { font-family: var(--hand); font-weight: 400; font-size: 1.2rem; background: none; }
.galerie-hinweis { font-size: .92rem; color: var(--see-hell); margin-top: 28px; max-width: 46em; }
.galerie-hinweis a { color: var(--see); font-weight: 600; text-decoration-color: var(--koralle); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Fuss (wie v3) ---------- */
.fuss {
  margin-top: 90px; background: var(--see); color: #dfeef3; text-align: left;
  padding: 48px max(24px, calc((100% - 1132px) / 2)) 32px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px;
}
.fuss > * { max-width: 380px; }
.fuss h3 { font-family: var(--hand); font-weight: 400; font-size: 1.6rem; color: var(--gelb); margin-bottom: 6px; }
.fuss a { color: #fff; }
.fuss .copyright { grid-column: 1 / -1; max-width: none; font-size: .85rem; color: #9fbac6; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .kopf { height: auto; min-height: 62px; padding-top: 4px; flex-wrap: wrap; position: relative; gap: 12px; }
  .kopf-logo img { height: 54px; }
  .kopf-menue {
    display: block; margin-left: auto; font: inherit; font-weight: 600; color: var(--see);
    background: none; border: 2px solid var(--see); border-radius: 10px; padding: 8px 14px; cursor: pointer;
  }
  .kopf-links { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; margin: 10px 0 0; border-top: 2px solid var(--see); }
  .kopf-links.offen { display: flex; }
  .kopf-links a { display: block; padding: 12px 2px; border-bottom: 1px solid #dbe9ee; background: none; }
  .kopf-links a[aria-current="page"] { color: var(--koralle); }
  .helfer-kopf { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .helfer-oben { grid-template-columns: 1fr; }
  .einteilen-box { margin: 0 0 -20px; }
  .fuss { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kopf { padding: 4px 16px 0; gap: 8px; }
  .kopf-logo img { height: 46px; }
  .kopf-knopf { padding: 9px 13px; font-size: .92rem; }
  .kopf-menue { padding: 7px 11px; }
  .container, .helfer-kopf { padding-left: 16px; padding-right: 16px; }
  .einteilen-box { padding: 30px 20px 24px; }
  .einteilen-box h2 { font-size: 2.2rem; }
  .galerie-gross { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .kopf-logo img, .g-thumb img, .btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* Zeitplan-Legende linksbündig wie der Rest */
.tl-legende { justify-content: flex-start; color: var(--see-hell); }
