/* MaTo Events – Reduktion und ruhige Motion (v2, 18.11.2026)
   Teil 1 nimmt Muster weg, die nach Baukasten aussehen. Teil 2 sind vier Bewegungen. */

:root { interpolate-size: allow-keywords; --fx-ease: cubic-bezier(.2, .7, .2, 1); }

/* ---------- Teil 1: Reduktion ---------- */
/* Kleine Versal-Etiketten über jeder Überschrift, Kartennummern und Einleitungssätze unter Überschriften entfallen */
main .section .eyebrow, main .section .scard__kicker, main .section .scard__no, main .section .num, main .section__head .lead { display: none; }

/* Mehr Luft, größere Überschriften, linksbündig */
main .section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
main .section h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; max-width: 20ch; text-wrap: balance; }
main .section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Karten ohne Kasten: Linie statt Rahmen und Schatten. Die Cheval-Spieltische behalten ihre Bildkarten. */
main .section .card, main .section .promise, [data-brand="mampfer"] #leistungen .scard { background: none; border: 0; box-shadow: none; border-radius: 0; }
[data-brand="mampfer"] #leistungen .scard__body { padding-inline: 0; }
[data-brand="cheval"] .scard { border-radius: 8px; }
[data-brand="cheval"] .scard__media { aspect-ratio: 4 / 4.4; }

/* Kleiner Mampfer: Leistungen als ruhige Liste */
[data-brand="mampfer"] #leistungen .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
[data-brand="mampfer"] #leistungen .scard { border-top: 1px solid var(--line); padding: 1.4rem 0 1.6rem; }
[data-brand="mampfer"] #leistungen .scard h3 { font-size: 1.35rem; }

/* Startseite: kein Chip zwischen den beiden Markenbildern, die Marken stehen für sich */
[data-brand="mato"] .split .medal { display: none; }

/* FAQ als schlichte Linienliste */
.faq__list { max-width: 860px; }
.faq__item summary { font-size: clamp(1.05rem, 1.6vw, 1.3rem); padding-block: 1.1rem; }
.faq__item { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.faq__item::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .4s var(--fx-ease), opacity .3s ease, content-visibility .4s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; opacity: 1; }

.site-header { transition: box-shadow .3s var(--fx-ease); }
.site-header.fx-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, .08); }

/* ---------- Teil 2: Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 72px) + 16px); }
  @view-transition { navigation: auto; }

  .fx-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
  .fx-wi { display: inline-block; translate: 0 110%; animation: fx-up .9s var(--fx-ease) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }

  .fx-wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--fx-ease); }
  .fx-wipe.fx-in { clip-path: inset(0 0 0 0); }
  .fx-wipe img { scale: 1.1; transition: scale 1.5s var(--fx-ease); }
  .fx-wipe.fx-in img { scale: 1; }

  .fx-parallax { translate: 0 var(--fx-y, 0px); scale: 1.1; will-change: translate; }

  @keyframes fx-up { to { translate: 0 0; } }
}

/* ---------- Teil 3: Partner-Leisten (zwei langsam gegenläufige Bänder) ---------- */
.fx-partners { padding-block: clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.fx-partners h2 { margin: 0 0 clamp(1.8rem, 4vw, 3rem); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; text-wrap: balance; }
.fx-marquee { overflow: hidden; overflow: clip; border-block: 1px solid var(--line); background: #fff; color-scheme: light; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fx-marquee + .fx-marquee { border-top: 0; }
.fx-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.fx-logo a { display: grid; place-items: center; height: 100%; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; }
.fx-logo { flex: none; display: grid; place-items: center; height: clamp(88px, 11vw, 120px); padding-inline: clamp(2rem, 5vw, 4.5rem); }
.fx-logo img { height: clamp(42px, 5.5vw, 62px); width: auto; max-width: 190px; object-fit: contain; filter: grayscale(1) contrast(1.6); opacity: .85; transition: filter .5s var(--fx-ease), opacity .5s ease; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
/* Farbe nur bei echter Maus (auf dem Handy bliebe :hover nach dem Tippen hängen) und bei Tastaturfokus */
@media (hover: hover) { .fx-logo a:hover img { filter: none; opacity: 1; } }
.fx-logo a:focus-visible img { filter: none; opacity: 1; }
/* Bewegung macht enhance.js (wischen und ziehen möglich); .is-drag: gerade gezogen */
.fx-marquee.is-js .fx-track { will-change: transform; }
.fx-marquee.is-drag { cursor: grabbing; }
.fx-marquee.is-drag a { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-marquee { -webkit-mask-image: none; mask-image: none; }
  .fx-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .fx-logo[aria-hidden="true"] { display: none; }
}
/* Pinocchio: feine Schrift im Logo, deshalb größer und kontrastreicher */
.fx-logo--lg img { height: clamp(78px, 9vw, 108px); max-width: 240px; filter: grayscale(1) contrast(1.25); opacity: 1; }
@media (hover: hover) { .fx-logo--lg a:hover img { filter: none; } }
.fx-logo--lg a:focus-visible img { filter: none; }

/* ---------- Teil 4: Anlässe (Cheval) ---------- */
.fx-occ__intro { max-width: 52ch; margin: 0 0 clamp(1.6rem, 4vw, 2.6rem); opacity: .85; }
.fx-occ__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.fx-occ__item { border-top: 1px solid var(--line); }
.fx-occ__item > a, .fx-occ__item > span { display: block; padding: 1.05rem 0; font-size: clamp(1.1rem, 1.7vw, 1.35rem); text-decoration: none; color: inherit; }
.fx-occ__item > a { transition: padding-left .3s var(--fx-ease), color .3s ease; }
.fx-occ__item > a:hover, .fx-occ__item > a:focus-visible { padding-left: .5rem; color: var(--accent, currentColor); }
.fx-occ__item > a span { opacity: .6; }
.fx-occ__more { margin: clamp(1.6rem, 4vw, 2.4rem) 0 0; }
.fx-occ__more a { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Teil 5: Kleiner Mampfer – Leistungen als Kacheln ---------- */
.fx-tiles:not(.is-js) .fx-tiles__grid, .fx-tiles:not(.is-js) .fx-panel__close { display: none; }
.fx-tiles__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.7rem, 2vw, 1.2rem); }
@media (min-width: 760px) { .fx-tiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fx-tile { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: clamp(104px, 14vw, 150px); display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; padding: clamp(1rem, 2.2vw, 1.5rem); position: relative; background: var(--surface, #f6f4ee); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s ease, background-color .3s ease, translate .3s var(--fx-ease); }
.fx-tile:hover { translate: 0 -3px; border-color: var(--accent, currentColor); }
.fx-tile:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; }
.fx-tile__no { font-size: .8rem; letter-spacing: .12em; opacity: .55; }
.fx-tile__title { font-size: clamp(.92rem, 1.9vw, 1.35rem); line-height: 1.2; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.fx-tile__plus { position: absolute; right: clamp(1rem, 2.2vw, 1.5rem); top: clamp(1rem, 2.2vw, 1.5rem); width: 1.1rem; height: 1.1rem; }
.fx-tile__plus::before, .fx-tile__plus::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transition: rotate .3s var(--fx-ease); }
.fx-tile__plus::after { rotate: 90deg; }
.fx-tile.is-open { border-color: var(--accent, currentColor); background: var(--surface-2, var(--surface, #ece8dd)); }
.fx-tile.is-open .fx-tile__plus::after { rotate: 0deg; }
.fx-panels { margin-top: clamp(.7rem, 2vw, 1.2rem); }
.fx-panel { position: relative; padding: clamp(1.4rem, 3.5vw, 2.6rem); background: var(--surface-2, var(--surface, #ece8dd)); border: 1px solid var(--accent, var(--line)); border-radius: 14px; scroll-margin-top: calc(var(--header-h, 72px) + 16px); }
.fx-panel[hidden] { display: none; }
.fx-panel h3 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.fx-panel p { max-width: 62ch; margin: 0 0 1.4rem; line-height: 1.6; }
.fx-panel .fx-panel__kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin: 0 0 .6rem; }
.fx-panel__close { all: unset; cursor: pointer; position: absolute; top: .8rem; right: .8rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; border-radius: 50%; }
.fx-panel__close:hover, .fx-panel__close:focus-visible { background: rgba(0, 0, 0, .08); outline: none; }
@media (prefers-reduced-motion: no-preference) { .fx-panel { animation: fx-panel-in .45s var(--fx-ease); } @keyframes fx-panel-in { from { opacity: 0; translate: 0 -8px; } } }
/* weystech: sehr breites Wortlogo (ca. 11:1), braucht mehr Breite */
.fx-logo--wide img { height: auto; width: clamp(150px, 16vw, 220px); max-width: none; }
/* Cheval: drehender Chip zeigt das MaTo-Logo; Rand in Schwarz/Weiß passend zum Logo */
.coin.coin--mato .coin__layer { background: conic-gradient(#f4f1ec 0 8%, #111 8% 16%, #f4f1ec 16% 25%, #111 25% 33%, #f4f1ec 33% 41%, #111 41% 50%, #f4f1ec 50% 58%, #111 58% 66%, #f4f1ec 66% 75%, #111 75% 83%, #f4f1ec 83% 91%, #111 91% 100%); }
.coin.coin--mato .coin__face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
