/* ==========================================================================
   FORGE · LAYOUT
   Full-Width-Container, Header, Mega-Panel, Drawer, Footer.
   ========================================================================== */

/* ---------- Full-Width: NOVA-Container auf FORGE-Raster ---------- */
.container, .container-fluid, .container-fluid-xl, .container-plus-sidebar {
    max-width: var(--fg-max) !important;
    padding-left: var(--fg-gutter) !important;
    padding-right: var(--fg-gutter) !important;
    margin-left: auto; margin-right: auto;
}
/* verschachtelte Container: keine doppelten Raender */
.container .container, .container .container-fluid, .container-fluid .container, .container-fluid .container-fluid,
.container .fg-wrap, .container-fluid .fg-wrap, .fg-wrap .container, .fg-wrap .container-fluid,
#content-wrapper.container-fluid .breadcrumb-container {
    padding-left: 0 !important; padding-right: 0 !important; max-width: none !important;
}
#main-wrapper { background: transparent; min-height: 50vh; }
#content-wrapper { margin-top: 0 !important; padding-bottom: var(--fg-section); }
/* Abstand Navigation -> Brotkrumen klein halten (NOVA: 2rem/4rem padding-top + 20px Brotkrumen-Abstand) */
#content-wrapper:not(.has-fluid) { padding-top: 6px !important; }
#content-wrapper .breadcrumb-container { padding-top: 12px !important; padding-bottom: clamp(16px, 1.8vw, 26px) !important; }
body[data-page="18"] #content-wrapper { padding-bottom: 0; }
#content { padding-top: 0; }
.row { --fg-row-gap: 24px; }

/* Seitenkopf fuer CMS-Seiten */
.index-heading-wrapper h1, #content > h1, .content-heading h1 {
    margin: 18px 0 28px; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); letter-spacing: -0.025em;
}
.link-content { color: var(--fg-text-2); font-size: 1rem; line-height: 1.75; max-width: 980px; }
.link-content h2, .link-content h3 { margin-top: 1.6em; }

/* ---------- Header ---------- */
.forge-header { transition: transform .6s var(--fg-ease), background-color .4s var(--fg-ease), border-color .4s var(--fg-ease); }
.forge-header.is-scrolled { background: rgba(8,10,10,.9); border-bottom-color: var(--fg-line-strong); }
.forge-header.is-hidden:not(.mega-open):not(.search-open) { transform: translateY(-100%); }
.forge-header .fg-logo { height: 22px; transition: color .3s var(--fg-ease); }
.forge-header .fh-logo:hover { color: var(--fg-lime); }
.fh-logo-wrap { flex: 0 0 auto; }
.fh-divider { display: none; }

/* Hauptnavigation + gleitender Indikator */
.fh-nav { position: relative; height: 100%; display: flex; align-items: stretch; }
.fh-nav-list { display: flex; align-items: stretch; gap: clamp(4px, 1.2vw, 18px); margin: 0; padding: 0; list-style: none; }
.fh-nav-item { display: flex; align-items: stretch; }
.fh-link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 0 10px; height: 100%;
    background: none; border: 0; cursor: pointer;
    font-family: var(--fg-font); font-size: .92rem; font-weight: 500; letter-spacing: -0.005em;
    color: var(--fg-text-2) !important; white-space: nowrap;
    transition: color .3s var(--fg-ease);
}
.fh-link:hover, .fh-link.is-active, .fh-link[aria-expanded="true"] { color: var(--fg-text) !important; }
.fh-link.is-active { color: var(--fg-text) !important; }
.fh-caret { width: 15px !important; height: 15px !important; opacity: .7; transition: transform .5s var(--fg-ease); }
.fh-link[aria-expanded="true"] .fh-caret { transform: rotate(180deg); }
.fh-indicator {
    position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
    background: var(--fg-lime); box-shadow: 0 0 14px var(--fg-lime-glow);
    border-radius: 2px; opacity: 0; pointer-events: none;
}
/* Fallback ohne JS: aktiver Link unterstrichen */
html:not(.fg-js) .fh-link.is-active::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--fg-lime);
}

/* Suche */
.fh-search { position: relative; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.fh-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-muted); z-index: 3; pointer-events: none; line-height: 0; }
.fh-search-icon .fg-icon { width: 18px; height: 18px; }
.forge-header .fh-search .form-control, .fh-search-panel .form-control {
    height: 42px; min-height: 42px; padding-left: 42px;
    background: rgba(255,255,255,.035) !important; border-color: var(--fg-line-strong) !important; border-radius: 10px !important;
    font-size: .9rem;
}
.forge-header .fh-search .form-control:focus { background: rgba(255,255,255,.06) !important; }
.forge-header .fh-search .input-group-append, .fh-search-panel .input-group-append { display: none; }
.forge-header .fh-search .input-group > .form-control { border-radius: 10px !important; }
.forge-header .search-wrapper .form-clear, .fh-search-panel .form-clear { color: var(--fg-muted); right: 12px; z-index: 4; }
.fh-search .twitter-typeahead, .fh-search-panel .twitter-typeahead { width: 100%; }

/* Icon-Leiste */
.fh-icons {
    display: flex; align-items: center; gap: 2px; flex-wrap: nowrap;
    margin: 0 0 0 4px; padding: 0; list-style: none; height: 100%;
}
.fh-icons > li { position: relative; display: flex; align-items: center; height: 100%; }
.fh-icons > li > .nav-link, .fh-icons > li > a, .fh-search-toggle {
    position: relative; display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0 !important; border-radius: 10px;
    color: var(--fg-text) !important; background: transparent; border: 0;
    transition: background-color .3s var(--fg-ease), color .3s var(--fg-ease);
}
.fh-icons > li > .nav-link:hover, .fh-search-toggle:hover, .fh-icons > li.show > .nav-link { background: rgba(255,255,255,.06); color: var(--fg-lime) !important; }
.fh-icons .dropdown-toggle::after { display: none !important; }
.fh-icons .fg-icon { width: 22px; height: 22px; }
.fh-search-toggle-item { display: none !important; }
/* FontAwesome-Glyphen der NOVA-Partials (Konto, Merkzettel) durch Line-Icons ersetzen */
.fh-icons .account-icon-dropdown .nav-link > .fas,
.fh-icons #shop-nav-wish .nav-link > .fas { font-size: 0; position: relative; display: inline-flex; }
.fh-icons .account-icon-dropdown .nav-link > .fas::before,
.fh-icons #shop-nav-wish .nav-link > .fas::before {
    content: ""; display: block; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: var(--fg-ico) center / contain no-repeat; mask: var(--fg-ico) center / contain no-repeat;
}
.fh-icons .account-icon-dropdown .nav-link > .fas { --fg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.fh-icons .account-icon-dropdown .nav-link > .fa-user-check { --fg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='m16 11 2 2 4-4'/%3E%3C/svg%3E"); }
.fh-icons #shop-nav-wish .nav-link > .fas { --fg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E"); }
.fh-icons .fa-sup, .fh-icons .fg-badge {
    position: absolute; top: 4px; right: 3px; left: auto;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    font-size: 10.5px !important; line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px var(--fg-bg), 0 0 12px var(--fg-lime-glow);
}
.fh-icons .fg-badge.is-empty, .fh-icons .fa-sup.d-none { display: none !important; }
.fh-cart-icon { position: static; display: inline-flex; line-height: 0; }
.fh-icons .cart-icon-dropdown-price { display: none !important; }
.fh-icons .dropdown-menu { margin-top: 10px !important; right: 0; left: auto; }
.fh-icons .cart-dropdown, .fh-icons #cart-dropdown-container { min-width: 360px; }
.fh-icons .dropdown-menu .dropdown-body { padding: 18px; }
.fh-icons legend { font-size: 1rem; }

/* Burger */
.fh-burger {
    display: none; position: relative; width: 44px; height: 44px; margin-left: -8px;
    background: transparent; border: 0; border-radius: 10px; cursor: pointer; color: var(--fg-text);
}
.fh-burger span { position: absolute; left: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s var(--fg-ease), width .5s var(--fg-ease); }
.fh-burger span:first-child { top: 16px; width: 22px; }
.fh-burger span:last-child { top: 26px; width: 14px; }
.fh-burger:hover span:last-child { width: 22px; }

/* Checkout-Header */
.is-checkout-header .fh-bar { justify-content: space-between; }
.fh-secure { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-text-2); font-size: .9rem; margin-left: auto; margin-right: 24px; }
.fh-secure .fg-icon { color: var(--fg-lime); width: 18px; height: 18px; }
.fh-back { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-lime) !important; font-weight: 600; font-size: .9rem; }
.fh-back .fg-icon { width: 18px; height: 18px; }

/* ---------- Mega-Panel ---------- */
.fh-mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(9,11,11,.97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--fg-line-strong);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
    clip-path: inset(0 0 100% 0); opacity: 0;
    max-height: calc(100vh - var(--fg-header-h)); overflow: auto;
}
.fh-mega.is-open { visibility: visible; }
html:not(.fg-js) .fh-mega.is-open { clip-path: none; opacity: 1; }
.fh-mega-inner {
    display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(24px, 4vw, 72px);
    max-width: var(--fg-max); margin: 0 auto; padding: clamp(28px, 3.5vw, 48px) var(--fg-gutter) clamp(32px, 4vw, 56px);
}
.fh-mega-intro { padding-right: clamp(20px, 3vw, 48px); }
.fh-mega-title { font-family: var(--fg-display); font-size: 1.7rem; font-weight: 700; color: var(--fg-text); line-height: 1.1; margin: 14px 0 10px; }
.fh-mega-text { color: var(--fg-muted); font-size: .92rem; margin-bottom: 22px; }
.fh-mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 32px; align-content: start; }
.fh-mega-head { display: block; font-family: var(--fg-display); font-weight: 600; font-size: 1rem; color: var(--fg-text) !important; margin-bottom: 10px; }
.fh-mega-head:hover { color: var(--fg-lime) !important; }
.fh-mega-col ul { list-style: none; margin: 0; padding: 0; }
.fh-mega-col li a { display: block; padding: 4px 0; color: var(--fg-muted); font-size: .88rem; transition: color .25s var(--fg-ease), transform .35s var(--fg-ease); }
.fh-mega-col li a:hover { color: var(--fg-text); transform: translateX(3px); }
.fh-mega-more { display: inline-flex !important; align-items: center; gap: 6px; color: var(--fg-lime) !important; }
.fh-mega-more .fg-icon { width: 14px; height: 14px; }

/* ---------- Mobiles Such-Panel ---------- */
.fh-search-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 14px var(--fg-gutter);
    background: rgba(9,11,11,.97); border-bottom: 1px solid var(--fg-line-strong);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--fg-ease), transform .5s var(--fg-ease), visibility 0s .5s;
}
.search-open .fh-search-panel { visibility: visible; opacity: 1; transform: none; transition: opacity .4s var(--fg-ease), transform .5s var(--fg-ease); }
.fh-search-panel .form-control { padding-left: 16px; }

/* ---------- Drawer (Mobile) ---------- */
.fg-drawer { position: fixed; inset: 0; z-index: 1060; }
.fg-drawer.is-open { visibility: visible; }
.fg-drawer-backdrop { position: absolute; inset: 0; background: rgba(2,3,3,.7); opacity: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fg-drawer-panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 88vw);
    display: flex; flex-direction: column;
    background: var(--fg-surface); border-right: 1px solid var(--fg-line-strong);
    transform: translateX(-100%);
}
html:not(.fg-js) .fg-drawer.is-open .fg-drawer-panel { transform: none; }
html:not(.fg-js) .fg-drawer.is-open .fg-drawer-backdrop { opacity: 1; }
.fg-drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--fg-header-h); padding: 0 20px; border-bottom: 1px solid var(--fg-line); }
.fg-drawer-head .fg-logo { height: 20px; }
.fg-drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--fg-line-strong); border-radius: 10px; background: transparent; color: var(--fg-text); }
.fg-drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px 24px; overscroll-behavior: contain; }
.fg-drawer-links, .fg-drawer-cats { list-style: none; margin: 0; padding: 0; }
.fg-drawer-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--fg-line);
    font-family: var(--fg-display); font-size: 1.35rem; font-weight: 600; color: var(--fg-text);
}
.fg-drawer-links a .fg-icon { color: var(--fg-lime); width: 20px; height: 20px; }
.fg-drawer-kicker { margin: 28px 0 8px; }
.fg-drawer-cats > li > a, .fg-drawer-cats summary {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
    padding: 12px 0; color: var(--fg-text-2); font-weight: 500; border-bottom: 1px solid var(--fg-line);
}
.fg-drawer-cats summary::-webkit-details-marker { display: none; }
.fg-drawer-cats summary .fg-icon { width: 16px; height: 16px; transition: transform .4s var(--fg-ease); }
.fg-drawer-cats details[open] summary .fg-icon { transform: rotate(180deg); }
.fg-drawer-cats details ul { list-style: none; padding: 6px 0 10px 14px; margin: 0; }
.fg-drawer-cats details ul a { display: block; padding: 7px 0; color: var(--fg-muted); font-size: .92rem; }
.fg-drawer-foot { display: grid; gap: 4px; padding: 16px 20px 24px; border-top: 1px solid var(--fg-line); }
.fg-drawer-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--fg-text-2); }
.fg-drawer-foot .fg-icon { color: var(--fg-lime); width: 18px; height: 18px; }
html.fg-locked, html.fg-locked body { overflow: hidden; }

/* ---------- Footer ---------- */
.forge-footer {
    position: relative; overflow: hidden;
    background: var(--fg-bg); border-top: 1px solid var(--fg-line);
    color: var(--fg-text-2); margin-top: 0; padding: 0;
}
.ff-glow {
    position: absolute; left: 50%; top: -260px; width: min(1200px, 120vw); height: 420px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(198,244,50,.09), transparent 70%); pointer-events: none;
}
.ff-main {
    position: relative; display: grid; grid-template-columns: minmax(240px, 1.1fr) 2.4fr; gap: clamp(32px, 6vw, 120px);
    padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(36px, 4vw, 56px);
}
.ff-logo .fg-logo { height: 24px; }
.ff-claim { margin: 18px 0 22px; color: var(--fg-muted); max-width: 34ch; font-size: .92rem; }
.ff-social { display: flex; gap: 8px; }
.ff-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--fg-line-strong); border-radius: 10px; color: var(--fg-text-2); transition: all .3s var(--fg-ease); }
.ff-social a:hover { border-color: var(--fg-lime); color: var(--fg-lime); transform: translateY(-2px); }
.ff-social .fg-icon { width: 18px; height: 18px; }
.ff-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ff-title { font-family: var(--fg-display); font-weight: 600; color: var(--fg-text); font-size: .95rem; letter-spacing: .02em; margin-bottom: 16px; }
.ff-col ul { list-style: none; margin: 0; padding: 0; }
.ff-col li { margin-bottom: 9px; }
.ff-col a { color: var(--fg-muted); font-size: .9rem; display: inline-flex; align-items: center; gap: 10px; }
.ff-col a:hover { color: var(--fg-text); }
.ff-contact .fg-icon { width: 16px; height: 16px; color: var(--fg-lime); }
.ff-hours { color: var(--fg-subtle); font-size: .85rem; padding-left: 26px; }
.ff-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-bottom: 32px; }
.ff-boxes .box { background: transparent; border: 0; }
.ff-withdrawal { padding-bottom: 24px; }
.ff-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
    padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--fg-line); font-size: .82rem;
}
.ff-copy { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--fg-subtle); }
.ff-copy a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.ff-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.ff-legal a, .ff-consent { color: var(--fg-muted); font-size: .82rem; background: none; border: 0; padding: 0; cursor: pointer; }
.ff-legal a:hover, .ff-consent:hover { color: var(--fg-text); }
.ff-credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-bottom: 22px; font-size: .75rem; color: var(--fg-subtle); }
.ff-credits a { color: var(--fg-muted); }
.ff-credits .ff-dev { margin-left: auto; }
.ff-credits .ff-dev a { color: var(--fg-text-2); font-weight: 600; transition: color .3s var(--fg-ease); }
.ff-credits .ff-dev a:hover { color: var(--fg-lime); }
.is-checkout-footer .ff-bottom { border-top: 0; }

/* Nach-oben */
.fg-totop {
    position: fixed; right: 20px; bottom: 20px; z-index: 1020;
    width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(17,21,21,.9); color: var(--fg-text); border: 1px solid var(--fg-line-strong); border-radius: 12px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .4s var(--fg-ease), transform .5s var(--fg-ease), visibility 0s .5s, border-color .3s;
    cursor: pointer;
}
.fg-totop .fg-icon { transform: rotate(180deg); }
.fg-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--fg-ease), transform .5s var(--fg-ease), border-color .3s; }
.fg-totop:hover { border-color: var(--fg-lime); color: var(--fg-lime); }
#consent-settings-btn { left: 20px; right: auto; bottom: 20px; }

/* ---------- Seitenleiste / Boxen (NOVA) ---------- */
.sidepanel-left .box, .box { background: transparent; color: var(--fg-text-2); }
.box .productlist-filter-headline, .box-title, .box .h4 { font-family: var(--fg-display); color: var(--fg-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
    .fh-search { max-width: 300px; }
}
@media (max-width: 1199.98px) {
    .fh-search { display: none; }
    .fh-search-toggle-item { display: flex !important; }
    .fh-icons { margin-left: auto; }
    .fh-link { font-size: .88rem; padding: 0 8px; }
}
@media (max-width: 991.98px) {
    .fh-nav, .fh-divider { display: none; }
    .fh-burger { display: inline-block; }
    .forge-header .fh-bar { gap: 8px; }
    .fh-logo-wrap { margin-right: auto; }
    .ff-main { grid-template-columns: 1fr; }
    .fh-mega { display: none; }
}
@media (max-width: 767.98px) {
    .ff-cols { grid-template-columns: 1fr 1fr; }
    .fh-icons > li > .nav-link, .fh-icons > li > a, .fh-search-toggle { width: 40px; height: 40px; }
    .fh-icons #shop-nav-wish { display: none !important; }
    .fh-icons .dropdown-menu { position: fixed !important; left: 12px !important; right: 12px !important; top: calc(var(--fg-header-h) + 4px) !important; transform: none !important; min-width: 0 !important; }
    .ff-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479.98px) {
    .ff-cols { grid-template-columns: 1fr; }
    .forge-header .fg-logo { height: 18px; }
}

/* Footer-Boxen (Linkgruppen aus dem Backend, Position "unten") */
.ff-boxes { border-top: 1px solid var(--fg-line); padding-top: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); gap: 24px 32px; }
.ff-boxes .box-normal-hr, .ff-boxes hr { display: none; }
.ff-boxes .productlist-filter-headline { font-family: var(--fg-display); font-weight: 600; color: var(--fg-text); font-size: .95rem; margin-bottom: 12px; padding: 0; border: 0; }
.ff-boxes .box-normal-link { display: none; }
.ff-boxes .nav-link { color: var(--fg-muted) !important; font-size: .88rem; padding: 4px 0 !important; font-weight: 400; }
.ff-boxes .nav-link:hover { color: var(--fg-text) !important; }
@media (max-width: 767.98px) {
    .ff-boxes .box-normal-link { display: flex; justify-content: space-between; color: var(--fg-text); font-weight: 600; padding: 10px 0; }
    .ff-boxes .box-normal-link::after { border-top-color: var(--fg-muted); }
}
