/*
Theme Name: Easygassi
Theme URI: https://www.easygassi.de
Author: Easygassi
Description: Einseitiges Block-Theme für den Easygassi Grabber. Große Kleinbuchstaben-Typografie, Pastellflächen, schwebende Produktbilder.
Version: 2.4.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easygassi
*/

/* Layout idea: full-bleed colour fields alternate with white; one huge lowercase line per section, product cut-outs float over the edges. */
:root {
  --wg-ink: #1d1d21;
  --wg-ink-soft: #5a5a63;
  --wg-paper: #ffffff;
  --wg-green: #c4ebbf;
  --wg-green-soft: #e6f6e3;
  --wg-leaf: #2f9e4a;
  --wg-sky: #d6eaf7;
  --wg-fog: #f0f0ed;
  --wg-font: "DM Sans", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --wg-gutter: clamp(20px, 5vw, 72px);
  --wg-max: 1240px;
  color-scheme: light;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wg-paper);
  color: var(--wg-ink);
  font-family: var(--wg-font);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wg-leaf); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
header.wp-block-template-part, .wg-header-wrap { position: sticky; top: 0; z-index: 50; }
/* The frosted bar is a pseudo-element: a backdrop-filter on the header itself would trap WordPress's full-screen mobile menu inside the bar. */
header.wp-block-template-part::before, .wg-header-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
.wg-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px var(--wg-gutter); }
.wg-header > * { margin: 0; }
/* logo: lowercase in two weights, light "easy" and bold "gassi", the full stop in the clip's blue */
.wg-logo strong { font-weight: 700; }
.wg-logo mark { background-color: transparent; color: #2f6fd6; }
.wg-header .wg-logo { grid-column: 2; margin: 0; font-size: 1.7rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.wg-header .wg-logo a { text-decoration: none; }
/* WordPress spaces menu items with the global block gap, which theme.json sets to 0 for the edge-to-edge sections, so the menu gets its own gap. */
.wg-header .wg-nav { grid-column: 3; justify-self: end; font-size: 1rem; gap: 28px; }
.wg-header .wg-nav a { text-decoration: none; }
.wg-header .wg-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.wg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.6rem; letter-spacing: -0.02em; }
.wg-nav--plain { display: flex; gap: 28px; }
/* Below this width logo and menu no longer fit around a centred logo: logo left, menu right. */
@media (max-width: 1060px) {   /* five menu items: below this width the logo moves to the left so the menu stays on one line */
  .wg-header { grid-template-columns: auto 1fr; }
  .wg-header .wg-logo { grid-column: 1; }
  .wg-header .wg-nav { grid-column: 2; gap: 22px; }
}
@media (max-width: 720px) { .wg-nav--plain { display: none; } }

/* ---------- sections ---------- */
.wg-section { position: relative; padding: clamp(72px, 11vw, 150px) var(--wg-gutter); overflow: hidden; margin: 0; }
.wg-wrap { max-width: var(--wg-max); margin-inline: auto; position: relative; }
.wg-section .wg-eyebrow { margin: 0 0 18px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.wg-display, .wg-title { margin: 0; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.wg-display { font-size: clamp(3.1rem, 10.5vw, 8.2rem); line-height: 0.98; }
.wg-title { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.08; }
.wg-lead { margin: 0; font-size: clamp(1.45rem, 2.7vw, 2.2rem); line-height: 1.32; letter-spacing: -0.015em; max-width: 21em; text-wrap: pretty; }
.wg-text { margin: 0; max-width: 34em; color: var(--wg-ink-soft); }
.wg-section .wg-stack > * + * { margin-top: clamp(18px, 2.4vw, 30px); }

/* hero: the headline, and below it a drawn walk across the whole width; the figures stand on the lower edge of the green field */
.wg-hero { --wg-walk-h: clamp(200px, 23vw, 330px); padding-top: clamp(44px, 6.5vw, 96px); padding-bottom: 0; background: linear-gradient(to bottom, var(--wg-green) calc(100% - var(--wg-walk-h) * 0.112), var(--wg-paper) calc(100% - var(--wg-walk-h) * 0.112)); }
.wg-hero .wg-display { font-size: clamp(2rem, 5.3vw, 4.7rem); line-height: 1.08; }   /* one short sentence: one line on a wide desktop, two or three on a phone */
.wg-hero__text { position: relative; z-index: 2; }
.wg-hero__text .wg-text { color: var(--wg-ink); margin-top: 26px; font-size: 1.25rem; max-width: 40em; }
.wg-section .wg-walk { height: var(--wg-walk-h); width: min(100vw, 1800px); max-width: none; margin: clamp(4px, 1.5vw, 20px) 0 0 50%; transform: translateX(-50%); -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.wg-walk canvas { display: block; width: 100%; height: 100%; }
/* Startbereich mit beiden Folgen untereinander: Abschnitt .wg-hero--duo, darin .wg-walks mit zwei Bahnen.
   Jede Bahn hat ein Label (Absatz .wg-walks__label) und eine Bühne (.wg-walks__stage--a / --b); das Schlagwort setzt gassi.js daneben. */
.wg-hero--duo {
  --wg-walk-h: clamp(200px, 17vw, 250px);
  --wg-walk-label: 1.6rem;
  --wg-walk-tuck: calc(var(--wg-walk-h) * 0.07);
  --wg-walk-gap: 12px;
  --wg-walk-lane: calc(var(--wg-walk-label) - var(--wg-walk-tuck) + var(--wg-walk-h) + var(--wg-walk-gap));
  background: linear-gradient(to bottom,
    var(--wg-green) calc(100% - var(--wg-walk-lane) - var(--wg-walk-h) * 0.112),
    var(--wg-green-soft) calc(100% - var(--wg-walk-lane) - var(--wg-walk-h) * 0.112),
    var(--wg-green-soft) calc(100% - var(--wg-walk-h) * 0.112),
    var(--wg-paper) calc(100% - var(--wg-walk-h) * 0.112));
}
.wg-section .wg-walks { display: grid; grid-template-columns: 1fr; gap: var(--wg-walk-gap); width: min(100vw, 1800px); max-width: none; margin: clamp(4px, 1.5vw, 20px) 0 0 50%; transform: translateX(-50%); }
.wg-section .wg-walks__lane { position: relative; display: grid; grid-template-rows: var(--wg-walk-label) auto; min-width: 0; max-width: none; margin: 0; }
.wg-section .wg-walks__label { position: relative; z-index: 1; align-self: end; justify-self: end; max-width: none; margin: 0 calc(50% + 7px) 0 0; white-space: nowrap; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.wg-section .wg-walks__stage { height: var(--wg-walk-h); max-width: none; margin: calc(var(--wg-walk-tuck) * -1) 0 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.wg-walks__stage canvas { display: block; width: 100%; height: 100%; }
.wg-section .wg-walks__beat { position: absolute; z-index: 1; margin: 0; left: calc(50% + 7px); top: calc(var(--wg-walk-label) - 1.05rem * 0.6); padding: 0.16rem 0.7rem 0.24rem; border-radius: 999px; background: var(--wg-paper); color: var(--wg-ink); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; opacity: 0; transform: translateY(-50%); transform-origin: 0 50%; pointer-events: none; }
.wg-float img { filter: drop-shadow(0 34px 38px rgba(29, 29, 33, 0.2)); will-change: transform; }

/* split: text beside a colour panel with a floating product */
.wg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 96px); align-items: center; }
.wg-split--flip .wg-panel, .wg-split--flip .wg-photo { order: -1; }
.wg-photo { margin: 0; border-radius: 28px; overflow: hidden; }
.wg-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wg-photo.wg-photo--wide img { aspect-ratio: 3 / 2; }
.wg-photo.wg-photo--left img { object-position: 44% 50%; }
.wg-photo.wg-photo--banner img { aspect-ratio: 16 / 7; }
.wg-section .wg-more { margin-top: clamp(28px, 6vw, 96px); }
.wg-tint-green { background: var(--wg-green-soft); }
.wg-stack--narrow { max-width: 780px; }
/* duo: both products at a glance under the title – two pictures of the same size, each under a small heading */
.wg-section.wg-duo-section { padding-top: clamp(16px, 2.6vw, 40px); padding-bottom: 0; }   /* sits close under the green field */
.wg-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 12px clamp(10px, 2vw, 24px); }   /* row 1: headings, row 2: pictures */
.wg-section .wg-duo .wg-duo__label { margin: 0; align-self: end; font-weight: 400; text-wrap: balance; }
.wg-duo .wg-duo__label strong { font-weight: 600; }
.wg-duo .wg-duo__label--a { grid-column: 1; grid-row: 1; }
.wg-duo .wg-duo__label--b { grid-column: 2; grid-row: 1; }
.wg-duo .wg-duo__main { grid-column: 1; grid-row: 2; }
.wg-duo .wg-duo__side { grid-column: 2; grid-row: 2; }
.wg-duo .wg-photo img { aspect-ratio: 3 / 2; }
.wg-duo .wg-duo__main img { object-position: 44% 50%; }
.wg-duo .wg-duo__side img { object-position: 0% 50%; }   /* keeps the hand and the dog's whole head in the frame */
@media (max-width: 600px) {   /* phone: one below the other, otherwise both get tiny */
  .wg-duo { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .wg-duo .wg-duo__label, .wg-duo .wg-photo { grid-column: auto; grid-row: auto; }
  .wg-section .wg-duo .wg-duo__label--b { margin-top: 18px; }
}
.wg-split > .wg-steps { margin-top: 0; }
.wg-panel { position: relative; border-radius: 28px; padding: clamp(28px, 5vw, 64px); min-height: clamp(280px, 36vw, 520px); display: grid; place-items: center; margin: 0; }
.wg-panel--sky { background: var(--wg-sky); }
.wg-panel--green { background: var(--wg-green-soft); }
.wg-panel .wg-float { margin: 0; width: min(100%, 460px); }
.wg-panel--bleed .wg-float { margin: -12% -14% -12% 0; width: 112%; max-width: none; }
@media (max-width: 820px) { .wg-split { grid-template-columns: 1fr; } .wg-split--flip .wg-panel, .wg-split--flip .wg-photo { order: 0; } .wg-photo.wg-photo--banner img { aspect-ratio: 4 / 3; } .wg-panel--bleed .wg-float { margin: 0; width: 100%; } }

/* band: full-bleed picture with one line on it */
.wg-band { padding: 0; background: var(--wg-ink); }
.wg-band .wg-band__img, .wg-band .wg-band__video { margin: 0; }
.wg-band .wg-band__video video { display: block; width: 100%; height: clamp(300px, 56.25vw, 820px); object-fit: cover; }
.wg-band .wg-band__img img { width: 100%; height: clamp(360px, 62vw, 820px); object-fit: cover; }
.wg-band__caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: clamp(60px, 12vw, 160px) var(--wg-gutter) clamp(28px, 5vw, 64px); background: linear-gradient(to top, rgba(29, 29, 33, 0.78), rgba(29, 29, 33, 0)); color: #fff; }
.wg-band__caption .wg-title { color: #fff; }

/* two states */
.wg-states { background: var(--wg-fog); }
.wg-section .wg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin-top: clamp(36px, 6vw, 72px); }
.wg-card { background: var(--wg-paper); border-radius: 28px; padding: clamp(24px, 4vw, 48px); margin: 0; display: flex; flex-direction: column; gap: 14px; }
.wg-card .wg-float { margin: 0 auto 10px; height: clamp(180px, 24vw, 300px); display: grid; place-items: center; }
.wg-card .wg-float img { max-height: clamp(180px, 24vw, 300px); width: auto; }
.wg-card h3 { margin: 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.wg-card p { margin: 0; color: var(--wg-ink-soft); }
@media (max-width: 720px) { .wg-section .wg-cards { grid-template-columns: 1fr; } }

/* steps */
.wg-section .wg-steps { display: grid; gap: 0; margin-top: clamp(28px, 4vw, 48px); counter-reset: wg-step; }
.wg-step { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-top: 1.5px solid var(--wg-ink); margin: 0; counter-increment: wg-step; }
.wg-step:last-child { border-bottom: 1.5px solid var(--wg-ink); }
.wg-step::before { content: counter(wg-step); grid-row: span 2; font-size: 2.6rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.wg-step h3 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.wg-step p { margin: 4px 0 0; color: var(--wg-ink-soft); }
.wg-steps--short .wg-step { align-items: center; padding: 16px 0; }
.wg-steps--short .wg-step::before { grid-row: auto; font-size: 1.9rem; }
.wg-steps--short .wg-step p { margin: 0; color: var(--wg-ink); font-size: 1.1rem; }
.wg-video { margin: 0; border-radius: 28px; overflow: hidden; background: var(--wg-fog); }
.wg-video video { width: 100%; }
.wg-note { margin: 10px 0 0; font-size: 0.9rem; color: var(--wg-ink-soft); }

/* strip: three short claims in one line */
.wg-section.wg-strip { background: var(--wg-green); padding-block: clamp(26px, 4vw, 48px); }
.wg-strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(18px, 3vw, 44px); font-size: clamp(1.15rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.wg-strip__row p { margin: 0; display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.wg-strip__row p + p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 720px) { .wg-strip__row { flex-direction: column; align-items: center; } .wg-strip__row p + p::before { display: none; } }

/* faq */
.wg-section .wg-faq { margin-top: clamp(28px, 5vw, 56px); border-bottom: 1.5px solid var(--wg-ink); }
.wg-faq__item { border-top: 1.5px solid var(--wg-ink); margin: 0; }
.wg-faq__item summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-size: 1.2rem; font-weight: 500; }
.wg-faq__item summary::-webkit-details-marker { display: none; }
.wg-faq__item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease; }
.wg-faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wg-faq__item p { margin: 0 0 24px; max-width: 40em; color: var(--wg-ink-soft); }

/* call to action + buttons */
.wg-cta { background: var(--wg-ink); color: #fff; }
.wg-cta .wg-title, .wg-cta .wg-lead { color: #fff; }
.wg-cta .wg-note { color: rgba(255, 255, 255, 0.7); }
.wg-section .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wg-section .wg-stack > .wp-block-buttons { margin-top: clamp(30px, 3.6vw, 46px); }   /* clear air between a text and its button */
.wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link { display: inline-block; border: 0; border-radius: 999px; padding: 16px 34px; background: var(--wg-ink); color: #fff; font: inherit; font-weight: 500; text-decoration: none; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.wp-block-button .wp-block-button__link:hover { background: var(--wg-leaf); transform: translateY(-2px); }
.wg-btn--light .wp-block-button__link { background: var(--wg-green); color: var(--wg-ink); }
.wg-btn--light .wp-block-button__link:hover { background: #fff; color: var(--wg-ink); }

/* sign-up for the list of interested people (in the dark contact section) */
.wg-section .wg-form { margin-top: clamp(26px, 3.2vw, 40px); max-width: 540px; }
.wg-form__label { display: block; margin-bottom: 10px; font-weight: 500; }
.wg-form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.wg-form input[type="email"] { flex: 1 1 240px; min-width: 0; padding: 15px 22px; border: 0; border-radius: 999px; background: #fff; color: var(--wg-ink); font: inherit; }
.wg-form button { padding: 15px 28px; border: 0; border-radius: 999px; background: var(--wg-green); color: var(--wg-ink); font: inherit; font-weight: 500; cursor: pointer; }
.wg-form button:hover { background: #fff; }
.wg-form input:focus-visible, .wg-form button:focus-visible { outline: 3px solid var(--wg-green); outline-offset: 3px; }
.wg-form__hint { margin: 12px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }
.wg-form__hint a, .wg-cta .wg-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.wg-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wg-section .wg-form__msg { margin-top: clamp(22px, 3vw, 34px); max-width: 540px; padding: 14px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); }

/* footer */
.wg-footer { background: var(--wg-fog); padding: clamp(48px, 7vw, 88px) var(--wg-gutter) 36px; font-size: 0.98rem; margin: 0; }
.wg-footer__grid { max-width: var(--wg-max); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.wg-footer p { margin: 0 0 6px; }
.wg-footer .wg-logo { font-size: 1.7rem; font-weight: 300; letter-spacing: -0.04em; margin-bottom: 10px; }
.wg-footer h3 { margin: 0 0 12px; font-size: 0.95rem; font-weight: 600; }
.wg-footer a { text-decoration: none; }
.wg-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wg-footer__legal { max-width: var(--wg-max); margin: 44px auto 0; padding-top: 18px; border-top: 1px solid rgba(29, 29, 33, 0.18); color: var(--wg-ink-soft); font-size: 0.88rem; }
@media (max-width: 720px) { .wg-footer__grid { grid-template-columns: 1fr; } }

/* plain pages (Impressum, Datenschutz, blog fallback) */
.wg-page { padding: clamp(56px, 8vw, 110px) var(--wg-gutter); margin: 0; }
.wg-page > * { max-width: 760px; margin-inline: auto; }
.wg-page .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin-block: 0 32px; }
.wg-page .wp-block-post-content > * + * { margin-top: 1.1em; }
.wg-page .wp-block-post-content h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.wg-page .wp-block-post-content h3 { margin-top: 1.8em; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.wg-page .wp-block-post-content > :first-child { margin-top: 0; }
.wg-page .wp-block-post-content [id] { scroll-margin-top: 96px; }   /* linked headings stay clear of the fixed header */
.wg-page .wp-block-post-content ul { margin-bottom: 0; padding-left: 1.25em; }
.wg-page .wp-block-post-content li + li { margin-top: 0.55em; }
.wg-page .wp-block-post-content a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }   /* long addresses wrap on a phone */
.wg-page .wp-block-post-content .index { list-style: none; padding-left: 0; }
.wg-page .wp-block-post-content .seal { margin-top: 2.6em; font-size: 0.9rem; color: var(--wg-ink-soft); }

/* motion: sections rise in when they scroll into view; everything is visible without scripts */
@keyframes wg-rise { from { opacity: 0.01; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.wg-in { animation: wg-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wg-in { animation: none; }
  .wg-float img { transform: none !important; }
}
