/* acuerate – Layout für acueratecuesports.com (Entwurf B: schwarzer Kopf, weicher Verlauf, hellgrauer Shop)
   Datei: files/acuerate/layout/acuerate.css  ·  Schrift: files/acuerate/layout/OpenSans-latin.woff2 (selbst gehostet)
   Erwartet im Kopf (Seitenlayout, Reihenfolge egal): Warenkorb-Symbol, Navigation, Mobilmenü,
   HTML-Modul „Kopf: Logo“ (<a id="logo">…</a>) und optional HTML-Modul „Kopf: Banner“ (<section class="acu-banner">…</section>). */

@font-face{font-family:"Open Sans";src:url(fonts/OpenSans-latin.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --acu-gruen:#42AB48;        /* Logo-Grün – auf Schwarz */
  --acu-gruen-dunkel:#2A7F31; /* Grün auf Hell/Weiß (Schrift, Knöpfe mit weißer Schrift) */
  --acu-gruen-hover:#1F6125;
  --acu-schwarz:#000;
  --acu-hell:#F1F3ED;         /* Shop-Hintergrund */
  --acu-text:#1E1E1E;
  --acu-grau:#555;
  --acu-linie:#DADDD5;
  --acu-breite:1280px;
  --shop-accent:#2A7F31;      /* vom Shop-Bundle genutzt (Schritte, Knöpfe) */
}

/* ============ GRUNDLAGE ============ */
html{background:var(--acu-hell)}
body{margin:0;background:var(--acu-hell);color:var(--acu-text);font-family:"Open Sans",Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--acu-gruen-dunkel)}
a:hover,a:focus-visible{color:var(--acu-gruen-hover)}
h1,h2,h3{line-height:1.2;font-weight:600;color:var(--acu-text)}
h1{font-size:1.75rem;margin:0 0 .6em}
h2{font-size:1.4rem;margin:1.2em 0 .5em}
h3{font-size:1.1rem}
:focus-visible{outline:2px solid var(--acu-gruen);outline-offset:2px}
#wrapper{width:auto;margin:0}

/* ============ KOPF (schwarz) ============ */
#header{background:var(--acu-schwarz);color:#fff}
#header .inside{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;max-width:var(--acu-breite);margin:0 auto;padding:0 48px;box-sizing:border-box;column-gap:24px}
#header .inside>*{grid-column:1/-1}
#header a{color:#fff;text-decoration:none}
#header a:hover,#header a:focus-visible{color:var(--acu-gruen)}

/* Zeile 1: Kategorien links, Suche + Warenkorb rechts; feine Linie darunter */
#header .inside::before{content:"";grid-column:1/-1;grid-row:1;align-self:end;height:1px;background:#222;margin:0 -48px}
#header .mod_navigation{grid-column:1;grid-row:1;overflow:visible}
#header .mod_navigation ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 28px}
#header .mod_navigation li{margin:0}
#header .mod_navigation a,#header .mod_navigation strong{display:block;padding:14px 0 12px;font-size:.875rem;font-weight:600;color:#fff;border-bottom:2px solid transparent}
#header .mod_navigation a:hover,#header .mod_navigation a:focus-visible{color:var(--acu-gruen)}
#header .mod_navigation strong.active,#header .mod_navigation a.trail,#header .mod_navigation strong.trail{color:var(--acu-gruen);border-bottom-color:var(--acu-gruen)}
#header .acu-tools{grid-column:2;grid-row:1;display:flex;align-items:center;gap:20px}
#header .acu-search{display:flex;align-items:center;gap:6px;font-size:.875rem}
#header .acu-search__icon{display:block;width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/contain no-repeat}
#header .module-shop-cart-mini{grid-column:2;grid-row:1;justify-self:end;font-size:.8rem;padding:6px 0}
#header .acu-tools~.module-shop-cart-mini{margin-left:0}
#header .module-shop-cart-mini .shop-basket{width:64px}
#header .shop-cart-mini__total{opacity:.85}
/* Wenn es Suche + Warenkorb gibt: Suche links neben den Warenkorb schieben */
#header .inside:has(.module-shop-search-box){grid-template-columns:minmax(0,1fr) auto auto}
#header .inside:has(.module-shop-search-box) .module-shop-cart-mini{grid-column:3}

/* Zeile 2: Logo mittig */
#header #logo{grid-row:2;justify-self:center;display:block;padding:32px 0 28px;line-height:0}
#header #logo img{display:block;width:360px;max-width:70vw;height:auto}

/* Zeile 3: Bild-Banner (Text links, Foto rechts mit weichem Übergang) */
#header .acu-banner{grid-row:3;position:relative;display:flex;min-height:340px;background:#141414;overflow:hidden}
#header .acu-banner__text{flex:0 0 44%;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:32px 48px;box-sizing:border-box}
#header .acu-banner__text p{margin:0}
#header .acu-banner__kicker{color:var(--acu-gruen);font-size:.8rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase}
#header .acu-banner h2{margin:0;color:#fff;font-size:2.1rem;line-height:1.15;font-weight:700}
#header .acu-banner__lead{color:#cfcfcf;font-size:.95rem}
#header a.acu-button,#main a.acu-button{align-self:flex-start;margin-top:6px;display:inline-block;padding:11px 20px;border-radius:4px;background:var(--acu-gruen);color:#000;font-weight:700;font-size:.875rem;text-decoration:none}
#header a.acu-button:hover,#header a.acu-button:focus-visible{background:#5BC461;color:#000}
#header .acu-banner__bild{flex:1 1 auto;position:relative;margin:0;background:#000}
#header .acu-banner__bild img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#header .acu-banner__bild::before{content:"";position:absolute;z-index:1;left:0;top:0;bottom:0;width:140px;background:linear-gradient(to right,#141414,rgba(20,20,20,0))}

/* Weicher Verlauf Schwarz → Hellgrau unter dem Kopf (Entwurf B) */
#header::after{content:"";display:block;height:160px;background:linear-gradient(to bottom,#000 0%,#2b2c29 35%,#a9aba5 75%,var(--acu-hell) 100%)}

/* Mobilmenü (codefog) */
#header .mod_mobile_menu{grid-column:1;grid-row:1;justify-self:start}
.mobile_menu_trigger{cursor:pointer;color:#fff;font-size:28px;line-height:1;padding:10px 4px}
.mobile_menu .inner{background:#000}
.mobile_menu .inner ul{list-style:none;margin:0;padding:0}
.mobile_menu .inner a,.mobile_menu .inner strong{display:block;padding:12px 20px;border-bottom:1px solid #222;color:#fff;text-decoration:none;font-weight:600;font-size:1.05rem}
.mobile_menu .inner strong.active,.mobile_menu .inner a.trail{color:var(--acu-gruen)}
@media (min-width:992px){#header .mod_mobile_menu{display:none}}
/* Mitlaufende Leiste beim Scrollen (Shop-Bundle, nur ≤991 px): schwarz, Logo ohne weißen Kasten */
body .shop-stickybar{background:#000}
.shop-stickybar .shop-stickybar__logo{background:none;padding:0}
.shop-stickybar .shop-stickybar__logo img{height:40px;max-width:140px}

/* ============ INHALT (hellgrau) ============ */
#container{max-width:var(--acu-breite);margin:0 auto;padding:0 48px 56px;box-sizing:border-box}
#main .inside{min-height:200px}
#main .mod_article{overflow:visible}
.content-text .rte>:first-child{margin-top:0}

/* Knöpfe allgemein */
#main button,#main .shop-button,#main input[type=submit]{font-family:inherit}
#main .shop-add button,#main .shop-toolbar button,#main .shop-button:not(.shop-button--alt){background:var(--acu-gruen-dunkel);color:#fff;border:0;border-radius:4px;padding:10px 16px;font-size:.875rem;font-weight:600;cursor:pointer}
#main .shop-add button:hover,#main .shop-toolbar button:hover,#main .shop-button:not(.shop-button--alt):hover{background:var(--acu-gruen-hover)}
#main input[type=search],#main input[type=text],#main input[type=email],#main input[type=tel],#main input[type=number],#main select,#main textarea{border:1px solid #c8cbc3;border-radius:4px;padding:8px 10px;font:inherit;background:#fff}

/* Suche */
#main .shop-toolbar input[type=search]{flex:1;min-width:0;max-width:28em}

/* ============ PRODUKTLISTE (Kacheln) ============ */
#main .shop-cards{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
#main .shop-card{background:#fff;border:0;border-radius:6px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.06);gap:0}
#main .shop-card__img{aspect-ratio:1/1;background:#fff;margin:0 0 12px}
#main .shop-card__img:not(:has(img)){background:#f4f5f1}
#main .shop-card__title{font-size:1rem;font-weight:600;line-height:1.3;margin:0 0 6px}
#main .shop-card__title a{color:var(--acu-text);text-decoration:none}
#main .shop-card__title a:hover{color:var(--acu-gruen-dunkel)}
#main .shop-card__text{font-size:.82rem;color:var(--acu-grau);margin:0 0 12px}
#main .shop-card__price{font-size:1.15rem;font-weight:600}
#main .shop-item__meta{font-size:.78rem;color:var(--acu-grau);line-height:1.45}
#main .shop-card .shop-add{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#main .shop-card .shop-add button{flex:1;min-height:42px}
#main .shop-card .shop-add input[type=number]{width:3.5em;min-height:42px;box-sizing:border-box}
#main .shop-add__msg{flex-basis:100%;min-width:0}
#main .shop-add__msg:empty{display:none}

/* Blättern */
#main .shop-pagination a,#main .shop-pagination .is-current{display:inline-block;min-width:2.2em;padding:6px 8px;text-align:center;border-radius:4px;background:#fff;text-decoration:none}
#main .shop-pagination .is-current{background:var(--acu-gruen-dunkel);color:#fff}

/* ============ DETAILSEITE ============ */
#main .shop-band{margin:0 0 16px}
#main .shop-band__back{text-decoration:none;font-size:.9rem}
#main .shop-product{background:#fff;border-radius:6px;padding:28px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
#main .shop-product h1{font-size:1.75rem}
#main .shop-zoom__main,#main .shop-gallery img{background:#fff}
#main .shop-product .shop-item__price{font-size:1.6rem;font-weight:700;margin:.4em 0 .2em}
#main .shop-product .shop-item__meta{font-size:.85rem}
#main .shop-product .shop-add button{padding:12px 22px;font-size:1rem}

/* ============ WARENKORB / KASSE ============ */
#main .module-shop-cart,#main .module-shop-checkout,#main .shop-confirm{background:#fff;border-radius:6px;padding:24px 28px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
#main .shop-cart__img img{background:#fff}
#main .shop-confirm__notice{background:#f3f8f2}

/* ============ FUSS (falls im Layout eingeschaltet) ============ */
#footer{background:#000;color:#ccc;font-size:.875rem}
#footer .inside{max-width:var(--acu-breite);margin:0 auto;padding:32px 48px;box-sizing:border-box}
#footer a{color:#fff;text-decoration:none}
#footer a:hover{color:var(--acu-gruen)}
#footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px}

/* ============ MOBIL / TABLET ============ */
@media (max-width:1100px){
  #header .acu-banner__text{flex-basis:50%;padding:28px 32px}
  #header .acu-banner h2{font-size:1.7rem}
}
@media (max-width:991px){
  #header .mod_navigation{display:none}
  #header .mod_mobile_menu .mod_navigation{display:block}
  #header .inside{padding:0 16px}
  #header .inside::before{margin:0 -16px}
  #header #logo{padding:20px 0 18px}
  #header #logo img{width:260px}
  #header .acu-banner{min-height:0;flex-direction:column-reverse}
  #header .acu-banner__bild{aspect-ratio:16/9}
  #header .acu-banner__bild::before{display:none}
  #header .acu-banner__text{flex-basis:auto;padding:20px}
  #header::after{height:90px}
  #container{padding:0 16px 40px}
}
@media (max-width:600px){
  #header #logo img{width:210px}
  
  #main .shop-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  #main .shop-card{padding:10px}
  #main .shop-card__text{display:none}
  #main .shop-product{padding:16px}
  #main .module-shop-cart,#main .module-shop-checkout,#main .shop-confirm{padding:16px}
}
@media (max-width:380px){#main .shop-cards{grid-template-columns:1fr}}
@media print{#header::after,#header .acu-banner,.mobile_menu_trigger{display:none}#header{background:none;color:#000}}

/* Suchfeld oben (Modul „Kopf: Suchfeld“, Typ Shop-Suchfeld) – Enter oder Lupe -> /suche */
#header .module-shop-search-box{grid-column:2;grid-row:1;margin:0}
#header .shop-searchbox{display:flex;align-items:center;gap:0;border-bottom:1px solid #444;transition:border-color .2s}
#header .shop-searchbox:focus-within{border-bottom-color:var(--acu-gruen)}
#header .shop-searchbox input[type=search]{width:11em;padding:7px 4px;border:0;background:transparent;color:#fff;font:inherit;font-size:.875rem;-webkit-appearance:none;appearance:none;border-radius:0;outline:none}
#header .shop-searchbox input::placeholder{color:#aaa;opacity:1}
#header .shop-searchbox button{display:flex;align-items:center;gap:6px;background:none;border:0;color:#fff;padding:7px 2px 7px 6px;cursor:pointer;font:inherit;font-size:.875rem}
#header .shop-searchbox button:hover,#header .shop-searchbox button:focus-visible{color:var(--acu-gruen)}
#header .shop-searchbox__label{display:none}
@media (max-width:600px){#header .shop-searchbox input[type=search]{width:7.5em}}

/* Fußzeile */
#footer{background:#000;color:#cfd2c9;margin-top:3rem;padding:2rem 1rem}
#footer .inside{max-width:var(--acu-breite);margin:0 auto}
#footer .acu-footer nav{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;justify-content:center;margin-bottom:1rem}
#footer .acu-footer a{color:#fff;text-decoration:none;font-size:.95rem}
#footer .acu-footer a:hover,#footer .acu-footer a:focus{color:var(--acu-gruen);text-decoration:underline}
#footer .acu-footer p{margin:0;text-align:center;font-size:.85rem;color:#9a9d94}

/* Startseite: Kategorie-Kacheln */
.acu-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;margin:0 0 2rem}
.acu-tiles a{display:flex;align-items:center;justify-content:center;min-height:110px;background:#000;color:#fff;text-decoration:none;font-weight:700;font-size:1.15rem;border-radius:8px;border-bottom:4px solid var(--acu-gruen);transition:background .2s,transform .2s}
.acu-tiles a:hover,.acu-tiles a:focus{background:var(--acu-gruen-dunkel);transform:translateY(-2px)}

/* Kompakter Kopf auf allen Seiten außer der Startseite (Seite mit CSS-Klasse acu-home) */
body:not(.acu-home) #header .acu-banner{display:none}
body:not(.acu-home) #header #logo{padding:14px 0 10px}
body:not(.acu-home) #header #logo img{width:190px}
body:not(.acu-home) #header::after{height:48px}
@media (max-width:600px){body:not(.acu-home) #header #logo img{width:150px}body:not(.acu-home) #header #logo{padding:10px 0 8px}}

/* Zurück-Leiste auf der Detailseite: statt großem dunklem Feld nur ein kleiner Link */
.shop-band,.shop-band.is-ready{min-height:0!important;padding:0!important;margin:0 0 .6rem!important;background:none!important;color:#333;text-shadow:none}
body .shop-band a.shop-band__back{color:var(--acu-gruen-dunkel)!important}
body .shop-band a.shop-band__back:hover,body .shop-band a.shop-band__back:focus-visible{text-decoration:underline!important}
.shop-band__back{border:0!important;padding:0!important;font-weight:600;font-size:.95rem}
.shop-band__back:hover,.shop-band__back:focus-visible{background:none!important;text-decoration:underline!important}
/* Handy: mitlaufende Leiste mit kleinem Logo, damit man weiß, wo man ist */
.shop-stickybar .shop-stickybar__menu{order:0}
.shop-stickybar::before{content:"";position:absolute;left:50%;top:50%;width:140px;height:38px;transform:translate(-50%,-50%);background:url(logo/acuerate-logo-cuesports.svg) center/contain no-repeat;pointer-events:none}
.shop-stickybar .shop-stickybar__search{order:2}
.shop-stickybar .shop-cart-mini--bar{order:3}
/* Desktop: beim Scrollen bleibt nur die Menüzeile (Navigation, Suche, Warenkorb) mit kleinem Logo oben stehen (Klasse acu-stuck setzt ein kleines Skript im Layout) */
@media (min-width:992px){
 body.acu-stuck #header{position:fixed;top:0;left:0;right:0;z-index:800;box-shadow:0 2px 10px rgba(0,0,0,.45)}
 body.acu-stuck #header #logo,body.acu-stuck #header .acu-banner,body.acu-stuck #header::after{display:none}
 body:not(.acu-home) #header .inside::after{content:"";grid-column:1/-1;grid-row:1;justify-self:center;align-self:center;width:130px;height:40px;background:url(logo/acuerate-logo-cuesports.svg) center/contain no-repeat;pointer-events:none;opacity:0;transition:opacity .2s}
 body.acu-stuck #header .inside::after{opacity:1}
}
