/* oopbuyqc.de — hand-written stylesheet
   Design: limestone ground, ink-green sections, amber for caveats.
   No frameworks, no external fonts, no CDN. */

:root {
  --bg: #f6f5ef;
  --surface: #ffffff;
  --surface-2: #eeece2;
  --ink: #1b201c;
  --muted: #565b52;
  --muted-2: #6d7268;
  --green-900: #12362a;
  --green-800: #164033;
  --green-700: #1d5641;
  --green-600: #236a50;
  --green-050: #e6efe9;
  --amber-700: #8a5406;
  --amber-bg: #fbefd6;
  --amber-border: #e4c576;
  --border: #e0ded3;
  --border-strong: #c8c6b8;
  --focus: #1d5641;

  --wrap: 1240px;
  --prose: 68ch;
  --radius: 10px;
  --radius-sm: 7px;

  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --sp-section: 56px;
  --sp-block: 28px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
h1 { font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-900);
  color: #eef3ee;
  border-bottom: 3px solid var(--amber-border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand .brand-qc { color: var(--amber-border); }
.brand-tag {
  color: #b9ccbf;
  font-size: 13px;
  font-weight: 500;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #3c5c4d;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.main-nav a {
  display: block;
  color: #dfe8e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: #1c4536; color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; background: #1c4536; }
.main-nav .nav-accent a { color: var(--amber-border); }
.main-nav { border-top: 1px solid #1c4638; }
.main-nav-inner { padding-block: 4px; }

/* ---------- Independence strip ---------- */
.independence {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.independence .container { padding-block: 8px; }

/* ---------- Search ---------- */
.searchform {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.searchform input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.searchform .btn { flex: 0 0 auto; }
.search-hint { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.btn-primary:hover { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.btn-outline { background: #fff; color: var(--green-700); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-900); }
.btn-block { width: 100%; }

/* ---------- Layout stacks ---------- */
main { display: block; }
.stack > * + * { margin-top: var(--sp-section); }
.page-wrap { padding-block: 44px 64px; }

.section-head { margin-bottom: var(--sp-block); max-width: 74ch; }
.section-head p { color: var(--muted); margin-top: 10px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 10px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero .container { padding-block: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-grid > * { min-width: 0; }
.hero p.lede { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 52ch; }
.hero-search { margin-top: 24px; }
.hero-checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.hero-checklist h2 { font-size: 18px; }
.hero-checklist ol { margin: 14px 0 0; padding-left: 20px; }
.hero-checklist li { margin-top: 8px; }
.hero-checklist li::marker { color: var(--green-600); font-weight: 700; }

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.card-grid > * { min-width: 0; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card a.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .card-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.product-card .card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 15px; color: var(--ink); }
.price .price-eur { color: var(--muted); font-weight: 500; font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-qc { background: var(--green-050); color: var(--green-800); border-color: #c3ddce; }
.badge-noqc { background: var(--amber-bg); color: var(--amber-700); border-color: var(--amber-border); }
.badge-cat { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

/* ---------- QC three-column table ---------- */
.qc-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.qc-columns > * { min-width: 0; }
.qc-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.qc-col h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.qc-col ul { margin: 12px 0 0; padding-left: 18px; }
.qc-col li { margin-top: 7px; font-size: 15px; }
.qc-col.is-visible { border-top: 3px solid var(--green-600); }
.qc-col.is-uncertain { border-top: 3px solid var(--border-strong); }
.qc-col.is-request { border-top: 3px solid var(--amber-border); }
.qc-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.qc-tag.v { color: var(--green-600); }
.qc-tag.u { color: var(--muted-2); }
.qc-tag.r { color: var(--amber-700); }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.callout h3 { margin-bottom: 8px; }
.callout p + p { margin-top: 10px; }
.callout-amber { background: var(--amber-bg); border-color: var(--amber-border); color: #4d3603; }
.callout-amber a { color: #6f4405; }
.callout-green { background: var(--green-050); border-color: #c3ddce; }

/* ---------- Feature rows / two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.two-col > * { min-width: 0; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.panel h2 { font-size: 22px; }
.panel h3 { margin-top: 4px; }

.linklist { list-style: none; margin: 14px 0 0; padding: 0; }
.linklist li { border-top: 1px solid var(--border); }
.linklist li:first-child { border-top: 0; }
.linklist a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.linklist a:hover { color: var(--green-700); }
.linklist .desc { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.cat-tiles > * { min-width: 0; }
.cat-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
}
.cat-tile:hover { border-color: var(--green-600); }
.cat-tile .cat-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.cat-tile .cat-count { color: var(--muted); font-size: 14px; margin-top: 4px; }
.cat-tile .cat-desc { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding-block: 14px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--border-strong); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- Prose (articles) ---------- */
.prose { max-width: var(--prose); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose li > ul { margin-top: 8px; }
.prose .lede { font-size: 18px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.toc strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-top: 6px; }

/* ---------- Product detail ---------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 36px; align-items: start; }
.product-hero > * { min-width: 0; }
.product-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-media img { width: 100%; height: auto; }
.product-info h1 { font-size: 32px; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.price-block { margin-top: 20px; }
.price-block .price-main { font-size: 26px; font-weight: 800; }
.price-block .price-approx { color: var(--muted); font-size: 16px; margin-top: 2px; }
.price-note { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 52ch; }
.cta-block { margin-top: 22px; }
.cta-block .btn { margin-bottom: 12px; }
.cta-explain { font-size: 14px; color: var(--muted); max-width: 56ch; }
.img-credit { font-size: 12px; color: var(--muted-2); margin-top: 8px; }

/* QC gallery */
.qc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.qc-gallery > * { min-width: 0; }
.qc-shot {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qc-shot img { width: 100%; height: 100%; object-fit: cover; }

.empty-state {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: #4d3603;
}
.empty-state h3 { color: #4d3603; margin-bottom: 8px; }

.related { }
.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.data-list li:first-child { border-top: 0; }
.data-list .dt { color: var(--muted); }
.data-list .dd { font-weight: 600; text-align: right; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #cdd8cf;
  margin-top: 72px;
  font-size: 14px;
}
.site-footer .container { padding-block: 40px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid > * { min-width: 0; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-top: 8px; }
.site-footer a { color: #cdd8cf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { margin-top: 10px; color: #aebbb0; max-width: 42ch; }
.footer-bottom {
  border-top: 1px solid #1e4a3a;
  margin-top: 28px;
  padding-top: 20px;
  color: #9fb0a4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- Utilities ---------- */
.text-muted { color: var(--muted); }
.small { font-size: 14px; }
.mt-0 { margin-top: 0; }
.lead-note { color: var(--muted); max-width: 68ch; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-hero { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .qc-columns { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 32px; line-height: 1.2; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  body { font-size: 15px; line-height: 1.6; }
  .hero p.lede { font-size: 16px; }
  .prose h2 { font-size: 21px; }
  .container { padding-inline: 18px; }
  :root { --sp-section: 40px; --sp-block: 22px; }
  .product-info h1 { font-size: 28px; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    border-top: 1px solid #1c4638;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding-block: 6px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid #1c4638; }
  .main-nav li:last-child a { border-bottom: 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .cat-tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
