/* Affiliate-Shop – ein Stylesheet, Systemschriften, kein JS.
   Pro Domain nur die Farb-Tokens anpassen (--brand = Markenfarbe, --cta = Button-Farbe). */
:root {
    --brand: #12474f;        /* tiefes Petrol: Leisten, Hero, Footer */
    --brand-ink: #0c3036;
    --brand-soft: #e8f1f0;   /* Kachel- und Flächenhintergrund */
    --cta: #f2b33d;          /* Safran: „Mehr erfahren“ */
    --cta-hover: #e09d1c;
    --cta-text: #1d1a12;
    --bg: #fff;
    --text: #1b2628;
    --muted: #566668;
    --line: #dbe5e4;
    --radius: 12px;
    --max: 1280px;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
main { display: block; padding-bottom: 4rem; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 780px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------- Kopf */
.usp { background: var(--brand-ink); color: #d7e6e4; font-size: .82rem; }
.usp ul { display: flex; justify-content: center; gap: .4rem 2rem; flex-wrap: wrap; list-style: none; margin: 0 auto; padding-top: .45rem; padding-bottom: .45rem; }
.usp li::before { content: "✓"; color: var(--cta); font-weight: 700; margin-right: .4rem; }
@media (max-width: 640px) { .usp li:not(:first-child) { display: none; } }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__main { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--brand); text-decoration: none; font: 700 1.6rem/1 var(--serif); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__mark rect { fill: var(--brand); }
.logo__mark path { fill: none; stroke: var(--cta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.search { display: flex; flex: 1 1 320px; max-width: 560px; margin-left: auto; }
.search input {
    flex: 1; min-width: 0; font: inherit; padding: .65rem 1rem; border: 2px solid var(--brand); border-right: 0;
    border-radius: 999px 0 0 999px; background: #fff; color: var(--text);
}
.search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(242, 179, 61, .45); }
.search button {
    font: 600 1rem var(--sans); padding: 0 1.25rem; border: 0; border-radius: 0 999px 999px 0;
    background: var(--brand); color: #fff; cursor: pointer;
}
.search button:hover { background: var(--brand-ink); }

.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.cat-nav a {
    display: block; white-space: nowrap; padding: .8rem 0; color: var(--text); text-decoration: none; font-weight: 600;
    border-bottom: 3px solid transparent;
}
.cat-nav a:hover { color: var(--brand); }
.cat-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--cta); }

/* ---------------------------------------------------------- Startseite */
.hero { background: var(--brand); color: #fff; padding: clamp(2.5rem, 7vw, 4.5rem) 0; margin-bottom: 2.5rem; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 22ch; margin-bottom: .4em; }
.hero__lead { max-width: 60ch; font-size: 1.15rem; color: #d7e6e4; margin: 0; }
.hero__visual { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; list-style: none; margin: 0; padding: 0; width: 100%; max-width: 380px; justify-self: end; }
.hero__visual li { background: #fff; border-radius: var(--radius); padding: .75rem; aspect-ratio: 1; }
.hero__visual li:first-child { grid-row: span 2; aspect-ratio: auto; display: grid; place-items: center; }
.hero__visual img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 800px) { .hero__inner { grid-template-columns: 1fr; } .hero__visual { display: none; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tile {
    display: flex; flex-direction: column; height: 100%; padding: .75rem; border-radius: var(--radius);
    background: var(--brand-soft); color: var(--text); text-decoration: none; border: 2px solid transparent;
}
.tile:hover { border-color: var(--brand); }
.tile__img { display: block; aspect-ratio: 1; background: #fff; border-radius: 8px; padding: .5rem; margin-bottom: .6rem; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; }
.tile__name { font-weight: 700; }
.tile__count { font-size: .85rem; color: var(--muted); }

.cat-section { margin-top: 3rem; }
.cat-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.cat-section__head h2 { margin: 0; }
.cat-section__head h2 a { color: var(--text); text-decoration: none; }
.more { font-weight: 600; }

/* ---------------------------------------------------------- Kategorie / Suche */
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 1.25rem 0 .5rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 .5rem; color: var(--line); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding-top: .5rem; }
.page-head h1 { margin: 0; }
.page-head__sub { font-size: .55em; color: var(--muted); font-weight: 400; }
.page-head__count { margin: 0; color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.notice { font-size: .85rem; color: var(--muted); margin: 1.25rem 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.chips a { display: block; padding: .45rem 1rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; text-decoration: none; }

.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.pagination a, .pagination span {
    display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .5rem; border-radius: 8px;
    border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.pagination span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------- Produktkarten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.25rem; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: var(--brand); }
.card__img { display: block; aspect-ratio: 1; background: #fff; padding: 1rem; }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.tag { position: absolute; top: .6rem; left: .6rem; font-size: .7rem; padding: .1rem .45rem; border-radius: 4px; background: rgba(255, 255, 255, .92); color: var(--muted); border: 1px solid var(--line); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: .85rem 1rem 1rem; }
.card__title { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__desc { font-size: .88rem; color: var(--muted); margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__shop { font-size: .82rem; color: var(--brand); font-weight: 600; margin: 0 0 .75rem; }
.card .btn { margin-top: auto; }

.btn {
    display: block; text-align: center; padding: .7rem 1rem; border-radius: 8px;
    background: var(--cta); color: var(--cta-text); font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--cta-hover); }

@media (max-width: 520px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .card__img { padding: .6rem; }
    .card__body { padding: .6rem .6rem .75rem; }
    .card__desc { display: none; }
    .card .btn { padding: .6rem .4rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .card__img img { transition: none; } }

/* ---------------------------------------------------------- Produktseite */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-top: .5rem; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 1.25rem; } }
.product__img { display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.product__img img { width: 100%; height: 100%; object-fit: contain; }
.product__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: .5rem 0 .4rem; }
.tag--inline { position: static; display: inline-block; }
.btn--large { font-size: 1.1rem; padding: .95rem 1.5rem; max-width: 360px; margin: 1rem 0 .5rem; }
.product__hint { font-size: .88rem; color: var(--muted); margin: 0 0 1.5rem; }
.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; font-weight: 600; color: var(--muted); background: var(--brand-soft); }
.product__desc { margin-top: 3rem; }

/* ---------------------------------------------------------- Texte */
.prose { max-width: 75ch; }
.container--narrow.prose, .container.prose { padding-top: 2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.guide { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- Fuß */
.site-footer { background: var(--brand-ink); color: #c5d8d6; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }
.site-footer__brand { font: 700 1.4rem var(--serif); color: #fff; margin: 0 0 .25rem; }
.site-footer__head { font-weight: 700; color: #fff; margin: 0 0 .6rem; }
.site-footer__notice { font-size: .82rem; max-width: 60ch; }
.site-footer__copy { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }
