/* Kindergruppe Bussi Bär – Stylesheet */

/* Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO) */
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/parkinsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/parkinsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/dancing-script-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/dancing-script-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #151519;
  --ink-soft: rgba(0, 0, 0, .68);
  --cream: #f6f2ed;
  --white: #fff;
  --lavender: #dadaf0;
  --lilac: #c4c4f0;
  --purple: #6b5fb5;      /* aus dem Logo-Hintergrund */
  --purple-dark: #4b3f94;
  --pink: #ffd0e0;
  --peach: #ffdfcf;
  --mint: #d8f0e0;
  --sky: #e2f8ff;
  --butter: #ffe2a2;
  --honey: #efa419;
  --red: #f54480;
  --green: #00a437;
  --blue: #197eff;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --pill: 3.125rem;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --font: "Parkinsans", system-ui, sans-serif;
  --script: "Dancing Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); letter-spacing: -.06em; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.05em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.04em; }
h4 { font-size: 1.2rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--script); font-size: 1.6rem; line-height: 1.2;
  color: var(--purple); margin-bottom: .5rem;
}
.eyebrow svg { width: 1.4rem; height: 1.4rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.6rem; border-radius: var(--pill);
  font: 500 1rem/1.2 var(--font); text-decoration: none;
  background: var(--ink); color: var(--white);
  border: 2px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--purple); border-color: var(--purple); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header / Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: .75rem 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-radius: var(--pill); padding: .5rem .5rem .5rem .6rem;
  box-shadow: 0 6px 24px rgba(21, 21, 25, .06);
}
.brand { flex: none; display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand { padding: .15rem .4rem; }
.brand img { height: 46px; width: auto; }
.brand span { white-space: nowrap; font-weight: 600; line-height: 1.1; font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-soft); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .55rem .75rem; border-radius: var(--pill);
  text-decoration: none; font-size: .95rem; transition: background .2s; white-space: nowrap;
}
.nav-links a:hover { background: var(--cream); }
.nav-links a[aria-current="page"] { background: var(--lavender); }
.nav-cta { display: inline-flex; white-space: nowrap; }
.nav-burger {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--white); border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .nav { flex-wrap: wrap; border-radius: 1.75rem; }
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; padding: .25rem 0 .5rem;
  }
  .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav.is-open .nav-links { display: flex; }
}

/* ---------- Hero (Startseite) ---------- */
.hero { padding: 1.5rem 0 4rem; }
.hero-card {
  position: relative; overflow: hidden;
  background: var(--lavender); border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 3rem; align-items: center;
}
.hero-card h1 { position: relative; z-index: 1; }
.hero-card .lead { max-width: 34rem; position: relative; z-index: 1; }
.hero-text { position: relative; z-index: 1; }
.hero-logo { position: relative; display: grid; place-items: center; z-index: 1; }
.hero-logo img {
  width: min(100%, 340px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 10px solid var(--white); box-shadow: 0 20px 50px rgba(75, 63, 148, .25);
}
.hero-logo .ring {
  position: absolute; width: min(118%, 420px); aspect-ratio: 1;
  border: 2px dashed var(--purple); border-radius: 50%; opacity: .45;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo .ring { animation: none; } }
.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob--1 { width: 260px; top: -90px; left: -80px; color: var(--pink); }
.blob--2 { width: 200px; bottom: -70px; right: 30%; color: var(--butter); }
.blob--3 { width: 120px; top: 12%; right: 4%; color: var(--mint); }
.squiggle { position: absolute; z-index: 0; color: var(--purple); opacity: .35; }

@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; text-align: left; }
  .hero-bear { order: -1; width: 210px; margin: 0 auto -1rem; }
  .squiggle { display: none; }
}

/* ---------- Fakten-Leiste ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.fact { background: var(--white); border-radius: var(--radius); padding: 1.5rem; }
.fact strong { display: block; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.15; }
.fact span { color: var(--ink-soft); font-size: .95rem; }
.fact .dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: .9rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.wave { display: block; width: 100%; height: 40px; color: var(--white); }
.wave--flip { transform: scaleY(-1); }

/* Karten-Raster */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 2rem 1.75rem;
  background: var(--white); display: flex; flex-direction: column; gap: .5rem;
}
.card p { color: var(--ink-soft); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card--pink { background: var(--pink); }
.card--mint { background: var(--mint); }
.card--peach { background: var(--peach); }
.card--sky { background: var(--sky); }
.card--butter { background: var(--butter); }
.card--lavender { background: var(--lavender); }
.card .num {
  font-family: var(--script); font-size: 2.6rem; line-height: 1; color: var(--purple);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.75);
  display: grid; place-items: center; margin-bottom: .5rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card .corner {
  position: absolute; right: -40px; bottom: -40px; width: 140px; opacity: .5; color: var(--white);
}

/* Zitat-Banner */
.quote-band {
  background: var(--purple); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden;
}
.quote-band blockquote {
  margin: 0 auto; max-width: 52rem;
  font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.35; letter-spacing: -.03em;
}
.quote-band .eyebrow { color: var(--butter); }
.quote-band .blob { color: rgba(255,255,255,.08); }

/* ---------- Unterseiten-Kopf ---------- */
.page-hero { padding: 1.5rem 0 0; }
.page-hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--lavender); padding: clamp(2rem, 6vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.page-hero-card > div { position: relative; z-index: 1; max-width: 42rem; }
.page-hero-card h1 { margin-bottom: .3em; }
.page-hero-card .logo-badge {
  position: relative; z-index: 1;
  width: 190px; height: auto; flex: none;
  filter: drop-shadow(0 12px 22px rgba(75, 63, 148, .18));
}
.page-hero-card.pink { background: var(--pink); }
.page-hero-card.mint { background: var(--mint); }
.page-hero-card.peach { background: var(--peach); }
.page-hero-card.sky { background: var(--sky); }
.page-hero-card.butter { background: var(--butter); }
@media (max-width: 700px) {
  .page-hero-card { flex-direction: column-reverse; align-items: flex-start; }
  .page-hero-card .logo-badge { width: 130px; }
}

/* ---------- Layout-Helfer ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split--wide { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; } }

.prose { max-width: 46rem; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

.panel { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.panel + .panel { margin-top: 1.25rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .9rem; list-style: none; padding: 0; margin: 0; }
.team li {
  background: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: .85rem;
}
.team .initial {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 600;
}
.team .name { font-weight: 500; line-height: 1.2; }
.team .role { display: block; font-size: .85rem; color: var(--ink-soft); }
.team li.lead-role { background: var(--lavender); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.chips li { background: var(--white); border-radius: var(--pill); padding: .5rem 1.1rem; font-size: .95rem; }

/* Zeiten */
.hours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.hour-card { border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); }
.hour-card .day { font-size: 1.1rem; color: var(--ink-soft); }
.hour-card .time { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.06em; line-height: 1.1; font-weight: 500; margin: .25rem 0 0; }
@media (max-width: 700px) { .hours { grid-template-columns: 1fr; } }

/* Kontaktliste */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list .ic {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--ink-soft); font-size: .85rem; }
.contact-list a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--purple); }

/* Download-Kachel */
.download {
  display: flex; align-items: center; gap: 1.25rem; text-decoration: none;
  background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  border: 2px solid transparent; transition: border-color .2s, transform .2s;
}
.download:hover { border-color: var(--ink); transform: translateY(-2px); }
.download .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--pink); display: grid; place-items: center; flex: none; }
.download .ic svg { width: 26px; height: 26px; }
.download strong { display: block; font-weight: 500; }
.download small { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--lavender); color: var(--ink-soft); margin-top: 40px; }
.footer-cta {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; border-bottom: 1px solid rgba(75, 63, 148, .15);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.footer-cta h2 { color: var(--ink); margin: 0; max-width: 34rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3rem 0;
}
.footer-grid h3 { color: var(--ink); font-size: 1rem; margin-bottom: .9rem; letter-spacing: -.01em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--purple-dark); }
.footer-brand { display: inline-flex; text-decoration: none; margin-bottom: 1.25rem; }
.footer-brand img { width: 200px; max-width: 100%; height: auto; }
.footer-brand span { font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.footer-bottom {
  border-top: 1px solid rgba(75, 63, 148, .15); padding: 1.25rem 0 2rem;
  font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Kleine Einblend-Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Bären-Illustrationen ---------- */
.bear { display: block; height: auto; max-width: 100%; pointer-events: none; user-select: none; }
.bear--col { width: min(100%, 300px); margin-top: 2rem; }
.bear--top { width: 150px; margin: 0 auto 1rem; }
.bear--wiggle { transform-origin: 50% 90%; animation: wiggle 5s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(3deg); } 95% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .bear--wiggle { animation: none; } }

.head-bear { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.head-bear .section-head { margin-bottom: 0; }
.head-bear .bear { width: 180px; flex: none; }
.head-bear--left { justify-content: flex-start; align-items: center; }

.with-bear { display: grid; grid-template-columns: 1fr var(--bear-col, 200px); gap: 2rem; align-items: center; }
.with-bear > .bear { width: 100%; }

.quote-band--bear { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: center; text-align: left; }
.quote-band--bear > :not(.blob) { position: relative; z-index: 1; }
.quote-band--bear blockquote { margin: 0; }

.site-footer { position: relative; }
.footer-peek { position: absolute; right: 8%; bottom: 100%; width: 190px; transform: translateY(24%); z-index: 2; }
main { padding-bottom: 3rem; }

@media (max-width: 700px) {
  .head-bear { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
  .head-bear--left { flex-direction: column; }
  .head-bear .bear { width: 130px; }
  .with-bear { grid-template-columns: 1fr; }
  .with-bear > .bear { width: 150px; order: -1; }
  .quote-band--bear { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
  .quote-band--bear > .bear { width: 150px; margin: 0 auto; }
  .bear--col { width: 200px; }
  .footer-peek { width: 130px; right: 1rem; }
}
.footer-peek--left { right: auto; left: 8%; }
@media (max-width: 700px) { .footer-peek--left { left: 1rem; } }

/* ---------- Animierter Bär im Hero ---------- */
.hero-bear { position: relative; z-index: 1; width: min(100%, 360px); justify-self: center; }
.hero-bear-bg {
  position: absolute; left: 50%; top: 8%; width: 92%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: rgba(255, 255, 255, .55);
}
.hero-bear-shadow {
  position: absolute; left: 50%; bottom: -1%; width: 70%; height: 6%; transform: translateX(-50%);
  border-radius: 50%; background: rgba(75, 63, 148, .18); filter: blur(4px);
  animation: rig-shadow 6s ease-in-out infinite;
}
.bear-rig {
  position: relative; display: block; width: 100%; aspect-ratio: 678 / 1013;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 96%; animation: rig-sway 6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.bear-rig:focus-visible { outline: 3px dashed var(--purple); outline-offset: 6px; border-radius: 1rem; }
.rig-part, .rig-head { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig-head  { transform-origin: 55.11% 39.6%;  animation: rig-head 6s ease-in-out infinite; }
.rig-wave  { transform-origin: 35.4% 42.71%;  animation: rig-wave 6s ease-in-out infinite; }
.rig-arm-r { transform-origin: 71.31% 44.16%; animation: rig-arm 6s ease-in-out infinite; }
.rig-body  { transform-origin: 50.05% 75.26%; animation: rig-breathe 3s ease-in-out infinite; }
.rig-blink { opacity: 0; animation: rig-blink 4.6s step-end infinite; }

/* Winken: zwei Winker, dann Pause */
@keyframes rig-wave {
  0%, 52%, 100% { transform: rotate(0); }
  8%  { transform: rotate(-12deg); }
  16% { transform: rotate(6deg); }
  24% { transform: rotate(-12deg); }
  32% { transform: rotate(6deg); }
  40% { transform: rotate(-6deg); }
}
@keyframes rig-head {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-3deg); }
  45% { transform: rotate(2.5deg); }
  70% { transform: rotate(-1deg); }
}
@keyframes rig-arm {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(3deg); }
  65% { transform: rotate(-2deg); }
}
@keyframes rig-breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.012, 1.02); }
}
@keyframes rig-sway {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-1.2deg); }
  75% { transform: rotate(1.2deg); }
}
@keyframes rig-shadow {
  0%, 100% { transform: translateX(-50%) scaleX(1); }
  25% { transform: translateX(-52%) scaleX(.97); }
  75% { transform: translateX(-48%) scaleX(.97); }
}
@keyframes rig-blink {
  0%    { opacity: 0; }
  60%   { opacity: 1; }
  62.6% { opacity: 0; }
  88%   { opacity: 1; }
  90.6% { opacity: 0; }
}
/* Antippen: schnelles, freudiges Winken */
.bear-rig.is-hello .rig-wave { animation: rig-hello 1.4s ease-in-out 1; }
@keyframes rig-hello {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-14deg); } 25% { transform: rotate(8deg); }
  38% { transform: rotate(-14deg); } 51% { transform: rotate(8deg); }
  64% { transform: rotate(-14deg); } 77% { transform: rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bear-rig, .rig-head, .rig-wave, .rig-arm-r, .rig-body, .rig-blink, .hero-bear-shadow, .bear-rig.is-hello .rig-wave { animation: none; }
}
@media (max-width: 860px) { .hero-bear { width: 210px; margin: 0 auto -1rem; } }

/* ---------- Spielzeug ---------- */
.toy { display: block; height: auto; pointer-events: none; user-select: none; }
.has-toy, .card { position: relative; }
.toy-tr { position: absolute; top: 1.25rem; right: 1.25rem; width: 76px; z-index: 1; }
.toy-br { position: absolute; right: 1.5rem; bottom: 1.25rem; width: 110px; }
.toy-bounce { animation: toy-bounce 2.4s ease-in-out infinite; }
.toy-wobble { transform-origin: 50% 100%; animation: toy-wobble 4s ease-in-out infinite; }
.toy-rock   { transform-origin: 50% 95%;  animation: toy-rock 3s ease-in-out infinite; }
.toy-drive  { animation: toy-drive 7s ease-in-out infinite; }
@keyframes toy-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes toy-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes toy-rock   { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes toy-drive  {
  0%, 100% { transform: translateX(0); }
  40% { transform: translateX(-28px) rotate(-1deg); }
  50% { transform: translateX(-28px); }
  90% { transform: translateX(0) rotate(1deg); }
}

/* Spielzeug im Hero */
.hero-toy { position: absolute; z-index: 1; }
.hero-toy--turm { width: 23%; right: -6%; bottom: 7%; z-index: 0; transform-origin: 50% 100%; animation: toy-wobble 5s ease-in-out infinite; }
.hero-toy--ball { width: 33%; left: -22%; bottom: -2%; z-index: 2; }
.hero-toy--ball .ball-bounce { display: block; transform-origin: 50% 100%; animation: ball-bounce 1.6s infinite; }
.hero-toy--ball .ball-img { display: block; width: 100%; animation: ball-spin 3.2s linear infinite; }
.ball-shadow {
  position: absolute; left: 15%; bottom: -2%; width: 70%; height: 10%; border-radius: 50%;
  background: rgba(75, 63, 148, .2); filter: blur(3px); animation: ball-shadow 1.6s infinite;
}
/* Schwerkraft: hoch = abbremsen, runter = beschleunigen; Squash beim Aufprall */
@keyframes ball-bounce {
  0%   { transform: translateY(0) scale(1.14, .84); animation-timing-function: cubic-bezier(.3, 0, .6, 1); }
  8%   { transform: translateY(-3%) scale(.95, 1.06); animation-timing-function: cubic-bezier(.33, .67, .67, 1); }
  50%  { transform: translateY(-60%) scale(1, 1); animation-timing-function: cubic-bezier(.33, 0, .67, .33); }
  92%  { transform: translateY(-3%) scale(.95, 1.06); animation-timing-function: cubic-bezier(.4, 0, .7, 1); }
  100% { transform: translateY(0) scale(1.14, .84); }
}
@keyframes ball-spin { to { transform: rotate(360deg); } }
@keyframes ball-shadow {
  0%, 100% { transform: scale(1.08); opacity: 1; }
  8%   { transform: scale(1); opacity: .95; animation-timing-function: cubic-bezier(.33, .67, .67, 1); }
  50%  { transform: scale(.55); opacity: .4; animation-timing-function: cubic-bezier(.33, 0, .67, .33); }
  92%  { transform: scale(1); opacity: .95; }
}
.hero-toy--ente { width: 29%; right: -24%; bottom: -2%; z-index: 2; transform-origin: 50% 95%; animation: toy-rock 2.6s ease-in-out infinite; }

@media (max-width: 700px) {
  .toy-tr { width: 60px; top: 1rem; right: 1rem; }
  .toy-br { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .toy-bounce, .toy-wobble, .toy-rock, .toy-drive, .hero-toy, .hero-toy--ball .ball-img, .hero-toy--ball .ball-bounce, .ball-shadow { animation: none; }
}
.card:has(> .toy-tr) :is(h3, h4), .has-toy > :is(h3, h4) { padding-right: 5.25rem; }

/* Illustrierte Icons in den Startseiten-Karten */
.card-illu { width: 96px; height: 96px; object-fit: contain; object-position: left center; margin-bottom: .75rem; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
a.card { transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(21, 21, 25, .08); }
a.card:hover .card-illu { transform: rotate(-6deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { a.card, .card-illu { transition: none; } a.card:hover, a.card:hover .card-illu { transform: none; } }

/* Welle oberhalb des Footers */
.footer-wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 40px; color: var(--lavender); display: block; }

/* Bären in den Seitenköpfen */
.page-hero-card .page-hero-bear { width: auto; height: 250px; max-width: 42%; object-fit: contain; filter: none; margin: -1rem 0; }
@media (max-width: 700px) { .page-hero-card .page-hero-bear { height: 170px; max-width: 70%; margin: 0; } }
.card > .card-illu { width: 110px; height: 96px; }

/* Startseiten-Hero etwas breiter als der übrige Inhalt */
.hero > .container { max-width: 84rem; }
.hero .facts { max-width: calc(var(--container) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.panel > .card-illu { display: block; width: 130px; height: 96px; }

/* ---------- Barrierefreiheit ---------- */
.h4 { font-size: 1.2rem; letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; border-radius: var(--pill); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.btn:focus-visible, .nav-links a:focus-visible, .nav-burger:focus-visible { outline-offset: 4px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--purple-dark); text-decoration: underline; }
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.04em; }

/* Rechtliche Seiten */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.5rem 0 .75rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; letter-spacing: -.02em; margin: 1.75rem 0 .4rem; }
.legal ul { color: var(--ink-soft); padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--purple-dark); }
mark.todo { background: var(--butter); color: var(--ink); padding: .05em .4em; border-radius: .35em; font-weight: 500; }
/* Kontrast mind. 4.5:1 (WCAG AA) */
.card .num { color: var(--purple-dark); }
.quote-band { background: #5a4ea6; }

/* Ferlach-Hauptplatz als Hintergrund im Hero */
.hero-town {
  position: absolute; z-index: 0; pointer-events: none;
  right: 0; bottom: 0; width: min(62%, 820px); height: auto;
  opacity: .9;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
          mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
.hero-card .hero-text, .hero-card .hero-bear { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero-town { width: 100%; top: 0; bottom: auto; opacity: .55;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 85%);
            mask-image: linear-gradient(to bottom, #000 45%, transparent 85%); }
}
@media (min-width: 861px) { .hero-town { bottom: 12%; } }

/* Made with ♥ by oja.at */
.made-by { display: inline-flex; align-items: center; gap: .3em; }
.made-heart { width: 1em; height: 1em; color: #e0457b; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .made-heart { animation: none; } }
