/* ============================================================
   SAHNE ZUM TEE? — DAS KIEZ QUIZ · Basis-Stylesheet
   Design-Canvas: 1536px · 1 Design-Pixel = var(--su)
   ============================================================ */

@font-face {
  font-family: 'Lovelo';
  src: url('../assets/fonts/Lovelo-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --su: min(1px, calc(100vw / 1560));
  --bg: #F5EFE3;
  --panel: #F0E3D0;
  --panel-hell: #F7F1E6;
  --ink: #222222;
  --navy: #001F3D;
  --pink: #E1275A;
  --blue: #00B2E9;
  --cream: #F4E9D9;
  --gruen: #7BA05B;
  --lila: #7B5EA7;
  --ff-display: 'Lovelo', 'Archivo Black', sans-serif;
  --ff-marker: 'Permanent Marker', cursive;
  --ff-brush: 'Caveat Brush', cursive;
  --ff-round: 'Fredoka', sans-serif;
  --ff-cond: 'Barlow Condensed', sans-serif;
  --ff-body: 'Josefin Sans', sans-serif;
  --ff-tag: 'Barlow', sans-serif;
  --shadow-pol: 0 6px 18px rgba(60, 40, 20, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Stage: proportionale Design-Fläche ---------- */
.stage {
  position: relative;
  width: calc(1536 * var(--su));
  margin: 0 auto;
}
.abs { position: absolute; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(60, 40, 20, .10); }

.nav-inner {
  width: min(1440px, 96vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0 8px;
}

.brand { display: flex; flex-direction: column; line-height: 1; position: relative; flex-shrink: 0; }
.brand-main {
  font-family: var(--ff-marker);
  font-size: 26px;
  color: var(--ink);
  letter-spacing: .01em;
  transform: rotate(-1.5deg);
}
.brand-sub {
  font-family: var(--ff-marker);
  font-size: 15px;
  color: var(--pink);
  margin-top: 3px;
  transform: rotate(-1.5deg);
  position: relative;
  width: max-content;
}
.brand-sub::after {
  content: '';
  position: absolute;
  left: 0; right: -4px; bottom: -3px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  opacity: .85;
  transform: rotate(.5deg);
}
.brand-krone {
  position: absolute;
  right: -30px; top: -6px;
  width: 26px;
  transform: rotate(8deg);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .brand-krone { transform: rotate(-6deg) translateY(-3px) scale(1.12); }

.nav-links {
  display: flex;
  gap: clamp(12px, 2.4vw, 38px);
  margin: 0 auto;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  display: inline-block;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: url('../assets/img/strokes/rot-150.png') no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-links a:hover { transform: translateY(-2px) rotate(-1deg); color: var(--pink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--pink); }

.nav-social { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.nav-social a { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.nav-social a:hover { transform: rotate(-8deg) scale(1.18); }
.nav-social svg { width: 26px; height: 26px; fill: var(--ink); display: block; }
.nav-social img { width: 34px; height: 34px; display: block; mix-blend-mode: multiply; }

.nav-burger { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-cond);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  padding: .72em 1.6em;
  border-radius: 6px;
  position: relative;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.btn:hover { transform: translateY(-3px) rotate(-.6deg) scale(1.03); box-shadow: 0 8px 18px rgba(0, 0, 0, .28); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.btn-rot { background: #C2274C; background: linear-gradient(180deg, #D62F56, #B31F45); }
.btn-schwarz { background: #191512; }
.btn-schwarz .btn-pfeil { transition: transform .25s; }
.btn-schwarz:hover .btn-pfeil { transform: translateX(5px); }

/* Filter-Pills (Termine / Galerie) */
.pill {
  font-family: var(--ff-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel-hell);
  border: 2px solid #E5D5BC;
  border-radius: 999px;
  padding: 8px 20px;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s, color .2s, border-color .2s;
}
.pill:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--pink); color: var(--pink); }
.pill.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.pill.active:hover { color: #fff; }

/* ============================================================
   SCROLL-REVEALS
   ============================================================ */
.rv, .rv-pop, .rv-left, .rv-right {
  opacity: 0;
  transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.22, .8, .32, 1) var(--d, 0s);
  will-change: opacity, transform;
}
.rv        { transform: translateY(36px); }
.rv-pop    { transform: scale(.82) rotate(-2deg); transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.rv-left   { transform: translateX(-50px); }
.rv-right  { transform: translateX(50px); }
.rv.on, .rv-pop.on, .rv-left.on, .rv-right.on { opacity: 1; transform: none; }

/* ============================================================
   WOLKEN & DEKO-ANIMATIONEN
   ============================================================ */
@keyframes cloud-drift-a {
  0%   { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(calc(46 * var(--su))) translateY(calc(-8 * var(--su))); }
  100% { transform: translateX(0) translateY(0); }
}
@keyframes cloud-drift-b {
  0%   { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(calc(-34 * var(--su))) translateY(calc(6 * var(--su))); }
  100% { transform: translateX(0) translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(calc(-7 * var(--su))) rotate(.6deg); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50%      { transform: rotate(1.4deg); }
}
@keyframes float-pin {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.cloud-a { animation: cloud-drift-a 26s ease-in-out infinite; }
.cloud-b { animation: cloud-drift-b 34s ease-in-out infinite; }
.bob     { animation: bob 7s ease-in-out infinite; }
.sway    { animation: sway 9s ease-in-out infinite; transform-origin: 50% 100%; }

/* Lebendiger Himmel: Wolken ziehen, das Wasser atmet */
@keyframes wolken-zug {
  0%   { transform: translateX(0) translateY(0) scale(1); }
  50%  { transform: translateX(var(--wx, 60px)) translateY(var(--wy, -6px)) scale(1.04); }
  100% { transform: translateX(0) translateY(0) scale(1); }
}
@keyframes meer-atmen {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}
.sky-live { position: relative; overflow: hidden; }
.sky-live > img:first-child { animation: meer-atmen 11s ease-in-out infinite; transform-origin: 50% 78%; will-change: transform; }
.sky-cloud { position: absolute; pointer-events: none; opacity: .92; will-change: transform;
             animation: wolken-zug var(--wd, 40s) ease-in-out infinite; }

/* Beige-Panel (Karten-Untergrund) */
.panel {
  position: absolute;
  background: url('../assets/img/paper/beige-800.png') center / cover;
  border-radius: calc(16 * var(--su));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 4px 14px rgba(120, 90, 50, .05);
}

/* ============================================================
   POLAROIDS
   ============================================================ */
.polaroid {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .35s, z-index 0s;
  filter: drop-shadow(0 5px 12px rgba(60, 40, 20, .16));
}
.polaroid:hover {
  transform: rotate(var(--wr, 2.5deg)) scale(1.06) translateY(-6px) !important;
  filter: drop-shadow(0 16px 28px rgba(60, 40, 20, .28));
  z-index: 5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 0; line-height: 0; position: relative; }
.site-footer img { width: 100%; }
.footer-meta {
  background: #12100D;
  color: #CBB99B;
  font-family: var(--ff-cond);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  padding: 14px 16px 16px;
}
.footer-meta a { color: #F4E9D9; }
.footer-meta a:hover { color: var(--pink); }

/* ============================================================
   CHAT-WIDGET (Cali) — Stub
   ============================================================ */
.kiez-chat-btn {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  width: 66px; height: 66px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  background: #E9B94F;
}
.kiez-chat-btn img { width: 100%; height: 100%; object-fit: cover; }
.kiez-chat-btn:hover { transform: scale(1.12) rotate(-6deg); }
.kiez-chat-btn .chat-badge {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
}
.kiez-chat-panel {
  position: fixed;
  right: 22px; bottom: 100px;
  z-index: 200;
  width: min(320px, calc(100vw - 44px));
  background: var(--panel-hell);
  border: 2px solid #E5D5BC;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
  padding: 18px;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.kiez-chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.kiez-chat-panel h3 {
  font-family: var(--ff-marker);
  font-size: 19px;
  margin-bottom: 8px;
}
.kiez-chat-panel p { font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
.kiez-chat-panel .btn { font-size: 14px; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    padding: 12px 24px 20px;
    box-shadow: 0 18px 30px rgba(60, 40, 20, .16);
  }
  .nav-burger {
    display: block;
    margin-left: auto;
    font-family: var(--ff-cond);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 2px solid var(--ink);
    border-radius: 8px;
  }
  .nav-social { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .rv, .rv-pop, .rv-left, .rv-right { opacity: 1; transform: none; }
}

/* Versteckter semantischer Text (Crop-Sektionen) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
