/* Tierheilpraktiker Wegweiser — ausbildung-tierheilpraktiker.de
   Fachbuch-Struktur, Präfix thp-. Pergament-Grund, Apothekergrün,
   Schiefertinte, Kräuterrost, Messingmörtel. Register-Randleiste links,
   Inhaltsverzeichnis mit Punktlinien, Kapitelzählung, keine Schatten. */

:root {
  --thp-parch: #F5EFE1;
  --thp-parch2: #EDE4CF;
  --thp-ink: #232B28;
  --thp-ink2: #4C564E;
  --thp-rule: #CBBFA2;
  --thp-gruen: #1E4736;
  --thp-gruen2: #2E5F49;
  --thp-rost: #96502A;
  --thp-messing: #7E6A30;
  --thp-schiefer: #3B4A54;
  --thp-dunkel: #1B2420;
  --thp-dunkel-ink: #EFE6D2;
  --thp-dunkel-rule: #39473F;
  --thp-serif: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  --thp-sans: 'Trebuchet MS', Verdana, 'Segoe UI', sans-serif;
  --thp-kap: var(--thp-gruen);
}

.thp-k1 { --thp-kap: #1E4736; }
.thp-k2 { --thp-kap: #96502A; }
.thp-k3 { --thp-kap: #7E6A30; }
.thp-k4 { --thp-kap: #3B4A54; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--thp-parch);
  color: var(--thp-ink);
  font-family: var(--thp-serif);
  font-size: 16px;
  line-height: 1.62;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--thp-gruen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--thp-rost); }
h1, h2, h3, h4 { font-family: var(--thp-serif); line-height: 1.15; font-weight: 700; margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
p { margin: 0; }
figure { margin: 0; }

.thp-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--thp-ink); color: var(--thp-parch); padding: 8px 14px; z-index: 50;
}
.thp-skip:focus { left: 8px; top: 8px; }

.thp-wrap { max-width: 70rem; margin: 0 auto; padding: 0 22px; }

/* ---------- Kopfzeile ---------- */
.thp-kopf {
  background: var(--thp-parch);
  border-bottom: 1px solid var(--thp-rule);
}
.thp-kopf__row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 18px; padding-bottom: 14px;
}
.thp-marke { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--thp-ink); }
.thp-marke__zeichen {
  width: 52px; height: 52px; flex: none;
  border: 2px solid var(--thp-messing); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--thp-serif); font-weight: 700; font-size: 19px;
  color: var(--thp-gruen); background: var(--thp-parch2);
  letter-spacing: .04em;
}
.thp-marke__name { display: block; font-family: var(--thp-serif); font-size: 21px; font-weight: 700; line-height: 1.15; }
.thp-marke__zeile { display: block; font-family: var(--thp-sans); font-size: 11px; color: var(--thp-ink2); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }

.thp-nav { font-family: var(--thp-sans); }
.thp-nav__toggle, .thp-nav__handle { display: none; }
.thp-nav ul { display: flex; gap: 2px; flex-wrap: wrap; }
.thp-nav a {
  display: block; padding: 9px 13px; color: var(--thp-ink); text-decoration: none;
  font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.thp-nav a:hover { color: var(--thp-rost); border-bottom-color: var(--thp-rost); }
.thp-nav a[aria-current="page"] { color: var(--thp-gruen); border-bottom-color: var(--thp-gruen); font-weight: 700; }

@media (max-width: 62rem) {
  .thp-nav__handle {
    display: block; cursor: pointer; padding: 9px 14px;
    font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
    border: 1px solid var(--thp-rule); color: var(--thp-ink);
  }
  .thp-nav ul { display: none; position: absolute; right: 22px; top: 100%; background: var(--thp-parch); border: 1px solid var(--thp-rule); z-index: 20; min-width: 220px; }
  .thp-nav__toggle:checked ~ ul { display: block; }
  .thp-nav a { border-bottom: none; border-left: 3px solid transparent; padding: 10px 14px; }
  .thp-nav a[aria-current="page"] { border-left-color: var(--thp-gruen); }
  .thp-nav { position: relative; }
}

/* ---------- Kapitelband / Kicker ---------- */
.thp-kicker {
  font-family: var(--thp-sans); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--thp-kap);
  margin-bottom: 10px;
}
.thp-kicker::before { content: "§ "; color: var(--thp-messing); }

/* ---------- Startseite: Titelblatt ---------- */
.thp-titel { border-bottom: 1px solid var(--thp-rule); background: var(--thp-parch2); }
.thp-titel__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 34px; padding-top: 42px; padding-bottom: 42px; align-items: center; }
.thp-titel__vorspann { font-family: var(--thp-sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--thp-messing); margin-bottom: 14px; }
.thp-titel h1 { font-size: 40px; line-height: 1.12; margin-bottom: 16px; color: var(--thp-ink); }
.thp-titel__text { font-size: 18px; color: var(--thp-ink2); max-width: 34em; margin-bottom: 22px; }
.thp-titel__deck { font-size: 18px; color: var(--thp-ink2); max-width: 34em; margin-bottom: 22px; }
.thp-titel__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.thp-btn {
  font-family: var(--thp-sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 20px; text-decoration: none; border: 1px solid var(--thp-gruen);
}
.thp-btn--voll { background: var(--thp-gruen); color: var(--thp-parch); }
.thp-btn--voll:hover { background: var(--thp-gruen2); color: var(--thp-parch); }
.thp-btn--leer { color: var(--thp-gruen); }
.thp-btn--leer:hover { border-color: var(--thp-rost); color: var(--thp-rost); }
.thp-titel__fig { border: 1px solid var(--thp-rule); padding: 8px; background: var(--thp-parch); }
.thp-titel__fig img { border: 1px solid var(--thp-rule); }
.thp-titel__fig figcaption { font-family: var(--thp-sans); font-size: 12px; color: var(--thp-ink2); padding-top: 8px; line-height: 1.45; }

/* ---------- Register (Inhaltsverzeichnis) ---------- */
.thp-band { padding-top: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--thp-rule); }
.thp-band--ton { background: var(--thp-parch2); }
.thp-band--nacht { background: var(--thp-dunkel); color: var(--thp-dunkel-ink); }
.thp-band--nacht h2, .thp-band--nacht h3 { color: var(--thp-dunkel-ink); }
.thp-band--nacht a { color: #D8C792; }
.thp-band--nacht a:hover { color: #F0DCA8; }
.thp-band--nacht .thp-register__nr { border-color: var(--thp-dunkel-rule); color: #D8C792; }
.thp-band--nacht .thp-register__notiz { color: #B9AE93; }
.thp-band h2 { font-size: 27px; margin-bottom: 10px; }
.thp-standfirst { font-size: 17px; color: var(--thp-ink2); max-width: 44em; margin-bottom: 26px; }
.thp-band--nacht .thp-standfirst { color: #B9AE93; }

.thp-register { counter-reset: eintrag; }
.thp-register li { border-top: 1px solid var(--thp-rule); }
.thp-register li:first-child { border-top: none; }
.thp-register a.thp-register__link {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline;
  padding: 14px 0; text-decoration: none; color: var(--thp-ink);
}
.thp-register__nr {
  font-family: var(--thp-serif); font-size: 15px; font-weight: 700;
  color: var(--thp-kap); border-right: 1px solid var(--thp-rule); padding-right: 14px;
}
.thp-register h3 { font-size: 19px; margin-bottom: 4px; }
.thp-register h3 a { color: var(--thp-ink); text-decoration: none; }
.thp-register h3 a:hover { color: var(--thp-rost); }
.thp-register__notiz { font-family: var(--thp-sans); font-size: 13px; color: var(--thp-ink2); line-height: 1.5; }
.thp-register__mehr { margin-top: 20px; font-family: var(--thp-sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.thp-register__mehr a { color: var(--thp-kap); }

/* Kapitel-Kacheln der Startseite */
.thp-kapitel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.thp-kapitel li { border: 1px solid var(--thp-rule); background: var(--thp-parch); padding: 0 0 14px; }
.thp-kapitel figure img { border-bottom: 1px solid var(--thp-rule); }
.thp-kapitel__roemisch { font-family: var(--thp-serif); font-size: 13px; color: var(--thp-messing); letter-spacing: .12em; padding: 14px 16px 4px; display: block; }
.thp-kapitel h3 { font-size: 18px; padding: 0 16px; margin-bottom: 6px; }
.thp-kapitel h3 a { text-decoration: none; color: var(--thp-ink); }
.thp-kapitel h3 a:hover { color: var(--thp-rost); }
.thp-kapitel p { font-family: var(--thp-sans); font-size: 12.5px; color: var(--thp-ink2); padding: 0 16px; line-height: 1.5; }
.thp-kapitel__zahl { display: block; padding: 10px 16px 0; font-family: var(--thp-sans); font-size: 11px; color: var(--thp-kap); letter-spacing: .1em; text-transform: uppercase; }

/* Restaurierte Adressen */
.thp-archiv li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid var(--thp-rule); align-items: baseline; }
.thp-archiv li:first-child { border-top: none; }
.thp-archiv__adr { font-family: var(--thp-sans); font-size: 12px; color: var(--thp-messing); word-break: break-all; }
.thp-archiv h3 { font-size: 17px; margin-bottom: 3px; }
.thp-archiv h3 a { color: var(--thp-ink); text-decoration: none; }
.thp-archiv h3 a:hover { color: var(--thp-rost); }
.thp-archiv p { font-family: var(--thp-sans); font-size: 12.5px; color: var(--thp-ink2); }

/* Bildstreifen Startseite */
.thp-tafel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.thp-tafel li { border: 1px solid var(--thp-rule); background: var(--thp-parch); padding: 8px 8px 12px; }
.thp-tafel img { border: 1px solid var(--thp-rule); }
.thp-tafel h3 { font-size: 15px; padding: 10px 8px 4px; }
.thp-tafel h3 a { color: var(--thp-ink); text-decoration: none; }
.thp-tafel h3 a:hover { color: var(--thp-rost); }
.thp-tafel p { font-family: var(--thp-sans); font-size: 12px; color: var(--thp-ink2); padding: 0 8px; line-height: 1.5; }
.thp-tafel__no { font-family: var(--thp-sans); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--thp-kap); padding: 10px 8px 0; display: block; }

/* ---------- Brotkrumen ---------- */
.thp-crumb { font-family: var(--thp-sans); font-size: 12px; padding-top: 14px; color: var(--thp-ink2); }
.thp-crumb ol { display: flex; gap: 8px; flex-wrap: wrap; }
.thp-crumb li[aria-hidden] { color: var(--thp-messing); }
.thp-crumb a { color: var(--thp-ink2); text-decoration: none; }
.thp-crumb a:hover { color: var(--thp-rost); }

/* ---------- Artikel ---------- */
.thp-seite { padding-top: 30px; padding-bottom: 50px; }
.thp-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.thp-rand { position: sticky; top: 24px; }
.thp-rand__kasten { border: 1px solid var(--thp-rule); background: var(--thp-parch2); padding: 16px 18px; margin-bottom: 18px; }
.thp-rand__kasten h2 { font-family: var(--thp-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--thp-kap); margin-bottom: 10px; border-bottom: 1px solid var(--thp-rule); padding-bottom: 8px; }
.thp-rand__kasten li { padding: 5px 0; }
.thp-rand__kasten a { font-family: var(--thp-sans); font-size: 13px; color: var(--thp-ink); text-decoration: none; }
.thp-rand__kasten a:hover { color: var(--thp-rost); }
.thp-rand__kasten .thp-rand__index a { font-weight: 700; color: var(--thp-kap); }

.thp-artikel h1 { font-size: 34px; margin-bottom: 14px; }
.thp-artikel__standfirst { font-size: 18px; color: var(--thp-ink2); margin-bottom: 16px; max-width: 40em; }
.thp-artikel__meta {
  font-family: var(--thp-sans); font-size: 12px; color: var(--thp-ink2);
  border-top: 1px solid var(--thp-rule); border-bottom: 1px solid var(--thp-rule);
  padding: 9px 0; margin-bottom: 24px; display: flex; gap: 18px; flex-wrap: wrap;
}
.thp-artikel__meta a { color: var(--thp-ink2); }
.thp-artikel__hero { border: 1px solid var(--thp-rule); padding: 8px; background: var(--thp-parch2); margin-bottom: 28px; }
.thp-artikel__hero img { border: 1px solid var(--thp-rule); }
.thp-artikel__hero figcaption { font-family: var(--thp-sans); font-size: 12px; color: var(--thp-ink2); padding-top: 8px; }

.thp-body { max-width: 44em; }
.thp-body h2 { font-size: 22px; margin-top: 34px; margin-bottom: 10px; padding-left: 16px; border-left: 3px solid var(--thp-kap); scroll-margin-top: 20px; }
.thp-body p { margin-bottom: 16px; }
.thp-body a { text-decoration: underline; }

.thp-weiter { margin-top: 40px; border-top: 2px solid var(--thp-ink); padding-top: 18px; }
.thp-weiter h2 { font-family: var(--thp-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--thp-kap); margin-bottom: 10px; }
.thp-weiter li { padding: 5px 0; }
.thp-weiter li::before { content: "→ "; color: var(--thp-messing); }
.thp-weiter a { font-size: 15px; }

/* Registerliste auf Kapitelseiten */
.thp-hubregister { margin-top: 30px; }
.thp-hubregister li { border-top: 1px solid var(--thp-rule); padding: 16px 0; display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: start; }
.thp-hubregister figure img { border: 1px solid var(--thp-rule); }
.thp-hubregister__adr { font-family: var(--thp-sans); font-size: 11px; color: var(--thp-messing); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 5px; }
.thp-hubregister h3 { font-size: 19px; margin-bottom: 6px; }
.thp-hubregister h3 a { color: var(--thp-ink); text-decoration: none; }
.thp-hubregister h3 a:hover { color: var(--thp-rost); }
.thp-hubregister p { font-family: var(--thp-sans); font-size: 13px; color: var(--thp-ink2); line-height: 1.5; }

/* ---------- Fuß ---------- */
.thp-fuss { background: var(--thp-dunkel); color: var(--thp-dunkel-ink); margin-top: 20px; }
.thp-fuss__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-top: 38px; padding-bottom: 30px; }
.thp-fuss h2 { font-family: var(--thp-sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #D8C792; margin-bottom: 12px; }
.thp-fuss p { font-family: var(--thp-sans); font-size: 13px; color: #B9AE93; line-height: 1.6; margin-bottom: 8px; }
.thp-fuss li { padding: 3px 0; }
.thp-fuss a { font-family: var(--thp-sans); font-size: 13px; color: #D8C792; text-decoration: none; }
.thp-fuss a:hover { color: #F0DCA8; text-decoration: underline; }
.thp-fuss__basis { border-top: 1px solid var(--thp-dunkel-rule); padding-top: 14px; padding-bottom: 16px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--thp-sans); font-size: 12px; color: #8B8168; }

/* ---------- 404 ---------- */
.thp-404 { padding: 60px 0 80px; max-width: 40em; }
.thp-404 h1 { font-size: 34px; margin-bottom: 14px; }
.thp-404 p { margin-bottom: 14px; }

/* ---------- Anpassungen ---------- */
@media (max-width: 60rem) {
  .thp-layout { grid-template-columns: 1fr; }
  .thp-rand { position: static; order: 2; }
  .thp-kapitel { grid-template-columns: repeat(2, 1fr); }
  .thp-tafel { grid-template-columns: 1fr; }
  .thp-titel__grid { grid-template-columns: 1fr; }
  .thp-titel h1 { font-size: 30px; }
  .thp-fuss__grid { grid-template-columns: 1fr; }
  .thp-hubregister li { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .thp-kapitel { grid-template-columns: 1fr; }
  .thp-register a.thp-register__link { grid-template-columns: 44px 1fr; }
}
