/* Einsatzorte und Unterseiten: Bausteine und Bewegung nach UBIQ (Standortwaehler, Einwaende, dunkler Bildkopf),
   in Farben und Schrift von Local Life. */
.ez { --ez-ease: cubic-bezier(.22,.61,.36,1); }
.ez-kopf { max-width: 780px; margin-bottom: clamp(34px, 4.5vw, 60px); }
.ez-label { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-2); }
.ez-label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.ez-kopf h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; margin: 0; }
.ez-lead { margin: 20px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); max-width: 58ch; }

/* ---------- Standortwaehler ---------- */
.ez-wahl { background: #fff; border-top: 1px solid var(--line); }
.ez-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ez-kacheln button { font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: clamp(18px, 1.8vw, 26px); border-radius: 26px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: transform .35s var(--ez-ease), border-color .3s, background .3s, box-shadow .35s; }
.ez-kacheln svg { width: 38px; height: 38px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; transition: transform .45s var(--ez-ease); }
.ez-kacheln b { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; color: var(--ink); }
.ez-kacheln span { font-size: 14px; color: var(--muted); }
.ez-kacheln button:hover { transform: translateY(-3px); border-color: var(--green-light); background: #fff; }
.ez-kacheln button.aktiv { background: #fff; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 22px 44px -28px rgba(15,51,25,.55); }
.ez-kacheln button.aktiv svg { transform: scale(1.12) rotate(-4deg); }
.ez-kacheln button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.ez-tafel { margin-top: clamp(14px, 1.6vw, 22px); padding: clamp(18px, 2.4vw, 34px); border-radius: 40px; background: var(--paper); border: 1px solid var(--line); }
.ez-oben { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.ez-foto { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-tint); }
.ez-foto > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ez-kat { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--green-2); }
.ez-text h3 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; color: var(--ink); }
.ez-grund { margin: 14px 0 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--muted); max-width: 54ch; }
.ez-fakten { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ez-fakten li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.ez-fakten li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--green); }
.ez-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ez-tafel.an .ez-foto > img { animation: ezZoom 1.1s var(--ez-ease) both; }
.ez-tafel.an .ez-text > * { animation: ezText .6s var(--ez-ease) both; }
.ez-tafel.an .ez-text > *:nth-child(2) { animation-delay: .05s; } .ez-tafel.an .ez-text > *:nth-child(3) { animation-delay: .1s; }
.ez-tafel.an .ez-text > *:nth-child(4) { animation-delay: .15s; } .ez-tafel.an .ez-text > *:nth-child(5) { animation-delay: .2s; }
.ez-tafel.an .mx { animation: ezText .7s var(--ez-ease) .2s both; }
@keyframes ezZoom { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes ezText { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Automatenmix mit Groessenwahl ---------- */
.mx { margin-top: clamp(26px, 3vw, 40px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.eo-mix .mx { border-top: 0; padding-top: 0; margin-top: 0; }
.mx-groesse { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: clamp(20px, 2.4vw, 30px); }
.mx-frage { font-weight: 700; color: var(--ink); font-size: 16px; }
.mx-hinweis { font-size: 14px; color: var(--muted); }
.mx-schalter { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.mx-schalter button { position: relative; z-index: 1; font: inherit; font-size: 14.5px; font-weight: 600; padding: 10px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .35s; }
.mx-schalter button[aria-pressed="true"] { color: #fff; }
.mx-schalter button:disabled { cursor: not-allowed; opacity: .45; }
.mx-schalter button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-zeiger { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--green-2); transition: transform .5s var(--ez-ease), background .3s; }
.mx[data-gross="1"] .mx-zeiger { transform: translateX(100%); background: var(--ink); }

.mx-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mx-geraet { position: relative; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 28px;
  transition: opacity .6s var(--ez-ease), filter .6s var(--ez-ease), transform .6s var(--ez-ease), border-color .3s, box-shadow .4s, background .4s; }
.mx-geraet:hover { border-color: var(--green-light); box-shadow: 0 24px 50px -32px rgba(15,51,25,.55); transform: translateY(-4px); }
.mx[data-gross="0"] .mx-geraet.gross { opacity: .45; filter: grayscale(1); transform: scale(.95); border-style: dashed; background: transparent; pointer-events: none; }
.mx[data-gross="1"] .mx-geraet.gross { transition-delay: calc((var(--n) - 2) * .12s); }
.mx-sperre { display: none; }
.mx-bild { display: grid; place-items: end center; aspect-ratio: 1 / 1; padding: 18px 18px 0; background: linear-gradient(180deg, #ffffff 0%, var(--green-tint) 100%); }
.mx-bild.dunkel { background: radial-gradient(90% 70% at 50% 100%, #33271b 0%, #1d1610 75%); }
.mx-bild img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform .7s var(--ez-ease); }
.mx-geraet:hover .mx-bild img { transform: translateY(-6px) scale(1.03); }
.mx-tag { align-self: flex-start; margin: 16px 20px 0; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--green-tint); color: var(--green-2); white-space: nowrap; }
.mx-geraet.gross .mx-tag { background: rgba(235,80,70,.12); color: var(--red-dark); }
.mx-geraet b { margin: 10px 20px 0; font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.12; color: var(--ink); }
.mx-text { margin: 6px 20px 22px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.mx-geraet:nth-child(n+2)::before { content: "+"; position: absolute; z-index: 2; left: -20px; top: 38%; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px; line-height: 1; }
.mx-geraet .mx-bild { border-radius: 27px 27px 0 0; overflow: hidden; }
.mx-geraet::before { transition: opacity .4s, transform .4s var(--ez-ease); }
.mx[data-gross="0"] .mx-geraet.gross::before { opacity: 0; transform: scale(.4); }

/* ---------- Einwaende ---------- */
.ez-einwaende { background: var(--green-tint); }
.ew-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ew-chips button { font: inherit; font-size: 15px; line-height: 1.3; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(21,68,33,.18); background: rgba(255,255,255,.7); color: var(--ink); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ez-ease); }
.ew-chips button:hover { border-color: var(--green); transform: translateY(-2px); }
.ew-chips button.an { background: var(--tief); border-color: var(--tief); color: #fff; }
.ew-chips button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ew-antwort { position: relative; margin-top: 18px; padding: clamp(24px, 2.8vw, 38px) clamp(24px, 3vw, 44px); background: #fff; border-left: 4px solid var(--green); border-radius: 0 28px 28px 0; min-height: 120px; }
.ew-antwort p { position: absolute; inset: 0; padding: inherit; margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink); opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .45s var(--ez-ease), transform .45s var(--ez-ease); }
.ew-antwort p.an { position: relative; opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Unterseiten: dunkler Bildkopf ---------- */
.eo-hero { position: relative; min-height: min(90vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--tief); color: var(--hell); padding: calc(var(--nav-h, 96px) + 60px) 0 clamp(90px, 10vw, 130px); }
.eo-hero-bild { position: absolute; inset: 0; }
.eo-hero-bild img { width: 100%; height: 100%; object-fit: cover; display: block; animation: eoHero 2.4s var(--ez-ease) both; }
.eo-hero-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,51,25,.94) 0%, rgba(15,51,25,.72) 45%, rgba(15,51,25,.2) 100%), linear-gradient(0deg, rgba(15,51,25,.8), transparent 50%); }
@keyframes eoHero { from { transform: scale(1.12); } to { transform: none; } }
.eo-hero-text { position: relative; z-index: 1; }
.eo-hero .ez-label { color: var(--akzent); }
.eo-hero h1 { color: var(--hell); font-size: clamp(42px, 6vw, 86px); line-height: 1.02; max-width: 14ch; margin: 0 0 24px; }
.eo-hero h1 em { color: var(--akzent); }
.eo-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; font-weight: 300; max-width: 46ch; color: var(--hell); margin: 0 0 32px; }
.eo-hero .aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf.eo-hell { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.knopf.eo-hell:hover { background: rgba(255,255,255,.2); }
.eo-kunde.eo-hero-kunde { position: absolute; z-index: 1; left: auto; right: var(--gutter, 24px); bottom: 34px; margin: 0; }

/* ---------- Unterseiten: Vorteile als grosse Zeilen ---------- */
.eo-punkt { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(26px, 3vw, 40px) 0; }
.eo-punkt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ez-ease) .1s; }
.eo-punkt.in::before { transform: scaleX(1); }
.eo-punkt:last-child { border-bottom: 1px solid var(--line); }
.eo-nr { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--green); }
.eo-punkt h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; margin: 0; color: var(--ink); }
.eo-punkt p { margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--muted); }

/* ---------- Unterseiten: Vergleich ---------- */
.eo-vergleich { background: var(--paper); border-top: 1px solid var(--line); }
.eo-tabelle { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 6px clamp(18px, 2.4vw, 32px); }
.eo-zeile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.3vw, 18px); }
.eo-zeile:last-child { border-bottom: 0; }
.eo-zeile > span:first-child { font-weight: 700; color: var(--ink); }
.eo-zeile .ll { color: var(--green-2); font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.eo-zeile .ll i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); position: relative; top: 3px; transform: scale(0); transition: transform .5s var(--ez-ease) .35s; }
.eo-zeile .ll i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.eo-zeile.in .ll i { transform: scale(1); }
.eo-zeile > span:last-child { color: var(--muted); }
.eo-titel { font-size: 12.5px !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 16px 0 12px; }
.eo-titel span { color: var(--muted) !important; }
.eo-titel .ll { color: var(--green-2) !important; }
.eo-kopfbild { position: relative; }
.eo-kopfbild .eo-kunde { z-index: 2; }
.eo-punkte { background: #fff; padding: clamp(60px, 7vw, 100px) 0 !important; }

/* ---------- Unterseiten: Automatenmix ---------- */
.eo-mix { background: var(--green-tint); }

@media (max-width: 900px) {
  .ez-oben { grid-template-columns: minmax(0, 1fr); }
  .eo-punkt { grid-template-columns: 70px minmax(0, 1fr); }
  .eo-punkt p { grid-column: 2; }
}
@media (max-width: 760px) {
  .ez-kacheln { grid-template-columns: minmax(0, 1fr); }
  .ez-kacheln button { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .ez-kacheln svg { margin: 0; width: 32px; height: 32px; }
  .ez-kacheln span { flex-basis: 100%; padding-left: 46px; margin-top: -4px; }
  .ez-tafel { padding: 14px; border-radius: 28px; }
  .mx-reihe { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mx-geraet:nth-child(n+2)::before { display: none; }
  .mx-schalter { width: 100%; }
  .mx-schalter button { white-space: normal; padding: 10px 12px; font-size: 13.5px; }
  .eo-zeile { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .eo-zeile > span:first-child { grid-column: 1 / -1; }
  .eo-titel > span:first-child { display: none; }
  .eo-hero { min-height: 86vh; padding-bottom: 120px; }
  .eo-hero-bild::after { background: linear-gradient(0deg, rgba(15,51,25,.96) 0%, rgba(15,51,25,.8) 55%, rgba(15,51,25,.4) 100%); }
  .eo-kunde.eo-hero-kunde { left: var(--gutter, 20px); right: auto; bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ez-tafel.an *, .eo-hero-bild img { animation: none !important; }
  .mx-reihe, .mx-geraet { transition: none; }
}

.v4-referenz .kunde img[src*="w-tec"], .eo-kunde .kunde img[src*="w-tec"] { height: 40px; }
.mx[data-gross="1"] .mx-geraet.gross { box-shadow: 0 0 0 3px rgba(53,172,84,.18); }

/* 08.10. (Lukas): Cafeteria Foto im flachen Ausschnitt so legen, dass der Kopf der Person zu sehen ist */
.ez-foto > img[src*="cafeteria-automaten"] { object-position: 50% 12%; }
