/* Kindergarten Taiskirchen – helles Glas-Design
   Farben aus dem Gebäude: Fassadengrün, Himmelblau, bunte Schriftzug-Buchstaben */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --himmel: #2f8fd8;
  --fassade: #8bb030;
  --tinte: #1f3a52;
  --tinte-2: #4d6479;
  --glas: rgba(255, 255, 255, 0.58);
  --glas-stark: rgba(255, 255, 255, 0.78);
  --rand: rgba(255, 255, 255, 0.85);
  --schatten: 0 10px 40px rgba(31, 58, 82, 0.12);
  --fokus: 0 0 0 3px rgba(47, 143, 216, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Figtree", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinte);
  background:
    radial-gradient(60vw 50vw at 8% -10%, rgba(139, 176, 48, 0.32), transparent 60%),
    radial-gradient(55vw 45vw at 100% 10%, rgba(47, 143, 216, 0.30), transparent 60%),
    radial-gradient(50vw 40vw at 70% 100%, rgba(226, 54, 91, 0.16), transparent 60%),
    radial-gradient(40vw 35vw at 0% 90%, rgba(224, 180, 0, 0.18), transparent 60%),
    linear-gradient(180deg, #eef7ff 0%, #f7fbef 100%);
  background-attachment: fixed;
}

a { color: var(--himmel); }
:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 10px; }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.glas {
  background: var(--glas);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--rand);
  box-shadow: var(--schatten);
}

h1, h2, h3 {
  font-family: "Fredoka", "Figtree", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 1rem; }

/* ---------- Kopf ---------- */
.hero {
  position: relative;
  margin-top: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
}
.hero-bild {
  grid-column: 1 / 3;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 737 / 387;
  max-height: 520px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: var(--schatten);
}
.hero-karte {
  grid-column: 2;
  grid-row: 1;
  margin: 0 clamp(1rem, 3vw, 2rem) clamp(-3rem, -4vw, -1.5rem) 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 28px;
  background: var(--glas-stark);
  position: relative;
}
.hero-karte h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-karte h1 .ort {
  display: block;
  color: var(--tinte);
  font-weight: 500;
  font-size: 0.62em;
  margin-top: 0.15em;
}
.hero-karte p { margin: 0.9rem 0 0; color: var(--tinte-2); max-width: 38ch; }

main { padding-top: clamp(4rem, 7vw, 6rem); }
section { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Link-Kacheln ---------- */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.kachel {
  --c: var(--fassade);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  text-decoration: none;
  color: var(--tinte);
  background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
  border: 1px solid var(--rand);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(31, 58, 82, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kachel:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31, 58, 82, 0.14); }
.kachel .punkt {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}
.kachel strong { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem; }
.kachel small { display: block; color: var(--tinte-2); font-size: 0.92rem; }
.kachel.leer { opacity: 0.55; cursor: default; }
.kachel.leer:hover { transform: none; }

/* ---------- Rechner ---------- */
.rechner {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.rechner h2 { margin-bottom: 0.25rem; }
.rechner .unter { color: var(--tinte-2); margin: 0 0 1.25rem; }

.feld { margin-bottom: 1rem; }
.feld label, .feld .label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.feld .hilfe { font-size: 0.88rem; color: var(--tinte-2); margin-top: 0.25rem; }

.eingabe {
  position: relative;
}
.eingabe input {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.9rem 0.7rem 2.2rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 58, 82, 0.15);
  background: rgba(255, 255, 255, 0.85);
  color: var(--tinte);
}
.eingabe::before {
  content: "€";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tinte-2);
}
.eingabe input:focus { outline: none; box-shadow: var(--fokus); border-color: var(--himmel); }

.zweier { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.segment {
  position: relative;
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 16px;
  background: rgba(31, 58, 82, 0.06);
}
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  margin: 0;
  color: var(--tinte-2);
}
.segment input:checked + label {
  background: #fff;
  color: var(--tinte);
  box-shadow: 0 2px 10px rgba(31, 58, 82, 0.12);
}
.segment input:focus-visible + label { box-shadow: var(--fokus); }

.ergebnis {
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(160deg, rgba(139, 176, 48, 0.22), rgba(47, 143, 216, 0.16));
  border: 1px solid var(--rand);
  display: flex;
  flex-direction: column;
}
.ergebnis .betrag {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem);
  line-height: 1;
  margin: 0.4rem 0 0.2rem;
  font-variant-numeric: tabular-nums;
}
.ergebnis .proMonat { color: var(--tinte-2); }
.ergebnis dl {
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}
.ergebnis dt { color: var(--tinte-2); }
.ergebnis dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ergebnis .jahr { border-top: 1px dashed rgba(31,58,82,0.2); padding-top: 0.5rem; }
.ergebnis .hinweis { margin-top: auto; padding-top: 1.25rem; font-size: 0.85rem; color: var(--tinte-2); }

/* ---------- Kontakt ---------- */
.kontakt {
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.kontakt h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.kontakt p { margin: 0; white-space: pre-line; color: var(--tinte-2); }

footer {
  padding: 1.5rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--tinte-2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer a { color: var(--tinte-2); }

/* ---------- Admin ---------- */
.admin-kopf {
  margin-top: 1.5rem;
  border-radius: 22px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-kopf h1 { font-size: 1.5rem; }
.admin-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.admin-nav a {
  text-decoration: none;
  color: var(--tinte);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
}
.admin-nav a.aktiv { background: #fff; box-shadow: 0 2px 10px rgba(31,58,82,0.1); }

.panel { border-radius: 24px; padding: clamp(1rem, 3vw, 1.75rem); margin-top: 1.25rem; }
.panel h2 { font-size: 1.4rem; }

.btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 14px;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  background: var(--tinte);
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.btn.hell { background: rgba(255,255,255,0.85); color: var(--tinte); border: 1px solid rgba(31,58,82,0.15); }
.btn.klein { padding: 0.4rem 0.75rem; font-size: 0.9rem; }

.formular input[type=text], .formular input[type=url], .formular input[type=email],
.formular input[type=password], .formular input[type=number], .formular textarea, .formular select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 58, 82, 0.15);
  background: rgba(255,255,255,0.9);
  color: var(--tinte);
}
.formular textarea { min-height: 90px; resize: vertical; }
.formular .raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem 1rem; }
.formular label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 0.25rem; }

.linkzeile {
  display: grid;
  grid-template-columns: 64px 1fr 1fr 64px 1fr 2fr 100px 110px;
  gap: 0.5rem;
  align-items: end;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--rand);
  margin-bottom: 0.6rem;
}
.linkzeile .reihe { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; }
.linkzeile.neu { background: rgba(139,176,48,0.12); border-style: dashed; border-color: rgba(31,58,82,0.2); }
.linkzeile .vorschau { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: middle; }

.meldung { border-radius: 14px; padding: 0.75rem 1rem; margin-top: 1rem; font-weight: 600; }
.meldung.ok { background: rgba(139,176,48,0.2); }
.meldung.fehler { background: rgba(226,54,91,0.15); }

.login { max-width: 420px; margin: 12vh auto 0; border-radius: 28px; padding: 2rem; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-bild { grid-column: 1; border-radius: 26px; aspect-ratio: 4 / 3; }
  .hero-karte { grid-column: 1; grid-row: 2; margin: -3rem 0.75rem 0; }
  main { padding-top: 2.5rem; }
  .rechner { grid-template-columns: 1fr; }
  .linkzeile { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glas, .kachel { background: rgba(255,255,255,0.92); }
}

/* Zähler für weitere Kinder */
.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 58, 82, 0.15);
  overflow: hidden;
}
.stepper button {
  font: inherit;
  font-size: 1.3rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
}
.stepper button:hover { background: rgba(47, 143, 216, 0.1); }
.stepper input {
  width: 3rem;
  text-align: center;
  font: inherit;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--tinte);
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Einkommens-Info */
.info { border-radius: 28px; padding: 0; }
.info summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.25rem, 3vw, 2.25rem);
}
.info summary::-webkit-details-marker { display: none; }
.info summary h2 { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); }
.info-zu {
  flex: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 58, 82, 0.1);
}
.info[open] .info-zu { font-size: 0; }
.info[open] .info-zu::after { content: "Schließen"; font-size: 0.95rem; }
.info-inhalt { padding: 0 clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem); }
.info-lead { margin: 0 0 1.25rem; max-width: 70ch; }
.info-raster {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.25rem 2rem;
}
.info h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.info h3 + ul + h3, .info ul + h3 { margin-top: 1rem; }
.info ul { margin: 0; padding-left: 1.1rem; color: var(--tinte-2); }
.info li { margin-bottom: 0.35rem; }
.info li strong { color: var(--tinte); }
.info-fuss { margin: 1.25rem 0 0; font-size: 0.88rem; color: var(--tinte-2); }
@media (max-width: 820px) { .info-raster { grid-template-columns: 1fr; } }

/* Fußzeilen-Links */
.footer-links { display: flex; gap: 0.4rem 1.25rem; flex-wrap: wrap; }

/* Störer "Beitrag berechnen" – runder Zacken-Sticker, leicht schief */
.stoerer {
  position: fixed;
  top: clamp(0.5rem, 2vw, 1.25rem);
  right: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 50;
  width: clamp(124px, 8vw + 80px, 168px);
  aspect-ratio: 1;
  text-decoration: none;
  filter: drop-shadow(0 10px 18px rgba(226, 54, 91, 0.35));
  transform: rotate(-12deg);
  animation: wackeln 2.4s ease-in-out infinite;
}
.stoerer-form {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff6a6a, #e2365b 55%, #c4284f);
  clip-path: polygon(50.0% 0.0%, 56.9% 6.5%, 65.5% 2.4%, 70.0% 10.8%, 79.4% 9.5%, 81.1% 18.9%, 90.5% 20.6%, 89.2% 30.0%, 97.6% 34.5%, 93.5% 43.1%, 100.0% 50.0%, 93.5% 56.9%, 97.6% 65.5%, 89.2% 70.0%, 90.5% 79.4%, 81.1% 81.1%, 79.4% 90.5%, 70.0% 89.2%, 65.5% 97.6%, 56.9% 93.5%, 50.0% 100.0%, 43.1% 93.5%, 34.5% 97.6%, 30.0% 89.2%, 20.6% 90.5%, 18.9% 81.1%, 9.5% 79.4%, 10.8% 70.0%, 2.4% 65.5%, 6.5% 56.9%, 0.0% 50.0%, 6.5% 43.1%, 2.4% 34.5%, 10.8% 30.0%, 9.5% 20.6%, 18.9% 18.9%, 20.6% 9.5%, 30.0% 10.8%, 34.5% 2.4%, 43.1% 6.5%);
  animation: leuchten 1.2s ease-in-out infinite;
}
.stoerer-euro {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 1.2vw + 1.6rem, 2.8rem);
  line-height: 1;
}
.stoerer-text {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(0.92rem, 0.35vw + 0.8rem, 1.12rem);
  line-height: 1.1;
  margin-top: 0.15rem;
}
.stoerer:hover, .stoerer:focus-visible { animation-play-state: paused; transform: rotate(-4deg) scale(1.08); box-shadow: none; }
.stoerer:hover .stoerer-form { animation-play-state: paused; }
@keyframes wackeln {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50%      { transform: rotate(-7deg) scale(1.07); }
}
@keyframes leuchten {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.22); }
}
body.dialog-offen .stoerer, body.dialog-offen .eck { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .stoerer, .stoerer-form { animation: none; }
}

/* Rechner-Fenster */
.rechner-dialog {
  width: min(1040px, 100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--tinte);
}
.rechner-dialog::backdrop {
  background: rgba(31, 58, 82, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rechner-dialog[open] { animation: aufgehen 0.22s ease-out; }
@keyframes aufgehen { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.rechner-dialog .rechner { background: rgba(255, 255, 255, 0.86); }
.rechner-dialog #einkommen { margin-top: 0.75rem; }
.rechner-dialog .info { background: rgba(255, 255, 255, 0.82); }
.dialog-zu {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem -3.5rem 0;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--tinte);
  background: #fff;
  box-shadow: 0 2px 12px rgba(31, 58, 82, 0.18);
}
@media (prefers-reduced-motion: reduce) { .rechner-dialog[open] { animation: none; } }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Gemeindewappen als auslaufender Hintergrund (wie im Speiseplan) –
   unten rechts verankert, damit es hinter Kacheln und Kontakt schimmert und nicht vom Foto verdeckt wird */
.seite { position: relative; overflow: hidden; overflow: clip; min-height: 100vh; }  /* clip statt hidden: sticky-Elemente funktionieren */
.seite > .wrap { position: relative; z-index: 1; }
.bg-wappen {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 88%, transparent 100%);
}
.bg-wappen img {
  position: absolute;
  right: -3%;
  bottom: -4%;
  height: min(78%, 820px);
  width: auto;
  opacity: 0.12;
  filter: saturate(0.75);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 34%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 34%, transparent 78%);
}
@media (min-width: 1500px) {
  .bg-wappen img { right: 2%; height: min(85%, 1000px); }
}
@media (max-width: 768px) {
  .bg-wappen img { right: -25%; height: min(55%, 460px); opacity: 0.09; }
}
@media print {
  .bg-wappen { display: none !important; }
}

/* Unterseiten (Impressum, Datenschutz) */
.unterseite-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: clamp(1.25rem, 3vw, 2rem) 0 1.25rem;
}
.unterseite-logo {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  text-decoration: none;
  color: var(--tinte);
}
.unterseite-logo span { font-weight: 500; font-size: 0.7em; }
.dokument {
  max-width: 820px;
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.78);
}
.dokument h1 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin-bottom: 0.75rem; }
.dokument h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(31, 58, 82, 0.12);
}
.dokument p, .dokument address { max-width: 70ch; color: var(--tinte-2); margin: 0 0 0.75rem; }
.dokument address { font-style: normal; }
.dokument .stand { margin-top: 2rem; font-size: 0.85rem; }
.footer-leer { opacity: 0.6; cursor: default; }
@media print {
  .unterseite-kopf .btn, footer, .stoerer { display: none !important; }
  .dokument { box-shadow: none; background: #fff; }
}

/* Admin: Fußzeilen-Links kompakter */
.linkzeile.fuss { grid-template-columns: 64px 1fr 1fr 64px 2.5fr 110px; }
.linkzeile.fuss.neu { background: rgba(123, 75, 196, 0.08); }
@media (max-width: 820px) { .linkzeile.fuss { grid-template-columns: 1fr 1fr; } }

/* ================= Interner Bereich ================= */
.intern-mitte {
  min-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 0 1rem;
}
.intern-kopf { text-align: center; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.intern-wappen {
  display: block;
  height: clamp(110px, 16vh, 150px);
  width: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 12px 22px rgba(31, 58, 82, 0.22));
}
.intern-wappen.ohne, .login-wappen .ohne { font-size: 4rem; line-height: 1; }
.intern-marke {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.intern-marke span { color: var(--tinte-2); font-weight: 500; }
.intern-mitte h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-top: 0.2rem; }
.intern-unter { color: var(--tinte-2); margin: 0.5rem auto 0; max-width: 42ch; }

/* Auswahlkarten */
.bereiche {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  width: min(720px, 100%);
}
.bereich {
  --c: var(--fassade);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem) 1.25rem clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 28px;
  text-decoration: none;
  color: var(--tinte);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bereich::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--c);
}
.bereich:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(31, 58, 82, 0.18); }
.bereich-symbol {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  background: var(--c);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 10px 22px color-mix(in srgb, var(--c) 40%, transparent);
  margin-bottom: 0.35rem;
}
.bereich-name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.5rem; }
.bereich-status { font-size: 0.9rem; color: var(--tinte-2); }
.bereich-status.offen { color: #4f7a12; font-weight: 600; }
.bereich-pfeil {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  font-size: 1.2rem;
  color: var(--c);
  transition: transform 0.18s ease;
}
.bereich:hover .bereich-pfeil { transform: translateX(4px); }
.intern-zurueck { margin-top: 1.75rem; }
.intern-zurueck a, .login-unten a { color: var(--tinte-2); text-decoration: none; font-weight: 600; }
.intern-zurueck a:hover, .login-unten a:hover { color: var(--tinte); }

/* Login-Karte mit Wappen */
.login-karte {
  --c: var(--fassade);
  position: relative;
  width: min(430px, 100%);
  margin-top: 70px;
  padding: 88px clamp(1.25rem, 5vw, 2.25rem) 1.5rem;
  border-radius: 32px;
  text-align: center;
  background: var(--glas-stark);
}
.login-karte::before {               /* farbiger Schein hinter dem Wappen */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.login-wappen {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}
.login-wappen::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 52%, color-mix(in srgb, var(--c) 30%, #fff) 53%, transparent 72%);
  box-shadow: 0 0 0 1px var(--rand);
  opacity: 0.95;
}
.login-wappen img {
  position: relative;
  height: 118px;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(31, 58, 82, 0.25));
}
.login-wappen .ohne { position: relative; }
.login-karte h1 { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.2rem); position: relative; }
.login-karte .intern-marke { position: relative; }
.bereich-chip {
  position: relative;
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--c);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.login-form { position: relative; text-align: left; margin-top: 1.5rem; }
.login-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.pw-feld { position: relative; }
.pw-feld input {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: 0.8rem 3.2rem 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 58, 82, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: var(--tinte);
}
.pw-feld input:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.pw-zeigen {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0.55;
}
.pw-zeigen[aria-pressed="true"] { opacity: 1; }
.login-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  border-radius: 16px;
  background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent);
}
.login-btn:hover { filter: brightness(1.07); }
.login-karte .meldung { position: relative; text-align: left; }
.login-unten {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 58, 82, 0.1);
  font-size: 0.92rem;
}

/* Bereichsseite nach dem Login */
.intern-leiste {
  --c: var(--fassade);
  margin-top: clamp(1rem, 3vw, 2rem);
  border-radius: 24px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-left: 6px solid var(--c);
}
.intern-leiste-titel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--tinte);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.1;
}
.intern-leiste-titel img { height: 54px; width: auto; filter: drop-shadow(0 4px 8px rgba(31, 58, 82, 0.2)); }
.intern-leiste-titel small { display: block; font-family: "Figtree", sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--tinte-2); text-transform: uppercase; letter-spacing: 0.06em; }
.intern-leiste-knoepfe { display: flex; gap: 0.5rem; align-items: center; }
.intern-inhalt { padding-top: clamp(1.5rem, 4vw, 2.5rem); min-height: 50vh; }
.intern-text { color: var(--tinte-2); margin: 0 0 1.5rem; max-width: 70ch; }
.intern-inhalt .meldung { margin: 0 0 1.25rem; }

/* Admin */
.bereich-admin { border-top: 6px solid var(--c); }
.bereich-admin-kopf { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bereich-admin-kopf h2 { margin: 0; }
.pw-status { font-size: 0.85rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; }
.pw-status.ok { background: rgba(139, 176, 48, 0.22); color: #3f6510; }
.pw-status.fehlt { background: rgba(226, 54, 91, 0.15); color: #a51f45; }
.linkzeile.intern-zeile { grid-template-columns: 64px 1fr 1fr 64px 2fr 110px; }
@media (max-width: 820px) { .linkzeile.intern-zeile { grid-template-columns: 1fr 1fr; } }

@media (max-width: 560px) {
  .bereiche { grid-template-columns: 1fr; }
  .bereich { flex-direction: row; text-align: left; padding: 1.1rem 2.5rem 1.1rem 1.1rem; gap: 0.9rem; }
  .bereich::before { inset: 0 auto 0 0; width: 6px; height: auto; }
  .bereich-symbol { width: 60px; height: 60px; font-size: 1.9rem; border-radius: 18px; margin: 0; flex: none; }
  .bereich-name { font-size: 1.25rem; display: block; }
  .bereich-pfeil { top: 50%; bottom: auto; transform: translateY(-50%); }
  .bereich:hover .bereich-pfeil { transform: translate(4px, -50%); }
  .intern-leiste-titel { font-size: 1.2rem; }
  .intern-leiste-titel img { height: 44px; }
}
/* Name + Status untereinander in der Handy-Zeile */
@media (max-width: 560px) {
  .bereich { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; row-gap: 0.1rem; align-items: center; }
  .bereich-symbol { grid-row: 1 / 3; }
  .bereich-name { align-self: end; }
  .bereich-status { align-self: start; }
}
.intern-inhalt .kacheln { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ================= Slider im Kopf ================= */
.slider {
  grid-column: 1 / 3;
  grid-row: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 737 / 387;
  max-height: 540px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--schatten);
  background: #dfe9f2;
  touch-action: pan-y;
  isolation: isolate;
}
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.aktiv { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7.5s ease-out;
}
.slide.aktiv img { transform: scale(1); }
.slide.leer-bild { display: grid; place-items: center; font-size: 5rem; opacity: 1; }
/* leichter Verlauf, damit Schild und Knöpfe lesbar bleiben */
.slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), transparent 26%),
    linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 30%);
}

/* Umschalter Kindergarten | Krabbelstube */
.slider-haeuser {
  position: absolute;
  z-index: 3;
  top: clamp(0.75rem, 2vw, 1.25rem);
  left: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--rand);
}
.slider-haeuser button {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  color: var(--tinte);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.slider-haeuser button[aria-pressed="true"] {
  background: var(--c);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Schild unten links mit Hausname und Punkten */
.slider-schild {
  --c: var(--fassade);
  position: absolute;
  z-index: 3;
  left: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.5rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--rand);
}
.schild-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.4s ease;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.slider-punkte { display: flex; gap: 0.35rem; padding-right: 0.35rem; }
.slider-punkte button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(31, 58, 82, 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}
.slider-punkte button[aria-current] { width: 22px; background: var(--c); }

/* ================= Zwei Häuser ================= */
.haeuser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.haus {
  --c: var(--fassade);
  border-radius: 30px;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border-top: 6px solid var(--c);
  scroll-margin-top: 1rem;
}
.haus-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.haus-kopf h2 { margin: 0; color: var(--tinte); }
.haus-bild {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--c), 0 8px 18px rgba(31, 58, 82, 0.18);
}
.haus-bild.ohne { display: grid; place-items: center; font-size: 2rem; background: var(--c); }
.haus-adresse { margin: 0.2rem 0 0; color: var(--tinte-2); font-size: 0.95rem; }
.haus .kacheln { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; }
.haus-kontakt {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--c) 9%, rgba(255, 255, 255, 0.7));
  border: 1px solid var(--rand);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.haus-kontakt h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.haus-kontakt p { margin: 0; white-space: pre-line; color: var(--tinte-2); font-size: 0.95rem; }
.haus-kontakt .route { display: inline-block; margin-top: 0.35rem; font-weight: 700; font-size: 0.9rem; color: var(--c); text-decoration: none; }
.haus-kontakt .route:hover { text-decoration: underline; }

/* ================= Admin: Fotos ================= */
.foto-upload { display: grid; grid-template-columns: 2fr 1fr auto; gap: 0.75rem; align-items: end; }
.foto-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0.9rem; }
.foto-zeile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rand);
  border-left: 5px solid var(--c);
}
.foto-zeile img, .foto-fehlt {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}
.foto-fehlt { display: grid; place-items: center; background: rgba(226, 54, 91, 0.12); font-size: 0.85rem; font-weight: 600; }
.foto-felder { display: grid; gap: 0.45rem; }
.foto-reihe { display: grid; grid-template-columns: 70px 1fr; gap: 0.5rem; }
.foto-felder label { font-size: 0.82rem; margin-bottom: 0.1rem; }
.foto-felder input[type=text], .foto-felder input[type=number], .foto-felder select { padding: 0.4rem 0.6rem; }

@media (max-width: 900px) {
  .haeuser { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  /* Handy: höheres Bild, Umschalter unten (oben rechts sitzt der Störer), Punkte oben links */
  .slider { grid-column: 1; border-radius: 26px; aspect-ratio: 1 / 1; max-height: 70vh; }
  .slider-haeuser { top: auto; bottom: 3.8rem; left: 50%; transform: translateX(-50%); }
  .slider-haeuser button { font-size: 0.88rem; padding: 0.45rem 0.75rem; white-space: nowrap; }
  .slider-schild { bottom: auto; top: 0.75rem; padding: 0.45rem 0.4rem; }
  .slider-schild .schild-name { display: none; }
  .slider-punkte { padding: 0 0.15rem; }
  .slider::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 40%); }
  /* Ohne zweites Haus: Schild mit Namen trotzdem zeigen */
  .slider:not(:has(.slider-haeuser)) .slider-schild .schild-name { display: inline-flex; }
  .foto-upload { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide img { transition: none; }
  .slide img { transform: none; }
}
@media (max-width: 480px) { .foto-liste { grid-template-columns: 1fr; } .foto-zeile { grid-template-columns: 96px 1fr; } .foto-zeile img, .foto-fehlt { width: 96px; height: 72px; } }

/* ================= Kindergartenordnung ================= */
.ordnung-teaser {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 24px;
  text-decoration: none;
  color: var(--tinte);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ordnung-teaser:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(31, 58, 82, 0.16); }
.teaser-symbol {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #fff6d6, #ffe7a3);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06);
}
.teaser-text strong { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.2rem; }
.teaser-text small { display: block; color: var(--tinte-2); font-size: 0.95rem; }
.teaser-pfeil { margin-left: auto; font-size: 1.3rem; color: var(--himmel); transition: transform 0.15s ease; }
.ordnung-teaser:hover .teaser-pfeil { transform: translateX(4px); }

.ordnung-titel {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border-radius: 30px;
  background: var(--glas-stark);
}
.ordnung-wappen { height: clamp(80px, 12vw, 120px); width: auto; flex: none; filter: drop-shadow(0 8px 16px rgba(31, 58, 82, 0.2)); }
.ordnung-ueber { margin: 0; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinte-2); }
.ordnung-titel h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 0.2rem 0; }
.ordnung-unter { margin: 0; color: var(--tinte-2); }
.ordnung-aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.stand-chip {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 58, 82, 0.07);
  color: var(--tinte-2);
}

/* Auf einen Blick */
.blick { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.blick-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.blick-karte { border-radius: 24px; padding: 1.2rem 1.25rem; font-size: 0.97rem; }
.blick-breit { grid-column: 1 / -1; }
.blick-karte h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.blick-karte ul { margin: 0 0 0.6rem; padding-left: 1.1rem; color: var(--tinte-2); }
.blick-karte li { margin-bottom: 0.3rem; }
.blick-karte li strong { color: var(--tinte); }
.blick-karte > a, .blick-fuss a { font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.blick-fuss { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--tinte-2); }
.blick-hinweis { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--tinte-2); }

.zeiten-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0.5rem 0 1rem; }
.blick .zeiten-paar { margin: 0; }
.zeiten-box {
  --c: var(--fassade);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--c) 9%, rgba(255, 255, 255, 0.75));
  border: 1px solid var(--rand);
  border-top: 5px solid var(--c);
}
.zeiten-box h4 { margin: 0 0 0.4rem; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; }
.zeiten-box p { font-size: 0.9rem; margin: 0.6rem 0 0 !important; }
table.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
table.zeiten th, table.zeiten td { text-align: left; padding: 0.28rem 0.4rem; border-bottom: 1px solid rgba(31, 58, 82, 0.08); }
table.zeiten thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tinte-2); font-weight: 600; }
table.zeiten tbody th { font-weight: 600; }
table.zeiten tr:last-child th, table.zeiten tr:last-child td { border-bottom: 0; }

/* Text mit Verzeichnis */
.ordnung {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.ordnung-nav {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem 0.9rem;
  border-radius: 22px;
  background: var(--glas);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--rand);
  box-shadow: var(--schatten);
  font-size: 0.9rem;
}
.ordnung-nav summary { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; padding: 0 0.35rem; }
.ordnung-nav summary::-webkit-details-marker { display: none; }
.nav-teil { margin: 0.9rem 0.35rem 0.25rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tinte-2); }
.ordnung-nav ol { list-style: none; margin: 0; padding: 0; }
.ordnung-nav a {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 0.45rem;
  border-radius: 10px;
  color: var(--tinte);
  text-decoration: none;
  line-height: 1.3;
}
.ordnung-nav a span { flex: none; width: 1.4rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; text-align: right; }
.ordnung-nav a:hover { background: rgba(255, 255, 255, 0.7); }
.ordnung-nav a.aktiv { background: #fff; box-shadow: 0 2px 10px rgba(31, 58, 82, 0.1); font-weight: 600; }

.ordnung-text { max-width: none; }
.ordnung-text h2.teil {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  margin: 2.5rem 0 1rem;
  padding: 0 0 0.6rem;
  border-bottom: 2px solid rgba(31, 58, 82, 0.12);
  scroll-margin-top: 1rem;
}
.ordnung-text h2.teil:first-child { margin-top: 0; }
.ordnung-text h2.teil small {
  display: block;
  font-family: "Figtree", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--himmel);
  margin-bottom: 0.25rem;
}
.abschnitt { scroll-margin-top: 1rem; margin-bottom: 1.75rem; }
.abschnitt h3 { display: flex; align-items: baseline; gap: 0.6rem; font-size: 1.15rem; margin: 0 0 0.6rem; }
.abschnitt h3 small { font-family: "Figtree", sans-serif; font-weight: 500; font-size: 0.8rem; color: var(--tinte-2); }
.abs-nr {
  flex: none;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  color: #fff;
  background: var(--tinte);
}
.abs-nr:empty { display: none; }
.ordnung-text .abschnitt p, .ordnung-text .abschnitt li { color: var(--tinte); max-width: 75ch; }
.ordnung-text .abschnitt p { margin: 0 0 0.6rem; color: #2e4a62; }
.ordnung-text ul { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; }
.ordnung-text li { margin-bottom: 0.3rem; color: #2e4a62; }
.pkt { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.4rem; margin-bottom: 0.5rem; }
.pkt-nr { font-weight: 700; color: var(--tinte-2); font-variant-numeric: tabular-nums; padding-top: 0.05rem; }
.randnotiz { font-size: 0.9rem; color: var(--tinte-2) !important; font-style: italic; }
ul.haken { list-style: none; padding-left: 0; }
ul.haken li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
ul.haken li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--tinte-2);
  border-radius: 5px;
}
.nach-oben { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; }

@media (max-width: 960px) {
  .ordnung { grid-template-columns: 1fr; }
  .ordnung-nav { position: static; max-height: none; }
  .ordnung-nav:not(:has(details[open])) { padding: 0.8rem 1rem; }
  .ordnung-nav summary::after { content: " ▾"; color: var(--tinte-2); }
  .ordnung-nav details[open] summary::after { content: " ▴"; }
  .blick-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .blick-raster, .zeiten-paar { grid-template-columns: 1fr; }
  .ordnung-titel { flex-direction: column; align-items: flex-start; }
  .pkt { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .teaser-text small { font-size: 0.88rem; }
}
@media print {
  /* Firefox/Safari: overflow, Glas-Effekte, fixe Hintergründe und Grid/Sticky brechen den Mehrseiten-Druck */
  html, body { height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; scroll-behavior: auto !important; }
  .seite { overflow: visible !important; min-height: 0 !important; position: static !important; }
  .seite > .wrap { position: static !important; }
  .wrap { width: auto !important; margin: 0 !important; }
  .glas, .dokument, .ordnung-titel, .ordnung-text, .zeiten-box {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: none !important; background: #fff !important; border: 0 !important;
  }
  .ordnung-nav, .blick, .ordnung-aktionen, .nach-oben, .unterseite-kopf, .bg-wappen, footer, .stoerer, .eck { display: none !important; }
  .ordnung { display: block !important; margin: 0 !important; }
  .ordnung-titel { display: block !important; padding: 0 0 0.75rem !important; border-bottom: 2px solid #1f3a52 !important; border-radius: 0 !important; }
  .ordnung-wappen { float: right; height: 70px !important; filter: none !important; }
  .ordnung-text { padding: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  .ordnung-text h2.teil { break-before: page; break-after: avoid; }
  .ordnung-text h2.teil:first-child { break-before: auto; }
  .abschnitt h3 { break-after: avoid; }
  .pkt, .zeiten-box { break-inside: avoid; }
  .zeiten-paar { display: block !important; }
  .zeiten-box { border: 1px solid #ccc !important; margin-bottom: 0.5rem; }
  .abs-nr { background: none !important; color: #1f3a52 !important; border: 1.5px solid #1f3a52; }
  body { font-size: 10.5pt; color: #000; }
  .ordnung-text .abschnitt p, .ordnung-text li { color: #000 !important; }
  a { color: inherit !important; text-decoration: none !important; }
  @page { margin: 16mm 15mm; }
}

.nw { white-space: nowrap; }

/* ================= Eselsohr „Beitrag berechnen“ (rechte obere Ecke) – dezent =================
   Die Ecke der Seite ist entlang der Diagonale umgeklappt:
   oben rechts kommt die „Unterseite“ mit Text hervor, unten links liegt das umgeschlagene Blatt. */
.eck {
  --s: clamp(86px, 3vw + 62px, 104px);
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: var(--s);
  height: var(--s);
  display: block;
  text-decoration: none;
  container-type: size;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.2s;
  animation: eck-einmal 1.2s ease-in-out 2s 1;   /* nur einmal kurz anheben */
}
.eck-unten {
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, #f3a0ae 0%, #e7738b 38%, #d45f79 50%, transparent 50.2%);
}
.eck-text {
  position: absolute;
  left: 69%;
  top: 31%;
  width: 80%;
  transform: translate(-50%, -50%) rotate(45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: "Fredoka", sans-serif;
  line-height: 1;
  text-align: center;
}
.eck-euro { font-weight: 600; font-size: 15px; font-size: 15cqw; opacity: 0.95; }
.eck-wort { font-weight: 600; font-size: 9.5px; font-size: 9.6cqw; line-height: 1.05; margin-top: 0.05em; }
.eck-blatt {
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, transparent 50%, #cdd6df 50%, #e9eef2 56%, #fbfcfd 70%, #f4f6f8 100%);
  filter: drop-shadow(-2px 3px 3px rgba(31, 58, 82, 0.16));
  border-bottom-left-radius: 38% 38%;
}
.eck:hover, .eck:focus-visible { --s: clamp(118px, 4vw + 88px, 140px); box-shadow: none; }
.eck:focus-visible .eck-blatt { filter: drop-shadow(0 0 2px rgba(47, 143, 216, 0.9)) drop-shadow(-2px 3px 3px rgba(31, 58, 82, 0.16)); }
@keyframes eck-einmal {
  0%, 100% { width: var(--s); height: var(--s); }
  45%      { width: calc(var(--s) * 1.12); height: calc(var(--s) * 1.12); }
}
@media (max-width: 600px) {
  .eck { --s: 92px; }
  .eck:hover, .eck:focus-visible { --s: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .eck { animation: none; transition: none; }
}
@media print { .eck { display: none !important; } }

/* Kopf: breitere Titelkarte (v14) */
.hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.hero-karte { margin-right: clamp(0.75rem, 2vw, 1.5rem); }
.hero-karte h1 { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.08; }
.hero-karte h1 .ort { font-size: 0.66em; margin-top: 0.25em; }
.hero-karte p { max-width: 52ch; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
}
