/* ==========================================================================
   Babyschuhe-Info.de – Stylesheet
   Mobil zuerst, Farben aus dem Titelbild (Rosé/Beere).
   Keine externen Ressourcen (Schriften, Bilder) – alles lokal.
   ========================================================================== */

:root {
  --beere: #b84d7f;
  --beere-dunkel: #8f3460;
  --rose: #fbeef3;
  --rose-mittel: #f4d9e5;
  --text: #33282d;
  --text-hell: #6b5a62;
  --hintergrund: #fdf8fa;
  --karte: #fff;
  --linie: #ecd6e0;
  --schatten: 0 1px 3px rgba(80, 30, 55, 0.08), 0 4px 16px rgba(80, 30, 55, 0.06);
  --radius: 12px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: Georgia, "Times New Roman", 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(--beere-dunkel); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--beere); }
:focus-visible { outline: 2px solid var(--beere); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  color: var(--beere-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; }
h4 { font-size: 1rem; }

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(--beere); 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 {
  font-family: var(--schrift-titel);
  font-size: 1.35rem; letter-spacing: 0.02em;
  color: var(--beere); text-decoration: none; white-space: nowrap;
}
.marke span { font-size: 0.75em; color: var(--text-hell); }
.menue-knopf {
  display: inline-block; padding: 0.35em 0.9em;
  border: 1px solid var(--linie); border-radius: 999px;
  color: var(--beere-dunkel); text-decoration: none; font-size: 0.95rem; white-space: nowrap;
}
.menue-knopf:hover { background: var(--rose); }

.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(--rose); color: var(--beere-dunkel); }
.hauptmenue a[aria-current="page"] { background: var(--beere); color: #fff; }

/* Titelbild: volle Breite bis 800 px, die hellen Bildränder laufen in Weiß aus */
.banner { display: block; background: #fff; }
.banner img { display: block; width: 100%; max-width: 800px; height: auto; margin: 0 auto; }

/* ---------- 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; }

/* Einleitung (erster Absatz, oft komplett fett) etwas hervorheben, aber nicht zu schwer */
main h1 + p { font-size: 1.08em; }
main h1 + p strong { font-weight: 600; }

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

/* ---------- 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(--beere); 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(--rose-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(--beere); }
.navi-gruppe a[aria-current="page"] { color: var(--beere); font-weight: 600; }
.navi-gruppe p { margin: 0 0 0.5em; font-size: 0.95rem; }

/* ---------- 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(--rose); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.themen-karten a:hover { border-color: var(--beere); transform: translateY(-1px); }
.themen-karten strong { display: block; color: var(--beere-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); }

.merkmale { list-style: none; padding: 0; }
.merkmale li {
  padding: 0.8em 1em; margin-bottom: 0.7em;
  border-left: 4px solid var(--beere); background: var(--rose); border-radius: 0 8px 8px 0;
}

.info-box {
  background: var(--rose); border-radius: var(--radius);
  padding: 0.9em 1.1em; margin: 1.5em 0;
}
.info-box > :last-child { margin-bottom: 0; }

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

.produkt-hinweis {
  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 {
  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(--beere); color: #fff; text-decoration: none; border-radius: 999px;
}
.produkt-hinweis a.button:hover { background: var(--beere-dunkel); color: #fff; }
.produkt-hinweis small { display: block; margin-top: 0.6em; color: var(--text-hell); font-size: 0.8rem; }

.video-hinweis a {
  display: flex; align-items: center; gap: 0.9em;
  padding: 0.9em 1em; margin: 1.5em 0;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--rose);
  color: var(--text); text-decoration: none;
}
.video-hinweis a:hover { border-color: var(--beere); }
.video-hinweis .play {
  flex: 0 0 auto; width: 2.6em; height: 2.6em; border-radius: 50%;
  display: grid; place-items: center; background: var(--beere); color: #fff; font-size: 1rem;
}
.video-hinweis strong { display: block; color: var(--beere-dunkel); font-weight: 600; }
.video-hinweis small { color: var(--text-hell); }

.linkliste { list-style: none; padding: 0; }
.linkliste li { padding: 0.5em 0; border-bottom: 1px solid var(--rose-mittel); }

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; }
th { background: var(--rose); color: var(--beere-dunkel); font-weight: 600; }
tbody tr:nth-child(even) td { background: #fffafc; }
caption { text-align: left; color: var(--text-hell); font-size: 0.875rem; caption-side: bottom; padding-top: 0.5em; }

/* ---------- 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, .link-knopf { color: var(--text-hell); }
.fuss-hinweis { font-size: 0.8rem; }

.link-knopf {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.link-knopf:hover { color: var(--beere); }

main button[data-cc] {
  font: inherit; padding: 0.5em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--beere); background: #fff; color: var(--beere-dunkel);
}
main button[data-cc]:hover { background: var(--rose); }

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

@media (min-width: 600px) {
  main { padding: 1.8em 2em 2em; }
  h1 { font-size: 2rem; }
  .themen-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 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, .banner, .fuss-links { display: none; }
  main { box-shadow: none; padding: 0; }
  a { color: #000; }
}
