/* ==========================================================================
   Lammfellbaby.de – Stylesheet
   Mobil zuerst, warme Naturfarben (Wollweiß, Sand, Karamell).
   Keine externen Ressourcen (Schriften, Bilder) – alles lokal.
   ========================================================================== */

:root {
  --karamell: #8a5a3b;
  --karamell-dunkel: #64402a;
  --sand: #f5ece0;
  --sand-mittel: #eadbc7;
  --wolle: #fbf8f3;
  --text: #2f2924;
  --text-hell: #6e625a;
  --karte: #fff;
  --linie: #e8dccd;
  --warnung: #fff6e5;
  --warnung-rand: #d9a441;
  --schatten: 0 1px 3px rgba(70, 45, 25, 0.07), 0 6px 18px rgba(70, 45, 25, 0.06);
  --radius: 14px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--wolle);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--karamell-dunkel); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--karamell); }
:focus-visible { outline: 2px solid var(--karamell); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  color: var(--karamell-dunkel);
  font-weight: normal;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}
h1 { font-size: 1.75rem; margin-top: 0.2em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--karamell); color: #fff; padding: 0.5em 1em; z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- Kopf ---------- */

#kopf { background: var(--karte); border-bottom: 1px solid var(--linie); }

.kopf-leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  max-width: 1080px; margin: 0 auto; padding: 0.7em 16px;
}
.marke {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--schrift-titel); font-size: 1.4rem;
  color: var(--karamell-dunkel); text-decoration: none; white-space: nowrap;
}
.marke-zeichen { color: var(--sand-mittel); flex: 0 0 auto; }
.marke b { font-weight: normal; color: var(--karamell); }
.marke small { font-size: 0.7em; color: var(--text-hell); }
.menue-knopf {
  display: inline-block; padding: 0.35em 0.9em;
  border: 1px solid var(--linie); border-radius: 999px;
  color: var(--karamell-dunkel); text-decoration: none; font-size: 0.95rem; white-space: nowrap;
}
.menue-knopf:hover { background: var(--sand); }

.hauptmenue { border-top: 1px solid var(--linie); }
.hauptmenue ul {
  display: flex; gap: 0.4em; list-style: none;
  max-width: 1080px; margin: 0 auto; padding: 0.5em 16px;
  overflow-x: auto; scrollbar-width: none;
}
.hauptmenue ul::-webkit-scrollbar { display: none; }
.hauptmenue li { margin: 0; flex: 0 0 auto; }
.hauptmenue a {
  display: block; padding: 0.3em 0.85em; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 0.95rem;
}
.hauptmenue a:hover { background: var(--sand); color: var(--karamell-dunkel); }
.hauptmenue a[aria-current="page"] { background: var(--karamell); color: #fff; }

/* ---------- Seite ---------- */

#seite {
  max-width: 1080px; margin: 0 auto; padding: 1.25em 16px 2em;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2em;
}

main {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.25em 1.1em 1.5em;
  min-width: 0;
}
main > :last-child { margin-bottom: 0; }
main::after { content: ""; display: block; clear: both; }

.einleitung { font-size: 1.08em; }

.brotkrumen { font-size: 0.875rem; color: var(--text-hell); margin-bottom: 0.8em; }
.brotkrumen a { color: var(--text-hell); }

/* Bilder im Text */
.bild { margin: 0 0 1.2em; }
.bild img { display: block; border-radius: 10px; }
.bild figcaption { font-size: 0.85rem; color: var(--text-hell); margin-top: 0.4em; }
.bild-rechts, .bild-links { max-width: 260px; margin-left: auto; margin-right: auto; }
.bild.bild-klein { max-width: 180px; }

/* Startseite: Bild + Merkmale */
.hero {
  display: grid; gap: 1em; align-items: center;
  background: var(--sand); border-radius: var(--radius); padding: 1em; margin: 1em 0 1.5em;
}
.hero img { border-radius: 10px; display: block; margin: 0 auto; }
.hero h2 { margin-top: 0; }
.hero > div > :last-child { margin-bottom: 0; }

.haken { list-style: none; padding: 0; }
.haken li { position: relative; padding-left: 1.7em; }
.haken li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--karamell); font-weight: 700;
}

/* ---------- Navigation ---------- */

#navigation { display: grid; gap: 1em; align-content: start; }
.navi-gruppe {
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 0.9em 1.1em 0.7em;
}
.navi-gruppe h2 {
  font-family: var(--schrift); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--karamell); margin: 0 0 0.4em;
}
.navi-gruppe ul { list-style: none; padding: 0; margin: 0; }
.navi-gruppe li { margin: 0; border-top: 1px solid var(--sand-mittel); }
.navi-gruppe li:first-child { border-top: 0; }
.navi-gruppe a { display: block; padding: 0.45em 0; color: var(--text); text-decoration: none; }
.navi-gruppe a:hover { color: var(--karamell); }
.navi-gruppe a[aria-current="page"] { color: var(--karamell); font-weight: 600; }

/* ---------- Inhaltselemente ---------- */

.themen-karten {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9em;
  list-style: none; padding: 0; margin: 1.2em 0 1.5em;
}
.themen-karten li { margin: 0; }
.themen-karten a {
  display: block; height: 100%;
  padding: 0.9em 1em; border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--wolle); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.themen-karten a:hover { border-color: var(--karamell); transform: translateY(-1px); }
.themen-karten strong { display: block; color: var(--karamell-dunkel); font-family: var(--schrift-titel); font-weight: normal; font-size: 1.1rem; margin-bottom: 0.15em; }
.themen-karten span { font-size: 0.95rem; color: var(--text-hell); }

.info-box {
  background: var(--sand); border-radius: var(--radius);
  padding: 0.9em 1.1em; margin: 1.5em 0;
}
.info-box > :last-child { margin-bottom: 0; }
.info-box.warnung { background: var(--warnung); border-left: 4px solid var(--warnung-rand); border-radius: 0 var(--radius) var(--radius) 0; }

.weiterlesen { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--linie); }
.weiterlesen h2 { font-size: 1.1rem; margin-top: 0; }

.faq h3 { font-family: var(--schrift); font-weight: 600; font-size: 1.02rem; color: var(--text); margin: 1.2em 0 0.3em; }

/* Amazon-Hinweise (reine Textlinks) */
.produkt-hinweis, .produkt-liste {
  position: relative; clear: both;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: #fff; padding: 1.1em 1.1em 0.9em; margin: 1.8em 0;
}
.produkt-hinweis .label, .produkt-liste .label {
  position: absolute; top: -0.7em; left: 1em;
  background: #fff; padding: 0 0.4em;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-hell);
}
.produkt-hinweis p { margin-bottom: 0.4em; }
.produkt-hinweis a.button {
  display: inline-block; margin-top: 0.3em; padding: 0.55em 1.1em;
  background: var(--karamell); color: #fff; text-decoration: none; border-radius: 999px;
}
.produkt-hinweis a.button:hover { background: var(--karamell-dunkel); color: #fff; }
.produkt-hinweis small, .produkt-liste small { display: block; margin-top: 0.6em; color: var(--text-hell); font-size: 0.8rem; }

.produkt-liste ul {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7em;
  list-style: none; padding: 0; margin: 0.3em 0 0;
}
.produkt-liste li { margin: 0; }
.produkt-liste a {
  display: block; height: 100%; padding: 0.8em 0.9em;
  border-radius: 10px; background: var(--wolle); border: 1px solid var(--linie);
  color: var(--text); text-decoration: none;
}
.produkt-liste a:hover { border-color: var(--karamell); }
.produkt-liste strong { display: block; color: var(--karamell-dunkel); }
.produkt-liste span { display: block; font-size: 0.92rem; color: var(--text-hell); }
.produkt-liste em { display: block; font-style: normal; font-size: 0.9rem; color: var(--karamell); margin-top: 0.3em; }

hr { border: 0; border-top: 1px solid var(--linie); margin: 1.5em 0; }

/* Tabellen */
.tabelle { overflow-x: auto; margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
td, th { border-bottom: 1px solid var(--linie); padding: 0.5em 0.7em; text-align: left; vertical-align: top; }
th { background: var(--sand); color: var(--karamell-dunkel); font-weight: 600; }

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

#fuss {
  border-top: 1px solid var(--linie); background: var(--karte);
  text-align: center; padding: 1.5em 16px 2em; color: var(--text-hell); font-size: 0.9rem;
}
#fuss p { margin: 0.4em auto; max-width: 1080px; }
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em 1.2em; }
.fuss-links a { color: var(--text-hell); }
.fuss-hinweis { font-size: 0.8rem; }

/* ---------- Ab Tablet ---------- */

@media (min-width: 600px) {
  main { padding: 1.8em 2em 2em; }
  h1 { font-size: 2rem; }
  .themen-karten, .produkt-liste ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 240px minmax(0, 1fr); padding: 1.2em 1.4em; }
  .bild-rechts { float: right; margin: 0.3em 0 1em 1.5em; max-width: 45%; }
  .bild-links { float: left; margin: 0.3em 1.5em 1em 0; max-width: 45%; }
}

/* ---------- Desktop: Navigation als rechte Spalte ---------- */

@media (min-width: 900px) {
  #seite { grid-template-columns: minmax(0, 1fr) 280px; padding-top: 1.75em; }
  #navigation { position: sticky; top: 1em; max-height: calc(100vh - 2em); overflow-y: auto; scrollbar-width: thin; }
  .menue-knopf { display: none; }
}

/* ---------- Druck ---------- */

@media print {
  .hauptmenue, .menue-knopf, #navigation, .skip-link, .produkt-hinweis, .produkt-liste, .fuss-links { display: none; }
  main { box-shadow: none; padding: 0; }
  a { color: #000; }
}
