/* hauser.tankstelle – Bausteine Web & Hilfeseiten. Setzt tokens.css und die Schriften aus fonts/ voraus. Alle Klassen mit Präfix ht-. */

/* Seitenrahmen */
.ht-seite { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-copy); font-weight: 300; font-size: 18px; line-height: 28px; }
.ht-seite h1, .ht-seite h2, .ht-seite h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
.ht-seite strong, .ht-seite b { font-weight: 500; }
.ht-seite a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ht-seite :focus-visible { outline: var(--rahmen-fokus) solid var(--focus-ring); outline-offset: 2px; }
.ht-zahl { font-variant-numeric: tabular-nums; }
.ht-inhalt { max-width: var(--inhalt-max); margin-inline: auto; padding-inline: var(--space-4); box-sizing: border-box; }
@media (min-width: 720px) { .ht-inhalt { padding-inline: var(--space-5); } }

/* Hell/Dunkel: Bilddateien tragen ihre Farbe selbst */
.ht-nur-dunkel { display: none !important; }
[data-theme="dunkel"] .ht-nur-hell { display: none !important; }
[data-theme="dunkel"] .ht-nur-dunkel { display: block !important; }

/* Dunkle Fläche im hellen Auftritt */
.ht-invers { background: var(--surface-inverse); color: var(--ink-inverse); }
.ht-invers a { color: var(--ink-inverse); }
.ht-invers :focus-visible { outline-color: var(--focus-ring-inverse); }

/* Button */
.ht-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; min-height: var(--ziel-min); padding: 0 var(--space-5); border: var(--rahmen) solid var(--action); border-radius: var(--radius-s); background: var(--action); color: var(--on-action); font-family: var(--font-copy); font-weight: 500; font-size: 16px; line-height: 20px; text-decoration: none; cursor: pointer; }
.ht-btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.ht-btn:focus-visible { outline: var(--rahmen-fokus) solid var(--focus-ring); outline-offset: 2px; }
.ht-btn--sekundaer { background: transparent; border-color: var(--ink); color: var(--ink); }
.ht-btn--sekundaer:hover { background: var(--surface-muted); border-color: var(--ink); }
.ht-btn--breit { display: flex; width: 100%; }
.ht-invers .ht-btn { background: var(--ink-inverse); border-color: var(--ink-inverse); color: var(--surface-inverse); }
.ht-invers .ht-btn:hover { background: var(--line); border-color: var(--line); }
.ht-invers .ht-btn:focus-visible { outline-color: var(--focus-ring-inverse); }
.ht-invers .ht-btn--sekundaer { background: transparent; color: var(--ink-inverse); border-color: var(--ink-inverse); }

/* Kopfzeile */
.ht-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding: var(--space-4) var(--space-5); background: var(--surface); border-bottom: var(--rahmen-haar) solid var(--line); }
.ht-kopf__logo { display: block; width: 220px; height: auto; }
.ht-kopf__nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.ht-kopf__nav a { padding: var(--space-2) 0; border-bottom: var(--rahmen) solid transparent; color: var(--ink); font-weight: 500; font-size: 16px; line-height: 20px; text-decoration: none; }
.ht-kopf__nav a:hover, .ht-kopf__nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.ht-kopf__marke { color: var(--ink-muted); font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: 0.02em; }
@media (max-width: 600px) { .ht-kopf { padding: var(--space-3) var(--space-4); } .ht-kopf__logo { width: 200px; } }

/* Polygon-Band */
.ht-band { display: block; width: 100%; height: 160px; object-fit: cover; object-position: center; }
.ht-band--kopf { height: 320px; object-position: center top; }
@media (max-width: 600px) { .ht-band { height: 112px; } .ht-band--kopf { height: 200px; } }

/* Schrittliste */
.ht-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: ht-schritt; }
.ht-schritte__eintrag { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-4); align-items: center; counter-increment: ht-schritt; }
.ht-schritte__symbol { display: block; width: 56px; height: 56px; }
.ht-schritte__text::before { content: counter(ht-schritt) "  "; font-weight: 500; white-space: pre; }

/* Notfall-Kasten */
.ht-notfall { padding: var(--space-5); border-radius: var(--radius-0); }
.ht-notfall__titel { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; }
.ht-notfall__liste { margin: 0; padding-left: 1.3em; display: grid; gap: var(--space-2); }
.ht-notfall__ort { margin: var(--space-3) 0 0; font-size: 16px; line-height: 24px; }
.ht-notfall__112 { margin: var(--space-3) 0 0; font-weight: 500; }

/* Hinweis */
.ht-hinweis { padding: var(--space-4) var(--space-5); background: var(--surface-muted); color: var(--ink); }
.ht-hinweis__titel { margin: 0 0 var(--space-1); font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: 0.02em; }
.ht-hinweis p { margin: 0; }

/* Fußzeile – bleibt in beiden Themen dunkel (Polygon-Sockel) */
.ht-fuss { background-color: var(--ht-1); background-image: var(--ht-fuss-bild, none); background-size: cover; background-position: center top; color: var(--ht-weiss); padding: var(--space-8) var(--space-5) var(--space-6); font-size: 14px; line-height: 20px; }
.ht-fuss a { color: var(--ht-weiss); }
.ht-fuss :focus-visible { outline: var(--rahmen-fokus) solid var(--ht-tuerkis); outline-offset: 2px; }
.ht-fuss__logo { display: block; width: 200px; height: auto; margin-bottom: var(--space-5); }
.ht-fuss__zeile { margin: 0 0 var(--space-2); }
.ht-fuss__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
