/* Pfadi Horw – Wanderkarte bei Nacht und Tag */

/* Schriften liegen auf dem eigenen Server (tools/fetch-fonts.mjs), nichts wird von Google geladen. */
@font-face { font-family: 'Lilita One'; font-weight: 400; font-display: swap; src: url('../fonts/lilita-one-400.woff2') format('woff2'); }
@font-face { font-family: 'Caveat Brush'; font-weight: 400; font-display: swap; src: url('../fonts/caveat-brush-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/atkinson-hyperlegible-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-hyperlegible-700.woff2') format('woff2'); }

:root {
  --ink: #1a1814;
  --paper: #f4ebd6;
  --paper-deep: #e9dcc0;
  --white: #fffdf7;
  --yellow: #ffd21f;
  --red: #e3232c;
  --night: #0f1622;
  --night-2: #1b2a3d;
  --forest: #173f31;

  --biber: #b5622a;
  --wolf: #23679a;
  --pfadi: #2c7a4b;
  --pio: #c8232c;
  --al: #1a1814;

  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --hand: 'Caveat Brush', 'Comic Sans MS', cursive;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;

  --sign: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  --shadow: 5px 5px 0 var(--ink);
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.01em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.hand { font-family: var(--hand); font-size: 1.5rem; line-height: 1.1; color: var(--red); margin: 0; }
.center { text-align: center; margin-top: 2.5rem; }
.empty { text-align: center; padding: 2rem 1rem; font-size: 1.6rem; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Kopf mit Wegweisern ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  background: var(--night);
  transition: box-shadow 0.3s;
}
.top.scrolled { box-shadow: 0 4px 0 var(--yellow); }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); }
.brand img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--yellow); background: #000; object-fit: cover; transition: rotate 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover img { rotate: -14deg; }
.brand-name { font-family: var(--display); font-size: 1.35rem; line-height: 1; color: var(--white); }
.brand-name b { font-weight: 400; color: var(--yellow); }
.brand:hover { color: var(--white); }

.signs ul { list-style: none; margin: 0; padding: 0; }
.signs > ul { display: flex; gap: 0.35rem; }
.signs li { position: relative; }

.sign {
  display: block; padding: 0.45rem 1.6rem 0.45rem 0.85rem;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--yellow);
  clip-path: var(--sign);
  transform-origin: 0 50%;
  transition: rotate 0.35s cubic-bezier(0.3, 1.8, 0.5, 1), background 0.2s;
}
.sign:hover, .has-sub:focus-within > .sign { color: var(--ink); rotate: -3deg; background: var(--white); }
.sign[aria-current] {
  padding-right: 3.1rem;
  background: linear-gradient(90deg, var(--yellow) 0 calc(100% - 40px), #fff 0 calc(100% - 31px), var(--red) 0 calc(100% - 19px), #fff 0);
}

.sub {
  position: absolute; top: 100%; left: 0; min-width: 190px; padding-top: 0.5rem;
  visibility: hidden; opacity: 0; translate: 0 -6px;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; translate: 0 0; transition: opacity 0.2s, translate 0.2s; }
.sub a {
  display: block; margin-bottom: 0.3rem; padding: 0.4rem 1.5rem 0.4rem 0.8rem;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 0.95rem; text-decoration: none;
  clip-path: var(--sign);
  transition: translate 0.2s, background 0.2s;
}
.sub a:hover { background: var(--yellow); color: var(--ink); translate: 6px 0; }

.burger { display: none; align-items: center; gap: 0.6rem; background: var(--yellow); color: var(--ink); border: 0; padding: 0.55rem 1.5rem 0.55rem 0.8rem; font: 700 1rem var(--body); clip-path: var(--sign); cursor: pointer; }
.burger-lines { width: 20px; height: 14px; background: linear-gradient(var(--ink) 0 0) top / 100% 3px no-repeat, linear-gradient(var(--ink) 0 0) center / 100% 3px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 3px no-repeat; }

@media (max-width: 1080px), (hover: none) {
  .burger { display: flex; }
  .signs {
    position: fixed; inset: 76px 0 0 0; overflow-y: auto;
    padding: 1.5rem clamp(1rem, 6vw, 3rem) 4rem;
    background: var(--night);
    visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.25s, visibility 0.25s;
  }
  .top.open .signs { visibility: visible; opacity: 1; pointer-events: auto; }
  .signs > ul { flex-direction: column; gap: 0.9rem; align-items: flex-start; }
  .sign { font-size: 1.35rem; padding: 0.55rem 2.2rem 0.55rem 1rem; }
  .top.open .signs > ul > li { animation: sign-in 0.45s both cubic-bezier(0.3, 1.5, 0.5, 1); }
  .top.open .signs > ul > li:nth-child(2) { animation-delay: 50ms; }
  .top.open .signs > ul > li:nth-child(3) { animation-delay: 100ms; }
  .top.open .signs > ul > li:nth-child(4) { animation-delay: 150ms; }
  .top.open .signs > ul > li:nth-child(5) { animation-delay: 200ms; }
  .top.open .signs > ul > li:nth-child(6) { animation-delay: 250ms; }
  .top.open .signs > ul > li:nth-child(7) { animation-delay: 300ms; }
  .sub { position: static; visibility: inherit; opacity: 1; translate: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.5rem 0 0 1rem; }
  .sub a { margin: 0; }
}
@keyframes sign-in { from { opacity: 0; translate: -40px 0; rotate: -8deg; } }

/* ---------- Knöpfe ---------- */

.btn-sign, .btn-ghost {
  display: inline-block; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: translate 0.2s, background 0.2s, color 0.2s;
}
.btn-sign { min-height: 46px; padding: 0.75rem 2.3rem 0.75rem 1.2rem; background: var(--yellow); color: var(--ink); clip-path: var(--sign); }
.btn-sign:hover { translate: 8px 0; background: var(--red); color: #fff; }
.btn-ghost { min-height: 46px; padding: 0.65rem 1.2rem; border: 3px solid currentColor; color: var(--white); border-radius: 4px; }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ghost.dark { color: var(--ink); }
.btn-ghost.dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.chip {
  display: inline-block; margin: 0 0 0.6rem; padding: 0.15rem 0.7rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--c, var(--ink)); border-radius: 99px;
}

/* ---------- Nachthimmel (Startseite) ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* Genau ein Bildschirm hoch, damit Zelte und Lagerfeuer unten immer ganz zu sehen sind. */
  min-height: max(480px, calc(100svh - 76px));
  display: grid; align-items: start;
  padding: clamp(1.25rem, 5vh, 4rem) clamp(1rem, 5vw, 4rem) max(175px, 13vw);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 62%, #33506b 100%);
  color: var(--white);
}
.sky { position: absolute; inset: 0; z-index: -1; }
.stars i { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 4s infinite ease-in-out; }
@keyframes twinkle { 50% { opacity: 0.15; scale: 0.6; } }

.moon { position: absolute; top: 8%; right: clamp(1rem, 9vw, 9rem); width: clamp(120px, 17vw, 220px); animation: float 9s infinite ease-in-out; }
.moon { border-radius: 50%; box-shadow: 0 0 70px 18px rgba(255, 210, 31, 0.38); }
.moon img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--yellow); background: #000; object-fit: cover; }
@keyframes float { 50% { transform: translateY(-14px) rotate(3deg); } }

.layer { position: absolute; bottom: 0; left: 50%; width: max(100%, 1300px); transform: translateX(-50%); }
.pilatus { fill: #24364b; }
.hills { fill: #16283a; }
.camp .lake { fill: #3d6a8c; opacity: 0.55; }
.camp .ground { fill: #0b1512; }
.camp .trees { fill: #0f211b; }
.tent { fill: #f0b91a; }
.tent-b { fill: #d81f28; }
.tent-door { fill: #1a1814; }
.tent { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 5s infinite ease-in-out; }
.tent-b { animation-delay: -2s; }
@keyframes breathe { 50% { transform: scaleY(1.025); } }

.fire { cursor: pointer; outline: none; }
.fire .glow { fill: var(--yellow); opacity: 0.2; filter: blur(14px); animation: glow 1.6s infinite ease-in-out; transform-box: fill-box; transform-origin: center; }
.fire:focus-visible .glow { opacity: 0.5; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 0.9s infinite ease-in-out alternate; }
.flame.f1 { fill: var(--red); }
.flame.f2 { fill: var(--yellow); animation-duration: 0.6s; }
.fire .logs { fill: #3a2414; }
.spark { fill: var(--yellow); animation: spark 2s ease-out forwards; }
@keyframes flicker { from { transform: scale(1, 1) skewX(-4deg); } to { transform: scale(0.92, 1.18) skewX(5deg); } }
@keyframes glow { 50% { opacity: 0.32; transform: scale(1.15); } }
@keyframes spark { to { transform: translate(var(--x), var(--y)); opacity: 0; } }

.hero-copy { max-width: 820px; }
.hero .kicker { color: var(--yellow); font-size: clamp(1.4rem, 2.6vw, 2rem); rotate: -2deg; margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2rem, min(6.2vw, 9.5vh), 5rem); line-height: 1; text-shadow: 0 0.07em 0 #070b12; }
.hero h1 .line { display: block; width: fit-content; max-width: 100%; }
.hero h1 .line + .line {
  position: relative; margin-top: 0.14em; color: var(--yellow); rotate: -2deg; transform-origin: 0 100%;
  padding-bottom: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-8 52 6 82 0s50-8 80-1 52 5 80-1 34-4 52 0' fill='none' stroke='%23e3232c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.2em no-repeat;
}
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.3rem); max-width: 34rem; margin: 1.1rem 0 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-copy > * { animation: rise 0.8s both cubic-bezier(0.2, 0.9, 0.3, 1); }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.hero-copy > :nth-child(4) { animation-delay: 0.36s; }
.hero h1 .line + .line { animation: line-in 0.7s 0.45s both cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes line-in { from { opacity: 0; translate: -30px 0; rotate: -7deg; } }
@keyframes rise { from { opacity: 0; translate: 0 30px; } }

.tear { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 34px; fill: var(--paper); }

@media (max-width: 700px) {
  .layer.camp { transform: translateX(-62%); }
  .moon { top: auto; bottom: 190px; right: 1rem; width: 84px; }
  .moon { box-shadow: 0 0 40px 10px rgba(255, 210, 31, 0.3); }
  .moon img { border-width: 4px; }
  .actions { gap: 0.7rem; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head {
  position: relative; text-align: center; color: var(--white);
  padding: clamp(2.5rem, 7vw, 5rem) 1rem clamp(4rem, 9vw, 6.5rem);
  background:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 66%, #fff 50%, transparent 51%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
.page-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; background: var(--paper);
  clip-path: polygon(0 100%, 0 55%, 6% 18%, 11% 50%, 17% 4%, 23% 46%, 29% 20%, 35% 54%, 41% 8%, 47% 44%, 53% 16%, 59% 52%, 65% 2%, 71% 46%, 77% 22%, 83% 54%, 89% 10%, 95% 48%, 100% 24%, 100% 100%);
}
.page-head .hand { color: var(--yellow); font-size: 1.8rem; rotate: -2deg; animation: rise 0.7s both; }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 5.5rem); text-shadow: 0 0.07em 0 #070b12; animation: rise 0.7s 0.1s both; }
.page-head .lead { margin: 1rem auto 0; max-width: 40rem; animation: rise 0.7s 0.2s both; }
.page-head a { color: var(--yellow); }

/* ---------- Karte ---------- */

.map {
  position: relative;
  padding: 1px clamp(1rem, 4vw, 2.5rem) 5rem;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' fill='none' stroke='%23b99f6b' stroke-opacity='.28' stroke-width='1.3'%3E%3Cpath d='M-20 80c90-50 150 30 240 0s140-70 320-20M-20 130c100-44 160 34 250 6s150-64 310-18M-20 190c80-30 170 44 270 14s160-50 290-6M-20 300c110-60 200 20 290-14s130-40 270 6M-20 360c120-50 210 26 300-6s140-44 260 8'/%3E%3Cpath d='M210 236c40-24 96-16 110 12s-30 50-70 44-70-36-40-56zM240 250c20-10 46-6 52 8s-16 22-34 20-30-18-18-28z'/%3E%3C/svg%3E");
}
.band { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding-top: clamp(3.5rem, 8vw, 6rem); }
.band-head { text-align: center; margin-bottom: 2.5rem; }
.band-head .hand { font-size: 1.7rem; rotate: -2deg; }
.band-head h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); display: inline; padding: 0 0.3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); }

.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.trail path { fill: none; stroke-linecap: round; }
.trail-dots { stroke: var(--red); stroke-width: 5; stroke-dasharray: 0.1 18; opacity: 0.75; }
.trail-reveal { stroke: #fff; stroke-width: 16; }
.walker { position: absolute; left: 0; top: 0; z-index: 0; font-size: clamp(1.1rem, 3vw, 1.7rem); line-height: 1; margin: -0.5em 0 0 -0.5em; pointer-events: none; transition: opacity 0.3s; }

.js .reveal { opacity: 0; translate: 0 34px; transition: opacity 0.6s, translate 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Anschlagbrett ---------- */

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 2.2rem; }
.note {
  position: relative; padding: 2.2rem 1.5rem 1.2rem; background: var(--white);
  border: 3px solid var(--ink); box-shadow: var(--shadow); rotate: var(--tilt);
  transition: rotate 0.3s, translate 0.3s, opacity 0.6s;
}
.note::before {
  content: ''; position: absolute; top: -16px; left: 50%; width: 110px; height: 32px; translate: -50% 0; rotate: -3deg;
  background: rgba(255, 210, 31, 0.85); border-left: 2px dashed rgba(26, 24, 20, 0.25); border-right: 2px dashed rgba(26, 24, 20, 0.25);
}
.note:hover { rotate: 0deg; }
.note img { margin: -0.6rem 0 1rem; border: 2px solid var(--ink); }
.note h3 { font-size: 1.6rem; margin: 0.2rem 0 0.7rem; }
.note-date { font-size: 1.6rem; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Nächste Aktivitäten ---------- */

.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 1.5rem; }
.next {
  display: flex; flex-direction: column; padding: 1.2rem 1.2rem 1.3rem; background: var(--white);
  border: 3px solid var(--ink); border-top: 14px solid var(--c); box-shadow: var(--shadow);
  transition: translate 0.25s, box-shadow 0.25s, opacity 0.6s;
}
.next:hover { translate: -3px -3px; box-shadow: 8px 8px 0 var(--c); }
.next .chip { align-self: flex-start; }
/* Die ganze Karte ist anklickbar: der Link legt sich über die Karte. */
.next { position: relative; cursor: pointer; }
.next .more::before { content: ''; position: absolute; inset: 0; }
.next:has(.more:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.next .more:focus-visible { outline: none; }
.next:hover .more { color: var(--red); }
.next:hover .more::after { translate: 5px 0; }
.next-date { font-family: var(--hand); font-size: 1.55rem; line-height: 1.1; color: var(--c); margin: 0 0 0.3rem; }
.next h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.next-meta, .next-none { font-size: 0.98rem; }
.more { margin-top: auto; font-weight: 700; }
.more::after { content: ' →'; display: inline-block; transition: translate 0.2s; }
.more:hover::after { translate: 5px 0; }

/* ---------- Stufen-Abzeichen ---------- */

.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 2rem 0.8rem; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.badge:hover { color: var(--ink); }
.badge-disc {
  position: relative; display: grid; place-items: center; width: clamp(104px, 30vw, 132px); aspect-ratio: 1; margin-bottom: 0.9rem;
  border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--c), 5px 9px 0 4px rgba(26, 24, 20, 0.18);
  transition: rotate 0.5s cubic-bezier(0.3, 1.7, 0.5, 1), scale 0.3s;
}
.badge-disc::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 3px dashed var(--yellow); }
.badge-icon { font-size: 3.4rem; line-height: 1; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.3)); }
.badge:hover .badge-disc { rotate: 12deg; scale: 1.07; }
.badge:nth-child(even):hover .badge-disc { rotate: -12deg; }
.badge b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.badge-age { font-family: var(--hand); font-size: 1.35rem; color: var(--c); }
.badge:last-child .badge-age { color: var(--red); }
.badge-text { font-size: 0.95rem; max-width: 15rem; margin-top: 0.2rem; }

/* ---------- Instagram + Aufruf ---------- */

.leine { max-width: 940px; margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 40vw, 215px), 1fr)); gap: 2.6rem 0; }
.gram-slot { position: relative; padding: 14px clamp(0.5rem, 2vw, 1rem) 0; }
.gram-slot::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 3px; background: #7a5a2e; border-radius: 2px; }
.gram {
  position: relative; display: block; padding: 7px 7px 26px; background: var(--white);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(26, 24, 20, 0.85);
  transform-origin: 50% 0; rotate: var(--tilt); opacity: 0; scale: 0.7; translate: 0 -24px;
  transition: opacity 0.35s, scale 0.5s cubic-bezier(0.3, 1.7, 0.5, 1), translate 0.5s cubic-bezier(0.3, 1.7, 0.5, 1), rotate 0.4s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.gram.in, html:not(.js) .gram { opacity: 1; scale: 1; translate: 0 0; }
.gram:hover { rotate: calc(var(--tilt) * -1); }
.gram::before { content: ''; position: absolute; top: -13px; left: 50%; width: 12px; height: 26px; translate: -50% 0; background: var(--yellow); border: 2px solid var(--ink); border-radius: 3px; z-index: 1; }
.gram img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-deep); }
.social { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }

.cta-card {
  text-align: center; padding: clamp(2rem, 6vw, 4rem) 1.5rem; color: var(--white);
  background: var(--forest); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow);
}
.cta-card .hand { color: var(--yellow); font-size: 2rem; rotate: -2deg; }
.cta-card h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); margin: 0.3rem 0 1rem; }
.cta-card p { max-width: 36rem; margin-inline: auto; }
.cta-card .btn-sign { margin-top: 1rem; }

/* ---------- Textblätter ---------- */

.sheet {
  position: relative; max-width: 780px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.sheet.wide { max-width: 900px; }
.sheet.accent { border-left: 16px solid var(--yellow); }
.sheet.diagram { margin-top: 3.5rem; }
.sheet.diagram .sheet-photo { rotate: none; margin: 1.2rem 0 0; background: #fff; }
.sheet h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0.2rem 0 1.2rem; }
.sheet-photo { width: 100%; margin-bottom: 1.5rem; border: 3px solid var(--ink); rotate: -0.6deg; }
.sheet p:has(> .btn-sign) { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.5rem; }
.prose { overflow-wrap: break-word; }
.prose iframe, .prose video { max-width: 100%; }
.prose h3 { font-size: 1.35rem; margin: 1.6rem 0 0.6rem; color: var(--red); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--red); content: '⚜  '; font-size: 0.8em; }
.prose a { color: var(--red); font-weight: 700; }
.prose img { border: 3px solid var(--ink); margin: 1rem 0; }
.prose figure { margin: 0; }
}

/* ---------- Programm ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.filter {
  min-height: 46px; padding: 0.5rem 1.1rem; touch-action: manipulation; font: 700 1rem var(--body); color: var(--ink); cursor: pointer;
  background: var(--white); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--ink);
  transition: translate 0.15s, box-shadow 0.15s, background 0.2s;
}
.filter:hover { translate: -2px -2px; box-shadow: 5px 5px 0 var(--ink); }
.filter[aria-pressed='true'] { background: var(--c); color: #fff; translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.halbjahre { margin-top: 4rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow); }
.halbjahre h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin-bottom: 1.2rem; }
.halbjahre h2 .hand { display: block; font-size: 1.4rem; rotate: -1.5deg; width: fit-content; }
.halbjahr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.halbjahr { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.9rem 1rem 1rem; background: var(--paper); border-left: 10px solid var(--c); }
.halbjahr .chip { margin: 0 0 0.2rem; }
.halbjahr-none { margin: 0; font-size: 0.95rem; color: #5a5347; }
.pdf { font-weight: 700; font-size: 1.1rem; }
.pdf-show { display: none; padding: 0; border: 0; background: none; font: 700 0.95rem var(--body); color: var(--c); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.halbjahr-viewer { margin-top: 1.2rem; }
.halbjahr-viewer p { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.halbjahr-viewer .btn-ghost { padding: 0.3rem 0.9rem; font-size: 0.95rem; }
.halbjahr-viewer iframe { width: 100%; height: min(80vh, 900px); border: 3px solid var(--ink); background: #fff; }
/* PDFs lassen sich nur auf grossen Bildschirmen mit Maus zuverlässig einbetten. */
@media (min-width: 800px) and (hover: hover) { .pdf-show { display: inline; } }


.prog-list { display: grid; gap: 2rem; margin-top: 2.5rem; }
.prog { display: grid; grid-template-columns: 128px 1fr; background: var(--white); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--c); }
.prog-date { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.1rem; padding: 1.3rem 0.5rem; background: var(--c); color: #fff; text-align: center; }
.prog-date i { font: 400 1.5rem var(--hand); }
.prog-date b { font: 400 3.4rem/1 var(--display); }
.prog-date span { font-weight: 700; font-size: 0.95rem; }
.prog-main { padding: 1.3rem clamp(1rem, 3vw, 2rem) 1.5rem; min-width: 0; }
.prog h3 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 0.9rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1rem; }
.facts dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c); }
.facts dd { margin: 0; font-weight: 700; }
.prog summary, .prog details[open] summary { margin-bottom: 0.9rem; }
.prog-img { border: 3px solid var(--ink); margin-bottom: 1rem; }
.pack { margin: 1.2rem 0; padding: 0.9rem 1.1rem; background: var(--paper); border-left: 8px solid var(--c); }
.pack b, .absage b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c); }
.checklist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.1rem 1.5rem; }
.prose + .pack .checklist li::marker, .checklist li::marker { content: none; }
.checklist label { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.45rem 0; cursor: pointer; }
.checklist input { flex: none; appearance: none; -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin: 0.05rem 0 0; background: var(--white); border: 3px solid var(--ink); border-radius: 4px; cursor: pointer; display: grid; place-items: center; transition: background 0.15s, rotate 0.25s cubic-bezier(0.3, 1.8, 0.5, 1); }
.checklist input::after { content: '✓'; font: 700 1.05rem/1 var(--body); color: #fff; scale: 0; transition: scale 0.2s cubic-bezier(0.3, 1.8, 0.5, 1); }
.checklist input:checked { background: var(--c); rotate: -6deg; }
.checklist input:checked::after { scale: 1; }
.checklist input:checked + span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: 0.6; }
.absage { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 1.4rem 0 0.4rem; padding: 0.9rem 1.1rem; border: 3px dashed var(--c); }
.absage b { flex-basis: 100%; }
.absage .mail { color: var(--ink); overflow-wrap: anywhere; }
.gruss { font-size: 1.7rem; rotate: -1.5deg; margin-top: 1.2rem; color: var(--c); }
@media (max-width: 600px) {
  .prog { grid-template-columns: 1fr; }
  .prog-date { flex-direction: row; justify-content: center; align-items: baseline; gap: 0.6rem; padding: 0.6rem; }
  .prog-date b { font-size: 2.2rem; }
}

/* ---------- Leitungsteam ---------- */

.polaroids { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2rem) clamp(0.9rem, 3vw, 1.6rem); justify-content: center; }
.polaroid { width: clamp(132px, 41vw, 210px); aspect-ratio: 210 / 310; perspective: 900px; cursor: pointer; rotate: var(--tilt); transition: rotate 0.3s, translate 0.7s, opacity 0.6s; }
.polaroid:hover { rotate: 0deg; }
.pol-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1); }
.polaroid.flipped .pol-inner { transform: rotateY(180deg); }
.pol-front, .pol-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.pol-front { display: flex; flex-direction: column; padding: 5% 5% 0; }
.pol-photo { flex: 1; min-height: 0; overflow: hidden; background: var(--c); border: 2px solid var(--ink); }
.pol-photo img { width: 100%; height: 100%; object-fit: cover; }
.pol-name { font-size: clamp(1.3rem, 5.4vw, 1.75rem); text-align: center; padding: 0.3rem 0 0; color: var(--ink); }
.pol-front .pol-real, .pol-front .pol-role { margin: 0; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.pol-front .pol-real { font-size: clamp(0.72rem, 2.9vw, 0.86rem); min-height: 1.25em; }
.pol-front .pol-role { font-size: clamp(0.68rem, 2.7vw, 0.8rem); font-weight: 700; color: var(--c); padding-bottom: 0.45rem; }
.crew:first-child .pol-front .pol-role { color: var(--red); }
.pol-back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem; line-height: 1.25; text-align: center; border-top: 14px solid var(--c); overflow-wrap: anywhere; }
.pol-back p { margin: 0; }
.pol-back .pol-name { color: var(--c); padding: 0; font-size: clamp(1.9rem, 8.5vw, 2.7rem); }
.crew:first-child .pol-back .pol-name { color: var(--red); }
.pol-back .pol-real { font-size: clamp(1rem, 4.4vw, 1.3rem); font-weight: 700; }
.pol-back .pol-role { font-size: clamp(0.95rem, 4vw, 1.15rem); padding: 0.2rem 0.8rem; color: #fff; background: var(--c); border-radius: 99px; }
.pol-quote { font-style: italic; font-size: 0.92rem; }
.avatar { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.avatar b { font: 400 clamp(3.2rem, 15vw, 5.5rem)/1 var(--display); color: rgba(255, 255, 255, 0.92); translate: 0 -14px; }
.avatar::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 58%; height: 26%; translate: -50% 0;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, var(--red) 14px 28px);
  clip-path: polygon(0 0, 100% 0, 50% 100%); border-top: 6px solid var(--ink);
}

/* ---------- Sommerlager ---------- */

.chronik { display: flex; gap: 0.8rem; overflow-x: auto; padding: 0.6rem 0.4rem 1.4rem; scroll-snap-type: x proximity; scrollbar-color: var(--red) transparent; }
.patch {
  flex: none; scroll-snap-align: start; display: grid; gap: 0.1rem; min-width: 138px; max-width: 190px; padding: 0.7rem 1rem;
  font-family: var(--body); text-align: left; color: var(--ink); cursor: pointer;
  background: var(--white); border: 3px solid var(--ink); border-radius: 10px; outline: 2px dashed var(--ink); outline-offset: -8px;
  transition: translate 0.2s, background 0.2s, rotate 0.2s;
}
.patch b { font: 400 1.7rem/1 var(--display); }
.patch span { font-size: 0.86rem; font-weight: 700; }
.patch:hover { translate: 0 -4px; rotate: -2deg; }
.patch.no-pics { background: var(--paper-deep); }
.patch[aria-selected='true'] { background: var(--red); color: #fff; outline-color: var(--yellow); rotate: -2deg; }
.album-head { text-align: center; margin: 1.5rem 0 2rem; }
.album-head h3 { font-size: clamp(1.8rem, 5vw, 3rem); }
.shots { columns: 3 150px; column-gap: clamp(0.8rem, 3vw, 1.4rem); }
.shot {
  display: block; width: 100%; margin: 0 0 1.4rem; padding: 9px 9px 30px; break-inside: avoid; cursor: zoom-in;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 rgba(26, 24, 20, 0.85); rotate: var(--tilt);
  transition: rotate 0.3s, scale 0.3s, translate 0.7s, opacity 0.6s;
}
.shot:hover { rotate: 0deg; scale: 1.03; }
.shot img { width: 100%; background: var(--paper-deep); min-height: 80px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(15, 22, 34, 0.94); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border: 8px solid var(--white); margin: 0 auto; }
.lightbox figcaption { color: var(--white); font-family: var(--hand); font-size: 1.5rem; margin-top: 0.6rem; }
.lightbox button { position: fixed; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 400 2rem/1 var(--display); cursor: pointer; }
.lightbox button:hover { background: var(--red); color: #fff; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* ---------- Shop + Kontakt ---------- */

.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 2rem; margin-top: 3rem; }
.product { position: relative; padding: 0 1.3rem 1.4rem; background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow); rotate: var(--tilt); transition: rotate 0.3s, translate 0.7s, opacity 0.6s; }
.product:hover { rotate: 0deg; }
.product-photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; margin: 0 -1.3rem 1.2rem; overflow: hidden; border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(135deg, var(--yellow) 0 26px, var(--red) 26px 52px, var(--ink) 52px 60px);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo { position: relative; }
.product-turn { position: absolute; left: 10px; bottom: 10px; min-height: 40px; padding: 0.4rem 1.5rem 0.4rem 0.8rem; font: 700 0.9rem/1.2 var(--body); background: var(--yellow); color: var(--ink); border: 0; clip-path: var(--sign); cursor: pointer; transition: translate 0.2s, background 0.2s, color 0.2s; }
.product-turn:hover { translate: 5px 0; background: var(--red); color: #fff; }
.product-photo span { background: var(--white); color: var(--ink); padding: 0.2rem 0.9rem; border: 2px solid var(--ink); rotate: -4deg; }
.price { position: absolute; top: 14px; right: -14px; margin: 0; padding: 0.3rem 1.6rem 0.3rem 0.9rem; font-family: var(--display); font-size: 1.15rem; background: var(--yellow); clip-path: var(--sign); rotate: 4deg; }
.product h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }

.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 2rem; }
.contact { position: relative; padding: 1.6rem 1.5rem 1.5rem; background: var(--white); border: 3px solid var(--ink); border-top: 14px solid var(--c); box-shadow: var(--shadow); rotate: var(--tilt); transition: rotate 0.3s, translate 0.7s, opacity 0.6s; }
.contact:hover { rotate: 0deg; }
.contact-icon { position: absolute; top: -34px; right: 16px; display: grid; place-items: center; width: 56px; height: 56px; font-size: 1.7rem; background: var(--c); border: 3px solid var(--ink); border-radius: 50%; outline: 2px dashed var(--yellow); outline-offset: -8px; }
.contact h2 { font-size: 1.45rem; margin-bottom: 0.4rem; padding-right: 3rem; }
.contact-desc { color: #5a5347; }
.contact ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact li b { font-size: 1.5rem; font-weight: 400; color: var(--c); margin-right: 0.3rem; }
.contact:first-child li b { color: var(--red); }
.mail { font-weight: 700; overflow-wrap: anywhere; color: var(--red); }

/* ---------- Fuss ---------- */

.foot { position: relative; background: var(--night); color: var(--white); padding: 3rem clamp(1rem, 4vw, 2.5rem) 1.5rem; margin-top: 60px; }
.foot-trees { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: 60px; fill: var(--night); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 2rem 1.5rem; }
/* Dezenter Hinweis auf die Agentur, durch eine feine Linie von den Pflichtlinks getrennt */
.foot-credit { font-size: 0.8rem; opacity: 0.7; padding-right: 1.5rem; border-right: 1px solid rgba(255, 255, 255, 0.3); white-space: nowrap; }
.foot-credit a { text-decoration-thickness: 1px; }
.foot-credit:hover { opacity: 1; }
.foot h2 { font-size: 1.1rem; color: var(--yellow); margin-bottom: 0.7rem; }
.foot p { margin: 0 0 0.35rem; }
.foot a:hover { color: var(--yellow); }
.foot-brand img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--yellow); background: #000; object-fit: cover; margin-bottom: 0.8rem; }
.foot-brand .hand { color: var(--yellow); font-size: 1.9rem; rotate: -3deg; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.2rem 2rem; }
.foot .foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 1.5rem; margin-left: auto; }
@media (max-width: 480px) { .foot-credit { flex-basis: 100%; text-align: right; padding-right: 0; border-right: 0; } }
.foot-legal { max-width: var(--wrap); margin: 2.5rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; opacity: 0.85; }

@media (max-width: 700px) {
  .walker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .walker { display: none; }
}

/* ---------- Tippflächen: auf dem Handy mindestens fingerbreit ---------- */
.prog summary { padding: 0.7rem 0; }
.prog details[open] summary { margin-bottom: 0.3rem; }
.pdf, .mail, .foot a, .more { display: inline-block; padding: 0.55rem 0; }
.foot p { margin: 0; }
a, button, summary, [role='button'] { touch-action: manipulation; -webkit-tap-highlight-color: rgba(227, 35, 44, 0.18); }
