/* How to Business – Impressum und Datenschutz.
   Werte aus Brandguide-How-to-Business/web/htb-tokens.css (hell und dunkel nach Systemeinstellung). */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Schmal"; src: url("../fonts/ArchivoSchmal-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

body.htb-legal {
  --gelb: #ffc81e; --gelb-tief: #e5ac00; --gelb-hell: #fff1c2;
  --tanne: #0e4a38; --tinte: #15211c; --weiss: #ffffff;
  --grund: #ffffff; --flaeche: #f1f4f1;
  --text: #15211c; --text-leise: #56635d; --linie: #d3dad5;
  --link: #0e4a38; --fokus: #0e4a38;
  --rahmen: #7a8781; --falsch: #c23a22;
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.6 Archivo, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  body.htb-legal {
    --gelb-hell: #3a3112;
    --grund: #0b1d17; --flaeche: #12291f;
    --text: #ecf2ee; --text-leise: #a5b4ad; --linie: #2b463c;
    --link: #ffc81e; --fokus: #ffc81e;
    --rahmen: #6f857b; --falsch: #ff8569;
    color-scheme: dark;
  }
}

/* Kopfzeile: queres Logo links, primärer Button mit Spitze rechts */
body.htb-legal .htb-kopf {
  box-sizing: border-box; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 24px 16px;
  border-bottom: 1px solid var(--linie);
}
body.htb-legal .htb-kopf__logo img { display: block; height: 40px; width: auto; max-width: 100%; }
@media (max-width: 520px) { body.htb-legal .htb-kopf__logo img { height: 30px; } }
@media (min-width: 768px) { body.htb-legal .htb-kopf { padding: 24px 32px; } }

body.htb-legal .htb-btn {
  --spitze: 26px;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; white-space: nowrap;
  font: 650 17px/1.2 Archivo, "Helvetica Neue", Arial, sans-serif; text-decoration: none;
  color: var(--tinte);
  padding: 14px calc(var(--spitze) + 22px) 14px 22px;
}
body.htb-legal .htb-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gelb);
  clip-path: polygon(0 0, calc(100% - var(--spitze)) 0, 100% 50%, calc(100% - var(--spitze)) 100%, 0 100%);
  transition: background-color .15s ease-out;
}
body.htb-legal .htb-btn:hover::before { background: var(--gelb-tief); }
body.htb-legal .htb-btn:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
@media (max-width: 520px) { body.htb-legal .htb-btn { --spitze: 19px; font-size: 15px; padding: 10px calc(var(--spitze) + 14px) 10px 14px; } }

/* Inhalt: Wegweiser-Tag, Titel in Archivo Schmal, Fließtext höchstens 680 px */
body.htb-legal .htb-seite { flex: 1 0 auto; box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 16px 64px; }
@media (min-width: 768px) { body.htb-legal .htb-seite { padding: 64px 32px 96px; } }

body.htb-legal .htb-tag {
  --spitze: 1.05em;
  display: inline-flex; align-items: center; white-space: nowrap;
  font: 800 13px/1 Archivo, "Helvetica Neue", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tinte); background: var(--gelb);
  padding: .55em calc(var(--spitze) + .55em) .55em .8em;
  clip-path: polygon(0 0, calc(100% - var(--spitze)) 0, 100% 50%, calc(100% - var(--spitze)) 100%, 0 100%);
}
body.htb-legal .htb-seite__titel {
  margin: 16px 0 40px; color: var(--text);
  font: 900 clamp(40px, 7vw, 60px)/.95 "Archivo Schmal", "Archivo Narrow", "Arial Narrow", sans-serif;
}
body.htb-legal .htb-text { max-width: 680px; }
body.htb-legal .htb-text p,
body.htb-legal .htb-text li { font-size: 17px; line-height: 1.6; color: var(--text); }
body.htb-legal .htb-text p { margin: 0 0 16px; }
body.htb-legal .htb-text h2 {
  margin: 48px 0 12px; color: var(--text);
  font: 800 28px/1.05 "Archivo Schmal", "Archivo Narrow", "Arial Narrow", sans-serif;
}
body.htb-legal .htb-text ul { margin: 0 0 16px; padding-left: 1.25em; }
body.htb-legal .htb-text a {
  color: var(--link); font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gelb);
}
body.htb-legal .htb-text a:hover { background: var(--gelb-hell); }
body.htb-legal .htb-text a:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Fußzeile: große dunkle Fläche in Tanne */
body.htb-legal .htb-fuss { margin-top: auto; background: var(--tanne); color: var(--weiss); }
body.htb-legal .htb-fuss__innen {
  max-width: 1200px; margin: 0 auto; padding: 32px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
@media (min-width: 768px) { body.htb-legal .htb-fuss__innen { padding: 32px; } }
body.htb-legal .htb-fuss p { margin: 0; color: var(--weiss); font-size: 15px; }
body.htb-legal .htb-fuss nav { display: flex; gap: 24px; }
body.htb-legal .htb-fuss a {
  color: var(--gelb); font-weight: 650; font-size: 15px;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
body.htb-legal .htb-fuss a:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

/* Formular „Zugang anfragen“ (Plugin HTB Zugang): Eingabefelder, Hinweise, Button */
body.htb-legal .htb-zugang { max-width: 560px; margin-top: 32px; }
body.htb-legal .htb-zugang h2 {
  margin: 0 0 12px; color: var(--text);
  font: 800 28px/1.05 "Archivo Schmal", "Archivo Narrow", "Arial Narrow", sans-serif;
}
body.htb-legal .htb-feld { display: grid; gap: 6px; margin: 0 0 24px; }
body.htb-legal .htb-feld__label { font-size: 14px; font-weight: 650; color: var(--text); }
body.htb-legal .htb-feld__input {
  box-sizing: border-box; width: 100%;
  font: 400 17px/1.4 Archivo, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--grund);
  padding: 12px 14px; border: 2px solid var(--rahmen); border-radius: 4px;
}
body.htb-legal .htb-feld__input:hover { border-color: var(--text); }
body.htb-legal .htb-feld__input:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-color: var(--text); }
body.htb-legal .htb-feld__haken { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--text); }
body.htb-legal .htb-feld__haken input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--link); }
body.htb-legal .htb-hinweis {
  margin: 0 0 24px; padding: 12px 16px; background: var(--flaeche); color: var(--text);
  border-left: 4px solid var(--falsch); font-weight: 650;
}
body.htb-legal button.htb-btn { border: 0; background: none; cursor: pointer; }

/* Begrüßungsseite für Gäste: Hero in Tanne, Foto auf gelber Platte, drei Schritte mit Leitlinie */
body.htb-landing .htb-hero { background: var(--tanne); color: var(--weiss); }
body.htb-landing .htb-hero .htb-kopf { border-bottom: 0; }

body.htb-legal .htb-btn--rahmen {
  padding: 12px 22px; border: 2px solid var(--weiss); color: var(--weiss); background: transparent;
}
body.htb-legal .htb-btn--rahmen::before { display: none; }
body.htb-legal .htb-btn--rahmen:hover { background: rgba(255, 255, 255, .12); }
body.htb-legal .htb-btn--rahmen:focus-visible { outline-color: var(--gelb); }
@media (max-width: 520px) { body.htb-legal .htb-btn--rahmen { padding: 8px 14px; } }

body.htb-landing .htb-hero__innen {
  max-width: 1200px; margin: 0 auto; padding: 16px 16px 56px;
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 900px) {
  body.htb-landing .htb-hero__innen { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 32px 32px 96px; gap: 56px; }
}
body.htb-landing .htb-hero__titel {
  margin: 24px 0; color: var(--weiss); text-transform: uppercase; letter-spacing: -.005em;
  font: 900 clamp(44px, 7.2vw, 80px)/.9 "Archivo Schmal", "Archivo Narrow", "Arial Narrow", sans-serif;
}
body.htb-landing .htb-hero .htb-marker {
  background: var(--gelb); color: var(--tinte); padding: 0 .12em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
body.htb-landing .htb-hero__lead {
  max-width: 560px; margin: 0 0 32px; color: var(--weiss);
  font: 500 21px/1.45 Archivo, "Helvetica Neue", Arial, sans-serif;
}
body.htb-landing .htb-hero__bild img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(0, 0, 0, .6);
}

body.htb-landing .htb-landing__h2 {
  margin: 0 0 32px; color: var(--text);
  font: 800 40px/1 "Archivo Schmal", "Archivo Narrow", "Arial Narrow", sans-serif;
}
body.htb-landing .htb-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; position: relative; }
body.htb-landing .htb-schritte h3 {
  margin: 16px 0 8px; color: var(--text);
  font: 800 28px/1.05 "Archivo Schmal", "Archivo Narrow", "Arial Narrow", sans-serif;
}
body.htb-landing .htb-schritte p { margin: 0; max-width: 34ch; color: var(--text); }
@media (min-width: 768px) {
  body.htb-landing .htb-schritte { grid-template-columns: repeat(3, 1fr); padding-top: 32px; }
  /* Leitlinie: Strich zu Lücke 1 : 2 wie die Mittellinie der Straße */
  body.htb-landing .htb-schritte::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: repeating-linear-gradient(90deg, var(--link) 0 12px, transparent 12px 36px);
  }
}
body.htb-landing .htb-landing__login { margin: 40px 0 0; }
body.htb-landing .htb-landing__login a {
  color: var(--link); font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gelb);
}

/* Fehlerseite 404: dieselbe Hero-Fläche wie die Begrüßungsseite, füllt die Höhe bis zur Fußzeile */
body.htb-404 .htb-hero { flex: 1 0 auto; display: flex; flex-direction: column; }
body.htb-404 .htb-hero__innen { flex: 1 0 auto; box-sizing: border-box; width: 100%; align-content: center; }
body.htb-legal .htb-hero__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
body.htb-legal .htb-hero__link {
  color: var(--weiss); font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gelb);
}
body.htb-legal .htb-hero__link:hover { color: var(--gelb); }
body.htb-legal .htb-hero__link:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

/* Newsletter: Anmeldekarte rechts im Hero (mobil darunter), Themen mit Leitlinie wie die drei Schritte */
body.htb-newsletter .htb-karte {
  box-sizing: border-box; width: 100%; max-width: 520px; justify-self: end;
  background: var(--grund); color: var(--text);
  padding: 32px 24px; border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(0, 0, 0, .6);
}
@media (max-width: 899px) { body.htb-newsletter .htb-karte { justify-self: stretch; max-width: none; } }
@media (min-width: 520px) { body.htb-newsletter .htb-karte { padding: 40px 36px; } }
body.htb-newsletter .htb-karte__titel {
  margin: 0 0 8px; color: var(--text);
  font: 800 34px/1 "Archivo Schmal", "Archivo Narrow", "Arial Narrow", sans-serif;
}
body.htb-newsletter .htb-karte__intro { margin: 0 0 28px; color: var(--text-leise); font-size: 17px; line-height: 1.5; }
body.htb-newsletter .htb-karte .htb-feld { margin-bottom: 20px; }
body.htb-newsletter .htb-karte .htb-feld--haken { margin: 4px 0 28px; }
body.htb-newsletter .htb-karte__klein { margin: 24px 0 0; color: var(--text-leise); font-size: 14px; line-height: 1.5; }
body.htb-newsletter .htb-karte__klein a {
  color: var(--link); font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gelb);
}
body.htb-newsletter .htb-karte__klein a:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Newsletter: Text und Strichzeichnung links, Anmeldekarte rechts; mobil Text, Karte, Bild */
body.htb-newsletter .htb-hero__innen { grid-template-areas: "text" "karte" "bild"; }
body.htb-newsletter .htb-hero__text { grid-area: text; }
body.htb-newsletter .htb-karte { grid-area: karte; }
body.htb-newsletter .htb-nl-bild { grid-area: bild; margin: 0; }
@media (min-width: 900px) {
  body.htb-newsletter .htb-hero__innen { grid-template-areas: "text karte" "bild karte"; align-items: start; row-gap: 40px; }
  body.htb-newsletter .htb-hero__text .htb-hero__lead { margin-bottom: 0; }
}
body.htb-newsletter .htb-nl-bild img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 56px -16px rgba(0, 0, 0, .6);
}
body.htb-newsletter .htb-karte .htb-hinweis { margin-bottom: 24px; }

/* Spamschutz „Ich bin kein Roboter“: Kasten wie die Eingabefelder */
body.htb-newsletter .htb-pruefung {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin: 0 0 28px; padding: 12px 14px;
  border: 2px solid var(--rahmen); border-radius: 4px; background: var(--grund);
}
body.htb-newsletter .htb-pruefung__box { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 650; color: var(--text); cursor: pointer; }
body.htb-newsletter .htb-pruefung__haken { width: 22px; height: 22px; margin: 0; accent-color: var(--link); cursor: pointer; }
body.htb-newsletter .htb-pruefung__haken:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
body.htb-newsletter .htb-pruefung__status { font-size: 14px; font-weight: 650; color: var(--text-leise); }
body.htb-newsletter .htb-pruefung__info { flex-basis: 100%; font-size: 12px; color: var(--text-leise); }
body.htb-newsletter .htb-pruefung__noscript { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--falsch); }
body.htb-newsletter .htb-pruefung.is-laeuft .htb-pruefung__haken { visibility: hidden; }
body.htb-newsletter .htb-pruefung.is-laeuft .htb-pruefung__box { position: relative; }
body.htb-newsletter .htb-pruefung.is-laeuft .htb-pruefung__box::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -11px;
  border: 2px solid var(--linie); border-top-color: var(--link); border-radius: 50%;
  animation: htb-dreh .8s linear infinite;
}
body.htb-newsletter .htb-pruefung.is-fertig { border-color: var(--link); }
body.htb-newsletter .htb-pruefung.is-fertig .htb-pruefung__status { color: var(--link); }
body.htb-newsletter .htb-pruefung.is-fertig .htb-pruefung__status::before { content: "\2713\00a0"; }
@keyframes htb-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  body.htb-newsletter .htb-pruefung.is-laeuft .htb-pruefung__box::before { animation-duration: 2.4s; }
}
