/* ===================================================================
 * Theme: heritage-local
 * Zielgruppe: Handwerk, lokale Betriebe, Vereine
 * Verbindlich: siehe SPEZIFIKATION.md
 *
 * Verhaeltnis zu editorial-pro: gleiche Anti-KI-Grundsaetze, gleiche
 * Farbwerte, gleiche Verbote. Anderer Charakter - kraeftigere Linien,
 * schwerere Ueberschriften, und drei Bausteine, die editorial-pro nicht
 * hat: Kennzahlen-Tabelle, Rechenbeispiel und Ablauf in Schritten.
 * Ein Handwerksbetrieb glaubt Zahlen, keine Adjektive.
 * ================================================================== */

:root {
  /* Farben - identisch zu editorial-pro, global festgelegt */
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --text: #0c0c0c;
  --text-secondary: #5a5a5a;
  --hairline-strong: #1a1a1a;
  --hairline-weak: #d0d0d0;
  --border-card: #e0e0e0;

  /* Akzent: GENAU EINER. Default Tiefblau - traegt bei Handwerk besser
     als Gruen (das ist fuer Bildung vergeben) und als Rot (Aktivismus). */
  --accent: #003049;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
}

/* ===== Reset + Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--text); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Kopf =====
 * Zweizeilig: Wortmarke plus Ortszeile. Ein lokaler Betrieb sucht
 * zuerst, wo der andere sitzt - das gehoert nach oben, nicht in den Fuss. */
.hl-header {
  background: var(--bg);
  border-bottom: 2px solid var(--hairline-strong);
  position: sticky;
  top: 0;
  z-index: 100;
}
.hl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}
.hl-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.hl-logo .accent { color: var(--accent); }
.hl-logo .place {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.hl-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hl-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.hl-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hl-nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--text);
}
.hl-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  color: var(--text);
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}
.hl-nav-toggle:hover { background: var(--text); color: var(--bg); }
@media (max-width: 860px) {
  .hl-nav-toggle { display: block; }
  .hl-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--hairline-strong);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
  }
  .hl-nav.active { display: flex; }
}

/* ===== Abschnitte ===== */
.hl-section { padding: 3.5rem 0; }
@media (max-width: 700px) { .hl-section { padding: 2.5rem 0; } }
.hl-section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.hl-section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 65ch;
}

/* ===== Hero ===== */
.hl-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hl-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hl-hero .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 65ch;
  margin-bottom: 1.5rem;
}
.hl-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 800px) {
  .hl-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hl-hero h1 { font-size: 1.9rem; }
}

/* ===== Knoepfe (kantig) ===== */
.hl-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 0;
  border: 1px solid var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  margin-right: 0.4rem;
}
.hl-btn:hover { background: var(--text); color: var(--bg); }
.hl-btn-primary { background: var(--text); color: var(--bg); }
.hl-btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }

/* ===== Hairline-Liste (statt Karten fuer Text) ===== */
.hl-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 2px solid var(--hairline-strong);
}
.hl-list li {
  border-bottom: 1px solid var(--hairline-weak);
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 13rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
}
.hl-list .name { font-weight: 700; font-size: 1.05rem; }
.hl-list .desc { color: var(--text-secondary); font-size: 0.95rem; }
.hl-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.hl-list a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .hl-list li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ===== Kennzahlen =====
 * Zwei Spalten, Bezeichnung und Wert, Werte rechtsbuendig in Ziffern
 * gleicher Breite. Kein Karten-Raster - das hier IST eine Tabelle. */
.hl-figures {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--hairline-strong);
  margin: 0 0 2rem;
  font-size: 0.98rem;
}
.hl-figures th,
.hl-figures td {
  border-bottom: 1px solid var(--hairline-weak);
  padding: 0.75rem 0.6rem;
  text-align: left;
  vertical-align: baseline;
}
.hl-figures th { font-weight: 700; }
.hl-figures td.value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.hl-figures td.unit { color: var(--text-secondary); width: 8rem; }
.hl-figures caption {
  caption-side: bottom;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding-top: 0.6rem;
}

/* ===== Rechenbeispiel =====
 * Der Befehl und sein Ergebnis, wie es wirklich herauskommt. Kein
 * farbiger Rahmen, keine Callout-Deko - nur eine Kontur. */
.hl-example {
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: var(--bg-card);
  padding: 1.2rem 1.3rem;
  margin: 0 0 2rem;
}
.hl-example h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.hl-example pre {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 0.7rem;
}
.hl-example p { font-size: 0.92rem; color: var(--text-secondary); }
.hl-example p:last-child { margin-bottom: 0; }

/* ===== Ablauf in Schritten =====
 * Nummeriert, mit Hairline getrennt. Keine Symbole, keine Kreise. */
.hl-steps {
  list-style: none;
  counter-reset: hl-step;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 2px solid var(--hairline-strong);
}
.hl-steps li {
  counter-increment: hl-step;
  border-bottom: 1px solid var(--hairline-weak);
  padding: 1.1rem 0 1.1rem 3rem;
  position: relative;
}
.hl-steps li::before {
  content: counter(hl-step) ".";
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hl-steps strong { display: block; margin-bottom: 0.2rem; }
.hl-steps span { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Karten (nur mit Bild oder eigener Identitaet) ===== */
.hl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.hl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.hl-card:hover { border-color: var(--text); }
.hl-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hl-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.hl-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.hl-card-body p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 0.7rem; }
.hl-card-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
}
.hl-card-body a:hover { color: var(--accent); }

/* ===== Fragen und Antworten ===== */
.hl-faq details {
  border-bottom: 1px solid var(--hairline-weak);
  padding: 1rem 0;
}
.hl-faq details:first-child { border-top: 2px solid var(--hairline-strong); }
.hl-faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.hl-faq summary::-webkit-details-marker { display: none; }
.hl-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}
.hl-faq details[open] summary::after { content: "-"; }
.hl-faq details p { margin-top: 0.7rem; color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Aufforderungs-Block ===== */
.hl-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 3rem 2rem;
}
.hl-cta h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.6rem; }
.hl-cta p { color: rgba(255, 255, 255, 0.88); margin-bottom: 1.4rem; max-width: 55ch; }
.hl-cta .hl-btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--text);
}
.hl-cta .hl-btn:hover { background: var(--text); border-color: var(--text); color: #ffffff; }

/* ===== Fuss - genau zwei Zeilen ===== */
.hl-footer {
  background: var(--text);
  color: var(--bg);
  padding: 2rem 0;
  font-size: 0.9rem;
}
.hl-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hl-footer a {
  color: var(--bg);
  text-decoration: none;
  margin-left: 1.2rem;
}
.hl-footer a:hover { text-decoration: underline; }

/* ===== Brotkrumen ===== */
.hl-breadcrumb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.hl-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.hl-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.hl-breadcrumb .sep { margin: 0 0.4rem; }
