/* Ekobriketter Hero „Pallen fylls“ – alles unter .eko-hero, damit Blocksy/WooCommerce unberührt bleiben */
.eko-hero {
  --eko-bg: #162a1f;          /* Waldgrün (Farbwelt „Skog“) */
  --eko-ink: #fbf8f2;
  --eko-muted: #dfe6dc;
  --eko-accent: #e8a838;      /* Bernstein, dunkle Schrift darauf 8,8:1 */
  --eko-accent-ink: #1c1406;
  position: relative;
  height: 375vh;
  width: 100vw;
  max-width: none !important;   /* Blocksy begrenzt .entry-content > * auf die Inhaltsbreite */
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0; margin-bottom: 0;
  background: var(--eko-bg);
  color: var(--eko-ink);
  font-size: 18px;
  line-height: 1.5;
  font-family: var(--eko-font, Figtree, system-ui, sans-serif);
}
.eko-hero *, .eko-hero *::before, .eko-hero *::after { box-sizing: border-box; }
/* Adminleiste (eingeloggt): Bühne steht direkt darunter fest, damit die Animation beim ersten Scrollen startet */
.eko-hero { --eko-off: var(--wp-admin--admin-bar--height, 0px); }
.eko-hero__stage { position: sticky; top: var(--eko-off); height: calc(100vh - var(--eko-off)); height: calc(100svh - var(--eko-off)); overflow: hidden; }
.eko-hero__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.eko-hero__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--eko-bg) 88%, transparent) 0%, color-mix(in srgb, var(--eko-bg) 35%, transparent) 40%, transparent 62%),
              linear-gradient(0deg, var(--eko-bg) 0%, transparent 22%); }

.eko-hero__copy { position: absolute; z-index: 2; left: clamp(16px, 6vw, 88px); bottom: clamp(48px, 14vh, 140px);
  max-width: min(560px, calc(100% - 32px)); margin: 0; opacity: 0; transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.eko-hero__copy.is-on { opacity: 1; transform: none; pointer-events: auto; }
.eko-hero__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #f2c46b; margin-bottom: 12px; }
.eko-hero .eko-hero__title { margin: 0; color: var(--eko-ink); font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; font-weight: 800;
  letter-spacing: -.015em; text-wrap: balance; }
.eko-hero__copy p { margin: 14px 0 0; font-size: clamp(18px, 1.5vw, 21px); color: var(--eko-muted); max-width: 40ch; }

.eko-hero__btns, .eko-hero__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.eko-hero__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s ease, border-color .2s ease; }
.eko-hero__btn svg { width: 18px; height: 18px; flex: none; }
.eko-hero__btn.is-primary { background: var(--eko-accent); color: var(--eko-accent-ink); }
.eko-hero__btn.is-primary:hover { background: #f2b851; color: var(--eko-accent-ink); }
.eko-hero__btn.is-ghost { border: 1.5px solid rgba(255,255,255,.55); color: var(--eko-ink); }
.eko-hero__btn.is-ghost:hover { border-color: #fff; color: #fff; }
.eko-hero__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.eko-hero__progress { position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.eko-hero__progress i { width: 3px; height: 28px; border-radius: 2px; background: rgba(255,255,255,.25); }
.eko-hero__progress i.is-on { background: var(--eko-accent); }
.eko-hero__loading { position: absolute; z-index: 3; left: 0; top: 0; height: 3px; background: var(--eko-accent); width: 0; transition: width .2s, opacity .6s; }

.eko-hero__quick { display: none; }

/* Fertig: wiederkehrende Besucher oder nach dem ersten Durchlauf – ein Bildschirm, fertige Palette, kein Scrollweg */
.eko-hero.is-done { height: 100vh; height: 100svh; }
.eko-hero.is-done .eko-hero__progress, .eko-hero.is-done .eko-hero__loading { display: none; }
.eko-hero.is-done .eko-hero__copy.is-final { opacity: 1; transform: none; pointer-events: auto; }

@media (max-aspect-ratio: 1/1) {
  .eko-hero__stage::after { background: linear-gradient(0deg, var(--eko-bg) 0%, var(--eko-bg) 30%, transparent 58%); }
  .eko-hero__copy { top: var(--eko-copy-top, auto); bottom: auto; left: 16px; }
  .eko-hero__progress { top: 12px; right: 16px; transform: none; grid-auto-flow: column; }
  .eko-hero__progress i { width: 18px; height: 3px; }
  .eko-hero__quick { display: block; position: absolute; z-index: 2; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
    padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); transition: opacity .3s; }
  .eko-hero__quick.is-off { opacity: 0; pointer-events: none; }
  .eko-hero__line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; color: var(--eko-muted); }
  .eko-hero__dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8178; flex: none; }
  .eko-hero__dot.is-open { background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62,207,110,.18); }
  .eko-hero__row { flex-wrap: nowrap; margin-top: 12px; }
  .eko-hero__row .eko-hero__btn { flex: 1; padding: 0 12px; font-size: 16px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .eko-hero, .eko-hero.is-done { height: auto; }
  .eko-hero__stage { position: relative; height: auto; min-height: 100svh; background: var(--eko-poster) center / cover no-repeat; }
  .eko-hero__stage::after { background: color-mix(in srgb, var(--eko-bg) 70%, transparent); }
  .eko-hero__cv, .eko-hero__progress, .eko-hero__loading, .eko-hero__quick { display: none !important; }
  .eko-hero__copy { position: relative; left: auto; bottom: auto; top: auto; opacity: 1; transform: none; transition: none;
    padding: 48px clamp(16px, 6vw, 88px) 0; max-width: 680px; pointer-events: auto; }
  .eko-hero__copy:last-of-type { padding-bottom: 64px; }
}

/* ---------- Kopfzeile auf der Startseite: liegt über dem Hero, wird danach fest ---------- */
.eko-top { position: fixed; z-index: 100; inset: 0 0 auto; font-family: var(--eko-font, Figtree, system-ui, sans-serif);
  background: linear-gradient(180deg, rgba(22,42,31,.78) 0%, rgba(22,42,31,0) 100%); transition: background-color .25s ease, box-shadow .25s ease; }
body.admin-bar .eko-top { top: var(--wp-admin--admin-bar--height, 32px); }
.eko-top.is-solid { background: #162a1f; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.eko-top__in { display: flex; align-items: center; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 14px clamp(16px, 3vw, 40px); }
.eko-top__logo { display: block; flex: none; line-height: 0; }
.eko-top__logo img { height: 46px; width: auto; }
.eko-top__logo .is-dark { display: none; }
.eko-top__nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.eko-top__nav a { color: #fbf8f2; text-decoration: none; font-weight: 600; font-size: 17px; padding: 10px 2px; border-bottom: 2px solid transparent; }
.eko-top__nav a:hover { border-bottom-color: #e8a838; }
.eko-top__act { display: flex; align-items: center; gap: 8px; }
.eko-top__icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; min-height: 46px; padding: 0 10px;
  border-radius: 999px; color: #fbf8f2; text-decoration: none; font-weight: 700; }
.eko-top__icon:hover { background: rgba(251,248,242,.12); }
.eko-top__icon svg { width: 21px; height: 21px; }
.eko-top__cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #e8a838; color: #1c1406 !important;
  font-weight: 700; text-decoration: none; white-space: nowrap; }
.eko-top__cta:hover { background: #f2b851; }
.eko-top a:focus-visible { outline: 3px solid #e8a838; outline-offset: 2px; }
.eko-skip { position: absolute; left: 12px; top: -60px; z-index: 2; padding: 10px 16px; border-radius: 8px; background: #e8a838; color: #1c1406; font-weight: 700; }
.eko-skip:focus { top: 10px; }
.eko-hero__copy { scroll-margin-top: 90px; }
#produkter, #sa-gar-det-till, #kontakt { scroll-margin-top: 80px; }
@media (max-width: 1180px) { .eko-top__nav { display: none; } .eko-top__act { margin-left: auto; } }
@media (max-width: 760px) { .eko-top__tel { display: none; } }
@media (max-width: 520px) {
  .eko-top__in { gap: 8px; padding: 10px 12px; }
  .eko-top__logo img { height: 34px; }
  .eko-top__act { gap: 2px; }
  .eko-top__cta { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .eko-top__icon { min-width: 44px; min-height: 44px; padding: 0; }
}
@media (max-width: 370px) { .eko-top__logo img { height: 28px; } }
/* Hero beginnt ganz oben, Platz für die Kopfzeile im Hochformat */
@media (max-aspect-ratio: 1/1) { .eko-hero__stage { padding-top: 0; } .eko-hero__progress { top: 76px; } }
/* Blocksy-Innenabstand über dem Hero entfernen */
.ct-container-full:has(.eko-hero) { padding-top: 0 !important; }
.eko-top { max-width: none; margin: 0; }

/* Unterseiten: Kopfzeile fest oben im Fluss, Blocksy-Kopf/Fuß ausgeblendet */
.eko-top.is-static { position: sticky; top: 0; }
body.admin-bar .eko-top.is-static { top: var(--wp-admin--admin-bar--height, 32px); }
#header.ct-header, header#header, footer#footer.ct-footer, #footer { display: none !important; }

/* ---------- Fußzeile ---------- */
.eko-foot { background: #162a1f; color: #dfe6dc; font-family: var(--eko-font, Figtree, system-ui, sans-serif); font-size: 17px; line-height: 1.6; }
.eko-foot__in, .eko-foot__nav { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.eko-foot__in { padding: clamp(48px, 6vw, 72px) 16px 40px; }
.eko-foot__nav { max-width: 1128px; width: calc(100% - 32px); padding: 40px 0 clamp(40px, 5vw, 56px); border-top: 1px solid rgba(251,248,242,.14); box-sizing: border-box; }
.eko-foot__brand img { height: 50px; width: auto; }
.eko-foot__brand p { margin: 16px 0 0; max-width: 32ch; }
.eko-foot h2 { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f2c46b; margin: 0 0 12px; }
.eko-foot p { margin: 0 0 10px; }
.eko-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eko-foot a { color: #fbf8f2; text-decoration: none; border-bottom: 1px solid rgba(251,248,242,.3); }
.eko-foot a:hover { border-bottom-color: #e8a838; }
.eko-foot a:focus-visible { outline: 3px solid #e8a838; outline-offset: 2px; }
.eko-foot__tel { font-size: 22px; font-weight: 800; white-space: nowrap; border-bottom: 0 !important; }
.eko-foot__bottom { border-top: 1px solid rgba(251,248,242,.14); padding: 18px 16px 28px; text-align: center; font-size: 15px; color: #b9c4b6; }
@media (max-width: 900px) { .eko-foot__in { grid-template-columns: 1fr 1fr; } .eko-foot__brand { grid-column: 1 / -1; } .eko-foot__nav { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .eko-foot__nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .eko-foot__in { grid-template-columns: 1fr; } }

/* ---------- Navigation: aktive Seite, Menüknopf fürs Handy ---------- */
.eko-top__nav a[aria-current="page"] { border-bottom-color: #e8a838; }
.eko-top__navtel { display: none; }
.eko-top__menu { display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1.5px solid rgba(251,248,242,.55); border-radius: 999px;
  background: transparent; color: #fbf8f2; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.eko-top__menu:hover { border-color: #fbf8f2; }
.eko-top__bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color .15s; }
.eko-top__bars::before, .eko-top__bars::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s cubic-bezier(0.2, 0, 0, 1); }
.eko-top__bars::before { top: -6px; } .eko-top__bars::after { top: 6px; }
.eko-top__menu[aria-expanded="true"] .eko-top__bars { background: transparent; }
.eko-top__menu[aria-expanded="true"] .eko-top__bars::before { transform: translateY(6px) rotate(45deg); }
.eko-top__menu[aria-expanded="true"] .eko-top__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) {
  .eko-top__menu { display: inline-flex; }
  .eko-top__nav { display: none; position: absolute; inset: 100% 0 auto; margin: 0; flex-direction: column; gap: 0;
    padding: 8px clamp(16px, 3vw, 40px) 20px; background: #162a1f; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .eko-top.is-open .eko-top__nav { display: flex; }
  .eko-top.is-open { background: #162a1f; }
  .eko-top__nav a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid rgba(251,248,242,.12); }
  .eko-top__nav a[aria-current="page"] { color: #f2c46b; border-bottom-color: rgba(251,248,242,.12); }
  .eko-top__navtel { display: flex; align-items: center; gap: 10px; color: #f2c46b !important; font-weight: 700; }
  .eko-top__navtel svg { width: 20px; height: 20px; }
}
@media (max-width: 520px) { .eko-top__menutxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .eko-top__menu { padding: 0 13px; min-width: 44px; } .eko-top__icon[href^="tel:"] { display: none; } }

/* Kein Leerraum zwischen vollbreitem Schlussabschnitt und Fußzeile */
.ct-container-full:has(.entry-content > :is(.eko-band, .eko-sec, .eko-calc, .eko-faq):last-child) { padding-bottom: 0 !important; }

/* Warenkorb-Anzahl im Header */
.eko-top__cart { position: relative; }
.eko-top__count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e8a838; color: #1c1406;
  font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #162a1f; }
