/* ==========================================================================
   regulat-online.de – Design
   Farben angelehnt an das bisherige Logo (Blau #054c8c, Orange-Rot "online")
   Keine externen Schriften – Systemschriften (DSGVO)
   ========================================================================== */

:root {
  --blau: #054c8c;
  --blau-dunkel: #033a6b;
  --link: #00639a;
  --akzent: #e0603f;
  --akzent-dunkel: #c44a2b;
  --gruen: #2f8a4a;
  --text: #2d3236;
  --text-hell: #5d666d;
  --linie: #d9e2ea;
  --hell: #f1f6fa;
  --hell-2: #e4eef6;
  --weiss: #fff;
  --radius: 10px;
  --schatten: 0 2px 10px rgba(5, 76, 140, .08);
  --breite: 1080px;
}

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

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

body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--hell);
}

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

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--akzent-dunkel); }

h1, h2, h3, h4 { color: var(--blau); line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); margin-top: 0; }
h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .3em; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--blau); color: #fff; padding: .5em 1em; z-index: 100; }
.skip-link:focus { left: 0; }

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

/* ----- Logo (Schrift statt Grafik, gestochen scharf auf allen Displays) ----- */
.logo, .fuss-marke { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.logo-regulat {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blau);
  font-size: 1.55rem;
}
.logo-online {
  font-family: "Courier New", Courier, monospace;
  color: var(--akzent);
  font-size: 1.05rem;
  letter-spacing: .08em;
  align-self: center;
  margin-top: .15em;
  padding-right: .28em;
}

/* ----- Kopf ----- */
#kopf { background: var(--weiss); box-shadow: 0 1px 0 var(--linie); position: relative; z-index: 20; }

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kopf-innen .logo { margin-right: auto; }

.top-links { display: flex; gap: 1.2rem; font-size: .9rem; }
.top-links a { color: var(--blau); text-decoration: none; }
.top-links a:hover { text-decoration: underline; }

.anzeige-kennung {
  font-size: .85rem;
  color: var(--text-hell);
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: .15em .6em;
  letter-spacing: .03em;
  white-space: nowrap;
}

.menue-knopf {
  display: none;
  align-items: center;
  gap: .45em;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--blau);
  background: var(--hell);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: .45em .8em;
  cursor: pointer;
}
.menue-icon, .menue-icon::before, .menue-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menue-icon::before, .menue-icon::after { content: ""; position: absolute; left: 0; }
.menue-icon::before { top: -6px; }
.menue-icon::after { top: 6px; }

/* ----- Hauptmenü (Desktop: Leiste mit Aufklapp-Menüs) ----- */
.hauptmenue { background: linear-gradient(#2f6fa8, var(--blau)); }
.hauptmenue > ul {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 .5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.hauptmenue li { margin: 0; position: relative; }
.hauptmenue > ul > li > a,
.hauptmenue .gruppe {
  display: block;
  padding: .75em 1em;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  cursor: pointer;
}
.hauptmenue .gruppe::after { content: " ▾"; font-size: .8em; opacity: .8; }
.hauptmenue > ul > li > a:hover,
.hauptmenue > ul > li:hover > .gruppe,
.hauptmenue > ul > li > a[aria-current],
.hauptmenue .aktiv > .gruppe { background: rgba(255, 255, 255, .14); }
.hauptmenue .kaufen { margin-left: auto; }
.hauptmenue .kaufen a { background: var(--akzent); }
.hauptmenue .kaufen a:hover, .hauptmenue .kaufen a[aria-current] { background: var(--akzent-dunkel); }

.hauptmenue li ul {
  list-style: none;
  margin: 0;
  padding: .4em 0;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 260px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.hauptmenue li:hover > ul,
.hauptmenue li:focus-within > ul { visibility: visible; opacity: 1; transform: none; }
.hauptmenue li ul a {
  display: block;
  padding: .5em 1.1em;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
}
.hauptmenue li ul a:hover { background: var(--hell); color: var(--blau); }
.hauptmenue li ul a[aria-current] { color: var(--blau); font-weight: 600; box-shadow: inset 3px 0 0 var(--akzent); }

/* ----- Seite / Inhalt ----- */
#seite { max-width: var(--breite); margin: 0 auto; padding: 1.2rem 1rem 2rem; }

.brotkrumen { font-size: .85rem; color: var(--text-hell); margin-bottom: .8rem; }
.brotkrumen a { color: var(--text-hell); }

#inhalt {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: clamp(1.2rem, 4vw, 2.6rem);
}
#inhalt::after { content: ""; display: table; clear: both; }
#home #inhalt { background: none; box-shadow: none; padding: 0; }

.einleitung { font-size: 1.12em; color: #3a4248; }

/* Bilder im Text */
.bild { margin: .3em 0 1em; }
.bild img { display: block; border-radius: 6px; }
.bild figcaption { font-size: .85rem; color: var(--text-hell); margin-top: .35em; }
.bild-links { float: left; margin-right: 1.6em; max-width: 42%; }
.bild-rechts { float: right; margin-left: 1.6em; max-width: 42%; }
.bild-mitte { text-align: center; }
.bild-mitte img { margin: 0 auto; }

/* Listen */
ul.haken { list-style: none; padding-left: 0; }
ul.haken li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
ul.haken li::before {
  content: "✓";
  position: absolute; left: 0; top: .05em;
  width: 1.35em; height: 1.35em;
  border-radius: 50%;
  background: var(--gruen);
  color: #fff;
  font-size: .85em; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}

/* Kästen */
.info-box {
  clear: both;
  background: var(--hell);
  border-left: 4px solid var(--blau);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1em 1.3em;
  margin: 1.5em 0;
}
.info-box > :last-child { margin-bottom: 0; }
.info-box.warnung { border-left-color: var(--akzent); background: #fdf2ee; }
.info-box h2, .info-box h3 { margin-top: 0; }

.kleingedruckt { clear: both; font-size: .85rem; color: var(--text-hell); line-height: 1.55; }

.zutaten { font-size: .92rem; background: var(--hell); border-radius: var(--radius); padding: 1em 1.3em; }
.zutaten h2 { font-size: 1.05rem; margin-top: 0; }
.zutaten p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .95rem; }
th, td { border: 1px solid var(--linie); padding: .5em .7em; text-align: left; vertical-align: top; }
th { background: var(--hell); color: var(--blau); }

/* Weiterlesen */
.weiterlesen { clear: both; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--linie); }
.weiterlesen h2 { margin-top: 0; font-size: 1.2rem; }
.weiterlesen ul { list-style: none; padding: 0; display: grid; gap: .5em; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.weiterlesen li { margin: 0; }
.weiterlesen a {
  display: block; height: 100%;
  padding: .7em 1em;
  border: 1px solid var(--linie);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.weiterlesen a:hover { border-color: var(--blau); background: var(--hell); }
.weiterlesen a span { display: block; font-size: .85rem; color: var(--text-hell); font-weight: normal; }

/* Buttons */
.button, a.button {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  padding: .6em 1.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}
.button:hover, a.button:hover { background: var(--akzent-dunkel); color: #fff; }
.button.zweit { background: var(--weiss); color: var(--blau); box-shadow: inset 0 0 0 2px var(--blau); }
.button.zweit:hover { background: var(--blau); color: #fff; }

/* ----- Amazon-Anzeigen (reine Textlinks) ----- */
.produkt-hinweis, .produkt-liste {
  clear: both;
  position: relative;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 1.6em 1.3em 1em;
  margin: 1.8em 0;
}
.produkt-hinweis p { margin-bottom: .6em; }
.label {
  position: absolute; top: .6em; right: .9em;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-hell);
}
.produkt-liste ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8em;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.produkt-liste li { margin: 0; }
.produkt-liste a {
  display: flex; flex-direction: column; gap: .25em; height: 100%;
  padding: 1em;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.produkt-liste a:hover { border-color: var(--blau); box-shadow: var(--schatten); }
.produkt-liste img { width: 90px; height: 90px; object-fit: contain; align-self: center; margin-bottom: .3em; }
.produkt-liste strong { color: var(--blau); }
.produkt-liste span { font-size: .9rem; color: var(--text-hell); flex: 1; }
.produkt-liste em { font-style: normal; font-weight: 600; color: var(--akzent-dunkel); font-size: .92rem; }

/* ----- Startseite ----- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: clamp(1.2rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: .4em; }
.hero-bild img { display: block; margin: 0 auto; }
.hero .buttons { display: flex; flex-wrap: wrap; gap: .6em; margin-top: 1.2em; }
.hero ul.haken { font-size: 1.05rem; color: var(--blau); font-weight: 600; }

.karten { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 1.5rem; }
.karte {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.2rem;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
a.karte:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(5, 76, 140, .14); color: var(--text); }
.karte img { height: 170px; width: auto; object-fit: contain; align-self: center; margin-bottom: .8em; }
.karte h3 { margin: 0 0 .3em; }
.karte p { font-size: .93rem; color: var(--text-hell); flex: 1; margin-bottom: .6em; }
.karte .mehr { font-weight: 600; color: var(--link); font-size: .93rem; }
.karte .hinweis-eingestellt { color: var(--akzent-dunkel); font-weight: 600; font-size: .85rem; }

.box {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: clamp(1.2rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.box img { border-radius: 8px; display: block; }
.box h2 { margin-top: 0; }
.box > div > :last-child { margin-bottom: 0; }

#home .produkt-hinweis, #home .produkt-liste { background: var(--weiss); box-shadow: var(--schatten); border: 0; }

/* FAQ */
.faq details { border: 1px solid var(--linie); border-radius: 8px; margin-bottom: .6em; background: var(--weiss); }
.faq summary { cursor: pointer; padding: .8em 1em; font-weight: 600; color: var(--blau); list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--linie); }
.faq details > div { padding: .8em 1em .2em; }

/* ----- Themen-Navigation unter dem Inhalt ----- */
.themen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.4rem 1.6rem;
}
.themen h2 { font-size: 1.05rem; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .05em; }
.themen ul { list-style: none; padding: 0; margin: 0; }
.themen li { margin: 0; border-top: 1px dashed var(--linie); }
.themen a { display: block; padding: .45em 0; text-decoration: none; color: var(--text); }
.themen a:hover { color: var(--blau); text-decoration: underline; }
.themen a[aria-current] { color: var(--blau); font-weight: 600; }

/* ----- Fuß ----- */
#fuss { background: #1f3346; color: #c9d5e0; font-size: .88rem; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2rem 1rem 2.5rem; }
#fuss a, .link-knopf { color: #fff; }
.fuss-marke { margin-bottom: 1em; }
.fuss-marke .logo-regulat { color: #fff; font-size: 1.2rem; }
.fuss-marke .logo-online { font-size: .85rem; }
.fuss-links { line-height: 2; }
.partnerlinks { border-top: 1px dashed rgba(255, 255, 255, .2); padding-top: 1em; }
.copyright { color: #8ea3b5; margin: 0; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
#inhalt .link-knopf, #inhalt button[data-cc] {
  font: inherit; font-weight: 600; color: #fff; background: var(--blau);
  border: 0; border-radius: 6px; padding: .55em 1.1em; cursor: pointer; text-decoration: none;
}

/* ==========================================================================
   Tablet / Handy
   ========================================================================== */
@media (max-width: 860px) {
  .top-links { display: none; }
  .menue-knopf { display: inline-flex; }

  /* Menü klappt per Knopf auf (assets/js/menue.js). Ohne JavaScript bleibt es sichtbar. */
  .js .hauptmenue { display: none; }
  .js .hauptmenue.offen { display: block; }
  .hauptmenue { background: var(--blau); }
  .hauptmenue > ul { flex-direction: column; padding: .3rem 0 .8rem; }
  .hauptmenue > ul > li > a, .hauptmenue .gruppe { padding: .8em 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .hauptmenue .gruppe { cursor: default; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; border-bottom: 0; padding-bottom: .2em; }
  .hauptmenue .gruppe::after { content: ""; }
  .hauptmenue li ul {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 .4em; min-width: 0;
  }
  .hauptmenue li ul a { color: #fff; padding: .55em 1.1rem .55em 1.8rem; font-size: 1rem; }
  .hauptmenue li ul a:hover, .hauptmenue li ul a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 var(--akzent); }
  .hauptmenue .kaufen { margin: .6rem 1.1rem 0; }
  .hauptmenue .kaufen a { border-radius: 6px; text-align: center; border: 0; }
  .nur-desktop { display: none; }

  .hero { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  #seite { padding: .8rem .6rem 1.5rem; }
  .bild-links, .bild-rechts { float: none; margin: 0 auto 1.2em; max-width: 100%; text-align: center; }
  .bild-links img, .bild-rechts img { margin: 0 auto; max-height: 300px; width: auto; }
  .box { grid-template-columns: 1fr; gap: 1rem; }
  .box img { width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
  .logo-regulat { font-size: 1.3rem; }
  .anzeige-kennung { font-size: .75rem; }
  .karte img { height: 140px; }

  /* Tabellen als Karten */
  table.stapeln, table.stapeln tbody, table.stapeln tr, table.stapeln td { display: block; width: 100%; }
  table.stapeln thead { display: none; }
  table.stapeln tr { border: 1px solid var(--linie); border-radius: 8px; margin-bottom: .8em; }
  table.stapeln td { border: 0; border-bottom: 1px solid var(--linie); }
  table.stapeln td:last-child { border-bottom: 0; }
  table.stapeln td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--blau); }
}

@media print {
  #kopf, .themen, #fuss, .produkt-hinweis, .produkt-liste, .weiterlesen { display: none; }
  body { background: #fff; }
  #inhalt { box-shadow: none; padding: 0; }
}

/* ----- Ergänzungen ----- */
#home .abschnitt { margin: 0 0 .8rem; }
.spalten { display: grid; gap: 0 1.6rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.spalten h4 { margin: 1em 0 .3em; color: var(--blau); font-size: 1rem; }
.spalten ul { font-size: .93rem; margin-bottom: .5em; }
.spalten li { margin-bottom: .15em; }
.buchdaten { max-width: 560px; }
.buchdaten th { width: 7em; }
