/* Base — Reset, Typografie, Layout-Grundgerüst, Buttons. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
  max-width: 100%;
}
::selection { background: var(--c-primary); color: #fff; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(24,37,37,.18); border-radius: 8px; border: 2px solid var(--c-bg); }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--tight { padding: clamp(40px, 6vw, 76px) 0; }
.section--surface { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.section--dark { background: var(--c-dark); color: #fff; position: relative; overflow: hidden; }

/* Eyebrow / Kicker */
.eyebrow {
  font: 700 13px var(--f-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.section--dark .eyebrow { color: var(--c-accent-pink); }

.lead { font: 400 clamp(15px, 1.4vw, 18px)/1.65 var(--f-body); color: var(--c-text-60); }
.h2 { font: 600 clamp(28px, 3.6vw, 44px)/1.12 var(--f-head); color: var(--c-text); }
.section--dark .h2 { color: #fff; }

/* Badge / Pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-primary-soft); color: var(--c-primary);
  font: 700 13px var(--f-body); letter-spacing: .02em;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--c-primary-soft-2);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 700 16px var(--f-body); cursor: pointer;
  padding: 14px 22px; border-radius: var(--r-lg);
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--btn-shadow); }
.btn--primary:hover { background: var(--c-primary-600); }
.btn--ghost { background: var(--c-surface); color: var(--c-secondary); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: rgba(30,58,58,.4); }
.btn--text { color: var(--c-primary); padding: 14px 6px; }
.btn--text:hover { color: var(--c-primary-600); }
.btn--light { background: #fff; color: var(--c-secondary); box-shadow: var(--sh-card); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { font-size: 14px; padding: 10px 15px; border-radius: var(--r-md); }
.btn--block { width: 100%; }

.ms--sm { font-size: 18px; }
.ms--lg { font-size: 26px; }

/* Icon-Chip (farbige Kachel hinter einem Icon) */
.ichip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--c-primary-soft); color: var(--c-primary);
}

/* Reveal-Animation */
@keyframes floatUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes liveDot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.reveal { animation: floatUp .6s ease both; }

/* Maskottchen-Figuren: sanftes Dauer-Schweben (img) + Einblenden beim Scrollen (Wrapper).
   Desktop-only; die globale reduced-motion-Regel oben schaltet alles ab. */
@keyframes figFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fig {
  position: absolute; pointer-events: none; z-index: 3;
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.fig.is-in { opacity: 1; transform: translateY(0); }
.fig__img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .28));
  animation: figFloat 5s ease-in-out infinite;
}
.fig--delay .fig__img { animation-delay: -2.5s; }
@media (max-width: 980px) { .fig-desktop { display: none !important; } }

/* Grid-Helfer */
.grid { display: grid; gap: 18px; }
.auto-fit { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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