/* Ratgeber-Seiten (grundrisswerk.de/ratgeber/). Fertiges HTML ohne JavaScript.
   Farben wie die Website: Text #1a1a1a, Akzent #0086c9 (blue-600), hell. */

:root {
  color-scheme: light;
  --text: #1a1a1a;
  --text-leise: #4b5563;
  --akzent: #0086c9;
  --akzent-dunkel: #006aab;
  --linie: #e5e7eb;
  --flaeche: #f5f9fc;
  --flaeche-rand: #d6e9f5;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  body { font-size: 18px; }
}

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

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

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); background: #fff; }
.kopf-innen {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.marke { display: inline-flex; align-items: center; min-height: 44px; }
.marke img { display: block; height: 28px; width: auto; }

/* Knöpfe, am Handy mindestens 44 px hoch */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--akzent);
  border-radius: 12px;
  background: var(--akzent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }
.knopf-hell { background: #fff; color: var(--akzent); }
.knopf-hell:hover { background: var(--flaeche); color: var(--akzent-dunkel); }

/* Spalte */
.artikel { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.brot ol {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 14px;
  color: var(--text-leise);
}
.brot li + li::before { content: "\203A"; margin-right: 8px; color: #9ca3af; }
.brot a { color: var(--text-leise); }

h1 {
  margin: 16px 0 12px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  h1 { font-size: 40px; }
}

.stand { margin: 0 0 24px; font-size: 15px; color: var(--text-leise); }

.text h2,
.gruppe h2,
.verwandt h2 {
  margin: 48px 0 16px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  scroll-margin-top: 16px;
}
.text h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}
.text p,
.text ul,
.text ol { margin: 0 0 1.1em; }
.text ul,
.text ol { padding-left: 1.4em; }
.text li + li { margin-top: 0.35em; }
.text strong { font-weight: 700; }

/* Kasten "Das Wichtigste in Kürze" und Inhaltsverzeichnis */
.kurz {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--flaeche-rand);
  border-radius: 16px;
  background: var(--flaeche);
}
.kasten-titel {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--akzent-dunkel);
}
.kurz ul { margin: 0; padding-left: 1.2em; font-size: 16px; }
.kurz li + li { margin-top: 0.3em; }

.inhalt {
  margin: 0 0 32px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--akzent);
  font-size: 16px;
}
.inhalt ol { margin: 0; padding-left: 1.2em; }
.inhalt li + li { margin-top: 0.3em; }
.inhalt a { color: var(--text); text-decoration: none; }
.inhalt a:hover { color: var(--akzent); text-decoration: underline; }

/* Hinweiskasten, Tabelle */
.hinweis {
  margin: 0 0 1.1em;
  padding: 14px 16px;
  border-left: 4px solid var(--akzent);
  border-radius: 8px;
  background: #f0f9ff;
}
.hinweis p { margin: 0; }

.tabelle {
  margin: 0 0 1.2em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--linie);
  border-radius: 10px;
}
.tabelle table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th,
.tabelle td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--linie);
}
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th { background: var(--flaeche); font-weight: 700; }

/* Handlungsaufruf */
.aufruf {
  margin: 48px 0 40px;
  padding: 24px;
  border: 1px solid var(--flaeche-rand);
  border-radius: 16px;
  background: var(--flaeche);
}
.aufruf p { margin: 0 0 16px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Karten (verwandte Artikel, Übersicht) */
.karten {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .karten { grid-template-columns: repeat(2, 1fr); }
}
.karte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 18px;
  border: 1px solid var(--linie);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.karte:hover {
  border-color: var(--akzent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  color: var(--text);
}
.karte-titel { font-weight: 700; line-height: 1.35; }
.karte-text { font-size: 15px; line-height: 1.5; color: var(--text-leise); }

.gruppe { margin-top: 40px; }
.gruppe h2 { margin-top: 0; }
.einleitung { margin-bottom: 8px; }

/* Fuß */
.fuss {
  margin-top: 56px;
  padding: 28px 16px 40px;
  border-top: 1px solid var(--linie);
  text-align: center;
  font-size: 14px;
  color: var(--text-leise);
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 14px;
}
.fuss a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-leise);
}
.fuss p { margin: 4px 0; }

/* Druck: ohne Kopf, Handlungsaufruf und verwandte Artikel */
@media print {
  .kopf,
  .aufruf,
  .verwandt,
  .fuss nav { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .artikel { max-width: none; }
  h2, h3 { break-after: avoid; }
}
