/* ==========================================================================
   Kaffee-dream – Stylesheet
   Farbwelt: Espresso, Crema, Karamell. Keine externen Schriften (Datenschutz + Tempo).
   ========================================================================== */

:root {
  --espresso: #24160f;
  --roast: #4a2c1d;
  --roast-2: #6b4130;
  --crema: #faf5ee;
  --crema-2: #f3e8da;
  --milk: #ffffff;
  --accent: #9a4f1c;        /* Weiß darauf: Kontrast ca. 6:1 */
  --accent-dark: #7a3d14;
  --accent-light: #e9b77a;  /* auf Espresso: Kontrast > 8:1 */
  --green: #2f6b3a;
  --text: #2a1d16;
  --muted: #5f4b40;         /* auf Crema: Kontrast ca. 7:1 */
  --line: #e2d3c1;
  --focus: #1b5fc1;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(36, 22, 15, .06), 0 8px 24px rgba(36, 22, 15, .08);
  --max: 1160px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--crema);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--espresso); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--espresso); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: .3em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--espresso); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 238, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--espresso); }
.brand:hover { color: var(--espresso); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.brand-name span { color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: var(--espresso); color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: .6rem .9rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.main-nav li + li { margin-top: 0; }
.main-nav a {
  display: block; padding: .55rem .85rem; border-radius: 999px;
  color: var(--espresso); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.main-nav a:hover { background: var(--crema-2); }
.main-nav a[aria-current="page"] { background: var(--espresso); color: #fff; }

@media (max-width: 880px) {
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--crema); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .25rem; }
  .main-nav a { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  .no-js .main-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; min-height: 48px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: var(--accent-light); color: var(--espresso); }
.btn-light:hover { background: #f3cb98; color: var(--espresso); }
.btn-outline { border-color: var(--espresso); color: var(--espresso); background: transparent; }
.btn-outline:hover { background: var(--espresso); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--espresso); }
.btn-amazon { background: var(--espresso); color: #fff; width: 100%; }
.btn-amazon:hover { background: var(--roast); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(233, 183, 122, .22), transparent 60%),
    linear-gradient(160deg, var(--espresso) 0%, var(--roast) 100%);
  color: #f7ede2;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.1rem, 1vw + .9rem, 1.3rem); color: #f1e2d3; max-width: 38em; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-art { justify-self: center; width: min(100%, 420px); }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: .8rem;
}
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 1.75rem 0 0; font-size: .95rem; color: #ead8c6; }
.hero-trust li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.hero-trust li::before { content: "✓"; color: var(--accent-light); font-weight: 700; }
.hero-small { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.hero-small .hero-grid { grid-template-columns: 1.3fr .7fr; }
.hero-small .hero-art { width: min(100%, 300px); }
@media (max-width: 820px) {
  .hero-grid, .hero-small .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { width: min(70%, 300px); order: -1; }
  .hero-small .hero-art { width: min(50%, 200px); }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumb li { margin: 0; color: #ead8c6; }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; color: var(--accent-light); }
.breadcrumb a { color: #fff; }
.breadcrumb.on-light li { color: var(--muted); }
.breadcrumb.on-light li + li::before { color: var(--accent); }
.breadcrumb.on-light a { color: var(--accent-dark); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--milk); border-block: 1px solid var(--line); }
.section-dark { background: var(--espresso); color: #efe2d4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: var(--accent-light); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head.center { text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #dcc8b5; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Karten ---------- */
.card {
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 700; }
.card-icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.category-card { padding: 0; overflow: hidden; }
.category-card .card-media { background: var(--crema-2); padding: 1.5rem; display: grid; place-items: center; aspect-ratio: 16 / 10; }
.category-card .card-media img { max-height: 170px; width: auto; }
.category-card .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.category-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Produktkarten ---------- */
.product-list { display: grid; gap: 1.75rem; }
.product {
  display: grid; grid-template-columns: 240px 1fr; gap: 1.75rem;
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem; position: relative;
}
.product-media { background: var(--crema-2); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 1.25rem; align-self: start; }
.product-media img { max-height: 200px; width: auto; }
.product-rank {
  position: absolute; top: -12px; left: 1.25rem;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem;
  padding: .3rem .8rem; border-radius: 999px;
}
.product-rank.top { background: var(--green); }
.product h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.product .ideal { font-weight: 600; color: var(--roast-2); margin-bottom: .8rem; }
.product-body ul.pros { list-style: none; padding: 0; }
.product-body ul.pros li { padding-left: 1.6rem; position: relative; }
.product-body ul.pros li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }
.product-cta .btn-amazon { width: auto; }
.product-cta .note { font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
  .product-media img { max-height: 150px; }
  .product-cta .btn-amazon { width: 100%; }
}

/* Bewertung */
.rating { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-weight: 700; color: var(--espresso); }
.stars { --pct: 80%; position: relative; display: inline-block; font-size: 1.15rem; line-height: 1; letter-spacing: 2px; color: #d9c7b3; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: #c27a1e; white-space: nowrap; }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--milk); box-shadow: var(--shadow); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .97rem; }
caption { text-align: left; padding: 1rem 1.25rem .25rem; font-weight: 700; color: var(--espresso); }
th, td { padding: .85rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--crema-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--roast); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--espresso); }
.table-hint { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
@media (min-width: 900px) { .table-hint { display: none; } }

/* ---------- Schritte / Pflegeplan ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 1.25rem 1.1rem 4rem; background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700;
}
.steps strong { color: var(--espresso); }

.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan .card h3 { display: flex; align-items: center; gap: .6rem; }
.plan .badge { font-family: var(--font-sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; background: var(--crema-2); color: var(--roast); padding: .2rem .55rem; border-radius: 999px; }
.plan ul { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }

/* ---------- Info-Box ---------- */
.callout {
  background: var(--crema-2); border-left: 5px solid var(--accent); border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.callout h3 { font-size: 1.15rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Ablauf/Features ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: rgba(233,183,122,.18); display: grid; place-items: center; }
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.feature p { margin: 0; color: inherit; opacity: .9; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3.25rem 1.1rem 1.25rem; position: relative;
  font-weight: 700; color: var(--espresso); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #fbeee2; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Affiliate-Hinweis ---------- */
.disclosure {
  font-size: .9rem; color: var(--muted); background: var(--milk);
  border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 2rem;
}

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.legal h1 { font-size: clamp(2rem, 3vw + .8rem, 2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal address { font-style: normal; }
.legal .placeholder { background: #fff3cd; padding: 0 .25rem; border-radius: 3px; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--espresso); color: #dcc8b5; padding: 3.5rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-light); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { font-family: var(--font-serif); font-size: 1.35rem; color: #fff; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.error-page img { width: 160px; margin: 0 auto 1.5rem; }
.error-page .btn-row { justify-content: center; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .btn, .skip-link { display: none !important; }
  body { background: #fff; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
}
