/* Shopventa – globaler Kopf (Mega-Menü), Fuß, Chat-Knopf und Funktionsseiten.
   Nur öffentliche Seiten laden diese Datei; Kundenkonto und Admin nicht. */

/* ===================================================== Kopf */
.gh { z-index: 40; }
.gh .wrap.gh__bar { gap: 20px; }
.gh .logo { flex: none; }
.gh__nav { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.gh__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.gh__end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gh__link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); font: 500 15.5px/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer; }
.gh__link:hover, .gh__mega.is-open > .gh__trigger { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.gh__link[aria-current], .gh__trigger.is-current { color: var(--ink); }
.gh__chev { width: 15px; height: 15px; transition: transform .2s ease; }
.gh__mega.is-open .gh__chev { transform: rotate(180deg); }
.gh__acct .ic { width: 17px; height: 17px; color: var(--brand); }
.gh .lang { padding: 0; }
.gh__cta { padding: 11px 18px; font-size: 15px; }

/* Mega-Menü (Desktop): klappt unter dem ganzen Kopf auf */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(19,20,43,.45); max-height: calc(100vh - 68px); overflow-y: auto; overscroll-behavior: contain; }
.gh--js .gh__mega.is-open .mega,
.gh:not(.gh--js) .gh__mega:hover .mega,
.gh:not(.gh--js) .gh__mega:focus-within .mega { display: block; }
.gh .wrap.mega__in { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; height: auto; align-items: start; padding: 28px 0 32px; }
.mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 20px; }
.mega__cat { font: 500 11.5px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px 10px; }
.mega__cols ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; }
.mega__cols ul:last-child { margin-bottom: 0; }
.mega__a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.mega__a:hover, .mega__a[aria-current] { background: var(--paper); }
.mega__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.mega__ic .ic { width: 18px; height: 18px; }
.mega__a:hover .mega__ic { background: var(--brand); color: #fff; }
.mega__tx b { font-weight: 600; font-size: 15px; line-height: 1.3; margin-right: 6px; }
.mega__tx small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; margin-top: 3px; }

.mtag { display: inline-block; vertical-align: 1px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); white-space: nowrap; }
.mtag--free { background: var(--mint-50); color: var(--mint-700); }
.mtag--mix { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }

/* Rechte Spalte: wie ein abgerissener Bon */
.mega__side { background: var(--paper); border-radius: 16px; padding: 20px; border: 1.5px dashed var(--line); }
.mega__side-h { font: 650 19px/1.2 var(--f-display); letter-spacing: -.015em; margin: 0 0 6px; }
.mega__side p:not(.mega__side-h) { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.mega__dl { width: 100%; justify-content: center; padding: 13px 16px; font-size: 15px; }
.mega__dl .ic { width: 17px; height: 17px; }
.mega__more { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1.5px dashed var(--line); display: grid; gap: 2px; }
.mega__more a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.mega__more a:hover { background: var(--card); }
.mega__more .ic { width: 17px; height: 17px; color: var(--brand); }

/* Burger */
.gh__burger { display: none; align-items: center; gap: 10px; margin-left: auto; padding: 9px 14px 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14.5px/1 var(--f-text); cursor: pointer; }
.gh__bars { display: grid; gap: 4px; width: 18px; }
.gh__bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.gh.is-menu .gh__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gh.is-menu .gh__bars i:nth-child(2) { opacity: 0; }
.gh.is-menu .gh__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1079.98px) {
  .gh--js .gh__burger:not([hidden]) { display: inline-flex; }
  .gh--js .gh__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 40px; }
  .gh--js.is-menu .gh__nav { display: flex; }
  .gh--js .gh__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gh--js .gh__list > li { border-bottom: 1px solid var(--line); }
  .gh--js .gh__list .gh__link { width: 100%; justify-content: space-between; padding: 17px 4px; font-size: 18px; font-weight: 600; color: var(--ink); border-radius: 0; background: none; }
  .gh--js .mega { position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .gh .wrap.mega__in { width: 100%; grid-template-columns: 1fr; gap: 20px; padding: 0 0 20px; }
  .mega__cols { grid-template-columns: 1fr; gap: 4px; }
  .mega__cat { margin: 12px 0 8px 4px; }
  .mega__a { padding: 9px 4px; }
  .gh--js .gh__end { margin: 24px 0 0; flex-wrap: wrap; gap: 12px; }
  .gh--js .gh__acct { padding: 12px 4px; font-size: 16px; }
  .gh--js .gh__cta { flex-basis: 100%; justify-content: center; padding: 15px 22px; font-size: 16px; }
  html.gh-lock { overflow: hidden; }
  /* ohne JavaScript: Navigation als scrollbare Zeile unter dem Logo */
  .gh:not(.gh--js) .wrap.gh__bar { flex-wrap: wrap; height: auto; padding: 12px 0; row-gap: 6px; }
  .gh:not(.gh--js) .gh__nav { flex-basis: 100%; overflow-x: auto; }
  .gh:not(.gh--js) .mega { display: none !important; }
}
@media (min-width: 1080px) and (max-width: 1199.98px) {
  .gh__link { padding: 9px 8px; font-size: 15px; }
  .gh__end { gap: 8px; }
  .mega__cols { gap: 8px 12px; }
  .gh .wrap.mega__in { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
}

/* ===================================================== Fuß */
.foot.gf { padding: 64px 0 40px; margin-top: 0; }
.gf .wrap { display: block; }
.gf__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 40px 56px; }
.gf__brand p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 14px 0 20px; max-width: 26em; }
.gf__brand .logo { font-size: 20px; }
.gf__brand .logo img { width: 28px; height: 28px; }
.gf__dl { padding: 11px 16px; font-size: 14.5px; }
.gf__dl .ic { width: 16px; height: 16px; }
.foot nav.gf__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.gf .gf__h { font: 500 11.5px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 14px; }
.gf__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gf__col a, .gf__chat { color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.gf__col a:hover, .gf__chat:hover { color: var(--brand); text-decoration: underline; }
.gf__chat { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; font-family: var(--f-text); cursor: pointer; }
.gf__chat .ic { width: 16px; height: 16px; color: var(--brand); }
.gf__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.gf__base p { margin: 0; max-width: none; }
.gf__legal { font-size: 12.5px; line-height: 1.55; max-width: 70em !important; }
@media (max-width: 900px) {
  .gf__grid { grid-template-columns: 1fr; }
  .foot nav.gf__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===================================================== Chat-Knopf (links unten, lädt Chatwoot erst nach Klick) */
.chatbtn { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px 13px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px/1 var(--f-text); cursor: pointer; box-shadow: 0 14px 34px -14px rgba(19,20,43,.45); transition: transform .2s ease, box-shadow .2s ease; }
.chatbtn[hidden], .gf__chat[hidden], .chatbtn__hint[hidden] { display: none; }
.chatbtn .ic { width: 19px; height: 19px; color: var(--brand); }
.chatbtn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(19,20,43,.5); }
.chatbtn.is-loading .ic { animation: sv-chat-wait 1s ease-in-out infinite; }
.chatbtn.is-open { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chatbtn.is-open .ic { color: inherit; }
@keyframes sv-chat-wait { 50% { opacity: .35; } }
.chatbtn__hint { position: fixed; left: 16px; bottom: 72px; z-index: 61; max-width: min(280px, calc(100vw - 32px)); margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.45; box-shadow: 0 12px 30px -12px rgba(19,20,43,.5); pointer-events: none; }
@media print { .chatbtn, .chatbtn__hint { display: none; } }

/* ===================================================== Funktionsseiten */
.fx { overflow-x: clip; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 26px; padding: 0; font: 400 12.5px/1.4 var(--f-mono); color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin: 0 9px; opacity: .6; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

.fx-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); background: radial-gradient(1200px 420px at 85% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%); }
.fx-hero__wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fx-hero h1 { font-size: clamp(38px, 5.2vw, 66px); font-weight: 750; letter-spacing: -.033em; line-height: 1; margin-bottom: 22px; text-wrap: balance; }
.fx-hero .lead { margin-bottom: 30px; }
.fx-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.fx-eyebrow .tag { margin: 0; }
.fx-dot { margin: 0 10px; }
.fx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fx-till .receipt li:nth-child(1) { --i: 0; } .fx-till .receipt li:nth-child(2) { --i: 1; } .fx-till .receipt li:nth-child(3) { --i: 2; }
.fx-till .receipt li:nth-child(4) { --i: 3; } .fx-till .receipt li:nth-child(5) { --i: 4; } .fx-till .receipt li:nth-child(6) { --i: 5; }
.fx-till .receipt li:nth-child(7) { --i: 6; } .fx-till .receipt li:nth-child(8) { --i: 7; }
.fx-till .receipt__sum { --i: 8; }
@media (max-width: 900px) { .fx-hero__wrap { grid-template-columns: 1fr; } .fx-till { justify-self: start; } }

.fx-sec { padding: clamp(56px, 8vw, 96px) 0 0; }
.fx-h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.fx-pts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.fx-pt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.fx-pt__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint-50); color: var(--mint-700); margin-bottom: 16px; }
.fx-pt__ic .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.fx-pt h3 { font-size: 19px; margin-bottom: 8px; }
.fx-pt p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0; }
.fx-note { margin-top: 24px; max-width: 780px; padding: 18px 22px; border-radius: 14px; background: var(--brand-50); border-left: 3px solid var(--brand); }
.fx-note p { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.fx-note .fx-note__h { font: 500 11.5px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 8px; }

.fx-shot { margin: 0; }
.fx-shot--phone { display: flex; justify-content: center; }
.fx-phone { width: min(320px, 82vw); border: 10px solid #13142B; border-radius: 44px; overflow: hidden; background: #13142B; box-shadow: 0 40px 80px -50px rgba(19,20,43,.6); }
.fx-phone img { width: 100%; height: auto; border-radius: 34px; background: #fff; }

.fx-rel, .fx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fx-rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-cards { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.fx-rel__a, .fx-card { height: 100%; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.fx-rel__a:hover, .fx-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.fx-rel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fx-rel__top .tag { margin: 0; align-self: center; }
.fx-rel__a b, .fx-card b { font: 650 20px/1.2 var(--f-display); letter-spacing: -.015em; }
.fx-rel__a > span:not(.fx-rel__top), .fx-card__h { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.fx-card small { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.fx-rel__a em, .fx-card em { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--f-mono); font-style: normal; color: var(--brand); }
.fx-rel__a em .ic, .fx-card em .ic { width: 15px; height: 15px; transition: transform .15s ease; }
.fx-rel__a:hover em .ic, .fx-card:hover em .ic { transform: translateX(3px); }
@media (max-width: 900px) { .fx-rel { grid-template-columns: 1fr; } }

.fx-hero--ov h1 { max-width: 14em; }
.fx-jump ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.fx-jump a:hover { border-color: var(--brand); }
.fx-jump small { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.fx-cat { scroll-margin-top: 90px; }
.fx-cat + .fx-cat { margin-top: clamp(48px, 6vw, 72px); }

.fx-close { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.fx-close__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; background: #4B2BE8; color: #fff; border-radius: 28px; padding: clamp(28px, 4.5vw, 52px); }
.fx-close h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.fx-close p { margin: 0; color: rgba(255,255,255,.86); max-width: 34em; }
.fx-close .fx-cta { justify-content: flex-end; }
.fx-close .btn--primary { background: #fff; color: #2A1A8F; }
.fx-close .btn--primary:hover { background: #EEEBFD; }
.fx-close .btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.fx-close .btn--ghost:hover { border-color: #fff; }
.fx-close :focus-visible { outline-color: #fff; }
.fx-close__more { flex-basis: 100%; text-align: right; display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 15px; }
.fx-close__more .ic { width: 16px; height: 16px; }
@media (max-width: 900px) { .fx-close__in { grid-template-columns: 1fr; } .fx-close .fx-cta, .fx-close__more { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .gh__chev, .gh__bars i, .chatbtn, .fx-rel__a, .fx-card, .fx-rel__a em .ic, .fx-card em .ic { transition: none; }
  .chatbtn.is-loading .ic { animation: none; }
}
