/* ==========================================================================
   Babytragen Vergleich – Stylesheet
   Angelehnt an das bisherige Design (Salbei-/Petrolgrün, helles Graugrün,
   abgerundete "Tropfen"-Boxen), modernisiert und mobil zuerst.
   Keine externen Ressourcen (Schriften, Bilder) – alles lokal.
   ========================================================================== */

:root {
  --petrol: #506867;
  --petrol-dunkel: #3a4f4e;
  --petrol-hell: #dfe8e7;
  --hintergrund: #ebf0f0;
  --karte: #fff;
  --text: #3f3a3e;
  --text-hell: #6d6570;
  --link: #5b4636;
  --akzent: #c0763f;          /* warmes Orange für Buttons/Anzeigen */
  --akzent-dunkel: #9c5b2c;
  --linie: #d9e2e1;
  --gruen: #2f7d4f;
  --rot: #b23b3b;
  --schatten: 0 1px 3px rgba(40, 60, 60, 0.08), 0 6px 18px rgba(40, 60, 60, 0.07);
  --radius: 15px 15px 0 30px;  /* Markenzeichen der alten Seite */
  --radius-klein: 10px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, Verdana, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--hintergrund);
  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(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--petrol); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

h1, h2, h3, h4 {
  color: var(--petrol);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 1.6em 0 0.5em;
}
h1 { font-size: 1.6rem; margin-top: 0.2em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

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

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

.klein { font-size: 0.875rem; color: var(--text-hell); }
.clear { clear: both; }
.mitte { display: block; text-align: center; }
.mitte img { margin: 0.3em; vertical-align: top; }

/* ---------- Rahmen ---------- */

#wrap {
  max-width: 1120px; margin: 0 auto;
  background: var(--karte);
  box-shadow: 0 0 12px rgba(40, 50, 50, 0.18);
  min-height: 100vh;
}

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

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

.kopf-leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 0 16px 0.2em;
}
.logo { display: block; flex: 0 1 auto; line-height: 0; }
.logo img { width: 210px; }

.menue-knopf {
  display: inline-block; padding: 0.4em 1em;
  border: 1px solid var(--linie); border-radius: 999px;
  color: var(--petrol-dunkel); text-decoration: none; font-size: 0.95rem; white-space: nowrap;
}
.menue-knopf:hover { background: var(--petrol-hell); }

/* Wechselnde Tipp-Zeile neben dem Logo (nur Desktop) */
.kopf-tipp { display: none; }

.hauptmenue { background: var(--petrol); }
.hauptmenue ul {
  display: flex; gap: 0.25em; list-style: none;
  margin: 0; padding: 0.45em 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.9em; border-radius: 999px;
  color: #fff; text-decoration: none; font-size: 0.95rem;
}
.hauptmenue a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.hauptmenue a[aria-current="page"] { background: #fff; color: var(--petrol-dunkel); }

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

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

main { min-width: 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.6em; }
.brotkrumen a { color: var(--text-hell); }

.beitrag-kopf h1 { margin-bottom: 0.2em; }
.beitrag-info { font-size: 0.9rem; color: var(--text-hell); margin-bottom: 1.2em; }
.beitrag-info a { color: var(--text-hell); }

.beitrag-inhalt::after { content: ""; display: block; clear: both; }

/* Bilder im Text */
img.rechts, img.links { display: block; margin: 0.3em auto 1em; }
.kasten-rechts { margin: 0 0 1em; }
.kasten-rechts h2 { margin-top: 0.3em; }

/* Lob & Kritik */
.positiv-liste, .negativ-liste { list-style: none; padding: 0; margin: 0 0 0.6em; }
.positiv-liste li, .negativ-liste li { position: relative; padding-left: 1.8em; }
.positiv-liste li::before, .negativ-liste li::before {
  position: absolute; left: 0; top: 0.15em;
  width: 1.3em; height: 1.3em; border-radius: 50%;
  color: #fff; font-size: 0.8em; font-weight: 700; line-height: 1.3em; text-align: center;
}
.positiv-liste li { color: var(--gruen); }
.positiv-liste li::before { content: "+"; background: var(--gruen); }
.negativ-liste li { color: var(--rot); }
.negativ-liste li::before { content: "–"; background: var(--rot); }

.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(--petrol); font-weight: 700;
}

/* "Tropfen"-Box der alten Seite */
.boxrounded {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--karte);
}

/* ---------- Startseite ---------- */

.hero {
  display: grid; gap: 1em; align-items: center;
  background: linear-gradient(135deg, #f6f9f9 0%, var(--petrol-hell) 100%);
  padding: 1.2em; margin-bottom: 1.5em; overflow: hidden;
}
.hero h1 { font-size: 1.9rem; margin: 0.1em 0 0.2em; }
.hero h2 { margin-top: 0; font-weight: 400; color: var(--text); font-size: 1.15rem; }
.hero .haken { font-size: 1.05rem; }
.hero-bild {
  justify-self: center; margin: 0; line-height: 0;
  background: #fff; padding: 10px;
  border-radius: var(--radius); box-shadow: var(--schatten);
}
.hero-bild img { display: block; border-radius: 6px 6px 0 22px; }

.tipp {
  background: var(--hintergrund); border-radius: var(--radius);
  padding: 1em 1.2em 0.2em; margin: 1.5em 0;
}
.tipp img.rechts { margin-top: 0; }

.button, a.button {
  display: inline-block; padding: 0.55em 1.2em;
  background: var(--akzent); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 600;
}
.button:hover, a.button:hover { background: var(--akzent-dunkel); color: #fff; }

/* Vergleichstabelle */
.tabelle { margin: 0 0 0.6em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
td, th { border-bottom: 1px solid var(--linie); padding: 0.55em 0.7em; text-align: left; vertical-align: top; }
thead th { background: var(--petrol); color: #fff; font-weight: 600; }
tbody th { font-weight: 600; }
tbody tr:nth-child(even) { background: #f6f9f9; }
.amazon-link { white-space: nowrap; color: var(--akzent-dunkel); font-weight: 600; }
thead .label { color: #e6efee; font-weight: 400; }

/* Mobil: Tabelle als Karten */
@media (max-width: 699px) {
  table.vergleich thead { display: none; }
  table.vergleich, table.vergleich tbody, table.vergleich tr, table.vergleich th, table.vergleich td { display: block; width: 100%; }
  table.vergleich tr {
    border: 1px solid var(--linie); border-radius: var(--radius-klein);
    margin-bottom: 0.8em; padding: 0.4em 0.2em; background: var(--karte) !important;
  }
  table.vergleich th, table.vergleich td { border: 0; padding: 0.2em 0.8em; }
  table.vergleich th { font-size: 1.05rem; }
  table.vergleich td::before {
    content: attr(data-titel) ": "; color: var(--text-hell); font-size: 0.85rem;
  }
}

/* Karten (neueste Beiträge, weiterlesen) */
.karten {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8em;
  list-style: none; padding: 0; margin: 1em 0 1.5em;
}
.karten li { margin: 0; }
.karten a {
  display: block; height: 100%;
  padding: 0.9em 1em; border: 1px solid var(--linie); border-radius: var(--radius);
  background: #f8fafa; color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.karten a:hover { border-color: var(--petrol); transform: translateY(-1px); }
.karten strong { display: block; color: var(--petrol); margin-bottom: 0.2em; line-height: 1.35; }
.karten span { display: block; font-size: 0.92rem; color: var(--text-hell); line-height: 1.55; }

/* ---------- Übersichtsseiten ---------- */

.vorschau {
  display: flex; gap: 1em; align-items: flex-start;
  padding: 1.1em 0; border-bottom: 1px solid var(--linie);
}
.vorschau:first-child { padding-top: 0.3em; }
.vorschau h2 { margin: 0 0 0.3em; font-size: 1.15rem; }
.vorschau h2 a { color: var(--petrol); text-decoration: none; }
.vorschau h2 a:hover { text-decoration: underline; }
.vorschau p { margin: 0; }
.vorschau-bild { flex: 0 0 80px; }
.vorschau-bild img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px 12px 0 20px; display: block; }
.weiter { white-space: nowrap; }

/* ---------- Artikel-Abschluss ---------- */

.autor-box {
  background: var(--hintergrund); border-radius: var(--radius);
  padding: 1em 1.2em; margin: 2em 0 1.5em; overflow: hidden;
}
.autor-box img { float: left; margin: 0.2em 1em 0.5em 0; border-radius: 50%; }
.autor-box p { margin-bottom: 0.5em; }
.autor-box p:last-child { margin-bottom: 0; clear: both; }

.kommentare { margin-top: 2em; }
.kommentar-liste { list-style: none; padding: 0; margin: 0 0 1em; }
.kommentar-liste li {
  border-left: 3px solid var(--linie); padding: 0.2em 0 0.2em 1em; margin-bottom: 1.4em;
}
.kommentar-liste li.vom-autor { border-left-color: var(--petrol); background: #f6f9f9; padding: 0.6em 1em; border-radius: 0 var(--radius-klein) var(--radius-klein) 0; }
.kommentar-kopf { font-size: 0.9rem; color: var(--text-hell); margin-bottom: 0.3em; }
.kommentar-kopf cite { font-style: normal; font-weight: 700; color: var(--text); }
.abzeichen { background: var(--petrol); color: #fff; font-size: 0.75rem; padding: 0.05em 0.5em; border-radius: 999px; }
.kommentar-text p { margin-bottom: 0.6em; }
.kommentar-text p:last-child { margin-bottom: 0; }
.kommentare-zu { font-size: 0.9rem; color: var(--text-hell); font-style: italic; }

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

/* ---------- Anzeigen (Amazon, reine Textlinks) ---------- */

.label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-hell); vertical-align: middle;
}

.anzeige-kurz { font-size: 0.95rem; margin: -0.6em 0 1.2em; }
.anzeige-kurz a { color: var(--akzent-dunkel); font-weight: 600; }

.produkt-hinweis, .produkt-liste {
  position: relative; clear: both;
  border: 1px solid #ecd9c8; border-radius: var(--radius);
  background: #fffaf5; padding: 1.2em 1.1em 0.9em; margin: 2em 0;
}
.produkt-hinweis > .label, .produkt-liste > .label {
  position: absolute; top: -0.75em; left: 1.2em;
  background: #fffaf5; padding: 0 0.4em; border-radius: 4px;
}
.produkt-liste h2 { margin: 0 0 0.6em; font-size: 1.1rem; color: var(--akzent-dunkel); }
.produkt-hinweis p { margin-bottom: 0.4em; }
.produkt-liste ul {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7em;
  list-style: none; padding: 0; margin: 0;
}
.produkt-liste li { margin: 0; }
.produkt-liste a {
  display: block; height: 100%; padding: 0.8em 0.9em;
  border-radius: var(--radius-klein); background: #fff; border: 1px solid #ecd9c8;
  color: var(--text); text-decoration: none; transition: border-color 0.15s;
}
.produkt-liste a:hover { border-color: var(--akzent); }
.produkt-liste strong { display: block; color: var(--text); }
.produkt-liste span { display: block; font-size: 0.92rem; color: var(--text-hell); line-height: 1.5; margin-top: 0.15em; }
.produkt-liste em { display: block; font-style: normal; font-size: 0.9rem; font-weight: 600; color: var(--akzent-dunkel); margin-top: 0.35em; }
.produkt-liste small { display: block; margin-top: 0.8em; color: var(--text-hell); font-size: 0.8rem; }

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

#navigation { display: grid; gap: 1em; align-content: start; }
.navi-gruppe {
  border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 0.9em 1.1em 0.6em; background: var(--karte);
}
.navi-gruppe h2 {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--petrol); margin: 0 0 0.4em;
}
.navi-gruppe h2 a { color: inherit; text-decoration: none; }
.navi-gruppe h2 a:hover { text-decoration: underline; }
.navi-gruppe ul { list-style: none; padding: 0; margin: 0; }
.navi-gruppe li { margin: 0; border-top: 1px solid var(--hintergrund); }
.navi-gruppe li:first-child { border-top: 0; }
.navi-gruppe a { display: block; padding: 0.4em 0; color: var(--text); text-decoration: none; font-size: 0.97rem; line-height: 1.45; }
.navi-gruppe a:hover { color: var(--petrol); }
.navi-gruppe a[aria-current="page"] { color: var(--petrol); font-weight: 700; }
.navi-anzeige { background: #fffaf5; border-color: #ecd9c8; }
.navi-anzeige h2 { color: var(--akzent-dunkel); }
.navi-anzeige h2 .label { margin-left: 0.3em; text-transform: uppercase; }
.navi-anzeige a { color: var(--akzent-dunkel); }
.navi-kommentare li { padding: 0.4em 0; font-size: 0.92rem; line-height: 1.45; color: var(--text-hell); }
.navi-kommentare a { display: inline; padding: 0; color: var(--link); font-size: inherit; }
.navi-kommentare span { color: var(--text); font-weight: 600; }

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

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

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

@media (min-width: 600px) {
  h1 { font-size: 1.85rem; }
  .logo img { width: 262px; }
  .kopf-leiste { padding: 0 24px 0.2em; }
  .hauptmenue ul { padding: 0.45em 24px; }
  #seite { padding: 1.5em 24px 2.5em; }
  .karten, .produkt-liste ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(215px, 40%); padding: 1.6em; }
  img.rechts { float: right; margin: 0.3em 0 1em 1.5em; max-width: 45%; }
  img.links { float: left; margin: 0.3em 1.5em 1em 0; max-width: 45%; }
  .kasten-rechts { overflow: hidden; }
  .vorschau-bild { flex-basis: 110px; }
  .vorschau-bild img { width: 110px; height: 110px; }
}

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

@media (min-width: 920px) {
  #seite { grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5em; padding-top: 1.75em; }
  .menue-knopf { display: none; }
  .kopf-tipp {
    display: block; flex: 0 1 430px; margin: 0 0.5em 0 0;
    padding: 0.8em 1.1em; font-size: 0.95rem; line-height: 1.45;
    background: var(--hintergrund); border-radius: var(--radius);
  }
  .kopf-tipp .label { display: block; margin-bottom: 0.2em; }
  .kopf-tipp a { display: block; color: var(--text); text-decoration: none; }
  .kopf-tipp strong { display: block; color: var(--petrol-dunkel); font-size: 1.05rem; }
  .kopf-tipp em { display: block; margin-top: 0.25em; font-style: normal; font-weight: 600; color: var(--akzent-dunkel); }
  .kopf-tipp a:hover em { text-decoration: underline; }
}

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

@media print {
  body { background: #fff; }
  #wrap { box-shadow: none; }
  .hauptmenue, .menue-knopf, #navigation, .skip-link, .produkt-hinweis, .produkt-liste, .anzeige-kurz, .fuss-links, .weiterlesen { display: none; }
  a { color: #000; }
}
