@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #faf5ec;
  --creme-dunkel: #f0e7d8;
  --papier: #fffdf8;
  --tinte: #2f2a24;
  --tinte-weich: #5c5348;
  --terracotta: #b2542f;
  --terracotta-dunkel: #8e3f21;
  --olive: #6b7350;
  --linie: #e0d5c2;
  --radius: 14px;
  --schatten: 0 10px 30px rgba(60, 45, 25, 0.09);
  --breite: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.18;
  color: var(--tinte);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--terracotta-dunkel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

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

.wrap { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 3rem 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--terracotta); color: #fff; padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

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

/* ------------------------------------------------------------- Kopfbereich */

.site-header {
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0; flex-wrap: wrap;
}
.brand { text-decoration: none; display: grid; }
.brand-name {
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  font-size: 1.35rem; color: var(--tinte);
}
.brand-tagline { font-size: 0.8rem; color: var(--tinte-weich); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--linie);
  border-radius: 10px; padding: 0.6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--tinte); margin: 4px 0; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul {
  display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.site-nav a { color: var(--tinte); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--terracotta); text-decoration: underline; }

.search-form { display: flex; gap: 0.4rem; }
.search-form input {
  border: 1px solid var(--linie); border-radius: 999px; padding: 0.45rem 0.9rem;
  font: inherit; font-size: 0.9rem; background: var(--creme); min-width: 9rem;
}
.search-form button {
  border: 0; border-radius: 999px; background: var(--terracotta); color: #fff;
  padding: 0.45rem 1rem; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.search-form button:hover { background: var(--terracotta-dunkel); }
.search-form.large { margin: 1.5rem 0 2rem; }
.search-form.large input { flex: 1; padding: 0.8rem 1.2rem; font-size: 1rem; }

/* -------------------------------------------------------------------- Hero */

.hero { position: relative; background: var(--tinte); }
.hero-media img { width: 100%; height: clamp(320px, 55vh, 560px); object-fit: cover; opacity: 0.62; }
.hero-text {
  position: absolute; inset: auto 0 0 0; padding-bottom: 2.5rem; color: #fff;
}
.hero-text h1 { color: #fff; max-width: 22ch; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.hero-text .lead { max-width: 60ch; color: #f6efe4; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem;
  font-weight: 600; color: var(--creme-dunkel); margin-bottom: 0.4rem;
}

.button {
  display: inline-block; background: var(--terracotta); color: #fff;
  padding: 0.7rem 1.4rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 1px solid var(--terracotta);
}
.button:hover { background: var(--terracotta-dunkel); color: #fff; }
.button.ghost { background: transparent; color: var(--terracotta-dunkel); }
.button.ghost:hover { background: var(--terracotta); color: #fff; }
.button.small { padding: 0.5rem 1.05rem; font-size: 0.88rem; }

.section-title { border-bottom: 2px solid var(--linie); padding-bottom: 0.4rem; margin-bottom: 1.8rem; }
.page-title { margin-top: 1rem; }
.page-lead { color: var(--tinte-weich); font-size: 1.08rem; max-width: 68ch; }

/* ------------------------------------------------------------------ Karten */

.grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--schatten);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.card-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-meta {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--tinte-weich); margin: 0;
}
.badge {
  background: var(--creme-dunkel); color: var(--tinte); border-radius: 999px;
  padding: 0.15rem 0.7rem; text-decoration: none; font-weight: 600; font-size: 0.78rem;
}
.badge:hover { background: var(--terracotta); color: #fff; }
.card-title { margin: 0; font-size: 1.25rem; }
.card-title a { color: var(--tinte); text-decoration: none; }
.card-title a:hover { color: var(--terracotta-dunkel); }
.card-text { margin: 0; color: var(--tinte-weich); font-size: 0.95rem; }
.more { font-weight: 600; font-size: 0.9rem; text-decoration: none; margin-top: auto; }
.more:hover { text-decoration: underline; }

.cat-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; box-shadow: var(--schatten);
}
.cat-tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: brightness(0.72); }
.cat-tile-label {
  position: absolute; left: 1rem; bottom: 0.9rem; color: #fff; font-weight: 600;
  font-family: "Fraunces", Georgia, serif; font-size: 1.15rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* -------------------------------------------------------------- Einzelseite */

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; font-size: 0.85rem; color: var(--tinte-weich); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; }

.post-header { padding-top: 0.5rem; max-width: 820px; }
.post-figure { margin: 1.5rem auto 2rem; width: min(100% - 2.5rem, var(--breite)); }
.post-figure img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }
.post-figure figcaption { font-size: 0.85rem; color: var(--tinte-weich); margin-top: 0.5rem; }

.post-body { max-width: 760px; font-size: 1.06rem; }
.post-body h2 { margin-top: 2.2rem; }
.post-body h3 { margin-top: 1.6rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
  margin: 1.6rem 0; padding: 1rem 1.3rem; background: var(--papier);
  border-left: 4px solid var(--olive); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--tinte-weich);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Produkte */

.products {
  max-width: 900px; margin: 3rem auto; background: var(--papier);
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.8rem;
}
.product-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product {
  border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  background: var(--creme); display: flex; flex-direction: column;
}
.product-media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.product-body { padding: 0.9rem 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.product-body h3 { margin: 0; font-size: 1.05rem; }
.product-body p { margin: 0; font-size: 0.9rem; color: var(--tinte-weich); }
.product-body .button { margin-top: auto; align-self: flex-start; }
.affiliate-note { font-size: 0.8rem; color: var(--tinte-weich); margin: 1.2rem 0 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination-status { font-size: 0.9rem; color: var(--tinte-weich); }

/* ------------------------------------------------------------------ Fußzeile */

.site-footer { background: var(--tinte); color: #e9e0d2; margin-top: 3rem; padding: 3rem 0 1.5rem; }
.site-footer a { color: #f0d9c9; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-heading { color: #fff; font-size: 1.05rem; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.95rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.2rem;
  font-size: 0.85rem; color: #c8bcac;
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------- Mobil */

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 2; }
  .site-nav {
    order: 3; flex-basis: 100%; display: none; flex-direction: column;
    align-items: stretch; gap: 0.8rem; padding-bottom: 0.8rem;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav li { border-bottom: 1px solid var(--linie); }
  .site-nav a { display: block; padding: 0.6rem 0; }
  .hero-text { position: static; background: var(--tinte); padding: 1.8rem 1.25rem 2.2rem; }
  .hero-text h1, .hero-text .lead { text-shadow: none; }
  .hero-media img { height: 240px; opacity: 1; }
}

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

@media print {
  .site-header, .site-footer, .search-form, .pagination { display: none; }
  body { background: #fff; }
}
