/* Azon – front-end styles. No framework, no build step. */
:root {
  /* Dein Sport Markt: forest green + lime (sport & outdoor), warm neutrals – deliberately not Amazon's orange/navy */
  --bg: #f5f6f1;
  --surface: #ffffff;
  --text: #14201b;
  --muted: #5a6760;
  --line: #e1e5dc;
  --brand: #0f5132;           /* logo, hero */
  --lime: #c6e83a;            /* accent (on dark backgrounds) */
  --accent: #13693f;          /* links, buttons */
  --accent-soft: #e6f2e9;
  --buy: #13693f;             /* buy button */
  --buy-hover: #0f5132;
  --buy-text: #ffffff;
  --price: #1c2421;
  --footer-bg: #e9ebe4;
  --footer-text: #3f4a45;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- Header --- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo img { width: 40px; height: 40px; }
.logo-text { font-size: 22px; letter-spacing: -.02em; font-weight: 400; }
.logo-text b { font-weight: 800; color: var(--brand); }
.search-form { flex: 1; display: flex; max-width: 560px; margin-left: auto; }
.search-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; font: inherit; background: var(--bg); }
.search-form input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.search-form button { width: 48px; height: 42px; border: 0; border-radius: 0 10px 10px 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; color: var(--text); cursor: pointer; }

/* --- Navigation --- */
.site-nav { border-top: 1px solid var(--line); }
.nav-list { position: relative; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; padding: 11px 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-list a:hover { color: var(--accent); }
.sub-toggle { background: none; border: 0; padding: 6px; margin-left: -8px; color: var(--muted); cursor: pointer; }
.sub { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: none; }
.sub a { padding: 8px 10px; border-radius: 6px; display: flex; justify-content: space-between; gap: 12px; }
.sub a:hover { background: var(--accent-soft); }
.n { color: var(--muted); font-size: 13px; font-weight: 400; }

/* Mega menu (3 levels): full-width panel, one column per 2nd-level category */
.nav-list > li.has-mega { position: static; }
.mega { left: 16px; right: 16px; padding: 22px 26px 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 28px; }
.mega-col { min-width: 0; margin-bottom: 14px; }
.mega .mega-head { display: block; padding: 6px 0 9px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: var(--text); border-radius: 0; }
.mega .mega-head:hover { background: none; color: var(--accent); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega ul a { padding: 7px 0; font-weight: 400; color: var(--muted); border-radius: 0; border-bottom: 1px solid var(--line); }
.mega ul li:last-child a { border-bottom: 0; }
.mega ul a:hover { background: none; color: var(--accent); }
.mega .mega-more { color: var(--accent); font-weight: 500; }
@media (hover: hover) and (min-width: 860px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
}
.has-sub.open .sub { display: block; }
.has-mega.open .mega { display: grid; }

/* --- Main --- */
main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }
.section { margin: 28px 0; }
.page-head { margin: 8px 0 18px; }
.page-title { font-size: 28px; margin: 0 0 4px; letter-spacing: -.01em; }
.page-head .muted { margin: 0; }
.section-title { font-size: 22px; margin: 0 0 14px; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* --- Product grid --- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .1); transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card-title { font-size: 15px; font-weight: 500; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: auto; padding-top: 6px; }
.card-price strong { font-size: 18px; color: var(--price); }
.card-price .muted { font-size: 14px; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.card-old { color: var(--muted); font-size: 14px; }
/* Variant families: cheapest-variant note + colour/size lists */
.variant-note { font-size: 14px; color: var(--muted); margin: -8px 0 12px; }
.variant-dims { margin: 0 0 14px; display: grid; gap: 8px; }
.variant-dims > div { display: grid; gap: 4px; }
.variant-dims dt { font-size: 14px; font-weight: 600; }
.variant-dims dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; line-height: 1.5; }
.chip-more { background: var(--accent-soft); border-color: transparent; color: var(--brand); font-weight: 600; }

/* "Angebot" corner ribbon on product images (diagonal band, clipped by .img-box) */
.sale-ribbon { position: absolute; z-index: 2; top: 14px; left: -34px; width: 130px; transform: rotate(-45deg); background: #c8281e; color: #fff; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 24px; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); pointer-events: none; }
.sale-ribbon-lg { top: 22px; left: -42px; width: 170px; font-size: 14px; line-height: 30px; }
.save-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #fdecea; color: #b42318; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; }

/* Square image box – any aspect ratio fits without cropping */
/* Image sizes are matched to the variants 500 / 320 / 160 – see PROJEKT.md, section 7 */
.img-box { --pad: 12px; aspect-ratio: 1 / 1; background: #fff; position: relative; overflow: hidden; }
.img-box img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }

/* --- Category --- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 28px 0 0; }
.pagination a { padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

.cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cat-tiles > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: border-color .15s, box-shadow .15s; }
.cat-tiles > li:hover { border-color: #c9d3c4; box-shadow: var(--shadow); }
.cat-tile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.cat-img { --pad: 8px; flex: 0 0 96px; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 10px; }
.cat-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-tile strong { font-size: 17px; }
.cat-more { color: var(--accent); font-size: 14px; font-weight: 600; }
.cat-tile:hover .cat-more { text-decoration: underline; }
.cat-sub { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.cat-sub a { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--brand); text-decoration: none; }
.cat-sub a:hover { background: #d4eadb; }

/* --- Product page --- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.product-gallery, .product-info { min-width: 0; }
.gallery-main { --pad: 16px; width: 100%; border: 0; padding: 0; cursor: zoom-in; border-radius: 8px; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
/* Thumbnail image area exactly 80×80 CSS px (+ 2px border) → variant 160 covers 2× screens */
.thumb { --pad: 0px; width: 84px; border: 2px solid var(--line); border-radius: 8px; padding: 0; cursor: pointer; }
.thumb.active, .thumb:hover { border-color: var(--accent); }
.product-brand { color: var(--muted); font-size: 14px; }
.product-title { font-size: 24px; margin: 4px 0 16px; }
.buy-box { background: var(--bg); border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price strong { font-size: 30px; color: var(--price); letter-spacing: -.01em; }
.price-meta { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.price-info { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.price-info:hover { color: var(--accent); }
.btn-buy { display: block; text-align: center; padding: 14px 18px; background: var(--buy); color: var(--buy-text); font-weight: 700; font-size: 17px; border-radius: 10px; text-decoration: none; box-shadow: var(--shadow); }
.btn-buy:hover { background: var(--buy-hover); }
.btn-secondary { display: inline-block; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 8px; text-decoration: none; }
.features h2 { font-size: 18px; margin: 0 0 8px; }
.features ul { margin: 0; padding: 0; list-style: none; }
.features li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); line-height: 1.5; }
.features li:first-child { border-top: 0; padding-top: 4px; }
/* green check in a soft circle */
.features li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2313693f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.features li:first-child::before { top: 6px; }
.features li strong { color: var(--brand); font-weight: 650; }
.prose { max-width: 760px; }
.description .prose, .page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }

/* --- Contact form --- */
.contact-form { display: grid; gap: 16px; max-width: 560px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; font-size: 15px; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid #cfd6cb; border-radius: 10px; font: inherit; background: var(--surface); color: var(--text); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.has-error input, .has-error textarea { border-color: #b42318; }
.field-error, .form-error { color: #b42318; }
.form-error { background: #fef3f2; border: 1px solid #fecdca; padding: 10px 14px; border-radius: 10px; }
.form-ok { background: var(--accent-soft); color: var(--brand); border: 1px solid #b9dcc4; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.contact-form .btn-buy { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; padding: 13px 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Lightbox --- */
.lightbox { width: min(96vw, 900px); max-height: 96vh; border: 0; border-radius: 12px; padding: 40px 56px 16px; background: #fff; }
.lightbox::backdrop { background: rgba(10, 14, 20, .75); }
.lightbox figure { margin: 0; display: grid; place-items: center; }
.lightbox img { max-height: 78vh; width: auto; object-fit: contain; }
.lb-count { color: var(--muted); font-size: 14px; margin-top: 8px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; font-size: 34px; line-height: 1; color: var(--text); cursor: pointer; padding: 8px 12px; }
.lb-close { top: 4px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Second call to action after the product content */
.cta-again { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.cta-again .btn-buy { min-width: 260px; }
.cta-title { flex: 1; min-width: 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cta-price strong { font-size: 22px; color: var(--price); }

/* Sticky buy bar: large screens – slides in at the bottom when the main buy box is out of view (JS adds .show) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); transform: translateY(110%); transition: transform .2s ease; }
.sticky-buy.show { transform: none; }
.sticky-inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.sticky-thumb { --pad: 2px; width: 48px; flex: 0 0 48px; border-radius: 6px; border: 1px solid var(--line); }
.sticky-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.sticky-price { font-size: 20px; color: var(--price); white-space: nowrap; }
.sticky-buy .btn-buy { padding: 10px 26px; font-size: 16px; }
body:has(.sticky-buy) .site-footer { padding-bottom: 90px; }

/* Info popup (price / affiliate disclaimer) */
.info-dialog { width: min(92vw, 560px); border: 0; border-radius: 12px; padding: 22px 26px; }
.info-dialog::backdrop { background: rgba(10, 14, 20, .55); }
.info-dialog h2 { font-size: 18px; margin: 0 28px 10px 0; }
.info-dialog p { margin: 0 0 12px; font-size: 15px; }

/* --- Footer --- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 28px 0; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }
.affiliate, .copy { margin: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 6px 16px 12px; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; }
  .sub-toggle { margin-left: 0; padding: 10px 12px; }
  .sub { position: static; box-shadow: none; border: 0; width: 100%; padding: 0 0 8px 12px; }
  .has-mega.open .mega { display: block; }
  .mega { padding: 0 0 8px 12px; }
  .mega-col { margin-bottom: 8px; }
  .mega .mega-head { text-transform: none; font-size: 15px; letter-spacing: 0; padding: 8px 10px; border-bottom: 0; }
  .mega ul { padding-left: 12px; }
  .mega ul a { border-bottom: 0; padding: 6px 10px; }
  .product { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .thumb { flex: 0 0 auto; }
  /* Phones: sticky bar always visible, compact (no thumbnail/title) */
  .sticky-buy { transform: none; }
  .sticky-thumb, .sticky-title { display: none; }
  .sticky-buy .btn-buy { flex: 1; padding: 12px; }
  .cta-again { justify-content: space-between; }
  .cta-title { display: none; }
  .cta-again { gap: 12px; }
  .cta-again .btn-buy { min-width: 0; flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .header-row { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .search-form { order: 3; flex-basis: 100%; max-width: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 14px; }
  .page-title { font-size: 23px; }
  .product-title { font-size: 20px; }
  .price strong { font-size: 26px; }
  .lightbox { padding: 40px 8px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
}

/* --- Home: hero + benefits --- */
.hero { position: relative; overflow: hidden; border-radius: 16px; background: var(--brand) url('/assets/hero.svg') center / cover no-repeat; color: #fff; padding: 56px 44px 64px; margin: 4px 0 18px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 40, 26, .78) 0%, rgba(10, 40, 26, .45) 45%, rgba(10, 40, 26, 0) 75%); }
.hero > * { position: relative; max-width: 560px; }
.hero-kicker { color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 10px; }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { font-size: 17px; margin: 0 0 22px; color: #e3efe7; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-cats a { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; backdrop-filter: blur(2px); }
.hero-cats a:hover { background: var(--lime); border-color: var(--lime); color: var(--brand); }
.benefits { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--muted); }
.benefits strong { display: block; color: var(--text); font-size: 15px; }
.benefits small { font-size: 14px; }
.benefits svg { flex: 0 0 28px; color: var(--accent); }
@media (max-width: 860px) { .hero { padding: 36px 24px 44px; min-height: 240px; } .hero h1 { font-size: 30px; } .benefits { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero { padding-bottom: 150px; background-size: 880px auto; background-position: 77% 100%; } .hero::before { background: linear-gradient(180deg, rgba(10, 40, 26, .75) 0%, rgba(10, 40, 26, .4) 55%, rgba(10, 40, 26, 0) 75%); } .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .benefits li { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; } .benefits small { display: none; } .benefits strong { font-size: 13px; } .benefits svg { flex-basis: auto; width: 24px; height: 24px; } .hero h1 { font-size: 26px; } .hero p { font-size: 15px; } .logo-text { font-size: 19px; } .logo img { width: 34px; height: 34px; } }
