/* =====================================================================
   SCHWUNG (24.11.2026) – mehr Leben für ALLE Seiten von muntafuner.at
   Wunsch Holger: „wirkt fad … schwebende Kacheln, Verläufe bei Heute/Morgen".
   Eigene Datei NACH munta.css + mobil.css (base.php), damit munta.css
   unangetastet bleibt. Rückbau = Zeile in base.php entfernen.
   Bewegung nur, wenn das System sie nicht abgeschaltet hat.
   ===================================================================== */

:root {
  --sw-verlauf-orange: linear-gradient(135deg, #FE8A00 0%, #FFB547 100%);
  --sw-verlauf-navy:   linear-gradient(135deg, #001531 0%, #0B3A66 55%, #176B9A 100%);
  --sw-verlauf-enzian: linear-gradient(135deg, #0B5C8A 0%, #2E9BD6 100%);
  --sw-verlauf-wald:   linear-gradient(135deg, #1E3B2C 0%, #3F7A55 100%);
  --sw-verlauf-gold:   linear-gradient(135deg, #C9861A 0%, #F2C14E 100%);
  --sw-schatten:       0 2px 6px rgba(0,21,49,.06), 0 8px 24px rgba(0,21,49,.08);
  --sw-schatten-hoch:  0 6px 14px rgba(0,21,49,.10), 0 22px 44px rgba(0,21,49,.18);
}

/* ---------- Hintergrund: sanfte Farbwolken statt reinem Beige ---------- */
body {
  background:
    radial-gradient(900px 520px at 100% -5%, rgba(46,155,214,.10), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(254,138,0,.07), transparent 60%),
    radial-gradient(900px 600px at 110% 85%, rgba(63,122,85,.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- Überschriften ---------- */
.display {
  background: var(--sw-verlauf-navy);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand-navy);
}
.hero .display, .tonight .display, .wasgeht .display, [class*="dunkel"] .display { -webkit-text-fill-color: currentColor; background: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .7rem; border-radius: 999px;
  background: rgba(254,138,0,.12); color: #A85400;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sw-verlauf-orange); box-shadow: 0 0 0 3px rgba(254,138,0,.18); }
.hero .eyebrow, .tonight .eyebrow { background: rgba(255,255,255,.14); color: #fff; }

.section-title { position: relative; padding-bottom: .35rem; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 54px; height: 4px; border-radius: 4px; background: var(--sw-verlauf-orange);
}

/* ---------- Kopfbild der Unterseiten: schwebt + langsamer Zoom ---------- */
.kopfbild__medium { position: relative; border-radius: 14px; box-shadow: var(--sw-schatten-hoch); overflow: hidden; transform: rotate(.6deg); transition: transform .5s ease; }
.kopfbild__medium:hover { transform: rotate(0) scale(1.01); }
.kopfbild__img { animation: sw-zoom 22s ease-in-out infinite alternate; }
.kopfbild__medium::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 40%, rgba(0,21,49,.25)); pointer-events: none; }
@keyframes sw-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Karten: schweben, heben sich, leuchten ---------- */
.card {
  border-radius: 12px;
  box-shadow: var(--sw-schatten);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease, translate .6s cubic-bezier(.2,.8,.2,1), opacity .6s ease;
}
.card--link:hover, .card--link:focus-visible,
a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sw-schatten-hoch), 0 0 0 2px rgba(254,138,0,.22);
}
.card[class*="card--accent"] { border-top-width: 4px; }

/* Datumsblock als kleine Farbkachel */
.date-block {
  border: 0; border-radius: 10px;
  background: var(--sw-verlauf-navy); color: #fff;
  box-shadow: 0 4px 12px rgba(0,21,49,.22);
}
.date-block__month { color: rgba(255,255,255,.78); }
.date-block--today { background: var(--sw-verlauf-orange); color: var(--brand-navy); box-shadow: 0 4px 14px rgba(254,138,0,.4); }
.date-block--today .date-block__month { color: rgba(0,21,49,.75); }
.card--link:hover .date-block { transform: rotate(-4deg) scale(1.06); }
.date-block { transition: transform .3s cubic-bezier(.2,.8,.2,1); }

/* ---------- Filter-Chips: Pillen mit Verlauf ---------- */
.filterchip {
  border-radius: 999px; border-color: rgba(0,21,49,.14);
  background: rgba(255,255,255,.75);
  box-shadow: 0 1px 3px rgba(0,21,49,.06);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.filterchip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,21,49,.12); background: #fff; }
.filterchip--active, .filterchip--active:hover {
  background: var(--sw-verlauf-navy); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(11,58,102,.35);
}
/* Zeitraum: jede Zeit ihre eigene Farbe */
.filterchip--active[href*="zeit=heute"]      { background: var(--sw-verlauf-orange); color: var(--brand-navy); box-shadow: 0 6px 18px rgba(254,138,0,.4); }
.filterchip--active[href*="zeit=morgen"]     { background: var(--sw-verlauf-enzian); box-shadow: 0 6px 18px rgba(46,155,214,.4); }
.filterchip--active[href*="zeit=woche"],
.filterchip--active[href*="zeit=wochenende"] { background: var(--sw-verlauf-wald); box-shadow: 0 6px 18px rgba(63,122,85,.4); }
.filterchip--active[href*="zeit=alle"]       { background: var(--sw-verlauf-gold); color: var(--brand-navy); box-shadow: 0 6px 18px rgba(201,134,26,.4); }
.filterchip[href*="zeit=heute"]:not(.filterchip--active)  { border-left: 4px solid #FE8A00; }
.filterchip[href*="zeit=morgen"]:not(.filterchip--active) { border-left: 4px solid #2E9BD6; }
.filterchip[href*="zeit=woche"]:not(.filterchip--active),
.filterchip[href*="zeit=wochenende"]:not(.filterchip--active) { border-left: 4px solid #3F7A55; }
.filterchip[href*="zeit=alle"]:not(.filterchip--active)   { border-left: 4px solid #D99D2B; }
/* Winter-Reiter funkelt */
.events-umschalter .filterchip[href$="/winter"] { background: linear-gradient(135deg, #E8F5FF, #fff); border-color: #8FD3FF; }
.events-umschalter .filterchip--active[href$="/winter"] { background: linear-gradient(135deg, #0B3A66, #2E9BD6 70%, #8FD3FF); color: #fff; }

/* ---------- Knöpfe: Verlauf + Glanz ---------- */
.btn { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  position: relative; overflow: hidden;
  background: var(--sw-verlauf-orange); border-color: transparent;
  box-shadow: 0 6px 18px rgba(254,138,0,.35);
}
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn--primary:hover::after { left: 120%; }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(254,138,0,.5); }

/* ---------- Kacheln im Entdecken-Raster und Feeds ---------- */
.dtile, .feedcard, .postcard, .montichip {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, translate .6s cubic-bezier(.2,.8,.2,1), opacity .6s ease;
}
.dtile:hover, .feedcard:hover, .postcard:hover { transform: translateY(-6px); box-shadow: var(--sw-schatten-hoch); }
.montichip:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 8px 18px rgba(0,21,49,.14); }

/* Filterkasten */
.filterbox { border-radius: 12px; box-shadow: var(--sw-schatten); border-color: rgba(0,21,49,.07); }

/* ---------- Einblenden beim Scrollen (nur mit JS, siehe schwung.js) ---------- */
html.sw-js .sw-rein { opacity: 0; translate: 0 22px; }
html.sw-js .sw-rein.sw-da { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .kopfbild__img { animation: none; }
  .card, .filterchip, .btn, .dtile, .feedcard, .postcard, .montichip, .date-block, .kopfbild__medium { transition: none; }
  .card--link:hover, a.card:hover, .filterchip:hover, .btn:hover, .dtile:hover, .feedcard:hover { transform: none; }
  html.sw-js .sw-rein { opacity: 1; translate: none; }
}

/* Reiter oben (Alle Termine / Was geht? / Winter) behalten ihr eigenes Aussehen */
.events-umschalter .filterchip:not(.filterchip--active) { border-left: 1px solid rgba(0,21,49,.14); }
.events-umschalter .filterchip--active[href*="zeit="] { background: var(--sw-verlauf-navy); color: #fff; box-shadow: 0 6px 18px rgba(11,58,102,.35); }
.events-umschalter .filterchip[href$="/winter"]:not(.filterchip--active) { border: 1px solid #8FD3FF; }

/* ---------- Bilder auf Terminkarten (24.11.2026) ---------- */
.card__bild { position: relative; height: 132px; overflow: hidden; background: var(--surface-soft); }
.card__bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,21,49,0) 45%, rgba(0,21,49,.35)); pointer-events: none; }
.card--link:hover .card__bild img { transform: scale(1.08); }
.card__bildhinweis {
  position: absolute; right: 8px; top: 8px; z-index: 1;
  font-size: .62rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(0,21,49,.55); color: #fff; padding: 1px 7px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card__bild + .card__body .date-block { position: relative; z-index: 2; margin-top: -38px; border: 3px solid #fff; }
.card__bild + .card__body .card__event-head { align-items: flex-end; }
@media (prefers-reduced-motion: reduce) { .card--link:hover .card__bild img { transform: none; } }

/* Gleiche Symbolbilder nebeneinander abwechseln: anderer Ausschnitt / gespiegelt */
.card__bild--v1 img { object-position: 15% 50%; }
.card__bild--v2 img { object-position: 85% 50%; scale: -1 1; }
.card__bild--v3 img { object-position: 50% 80%; scale: -1 1; }

/* Hinweis dezenter (24.11.2026): klein unten links, kaum sichtbar, bleibt aber lesbar */
.card__bildhinweis { top: auto; right: auto; left: 8px; bottom: 6px; background: none; backdrop-filter: none; padding: 0; font-size: .58rem; font-weight: 500; color: rgba(255,255,255,.72); text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ---------- Betriebskarten (/regional) mit Bild, schwebend (24.11.2026) ---------- */
.bizcard { border-radius: 12px; overflow: hidden; box-shadow: var(--sw-schatten); border-color: rgba(0,21,49,.07); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, translate .6s cubic-bezier(.2,.8,.2,1), opacity .6s ease; }
.bizcard:hover, .bizcard:focus-within { transform: translateY(-6px); box-shadow: var(--sw-schatten-hoch), 0 0 0 2px rgba(254,138,0,.22); }
.bizcard__bild { display: block; margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-4)) var(--space-2); height: 120px; }
.bizcard:hover .bizcard__bild img { transform: scale(1.08); }
/* Hinweis „geht zur Webseite" auf Terminkarten */
.fact--web { color: var(--orange-dark, #A85400); font-weight: 600; }

/* KI-Hinweis auch auf Feed-Karten der Startseite (25.11.2026) */
.card__media--symbol { position: relative; }

/* ---------- Monti links am Hero, halb herausragend (25.11.2026, Variante 1) ----------
   Gespiegelt, damit Blick und Daumen zur Überschrift zeigen. Ragt so weit links heraus,
   wie der Seitenrand Platz hat (max. 72px, nie aus dem Fenster). Der Text rückt um den
   Teil ein, den Monti im Bild belegt. Rechts ist der freigehaltene Platz weg -> ruhiger.
   Unter 1101px bleibt Monti wie bisher ausgeblendet (munta.css). Rückbau: Block löschen. */
@media (min-width: 1101px) {
  .munta-design .hero.hero { overflow: visible; --monti-w: 136px; --monti-raus: clamp(0px, calc((100vw - 1240px) / 2 - 14px), 72px); }
  .munta-design .hero.hero .hero__media { border-radius: inherit; overflow: hidden; }
  .munta-design .hero.hero .hero__mascot {
    left: calc(-1 * var(--monti-raus)); right: auto; bottom: -6px;
    width: var(--monti-w); height: auto; transform: scaleX(-1); z-index: 3;
    filter: drop-shadow(-6px 10px 14px rgba(0,21,49,.35));
  }
  .munta-design .hero.hero .hero__inner { padding-left: calc(2.5rem + var(--monti-w) - var(--monti-raus)); padding-right: 2.5rem; }
}

/* ---------- Monti schaut hinter dem Banner hervor (25.11.2026) ----------
   Ab 1480px (genug Seitenrand): neues Bild monti-peek, dessen senkrechte Körperkante (93,05 % der Bildbreite)
   genau auf dem linken Bannerrand liegt. Der Körper bleibt außerhalb, nur die Finger greifen aufs Bild.
   Schatten: Monti wirft einen weichen Schatten nach links, und der Banner einen dunklen Streifen auf
   seine Seite an der Kante. Darunter (1101-1479px) gilt Variante 1 oben, unter 1101px ist Monti aus. */
.hero__monti { display: none; }
@media (min-width: 1480px) {
  .munta-design .hero.hero .hero__mascot { display: none; }
  .munta-design .hero.hero .hero__inner { padding-left: 2.5rem; }
  .munta-design .hero.hero .hero__monti {
    --w: clamp(112px, calc(((100vw - 1240px) / 2 - 16px) / .9305), 138px);
    display: block; position: absolute; z-index: 3; pointer-events: none;
    width: var(--w); left: calc(var(--w) * -.9305); top: 13%;
    filter: drop-shadow(-10px 14px 16px rgba(0,21,49,.26)) drop-shadow(1px 3px 3px rgba(0,21,49,.28));
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
            mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
    animation: monti-gucken 1s cubic-bezier(.2,.9,.3,1.25) .5s both;
  }
  .hero__monti img { display: block; width: 100%; height: auto; }
  /* Schatten der Bannerkante auf Montis Körper – nur wo Monti ist (Maske = Monti selbst) */
  .hero__monti::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to left, transparent 0 6.95%, rgba(0,21,49,.42) 6.95%, rgba(0,21,49,0) 19%);
    -webkit-mask: url("../img/monti-peek-480.webp") center / 100% 100% no-repeat;
            mask: url("../img/monti-peek-480.webp") center / 100% 100% no-repeat;
  }
  @keyframes monti-gucken {
    from { transform: translateX(22%) rotate(4deg); opacity: 0; }
    60%  { opacity: 1; }
    to   { transform: none; opacity: 1; }
  }
}
@media (min-width: 1480px) and (prefers-reduced-motion: reduce) { .munta-design .hero.hero .hero__monti { animation: none; } }

/* Inline-Symbole (25.11.2026): .icon--inline hatte nirgends eine Größe -> auf /erstellen wurde das
   Orts-Symbol bildschirmbreit. Grundgröße = Schriftgröße; spezifischere Regeln (z. B. .ich__ort .icon) gewinnen. */
.icon--inline { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

/* ---------- Handy/Tablet: Monti schaut über die obere Bannerkante (25.11.2026) ----------
   Bild monti-oben: Kinnlinie = Kante bei 92 % der Bildhöhe, darunter nur die Fingerspitzen.
   Der Rahmen schneidet genau dort ab, deshalb taucht Monti beim Laden hinter der Kante auf
   und zwinkert danach einmal (zweites, deckungsgleiches Bild). Keine Daueranimation. */
.hero__monti-oben { display: none; }
@media (max-width: 1100px) {
  .munta-design .hero.hero { overflow: visible; margin-top: 3.3rem; }
  .munta-design .hero.hero .hero__media { border-radius: inherit; overflow: hidden; }
  /* 26.11.2026 Safari-Fix: kein overflow:hidden + filter + festgehaltene Transform-Animation mehr
     (iOS-Safari ließ Monti nach der Animation verschwinden). Abschneiden an der Bannerkante per
     clip-path am Bild, Animation nur mit backwards-Füllung -> danach steht ein normales Bild da. */
  .munta-design .hero.hero .hero__monti-oben {
    --mw: 76px;
    display: block; position: absolute; z-index: 3; pointer-events: none;
    left: 50%; margin-left: calc(var(--mw) / -2); width: var(--mw); height: calc(var(--mw) * 637 / 858);
    bottom: calc(100% - var(--mw) * 637 / 858 * .08);   /* Fingerspitzen liegen auf dem Banner */
  }
  .hero__monti-oben img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block;
    filter: drop-shadow(0 3px 3px rgba(0,21,49,.35)); }
  .hero__monti-oben .mo-auf { animation: mo-hoch 1.2s cubic-bezier(.2,.8,.25,1) .5s backwards; }
  .hero__monti-oben .mo-zw  { opacity: 0; animation: mo-hoch 1.2s cubic-bezier(.2,.8,.25,1) .5s backwards, mo-zwinker .42s ease-in-out 2.2s 1 backwards; }
  @keyframes mo-hoch { from { transform: translateY(100%); clip-path: inset(0 0 100% 0); } to { transform: translateY(0); clip-path: inset(0 0 0 0); } }
  @keyframes mo-zwinker { 0% { opacity: 0; } 18% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; } }
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .hero__monti-oben .mo-auf, .hero__monti-oben .mo-zw { animation: none; }
}

/* ---------- Leerstelle kompakt (25.11.2026) – war am Handy ein Drittel des Bildschirms ---------- */
.munta-design .leerstelle {
  display: flex; align-items: center; gap: .6rem; flex-wrap: nowrap;
  text-align: left; padding: .7rem .9rem; border-radius: 10px;
}
.munta-design .leerstelle .leerstelle__icon { margin: 0; }
.munta-design .leerstelle .leerstelle__icon .icon { width: 20px; height: 20px; }
.munta-design .leerstelle .leerstelle__satz { margin: 0; flex: 1 1 0; min-width: 7rem; font-size: .9rem; line-height: 1.35; }
.munta-design .leerstelle .btn { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; box-shadow: none; flex: none; white-space: nowrap; }

/* 26.11.2026: Spritpreis-Kasten entfernt - Montis Tipps nehmen die ganze Breite. */
.monti-zeile { grid-template-columns: minmax(0, 1fr); }
