/* WEXIT GAMES – Designsystem (reines CSS, kein Build-Schritt nötig) */
:root {
  --forest: #163a27;
  --forest-deep: #102c1e;
  --forest-soft: #dce8d4;
  --gold: #4f7f3a;
  --highlight: #d97706;
  --highlight-fg: #fffdf8;
  --bg: #faf9f6;
  --card: #ffffff;
  --secondary: #eae6df;
  --text: #302e29;
  --muted: #655f54;
  --border: #c9c2b3;
  --radius: 0.5rem;
  --shell: min(100% - 2rem, 76rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; font-weight: 900; line-height: 1.1; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #26190a; }

.shell { width: var(--shell); margin-inline: auto; }
.muted { color: var(--muted); }
.highlight { color: var(--highlight); }
.accent { color: var(--gold); }
.primary { color: var(--forest); }
.eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20,44,32,.06); }
.section { padding: 4rem 0; }
.section-alt { background: var(--secondary); }
.forest-grid {
  background-image: linear-gradient(rgba(27,59,43,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27,59,43,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.only-mobile { display: inline; }
.only-desktop { display: none; }

/* Icons */
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: calc(var(--radius) - 2px);
  padding: .7rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn-icon:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn-primary { background: var(--forest); color: #fdfdf9; }
.btn-primary:hover { background: var(--forest-deep); }
.btn-highlight { background: var(--highlight); color: var(--highlight-fg); }
.btn-highlight:hover { background: #bf6905; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--secondary); }
.btn-ghost-light { background: rgba(27,59,43,.3); color: #fdfdf9; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: #fdfdf9; color: var(--forest); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-icon {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; color: inherit;
}
.btn-icon:hover { background: var(--secondary); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250,249,246,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; min-width: 0; flex: 0 0 auto; }
.brand img { width: min(30vw, 160px); height: auto; max-height: 4.5rem; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--forest); color: #fdfdf9; flex: 0 0 auto; }
.brand-text strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.1rem; line-height: 1; }
.brand-text span { display: none; font-size: .625rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.nav-desktop { display: none; gap: 1.25rem; }
.nav-desktop a { font-size: .9rem; font-weight: 700; color: rgba(35,48,42,.72); }
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.nav-mobile { display: grid; gap: .25rem; padding: 1rem; border-top: 1px solid var(--border); background: var(--bg); }
.nav-mobile a { padding: .8rem .75rem; border-radius: .5rem; font-weight: 700; }
.nav-mobile a:hover { background: var(--secondary); }
.nav-toggle .menu-close { display: none; }
.nav-toggle[aria-expanded="true"] .menu-close { display: block; }
.nav-toggle[aria-expanded="true"] .menu-open { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--forest); color: #fdfdf9; min-height: min(42rem, 80svh); display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--forest) 8%, rgba(27,59,43,.82) 45%, rgba(27,59,43,.15) 100%); }
.hero-content { position: relative; z-index: 1; padding: 3.5rem 0; max-width: 40rem; }
.hero h1 { margin-top: 1.4rem; font-size: clamp(2.2rem, 8vw, 4.2rem); }
.brand-script { margin-top: 1rem; font: 700 clamp(2rem, 5vw, 3rem)/1 "Caveat", cursive; color: #a6cb86; }
.hero .hero-text { margin-top: 1.1rem; color: rgba(253,253,249,.86); }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid rgba(253,253,249,.3); background: rgba(27,59,43,.5); border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }

/* Faktenbar */
.facts { background: var(--forest); color: #fdfdf9; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(253,253,249,.15); }
.facts-grid > div { display: flex; align-items: center; gap: .75rem; padding: 1.15rem .75rem; border-bottom: 1px solid rgba(253,253,249,.15); }
.facts-grid > div + div { border-left: 1px solid rgba(253,253,249,.15); }
.facts-grid span.label { display: block; font-size: .625rem; font-weight: 700; text-transform: uppercase; color: rgba(253,253,249,.6); }
.facts-grid strong { font-size: .9rem; }

/* Sektionen */
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: .75rem; font-size: clamp(1.8rem, 5vw, 3rem); }
.section-head p:last-child { margin-top: 1rem; }
.section-dark { background: var(--forest); color: #fdfdf9; padding: 4rem 0; }
.section-dark .muted { color: rgba(253,253,249,.68); }

/* Touren */
.filter-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 2rem; }
.filter-row .btn { flex: 0 0 auto; }
.tour-grid { display: grid; gap: 1.5rem; }
.tour-card { overflow: hidden; transition: transform .3s, box-shadow .3s; }
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,44,32,.14); }
.tour-image { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.tour-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 1rem; top: 1rem; background: var(--gold); color: #26190a; border-radius: 999px; padding: .3rem .75rem; font-size: .7rem; font-weight: 800; }
.tour-body { padding: 1.25rem; }
.tour-body h3 { margin-top: .5rem; font-size: 1.25rem; }
.tour-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0; font-size: .78rem; font-weight: 700; color: var(--muted); }
.tour-stats span { display: flex; align-items: center; gap: .4rem; }
.tour-stats .icon { width: 1rem; height: 1rem; color: var(--forest); }
.tour-body .btn { margin-top: 1.25rem; }
.tour-card-theme { border-top: 4px solid var(--tour-tone); }
.tour-card-kids { --tour-tone: var(--gold); }
.tour-card-young { --tour-tone: #a8471f; }
.tour-card-adult { --tour-tone: var(--forest); }
.tour-card { display: flex; flex-direction: column; }
.tour-body { display: flex; flex: 1; flex-direction: column; }
.tour-body > .muted { flex: 1; }
.tour-image { aspect-ratio: 4 / 3; background: #e2d5b9; border-bottom: 1px solid var(--border); }
.tour-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(16,44,30,.72)); pointer-events: none; }
.tour-image > img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s; }
.tour-card:hover .tour-image img { transform: scale(1.05); }
.tour-character-sign { position: absolute; z-index: 1; bottom: .75rem; left: .75rem; max-width: calc(100% - 1.5rem); background: #e2d5b9; color: #403324; border-left: 4px solid var(--tour-tone); transform: rotate(-2deg); padding: .4rem .75rem; font: 900 .9rem/1.2 "Montserrat", sans-serif; box-shadow: 0 4px 10px rgba(20,44,32,.18); }
@media (min-width: 640px) { .tour-character-sign { bottom: 1rem; left: 1rem; font-size: 1rem; } }
.story-tours { background-color: #e9dfca; background-image: linear-gradient(rgba(74,63,53,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(74,63,53,.06) 1px, transparent 1px); background-size: 36px 36px; }
.story-hero { position: relative; overflow: hidden; isolation: isolate; }
.story-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: repeating-linear-gradient(140deg, transparent 0 38px, rgba(255,255,255,.1) 39px 40px); pointer-events: none; }
.story-hero::after { content: ""; position: absolute; right: max(2rem, calc((100vw - 76rem) / 2)); bottom: -6rem; width: min(30vw, 18rem); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 1.25rem rgba(255,255,255,.04), 0 0 0 4rem rgba(255,255,255,.03); pointer-events: none; }

/* Schritte */
.steps { display: grid; gap: 2rem; margin-top: 3rem; }
.step { border-top: 1px solid rgba(253,253,249,.25); padding-top: 1.5rem; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top .icon { width: 2.2rem; height: 2.2rem; color: var(--gold); }
.step-number { font-family: "Montserrat", sans-serif; font-size: 2.2rem; font-weight: 900; color: rgba(253,253,249,.18); }
.step h3 { margin-top: 1.25rem; font-size: 1.2rem; font-weight: 700; }
.step p { margin-top: .6rem; font-size: .9rem; color: rgba(253,253,249,.68); }

/* Zweispaltige Layouts */
.split { display: grid; gap: 2.5rem; }
.icon-list { display: grid; gap: .85rem; margin-top: 2rem; }
.icon-list > div { display: flex; align-items: center; gap: .85rem; font-weight: 700; }
.icon-round { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--forest-soft); color: var(--forest); flex: 0 0 auto; }
.cards-3 { display: grid; gap: 1.25rem; }
.cards-3 .card { padding: 1.5rem; }
.cards-3 h2, .cards-3 h3 { margin-top: 1.1rem; font-size: 1.2rem; }
.cards-3 p { margin-top: .75rem; font-size: .9rem; }
.cards-3 .icon { width: 2.2rem; height: 2.2rem; color: var(--highlight); }
.stage-list { display: grid; gap: 1rem; }
.stage { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem; }
.aside-dark { background: var(--forest); color: #fdfdf9; border-radius: var(--radius); padding: 1.75rem; height: fit-content; }
.aside-dark ul { margin: 1rem 0 0; padding-left: 1.1rem; color: rgba(253,253,249,.75); font-size: .9rem; }
.aside-dark .btn { margin-top: 1.75rem; width: 100%; }
.prose { max-width: 48rem; }
.prose p { margin-top: .75rem; color: var(--muted); }

/* Zusatzpakete */
.package-panel { display: grid; gap: 1.5rem; margin-top: 2rem; padding: 1.25rem; background-image: linear-gradient(135deg, rgba(220,232,212,.7), transparent 52%); }
.package-intro h2 { margin-top: .75rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.package-intro .muted { margin-top: .75rem; }
.package-grid { display: grid; gap: .85rem; }
.package-card { display: flex; align-items: flex-start; gap: .85rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 1rem; transition: transform .2s, box-shadow .2s; }
.package-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,44,32,.12); }
.package-card h3 { font-size: 1rem; }
.package-card p { margin-top: .25rem; font-size: .88rem; }
.package-card strong { display: block; margin-top: .65rem; color: var(--highlight); font-size: .75rem; }

/* Unterseiten-Hero */
.page-hero { background: var(--forest); color: #fdfdf9; padding: 4rem 0; }
.page-hero h1 { margin-top: 1rem; font-size: clamp(2rem, 7vw, 3.6rem); overflow-wrap: break-word; }
.page-hero .hero-text { margin-top: 1.2rem; max-width: 42rem; color: rgba(253,253,249,.72); }

/* FAQ */
.faq { border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); padding: 0 1.25rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; color: var(--highlight); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 1.15rem; color: var(--muted); }

/* CTA */
.cta-band { background: var(--gold); color: #26190a; padding: 3rem 0; }
.cta-inner { display: grid; gap: 1.5rem; }
.cta-inner h2 { margin-top: .5rem; font-size: 1.8rem; }

/* Formulare */
.form-grid { display: grid; gap: 1rem; padding: 1.5rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 700; }
.option-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.option-fieldset legend { margin-bottom: .4rem; font-size: .85rem; font-weight: 700; }
.option-grid { display: grid; gap: .6rem; }
.option-check { display: flex; align-items: flex-start; gap: .7rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); padding: .75rem; cursor: pointer; }
.option-check input { width: 1rem; margin-top: .18rem; accent-color: var(--forest); flex: 0 0 auto; }
.option-check strong { display: block; font-size: .9rem; line-height: 1.2; }
.option-check small { display: block; margin-top: .25rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
input, select, textarea {
  font: inherit; color: inherit; width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: .5rem; padding: .65rem .75rem;
}
input[type="date"], input[type="time"], input[type="number"] { min-height: 2.75rem; }
textarea { resize: vertical; }
.stepper { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; }
.stepper input { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; justify-items: center; gap: .75rem; text-align: center; padding: 2.5rem 1.5rem; }
.form-success p { color: var(--muted); max-width: 26rem; }
.form-success .btn { margin-top: .75rem; }
.notice { border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); padding: 1rem 1.25rem; }
.notice.error { border-color: #d97a6a; background: #fdf1ee; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,44,32,.6); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 34rem; max-height: 90vh; overflow-y: auto;
  background: var(--card); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(20,44,32,.3); padding: 1.5rem;
}
.modal-card h2 { font-size: 1.5rem; }
.modal-lead { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.modal-card .form-grid { padding: 1.25rem 0 0; }
.modal-x { position: absolute; right: .85rem; top: .85rem; border-color: transparent; }
body.modal-open { overflow: hidden; }

/* Tour-Detailansicht */
.tour-detail-modal { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; padding: .5rem; }
.tour-detail-modal[hidden] { display: none; }
.tour-detail-card { position: relative; z-index: 1; width: min(100%, 58rem); max-height: 94vh; overflow-y: auto; background: var(--card); box-shadow: 0 28px 80px rgba(16,44,30,.42); }
.tour-detail-x { position: absolute; z-index: 4; right: .75rem; top: .75rem; background: var(--card); }
.tour-detail-scene { position: relative; min-height: 14rem; aspect-ratio: 16 / 8; overflow: hidden; }
.tour-detail-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,44,30,.82)); }
.tour-detail-scene img { width: 100%; height: 100%; object-fit: cover; }
.tour-detail-content { display: grid; gap: 1.75rem; padding: 1.5rem; background-color: #e9dfca; background-image: linear-gradient(rgba(74,63,53,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(74,63,53,.05) 1px, transparent 1px); background-size: 24px 24px; }
.tour-detail-content h2 { margin-top: .5rem; font-size: clamp(1.65rem, 5vw, 2.5rem); }
.tour-detail-content > div > .muted { margin-top: 1rem; }
.tour-detail-stats span { min-width: 0; min-height: 2.75rem; overflow-wrap: anywhere; border: 1px solid var(--border); background: rgba(255,255,255,.8); padding: .65rem .75rem; }
.tour-detail-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.tour-detail-character { align-self: start; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 7px 8px 0 rgba(74,63,53,.16); transform: rotate(1deg); }
.tour-detail-character img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tour-detail-character div { display: grid; padding: 1rem; }
.tour-detail-character strong { font-family: "Montserrat", sans-serif; }
.tour-detail-character span { color: var(--muted); font-size: .75rem; font-weight: 700; }

/* Footer */
.site-footer { background: var(--forest); color: #fdfdf9; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3rem 0; }
.footer-grid h2 { font-size: .8rem; font-weight: 800; text-transform: uppercase; color: var(--gold); }
.footer-grid p { margin-top: 1rem; font-size: .9rem; color: rgba(253,253,249,.7); max-width: 24rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; font-family: "Montserrat", sans-serif; font-size: 1.25rem; }
.footer-links { display: grid; gap: .5rem; margin-top: 1rem; font-size: .9rem; color: rgba(253,253,249,.75); }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid rgba(253,253,249,.2); }
.footer-bottom { border-top: 1px solid rgba(253,253,249,.15); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 0; font-size: .78rem; color: rgba(253,253,249,.6); }
.footer-links-row { display: flex; gap: 1rem; }

@media (min-width: 640px) {
  .brand-text span { display: block; }
  .only-mobile { display: none; }
  .only-desktop { display: inline; }
  .hero-actions { flex-direction: row; }
  .section { padding: 5.5rem 0; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .package-panel { grid-template-columns: .7fr 1.3fr; padding: 1.75rem; }
  .package-grid, .option-grid { grid-template-columns: 1fr 1fr; }
  .tour-detail-actions { flex-direction: row; }
  .tour-detail-content { grid-template-columns: 1fr 15rem; padding: 2rem; }
}

@media (min-width: 768px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .facts-grid > div { border-bottom: 0; }
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hero { min-height: 38rem; align-items: center; }
  .split { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .split-even { grid-template-columns: 1fr 1fr; align-items: center; }
  .sticky-col { position: sticky; top: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- Wex Animationsdemo --------------------------------------------- */
@keyframes wex-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes wex-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(-1.5deg); } }
@keyframes wex-frame { 0%,14% { opacity: 1; transform: translateY(0); } 20%,94% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }

.wex-bob { animation: wex-bob 3s ease-in-out infinite; transform-origin: bottom center; }
.wex-float { animation: wex-float 6s ease-in-out infinite; }

.wex-cycle { position: relative; width: 96px; aspect-ratio: 3 / 5; flex: none; }
.wex-cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; opacity: 0; animation: wex-frame 5.5s ease-in-out infinite; }
.wex-cycle img:nth-child(2) { animation-delay: 1.1s; }
.wex-cycle img:nth-child(3) { animation-delay: 2.2s; }
.wex-cycle img:nth-child(4) { animation-delay: 3.3s; }
.wex-cycle img:nth-child(5) { animation-delay: 4.4s; }

.demo-hero { padding: 4rem 0; background: var(--forest); color: white; }
.demo-hero h1 { margin-top: .75rem; font-size: clamp(2.25rem, 7vw, 4rem); }
.demo-hero p:last-child { max-width: 46rem; margin-top: 1.25rem; color: rgba(255,255,255,.75); line-height: 1.75; }
.wex-demo-grid { display: grid; gap: 2rem; }
.wex-demo-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.wex-demo-preview { display: grid; height: 20rem; place-items: center; overflow: hidden; padding: 2rem; background: var(--secondary); }
.demo-wex-small { width: auto; height: 11rem; }
.demo-wex-large { width: auto; height: 18rem; filter: drop-shadow(0 14px 22px rgba(0,0,0,.2)); }
.demo-wex-cycle { width: 9rem; }
.wex-demo-content { padding: 1.25rem; }
.wex-demo-content h2 { font-size: 1.25rem; }
.wex-demo-content > p { min-height: 4.5rem; margin-top: .5rem; line-height: 1.6; }
.wex-code-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.wex-code-head span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.wex-demo-content pre { max-height: 18rem; margin-top: 1rem; overflow: auto; border-radius: .5rem; padding: 1rem; background: var(--forest); color: white; font-size: .75rem; line-height: 1.6; white-space: pre; }
@media (min-width: 1024px) { .wex-demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .wex-bob, .wex-float { animation: none; }
  .wex-cycle img { animation: none; opacity: 0; }
  .wex-cycle img:first-child { opacity: 1; }
}
