/* ===== Schriften (lokal gehostet, keine Verbindung zu Google) ===== */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Shadows Into Light";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/shadows-into-light-latin-400-normal.woff2") format("woff2");
}

/* ===== Farben & Grundwerte (aus Logo und Flyer) ===== */
:root {
  --mint: #94d3b6;
  --mint-soft: #c6ebd9;
  --mint-pale: #eef8f3;
  --lavender: #a09fcb;
  --lavender-soft: #e3e2f2;
  --lavender-ink: #5f5d9f;
  --ink: #1f2328;
  --ink-soft: #4a5058;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 1px 2px rgb(31 35 40 / 6%), 0 10px 30px -12px rgb(31 35 40 / 18%);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Shadows Into Light", "Comic Sans MS", cursive;
  --content: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mint-pale);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lavender-ink); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--lavender-ink); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

/* ===== Navigation ===== */
.site-header {
  background: var(--mint-soft);
}
.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav__brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-hand); font-size: 1.6rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.site-nav__brand img { width: 36px; height: 36px; }
.page-home .site-nav__brand { visibility: hidden; } /* Logo steht auf der Startseite schon gross */
.site-nav__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .35rem;
}
.site-nav__links a {
  display: block;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__links a:hover { background: rgb(255 255 255 / 55%); }
.site-nav__links a[aria-current="page"] { background: var(--white); color: var(--lavender-ink); }

/* ===== Startseite: grosses Logo ===== */
.hero {
  background: var(--mint-soft);
  padding: .5rem 1.25rem 6.5rem;
  border-radius: 0 0 50% 50% / 0 0 64px 64px;
  text-align: center;
}
.hero__title { margin: 0; }
.hero__logo {
  width: min(420px, 78vw);
  margin: 0 auto;
}

/* ===== Das "Fenster" ===== */
.window {
  position: relative;
  max-width: var(--content);
  margin: -4.5rem auto 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: calc(100% - 2rem);
}
.window::before {
  /* kleiner lavendelfarbener Akzent wie die Bank im Logo */
  content: "";
  position: absolute; left: 50%; top: -7px; transform: translateX(-50%);
  width: 84px; height: 14px; border-radius: 8px;
  background: var(--lavender);
}
.window__title,
.section-title,
.page-title h1 {
  font-family: var(--font-hand);
  font-weight: 400;
  color: var(--lavender-ink);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-align: center;
}
.window__title { font-size: clamp(2rem, 6vw, 2.6rem); }
.window__text { text-align: center; padding: .75rem .5rem; font-size: 1.125rem; }
.window__doc { max-width: 620px; margin: 0 auto; }
.window__actions { text-align: center; margin: 1.25rem 0 0; }

/* ===== Text ===== */
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 800; }

/* ===== Hinweis auf Kinderturnen ===== */
.teaser {
  max-width: var(--content);
  width: calc(100% - 2rem);
  margin: 1.5rem auto 0;
}
.teaser__card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  background: var(--lavender-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.teaser__card:hover { background: #d8d6ee; transform: translateY(-1px); }
.teaser__label { font-family: var(--font-hand); font-size: 1.75rem; line-height: 1.1; color: var(--lavender-ink); }
.teaser__text { grid-row: 2; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.teaser__arrow {
  grid-row: 1 / span 2; grid-column: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--lavender-ink); font-size: 1.3rem; font-weight: 800;
}

/* ===== Unterseiten ===== */
.page-title {
  background: var(--mint-soft);
  padding: 1.5rem 1.25rem 5rem;
  border-radius: 0 0 50% 50% / 0 0 56px 56px;
}
.page-title h1 { font-size: clamp(2.75rem, 9vw, 4rem); margin: 0; }

.card {
  max-width: var(--content);
  width: calc(100% - 2rem);
  margin: 0 auto 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.page-title + .card { margin-top: -3.5rem; position: relative; }
.card--muted { text-align: center; color: var(--ink-soft); box-shadow: none; background: rgb(255 255 255 / 60%); }

.sheet-section {
  max-width: var(--content);
  width: calc(100% - 2rem);
  margin: 2.5rem auto 0;
}
.section-title { font-size: clamp(2rem, 6vw, 2.5rem); }
.sheet-section__actions {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin: 0 0 1.25rem;
}
.sheet {
  max-width: 680px;
  margin: 0 auto;
}

/* ===== Dokumente (Bild oder PDF) ===== */
.doc { display: block; }
.doc--img img,
.doc__page {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(31 35 40 / 8%), 0 8px 24px -10px rgb(31 35 40 / 25%);
}
.doc__page { display: block; }
.doc__page + .doc__page { margin-top: 1rem; }
.doc--img { cursor: zoom-in; }
.doc__loading, .doc__error, .doc__more {
  text-align: center; color: var(--ink-soft); margin: 0; padding: 2rem 1rem;
}
.doc__loading {
  aspect-ratio: 210 / 297;
  display: grid; place-items: center;
  border-radius: 10px;
  background: repeating-linear-gradient(-45deg, var(--mint-pale), var(--mint-pale) 14px, #e6f4ed 14px, #e6f4ed 28px);
}
.doc__more { padding: .75rem 0 0; font-size: .9rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px;
  padding: .6rem 1.3rem;
  border: 2px solid var(--lavender-ink);
  border-radius: 999px;
  background: var(--lavender-ink);
  color: var(--white);
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: #4d4b8a; border-color: #4d4b8a; }
.btn--ghost { background: transparent; color: var(--lavender-ink); }
.btn--ghost:hover { background: var(--lavender-soft); color: var(--lavender-ink); border-color: var(--lavender-ink); }

/* ===== Fusszeile ===== */
.site-footer {
  margin-top: 3.5rem;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
  border-top: 1px solid rgb(31 35 40 / 7%);
}
.site-footer p { margin: .25rem 0; }
.site-footer__name { font-weight: 700; color: var(--ink); }
.site-footer__admin a { color: var(--ink-soft); font-size: .85rem; }

@media (min-width: 720px) {
  .window { padding: 2.25rem 2.5rem 2rem; }
  .card { padding: 2rem 2.5rem; }
}

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

/* ===== Kinderturnen: Download-Box ===== */
.download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--lavender-soft);
}
.prose + .download { margin-top: 1.5rem; }
.download__text { display: grid; line-height: 1.35; }
.download__text strong { font-size: 1.1rem; }
.download__text span { color: var(--ink-soft); font-size: .95rem; }
.kitu-intro__empty { margin: 0; text-align: center; color: var(--ink-soft); }
.kitu-intro__empty + .download { margin-top: 1.25rem; }
.page-title + .sheet-section { margin-top: -3.5rem; position: relative; }
.sheet + .sheet-section__actions { margin: 1.25rem 0 0; }
@media (max-width: 480px) {
  .download .btn { width: 100%; }
}
