/*
Theme Name: Sportkita Bothfeld
Description: Kinderzeichnungen auf weißem Papier. Übernommen aus der Eleventy-Seite (src/style.css); Inhalte kommen aus dem Plugin „Sportkita – Inhalte“.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: sportkita
*/

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Gochi Hand";
  src: url("assets/fonts/gochi-hand.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Paper, ink and the crayon box from the drawings. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f6f4ef;
  --ink: #161616;
  --ink-2: #4a4a4a;
  --line: #e4e1da;
  --red: #e2352d;
  --blue: #2a93d5;
  --green: #3c9a41;
  --yellow: #f3d500;
  --pink: #e97fa6;
  --purple: #8d7cc4;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0.02em; }
.muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 14px;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); max-width: 62ch; }

/* Children's drawings, cut out of the template photos with real alpha. */
.doodle { position: absolute; pointer-events: none; user-select: none; }

/* ── Header ── */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  /* Opaque: a translucent header turned grey over the black jobs section */
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.mark { display: block; flex-shrink: 0; line-height: 0; }
.logo { display: block; height: 52px; width: auto; }
@media (max-width: 560px) { .logo { height: 42px; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .15s;
}
.nav a:hover { background: var(--paper-2); }
.nav .nav-cta { background: var(--ink); color: #fff; }
.nav .nav-cta:hover { background: #333; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--ink);
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s, opacity .2s; content: "";
  }
  .bars { position: relative; }
  .bars::before { position: absolute; top: -7px; }
  .bars::after { position: absolute; top: 7px; }
  .menu-btn[aria-expanded="true"] .bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 14px; }
  .nav .nav-cta { text-align: center; margin-top: 6px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 999px;
  border: 2px solid var(--ink); transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 16px; font-size: 15px; }

/* ── Hero ── */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: min(92vh, 900px);
  padding: clamp(48px, 9vw, 110px) var(--gutter) clamp(160px, 20vw, 240px);
  display: grid; place-items: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; text-align: left; }
.hero-title {
  display: grid; gap: .05em;
  font-size: clamp(30px, 10.4vw, 104px); line-height: 1; margin-bottom: 36px;
}
.hero-title > span { white-space: nowrap; }
.strike-line s {
  text-decoration: none; position: relative; color: var(--ink);
  font-size: .56em; display: inline-block; transform: rotate(-2deg);
}
.strike-line s::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 44%; height: .2em;
  background: var(--ink); border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
  transform: rotate(-2deg) scaleX(0); transform-origin: left;
  animation: strike .7s .5s cubic-bezier(.6,.1,.3,1) forwards;
}
@keyframes strike { to { transform: rotate(-2deg) scaleX(1); } }
.hero-copy p { font-size: clamp(19px, 2.1vw, 25px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: .9em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.d-flower { width: clamp(80px, 10vw, 150px); left: 7%; top: 5%; transform: rotate(-6deg); }
.d-monster { width: clamp(90px, 11vw, 165px); right: 8%; top: 4%; }
.d-star-purple { width: clamp(64px, 7vw, 110px); left: 52%; top: 0; transform: rotate(6deg); }
.d-sun { width: clamp(110px, 13vw, 190px); right: 3%; top: 44%; }
.d-bunny { width: clamp(240px, 30vw, 430px); left: 56%; bottom: 0; transform: translateX(-10%); }
.d-star-green { width: clamp(70px, 8vw, 120px); right: 3%; bottom: 8%; } /* ganz rechts, sonst berührt er den Dino */
.d-stickman { width: clamp(100px, 12vw, 170px); left: 8%; bottom: 5%; }

@media (max-width: 760px) {
  .hero { padding-top: 120px; }
  .d-flower { left: -4%; top: 1%; }
  .d-monster { right: 2%; top: 1%; }
  .d-star-purple { left: 42%; top: 2%; width: 60px; }
  .d-sun { display: none; }
  .d-bunny { left: 34%; }
  .d-stickman { left: 2%; }
  /* lag über dem Dino; zwischen Strichmännchen und Dino ist auf schmalen Handys kein Platz */
  .d-star-green { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .d-monster { animation: wiggle 5s ease-in-out infinite; }
  .d-sun { animation: wiggle 7s ease-in-out infinite; }
  .d-star-green { animation: bob 4s ease-in-out infinite; }
  .d-bunny { animation: hop 3.2s ease-in-out infinite; }
}
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hop { 0%, 100% { transform: translateX(-10%) translateY(0); } 45% { transform: translateX(-10%) translateY(-14px) rotate(-2deg); } 60% { transform: translateX(-10%) translateY(0); } }

/* ── Facts ── */
.facts { border-block: 2px solid var(--ink); background: var(--paper); }
.facts ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts li { padding: 28px var(--gutter); display: grid; gap: 4px; border-left: 2px solid var(--ink); }
.facts li:first-child { border-left: 0; }
.facts strong { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.facts li:nth-child(1) strong { color: var(--red); }
.facts li:nth-child(2) strong { color: var(--blue); }
.facts li:nth-child(3) strong { color: var(--green); }
.facts li:nth-child(4) strong { color: var(--purple); }
.facts span { font-size: 15px; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 860px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 2px solid var(--ink); }
}

/* ── Sections ── */
.section { position: relative; padding: clamp(72px, 10vw, 130px) var(--gutter); }
.section > * { max-width: var(--wrap); margin-inline: auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); position: relative; z-index: 1; }
.section-head h2 { margin-bottom: 20px; max-width: 18ch; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl.hand { font-size: 1.12em; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: .02em; height: .38em; z-index: -1;
  border-radius: 40% 60% 45% 55%; transform: rotate(-1.5deg); opacity: .55;
}
.hl-green::after { background: var(--green); opacity: .35; }
.hl-yellow::after { background: var(--yellow); opacity: .7; }

/* ── Groups ── */
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .group-grid { grid-template-columns: 1fr; } }
.group {
  position: relative; overflow: hidden;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  padding-right: clamp(24px, 3vw, 36px);
  background: var(--paper);
  transition: transform .2s;
}
.group:hover { transform: translateY(-3px); }
.group-doodle {
  position: absolute; right: -8px; top: -6px; width: 130px;
  transition: transform .4s cubic-bezier(.3,1.6,.5,1);
}
.group:hover .group-doodle { transform: rotate(-6deg) scale(1.06); }
/* Zeichnung und Farbe wählt die Redaktion je Gruppe (src/gruppen/*.md, CMS) */
.gd-schnecke { width: 150px; top: 10px; }
.gd-hasenwesen { width: 62px; right: 20px; top: 4px; }
.gd-tanzbaer { width: 150px; }
.gd-monster { width: 140px; top: 4px; }
.gd-krake, .gd-spinne { width: 140px; top: 4px; }
.gd-blume-gesicht { width: 84px; right: 16px; top: 4px; }
.group-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; position: relative;
}
.farbe-rosa .group-tag { background: #fde2ec; }
.farbe-blau .group-tag { background: #dcefff; }
.farbe-gelb .group-tag { background: #fff3b8; }
.farbe-gruen .group-tag { background: #dff2df; }
.farbe-lila .group-tag { background: #ebe6f7; }
.farbe-orange .group-tag { background: #ffe5cc; }
.group h3, .group h2 { font-size: clamp(44px, 5vw, 60px); line-height: 1; margin-bottom: 18px; position: relative; }
.group-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 18px; position: relative; }
.group-facts div { display: grid; }
.group-facts dt { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; }
.group-facts dd { margin: 0; font-weight: 700; font-size: 18px; }
.group > p { max-width: 52ch; position: relative; }
details { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
summary {
  cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 10px;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+"; display: grid; place-items: center; width: 26px; height: 26px;
  border: 2px solid var(--ink); border-radius: 50%; font-weight: 700; line-height: 1;
  transition: transform .2s;
}
details[open] summary::before { transform: rotate(45deg); }
details[open] summary { margin-bottom: 14px; }
details p { color: var(--ink-2); font-size: 16px; }
.schedule { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.schedule li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.schedule time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── Anmeldung ── */
.anmeldung { border-top: 2px solid var(--ink); overflow: hidden; }
.d-haus { width: clamp(150px, 18vw, 240px); right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); top: clamp(48px, 7vw, 90px); transform: rotate(4deg); }
.steps {
  list-style: none; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 2px solid var(--ink);
}
.steps li { padding: 28px clamp(20px, 3vw, 36px); border-left: 2px solid var(--ink); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps strong { display: block; font-size: clamp(44px, 5vw, 64px); line-height: 1; margin-bottom: 10px; }
.steps li:nth-child(3n+1) strong { color: var(--red); }
.steps li:nth-child(3n+2) strong { color: var(--blue); }
.steps li:nth-child(3n) strong { color: var(--green); }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 34ch; }
.anmeldung-foot { padding-top: 28px; }
.anmeldung-hinweis { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) {
  .d-haus { width: 120px; top: 36px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); }
  .steps li:first-child { border-top: 0; }
}

/* ── News ── */
.news { background: var(--paper-2); overflow: hidden; }
.d-scribble-blue { width: clamp(180px, 24vw, 320px); right: -50px; top: 40px; }
.news-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; position: relative; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgb(0 0 0 / .25);
}
.card h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.card-date { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.donate .card-date { color: var(--green); }
.news-list { display: grid; gap: 20px; align-content: start; }
.news-empty { text-align: center; }
.news-empty p { color: var(--ink-2); max-width: 40ch; margin-left: auto; margin-right: auto; }
.news-empty a { font-weight: 600; }
.news-empty-img { display: block; width: clamp(150px, 45%, 230px); height: auto; margin: 0 auto 18px; transform: rotate(-3deg); }
.card-img { display: block; width: 100%; height: auto; }
.card .wax, .legal .wax { margin-bottom: 20px; }
.notice { border-top: 6px solid var(--red); }
.ticks, .card-text ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ticks li, .card-text ul li { padding-left: 28px; position: relative; }
.ticks li::before, .card-text ul li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }
.sign { font-size: 24px; margin: 0; transform: rotate(-2deg); display: inline-block; }
.donate { overflow: hidden; }
.donate > *:not(.donate-sun) { position: relative; }
.donate-sun { position: absolute; width: 170px; right: -40px; top: -40px; }
.donate h3 { max-width: 14ch; }
.bank { margin: 20px 0 0; display: grid; gap: 10px; }
.bank div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.bank dt { font-size: 13px; color: var(--ink-2); }
.bank dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bank code { font: 600 16px/1.3 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy {
  font: 600 12px var(--sans); border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.copy:hover { background: var(--ink); color: #fff; }

/* ── About ── */
.about { overflow: clip; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about h2 { margin-bottom: 24px; }
.about p:not(.lead):not(.kicker) { color: var(--ink-2); max-width: 62ch; }
.team {
  position: relative; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 36px 32px 28px; margin-top: 40px;
}
.team h3 { font-size: 40px; margin-bottom: 16px; }
.team ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.team li { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
.team b { font-family: var(--hand); font-weight: 400; font-size: 34px; line-height: 1; color: var(--blue); }
.d-creature { width: 170px; right: -40px; top: -100px; transform: rotate(6deg); }

/* ── Jobs ── */
.jobs { background: var(--ink); color: #fff; overflow: hidden; }
.jobs .kicker { color: #bdbdbd; }
.jobs .lead { color: #fff; }
.jobs p:not(.lead):not(.kicker) { color: #cfcfcf; }
.jobs-inner { position: relative; z-index: 1; }
.jobs h2 { margin-bottom: 24px; }
.jobs .btn { background: #fff; color: var(--ink); border-color: #fff; }
.jobs .btn-ghost { background: transparent; color: #fff; }
.jobs .btn-ghost:hover { background: #fff; color: var(--ink); }
.job-list { display: grid; gap: 32px; }
.job { border-top: 1px solid rgb(255 255 255 / .25); padding-top: 28px; }
.job h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.job .hero-actions { margin-top: 20px; }
.d-scribble-color {
  width: clamp(180px, 22vw, 300px);
  right: 8%; top: 50%; transform: translateY(-50%) rotate(4deg);
}
@media (max-width: 960px) {
  .d-scribble-color { position: relative; right: auto; top: auto; transform: rotate(-4deg); margin: 0 0 24px auto; width: 180px; }
  .jobs { display: flex; flex-direction: column; }
  .jobs > * { width: 100%; }
}
.jobs-inner { max-width: 640px; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.address { font-style: normal; border: 2px solid var(--ink); box-shadow: none; }
.address a:not(.btn) { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.address .btn { margin-top: 8px; }
.buerozeiten { margin: 4px 0 14px; }
.buerozeiten h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
.buerozeiten p { margin: 0 0 6px; }
.ways { display: grid; gap: 12px; }
.way { background: var(--paper-2); border-radius: var(--radius); padding: 22px 26px; }
.way h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 8px; }
.way p { margin: 0; color: var(--ink-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.dot-green { background: var(--green); }

/* ── Footer ── */
.foot { position: relative; padding: 64px var(--gutter) 32px; border-top: 2px solid var(--ink); overflow: hidden; }
.foot > * { max-width: var(--wrap); margin-inline: auto; }
.foot-banner {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(140px, 20vw, 240px);
  gap: 12px 32px; align-items: end; margin-bottom: 40px;
}
.foot-banner .doodle {
  position: static; grid-column: 2; grid-row: 1; width: 100%; height: auto;
  margin: 0; justify-self: end; transform: rotate(-4deg);
}
.foot-hand { font-size: clamp(32px, 5vw, 60px); line-height: 1.1; margin: 0; position: relative; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.foot-row p { margin: 0; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-row a { text-underline-offset: 3px; }

/* ── Legal pages ── */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 100px) var(--gutter); }
.legal h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(48px, 7vw, 80px); margin-bottom: 32px; }
.nicht-gefunden { text-align: center; }
.nicht-gefunden .lead { margin: 0 auto 28px; }
.nicht-gefunden .hero-actions { justify-content: center; }
.nf-img { width: 160px; margin: 0 auto 8px; transform: rotate(-6deg); }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { font-weight: 600; }

/* Reveal on scroll — content is visible without JS. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .strike-line s::after { animation: none; transform: rotate(-2deg); }
  .btn:hover, .group:hover { transform: none; }
}

/* Small screens: keep the drawings out of the text. */
@media (max-width: 760px) {
  .d-scribble-blue { width: 110px; right: -50px; top: 24px; }
  .donate-sun { width: 104px; right: -46px; top: -40px; }

  .d-creature { width: 120px; right: -20px; top: -70px; }

  /* hero: drawings in the top strip and below the buttons, never over text */
  .hero { padding-bottom: 190px; }
  .d-flower { left: 0; top: 6px; width: 66px; }
  .d-bunny { width: 210px; left: auto; right: -8px; transform: none; animation: none; }
  .d-stickman { width: 100px; bottom: 12px; }
  .hero-actions .btn { padding: 12px 18px; font-size: 15px; }
  .hero-copy br { display: none; }
  .group-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 20px; }

  /* group cards: smaller drawings, so titles stay clear */
  .group h3, .group h2 { font-size: 40px; }
  .group-doodle { width: 96px; }
  .gd-schnecke { width: 104px; }
  .gd-hasenwesen { width: 50px; }
  .gd-tanzbaer { width: 92px; right: 6px; top: 2px; }
  .gd-blume-gesicht { width: 60px; }

  /* bank details: label above value, so the IBAN stays on one line */
  .bank div { grid-template-columns: 1fr; gap: 2px; }

  /* jobs: the flame sits bottom right instead of taking a row of its own */
  .jobs { display: block; }
  .d-scribble-color { position: absolute; width: 92px; right: 14px; bottom: 30px; top: auto; margin: 0; transform: rotate(6deg); }

  /* footer: the lettering sits above the sentence, clear of the links */
  .foot { padding-top: 40px; }
  .foot-banner { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; }
  .foot-banner .doodle { grid-column: 1; grid-row: 1; width: 140px; justify-self: start; }
}

/* ── Bewerbungsseite (/bewerbung/<adresse>/) ── */
.jobpage .hero {
  min-height: 0; display: block; overflow: visible; place-items: unset;
  padding: clamp(36px, 7vw, 88px) var(--gutter) clamp(48px, 7vw, 88px);
}
.jobpage .hero-layout {
  position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.jobpage .hero-solo { grid-template-columns: minmax(0, 40rem); }
.jobpage .hero-inner { max-width: none; text-align: left; }
.jobpage .hero h1 {
  font-family: var(--hand); font-weight: 400; letter-spacing: 0.01em;
  font-size: clamp(46px, 8vw, 92px); line-height: 0.95; margin: 0 0 22px;
}
.jobpage .hero h1 span { display: block; white-space: normal; }
.jobpage .hero-copy {
  font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.4; max-width: 38ch;
}
.jobpage .hero-actions { margin-top: 28px; }
.jobpage .jp-flower { width: clamp(72px, 10vw, 140px); left: 4%; top: 18px; }
.jobpage .shot { margin: 0; }
.jobpage .wax img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.jobpage .shot figcaption {
  position: relative; z-index: 1; margin: 16px 0 0; padding: 0 8px;
  font-family: var(--hand); font-size: 26px; line-height: 1; color: var(--ink);
  transform: rotate(calc(var(--tilt) * -.6));
}
.jobpage .photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 42px; }
.jobpage .facts strong {
  font-family: var(--hand); font-weight: 400; font-size: clamp(34px, 4vw, 52px);
}
.jobpage .section-head h2 { max-width: 16ch; }
.jobpage .section > .doodle { max-width: none; }
.jobpage .note { color: var(--ink-2); max-width: 62ch; }
.jobpage .jp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.jobpage .card { border: 2px solid var(--ink); box-shadow: none; overflow: hidden; }
.jobpage .card h3 {
  font-family: var(--hand); font-weight: 400; font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px;
}
.jobpage .card p { color: var(--ink-2); margin: 0; max-width: 42ch; }
.jobpage .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.jobpage .tag-rot { background: #fde2ec; }
.jobpage .tag-blau { background: #dcefff; }
.jobpage .tag-gruen { background: #dff2df; }
.jobpage .tag-gelb { background: #fff3b8; }
.jobpage .paper { background: var(--paper-2); }
.jobpage .day {
  list-style: none; padding: 0; margin: 0 auto; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 28px;
}
.jobpage .day li {
  display: grid; grid-template-columns: subgrid; grid-column: 1 / -1;
  padding: 16px 0; border-bottom: 2px solid var(--ink); align-items: baseline;
}
.jobpage .day time { font-family: var(--hand); font-size: 28px; line-height: 1; white-space: nowrap; }
.jobpage .checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.jobpage .checks li { padding-left: 34px; position: relative; font-size: 18px; }
.jobpage .checks li::before { content: "→"; position: absolute; left: 0; top: 0; font-weight: 700; }
.jobpage .jp-split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start;
}
.jobpage .team {
  display: grid; grid-template-columns: minmax(0, 1fr) 78px;
  grid-template-areas: "kicker kicker" "title title" "note note" "list house";
  column-gap: 12px; align-items: end; margin-top: 0;
  padding: 26px 20px 18px 28px;
}
.jobpage .team .kicker { grid-area: kicker; }
.jobpage .team h3 { grid-area: title; }
.jobpage .team .note { grid-area: note; }
.jobpage .team ul { grid-area: list; margin-top: 14px; }
.jobpage .jp-house {
  grid-area: house; position: static; width: 72px; height: auto;
  justify-self: end; align-self: end; margin: 0 0 2px; transform: rotate(-2deg);
}
.jobpage .jp-flame { width: 120px; right: 4%; bottom: 24px; }
.jobpage form { display: grid; gap: 16px; }
.jobpage .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jobpage .full { grid-column: 1 / -1; }
.jobpage label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.jobpage input, .jobpage select, .jobpage textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%;
}
.jobpage textarea { min-height: 110px; resize: vertical; }
.jobpage button.btn { font-family: inherit; cursor: pointer; }
.jobpage .fine, .jobpage .fine p { font-weight: 400; color: var(--ink-2); font-size: 14px; margin: 0; }
.jobpage .fine a { font-weight: 600; }
.jobpage .form-card { background: #fff; }

.jobpage .dock {
  display: none; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 2px solid var(--ink);
}
.jobpage .dock .btn { flex: 1; justify-content: center; padding: 12px 10px; }
@media (max-width: 1140px) {
  .jobpage .team {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "kicker" "title" "note" "list" "house";
  }
  .jobpage .jp-house { width: 64px; margin: 8px 2px 2px auto; }
}
@media (max-width: 860px) {
  .jobpage .hero-layout, .jobpage .jp-grid, .jobpage .jp-split,
  .jobpage .fields, .jobpage .day, .jobpage .day li, .jobpage .photo-row { grid-template-columns: 1fr; }
  .jobpage .facts ul { grid-template-columns: 1fr; }
  .jobpage .facts li { border-left: 0; }
  .jobpage .facts li:nth-child(n+2) { border-top: 2px solid var(--ink); }
  .jobpage .facts li:nth-child(3) { border-left: 0; }
  .jobpage .day li { gap: 4px; }
  .jobpage .jp-flame { display: none; }
  .jobpage .team {
    grid-template-columns: minmax(0, 1fr) 78px;
    grid-template-areas: "kicker kicker" "title title" "note note" "list house";
  }
  .jobpage .jp-house { width: 72px; margin: 0 0 2px; }
}
@media (max-width: 760px) {
  .jobpage .hero { padding-top: 12px; }
  .jobpage .hero-inner { padding-top: 84px; }
  .jobpage .jp-flower { width: 64px; left: 8px; top: 0; }
  .jobpage { padding-bottom: 74px; }
  .jobpage .dock { display: flex; }

}
@media (max-width: 520px) {
  .jobpage .team {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "kicker" "title" "note" "list" "house";
  }
  .jobpage .jp-house { width: 64px; margin: 8px 2px 2px auto; }
}

/* WordPress: Werkzeugleiste für angemeldete Redakteure über dem festen Kopf */
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .top { top: 0; } }

/* ════════════════════════════════════════════════════════════════════════
   WordPress: Unterseiten, Untermenüs und Inhalte aus dem Block-Editor
   ════════════════════════════════════════════════════════════════════════ */

/* ── Untermenüs ── */
.nav a[aria-current="page"] { background: var(--paper-2); }
.nav-sub { position: relative; display: flex; align-items: center; }
.nav-sub > a { padding-right: 6px; }
.nav-sub-btn {
  width: 28px; height: 28px; margin-left: -2px; border: 0; border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.nav-sub-btn::before {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.nav-sub-btn[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.nav-sub-btn:hover { background: var(--paper-2); }
.nav-sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; z-index: 60;
  display: none; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
/* Brücke, damit das Menü beim Weg mit der Maus nicht zuklappt */
.nav-sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-sub-menu a { border-radius: 10px; }
.nav-sub-menu.open { display: flex; }
@media (hover: hover) and (min-width: 761px) {
  .nav-sub:hover .nav-sub-menu { display: flex; }
}
@media (max-width: 760px) {
  .nav { max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-sub { flex-wrap: wrap; }
  .nav-sub > a { flex: 1; }
  .nav-sub-btn { width: 44px; height: 44px; }
  .nav-sub-menu {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 6px 18px;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; margin-left: 14px;
  }
  .nav-sub-menu a { font-size: 17px; padding: 10px 14px; }
}

/* ── Seitenkopf der Unterseiten ── */
.seite { padding-bottom: clamp(48px, 8vw, 100px); }
.seite-kopf {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
}
.seite-kopf h1 { font-size: clamp(56px, 9vw, 110px); line-height: .95; margin-bottom: 18px; }
.seite-kopf .lead { margin: 0; }
.seite-kopf .group-facts { margin-bottom: 20px; }
.seite-kopf .group-tag { margin-bottom: 14px; }
.seite-zeichnung { width: clamp(110px, 16vw, 210px); height: auto; transform: rotate(5deg); }
@media (max-width: 640px) {
  .seite-kopf { grid-template-columns: 1fr; }
  .seite-zeichnung { position: absolute; right: var(--gutter); top: 24px; width: 92px; opacity: .9; }
  .seite-kopf h1 { padding-right: 90px; }
}
.seite-bild { max-width: var(--wrap); margin: 0 auto clamp(28px, 5vw, 56px); padding: 0 var(--gutter); }
.seite-bild img { aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 640px) { .seite-bild img { aspect-ratio: 4 / 3; } }
/* Startseite: Foto unter der Begrüßung, zwei Fotos über den Gruppen-Karten */
.bewegung-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 32px); margin-bottom: clamp(36px, 5vw, 60px); }
.bewegung-fotos img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ── Fotos mit Wachsmal-Rahmen (inc/bilder.php: skita_wachs) ──
   Leicht schief, ausgefranster Rand, Kreidelinie in Pink, Lila oder Grün – wie gemalt eingeklebt. */
.wax { --tilt: -.6deg; }
.wax-2 { --tilt: .5deg; }
.wax-3 { --tilt: -.35deg; }
.wax-photo { position: relative; transform: rotate(var(--tilt)); }
.wax-photo img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.wax-1 .wax-photo img { clip-path: url(#clip-a); }
.wax-2 .wax-photo img { clip-path: url(#clip-b); }
.wax-3 .wax-photo img { clip-path: url(#clip-c); }
.wax-4 .wax-photo img { clip-path: url(#clip-w); }
.wax-photo .frame {
  position: absolute; left: -1.2%; top: -1%; width: 102.4%; height: 102%;
  overflow: visible; pointer-events: none;
}
.wax-photo .frame path {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; filter: url(#wax); stroke-width: 4.5; opacity: .72;
}
.wax-1 .over { stroke: var(--pink); }
.wax-2 .over { stroke: var(--purple); }
.wax-3 .over { stroke: var(--green); }
.wax-4 .over { stroke: var(--pink); }
/* Breite Fotos weniger drehen, sonst steht die Ecke weit über */
.wax-4 { --tilt: -.25deg; }
.wax-4 .frame { left: -.6%; top: -1.2%; width: 101.2%; height: 102.4%; }

/* Übersicht /gruppen/: Karten direkt unter dem Seitenkopf */
.gruppen-uebersicht { padding-top: 0; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

/* ── Inhalte aus dem Block-Editor ── */
.inhalt { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.inhalt > * { margin-top: 0; margin-bottom: 1.1em; }
.inhalt h2 { font-size: clamp(26px, 3vw, 36px); margin: 1.6em 0 .5em; }
.inhalt h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.inhalt h2:first-child, .inhalt h3:first-child { margin-top: 0; }
.inhalt p, .inhalt li { color: var(--ink-2); }
.inhalt strong { color: var(--ink); }
.inhalt a { font-weight: 600; }
.inhalt ul, .inhalt ol:not(.schedule) { padding-left: 1.3em; display: grid; gap: 6px; }
.inhalt ul li::marker { color: var(--red); }
/* Stil „Kärtchen“ für Listen: Stichworte als bunte Schilder */
.inhalt ul.is-style-kaertchen { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inhalt ul.is-style-kaertchen li {
  padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink); background: #fff3b8;
}
.inhalt ul.is-style-kaertchen li:nth-child(4n+2) { background: #dcefff; transform: rotate(-1deg); }
.inhalt ul.is-style-kaertchen li:nth-child(4n+3) { background: #fde2ec; transform: rotate(1deg); }
.inhalt ul.is-style-kaertchen li:nth-child(4n+4) { background: #dff2df; }
.inhalt .schedule { margin: 0 0 1.4em; font-size: 16px; }
.inhalt .schedule li { grid-template-columns: 64px 1fr; }
/* Stil „Tagesablauf“ für Listen: Uhrzeit fett am Zeilenanfang, der Text daneben */
.inhalt ul.is-style-tagesablauf { list-style: none; padding: 0; gap: 10px; }
.inhalt ul.is-style-tagesablauf li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; }
.inhalt ul.is-style-tagesablauf strong { font-variant-numeric: tabular-nums; }
/* Tabellen (z. B. Wochenplan der Horties) */
.inhalt .wp-block-table { margin-inline: 0; overflow-x: auto; }
.inhalt .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.inhalt .wp-block-table th, .inhalt .wp-block-table td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border: 0; border-bottom: 2px solid var(--line); color: var(--ink-2); }
.inhalt .wp-block-table thead th { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.inhalt .wp-block-table td:first-child { color: var(--ink); font-weight: 600; }
/* Bilder und Galerien: Rahmen wie die Karten */
.inhalt .wp-block-image figcaption { font-family: var(--hand); font-size: 19px; color: var(--ink-2); text-align: center; margin-top: 12px; }
.inhalt .wp-block-gallery { margin-block: 1.6em; }
/* Galerie mit „Bilder zuschneiden“: der Rahmen füllt die Kachel, das Foto wird darin beschnitten */
.wp-block-gallery.is-cropped .wax-photo { flex: 1 0 0%; display: flex; width: 100%; }
.wp-block-gallery.is-cropped .wax-photo img { height: 100%; object-fit: cover; }
/* Zitat: in Handschrift, mit gelbem Strich */
.inhalt .wp-block-quote, .inhalt .wp-block-pullquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border: 0; border-left: 6px solid var(--yellow); text-align: left;
}
.inhalt .wp-block-quote p, .inhalt .wp-block-pullquote p { font-family: var(--hand); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; color: var(--ink); }
.inhalt .wp-block-quote cite, .inhalt .wp-block-pullquote cite { font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.inhalt .wp-block-separator { border: 0; border-top: 2px dashed var(--line); margin: 2.4em 0; }
.inhalt .wp-block-button__link { text-decoration: none; border: 2px solid var(--ink); }
.inhalt .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); }
/* Gruppe-Block mit Hintergrund als Kasten, z. B. die Bankverbindung */
.inhalt .wp-block-group.has-background { padding: 22px 26px; border-radius: var(--radius); border: 2px solid var(--ink); }
.inhalt .wp-block-group.has-background > :last-child { margin-bottom: 0; }

/* ── Gruppenseite ── */
.gruppe-cta {
  position: relative; overflow: hidden; max-width: 720px;
  margin: clamp(32px, 6vw, 64px) max(var(--gutter), calc((100% - 720px) / 2)) 0;
}
.gruppe-cta h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; padding-right: 110px; }
.gruppe-cta p { color: var(--ink-2); max-width: 46ch; }
.gruppe-cta-haus { position: absolute; right: 14px; top: 10px; width: 110px; transform: rotate(5deg); }
@media (max-width: 560px) { .gruppe-cta-haus { width: 76px; } .gruppe-cta h2 { padding-right: 70px; } }
.gruppen-weiter { max-width: calc(720px + 2 * var(--gutter)); margin: clamp(32px, 5vw, 56px) auto 0; padding: 0 var(--gutter); }
.gruppen-weiter ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gruppen-weiter a {
  display: inline-block; text-decoration: none; font-size: 30px; line-height: 1;
  padding: 10px 20px; border: 2px solid var(--ink); border-radius: 999px; transition: transform .15s;
}
.gruppen-weiter a:hover { transform: rotate(-2deg) translateY(-2px); }
.gruppen-weiter .farbe-rosa a { background: #fde2ec; }
.gruppen-weiter .farbe-blau a { background: #dcefff; }
.gruppen-weiter .farbe-gelb a { background: #fff3b8; }
.gruppen-weiter .farbe-gruen a { background: #dff2df; }
.gruppen-weiter .farbe-lila a { background: #ebe6f7; }
.gruppen-weiter .farbe-orange a { background: #ffe5cc; }

/* Link „Mehr über …“ auf den Gruppenkarten der Startseite, im Stil des früheren Aufklappers */
.group-mehr {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px;
  font-weight: 600; text-decoration: none;
}
.group-mehr::before {
  content: "→"; display: grid; place-items: center; width: 26px; height: 26px;
  border: 2px solid var(--ink); border-radius: 50%; font-weight: 700; line-height: 1; transition: transform .2s;
}
.group-mehr:hover::before { transform: translateX(3px); }
/* Die ganze Karte ist klickbar */
.group-mehr::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ── Aktuelles (Übersicht) ── */
.aktuelles-liste { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.aktuelles-liste .card h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
