/*
 * HUMAN IN BUSINESS · Designsystem 2026 (ab hib-forms 1.14.0)
 *
 * Quelle: Website Relaunch/Designsystem (Claude-Design-Canvas „Human in
 * Business – Designsystem“, Stand 06.10.2026: Farben-Typo, Komponenten,
 * LP-Desktop/LP-Mobil). Alles unter .hibd gekapselt, damit nichts mit Avada
 * kollidiert. Geladen nur auf Seiten mit data-hibd-seite im Inhalt.
 *
 * Regel aus dem System: Gold = der eine Haupt-Schritt pro Ansicht.
 * Grün = Gespräch. Kontur = weiterlesen.
 */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/jost-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-serif-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2'); }

.hibd {
  --waldgruen: #004225; --tiefgruen: #00301B; --salbei: #0F5A4B; --nebel: #DCE7E0;
  --gold: #D6A629; --gold-hell: #EAC344; --gold-text: #8A6812;
  --leinen: #FBFAF7; --sand: #EFE9DC; --weiss: #FFFFFF;
  --graphit: #1C1C1C; --text-2: #4A4A4A; --leise: #5E5E5E;
  --linie: #E2DED4; --rand: #C9C3B5;
  --sans: 'Jost', 'Segoe UI', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --pad-x: clamp(20px, 5vw, 64px);

  font-family: var(--sans); color: var(--graphit); background: var(--leinen);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.hibd *, .hibd *::before, .hibd *::after { box-sizing: border-box; }
.hibd img { max-width: 100%; height: auto; display: block; }
.hibd p { margin: 0; }
.hibd a { color: var(--waldgruen); }
.hibd h1, .hibd h2, .hibd h3 { margin: 0; font-family: var(--sans); font-weight: 500; color: inherit; }

.hibd__wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-x); }
.hibd__sektion { padding: 104px 0; }
.hibd__sektion--sand { background: var(--sand); }
.hibd__sektion--weiss { background: var(--weiss); border-top: 1px solid var(--linie); }
.hibd__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.hibd__raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px 64px; align-items: center; }

/* Schrift */
.hibd__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.hibd__h1 { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.03; letter-spacing: -.035em; }
.hibd__h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.03em; color: var(--waldgruen); }
.hibd__h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -.01em; color: var(--waldgruen); }
.hibd__akzent { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hibd__lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); }
.hibd__quelle { font-family: var(--mono); font-size: 12px; color: var(--leise); }

/* Kopf (reduziert, wie die Ads-LP) */
.hibd__kopf { position: sticky; top: 0; z-index: 20; background: rgba(0,48,27,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.hibd__kopf .hibd__wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hibd__kopf img { height: 22px; width: auto; }
.hibd__kopf .hibd__btn { white-space: nowrap; min-height: 46px; padding: 0 22px; font-size: 15px; }

/* Hero */
.hibd__hero { background: var(--tiefgruen); color: #fff; padding: 96px 0 104px; overflow: hidden; }
.hibd__hero .hibd__eyebrow { color: var(--gold-hell); }
.hibd__hero .hibd__akzent { color: var(--gold-hell); }
.hibd__hero .hibd__lead { color: rgba(255,255,255,.85); max-width: 560px; }
.hibd__hero-text { display: flex; flex-direction: column; gap: 26px; }
.hibd__vertrauen { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: rgba(255,255,255,.8); }
.hibd__vertrauen span { display: inline-flex; align-items: center; gap: 10px; }
.hibd__vertrauen span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hibd__bogen { border-radius: 300px 300px 28px 28px; overflow: hidden; background: var(--salbei); aspect-ratio: 4 / 5; }
.hibd__bogen img { width: 100%; height: 100%; object-fit: cover; }

/* Knöpfe */
.hibd__btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px;
  border-radius: 999px; border: 0; font-family: var(--sans); font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; }
.hibd__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,48,27,.18); }
.hibd__btn--gold { background: var(--gold); color: var(--tiefgruen); }
.hibd__btn--gold:hover { color: var(--tiefgruen); }
.hibd__btn--gruen { background: var(--waldgruen); color: #fff; }
.hibd__btn--kontur { background: transparent; color: var(--waldgruen); border: 1px solid var(--waldgruen); }
.hibd__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hibd__textlink { color: var(--waldgruen); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); }

/* Karten */
.hibd__karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.hibd__karte--gruen { background: var(--waldgruen); border-color: var(--waldgruen); color: #fff; }
.hibd__karte--gruen .hibd__h3 { color: #fff; }
.hibd__nr { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; background: var(--nebel); color: var(--waldgruen); }
.hibd__karte--gruen .hibd__nr { background: rgba(255,255,255,.12); color: var(--gold-hell); }
.hibd__karte p { color: var(--text-2); }
.hibd__karte--gruen p { color: rgba(255,255,255,.85); }

/* Kartenraster (die zwölf Motive) */
.hibd__motive { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 18px; margin-top: 48px; }
.hibd__motive img { border-radius: 10px; box-shadow: 0 10px 24px rgba(0,48,27,.14); aspect-ratio: 111 / 154; object-fit: cover; width: 100%; }

/* Anfrageblock: grüne, eingerückte Karte. Oben Luft, damit sie nicht an der
   Sand-Sektion davor klebt (1.14.3). */
.hibd__anfrage { padding: 40px clamp(12px, 2vw, 24px) 24px; }
.hibd__anfrage-karte { max-width: 1392px; margin: 0 auto; background: var(--waldgruen); color: #fff; border-radius: 32px; overflow: hidden; }
.hibd__anfrage-karte > .hibd__wrap { padding-top: 88px; padding-bottom: 88px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 64px; align-items: start; }
.hibd__anfrage-karte .hibd__eyebrow, .hibd__anfrage-karte .hibd__akzent { color: var(--gold-hell); }
.hibd__anfrage-karte .hibd__h2 { color: #fff; }
.hibd__anfrage-karte .hibd__lead { color: rgba(255,255,255,.85); }
.hibd__absender { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.hibd__absender img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--salbei); }
.hibd__absender strong { display: block; font-weight: 500; }
.hibd__absender span { font-size: 15px; color: rgba(255,255,255,.75); }

/* Formular (templates/form-kartenset.php) */
.hibd__form { background: var(--leinen); color: var(--graphit); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.hibd__form form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.hibd__form form[hidden] { display: none; }
.hibd__form-titel { font-size: 21px; font-weight: 500; color: var(--waldgruen); }
.hibd__felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.hibd .hibd__feld { display: flex; flex-direction: column; gap: 6px; }
.hibd .hibd__feld label { font-size: 14px; font-weight: 500; color: var(--graphit); }
.hibd .hibd__feld label small { font-weight: 400; color: var(--leise); font-size: 13px; }
/* Doppelt so spezifisch wie die alten .hibm__feld-Regeln aus hib-forms.css:
   die Klasse .hibm__feld bleibt am Feld, weil hib-forms.js Fehler darüber
   markiert. */
.hibd .hibd__feld.hibm__feld input[type=text],
.hibd .hibd__feld.hibm__feld input[type=tel],
.hibd .hibd__feld.hibm__feld input[type=email] { height: 50px; border-radius: 12px; border: 1px solid var(--rand); background: var(--weiss);
  padding: 0 16px; font-family: var(--sans); font-size: 16px; color: var(--graphit); width: 100%; box-shadow: none; }
.hibd .hibd__feld.hibm__feld input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--waldgruen); background: var(--weiss); }
.hibd .hibd__feld.hibm__feld--fehler input { border-color: #8A1C1C; background: #FBEDEC; }
.hibd .hibd__check.hibm__checkzeile { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px;
  line-height: 1.5; color: var(--text-2); cursor: pointer; }
.hibd .hibd__check.hibm__checkzeile input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--waldgruen); }
.hibd .hibd__check.hibm__checkzeile--fehler { color: #8A1C1C; }

/* Versandwahl und Adresse (1.15.0) */
.hibd .hibd__feld-titel { font-size: 14px; font-weight: 500; color: var(--graphit); }
.hibd__wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.hibd .hibd__wahl label { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.hibd .hibd__wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hibd .hibd__wahl span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--rand); background: var(--weiss); font-size: 15px; color: var(--graphit); transition: background .15s ease, border-color .15s ease; }
.hibd .hibd__wahl label:hover span { border-color: var(--waldgruen); }
.hibd .hibd__wahl input:checked + span { background: var(--waldgruen); border-color: var(--waldgruen); color: #fff; }
.hibd .hibd__wahl input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hibd .hibd__feld.hibm__feld--fehler .hibd__wahl span { border-color: #8A1C1C; }
.hibd .hibd__wahl--knapp span { padding: 0 14px; font-size: 14px; min-height: 40px; }
.hibd__adresse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.hibd__adresse[hidden] { display: none; }
.hibd__adresse-voll { grid-column: 1 / -1; }
.hibd .hibd__feld.hibm__feld select { height: 50px; border-radius: 12px; border: 1px solid var(--rand); background: var(--weiss);
  padding: 0 14px; font-family: var(--sans); font-size: 16px; color: var(--graphit); width: 100%; box-shadow: none; }
.hibd .hibd__feld.hibm__feld select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--waldgruen); }
.hibd .hibd__feld.hibm__feld--fehler select { border-color: #8A1C1C; background: #FBEDEC; }
.hibd__erfolg [hidden] { display: none; }
.hibd [data-hibf-form].is-sendet { opacity: .6; pointer-events: none; }
.hibd__form .hibd__btn { width: 100%; }
.hibd .hibd__form .hibm__fehler { background: #FBEDEC; color: #8A1C1C; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.hibd__klein { font-size: 13px; line-height: 1.5; color: var(--leise); }
.hibd__erfolg { display: flex; flex-direction: column; gap: 14px; }
.hibd__erfolg[hidden] { display: none; }
.hibd__erfolg .hibd__h3 { color: var(--waldgruen); }

/* Fuß */
.hibd__fuss { padding: 36px 0 48px; }
.hibd__fuss .hibd__wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.hibd__fuss img { height: 20px; width: auto; }
.hibd__fuss nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.hibd__fuss nav a { color: var(--text-2); text-decoration: none; }

@media (max-width: 720px) {
  .hibd__sektion { padding: 72px 0; }
  .hibd__hero { padding: 56px 0 72px; }
  .hibd__anfrage { padding-top: 24px; }
  .hibd__anfrage-karte > .hibd__wrap { padding-top: 56px; padding-bottom: 56px; }
  .hibd__form { padding: 22px; }
  .hibd__kopf .hibd__btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .hibd__kopf img { height: 18px; }
  .hibd__form-titel { line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) { .hibd__btn { transition: none; } }

/* ---------------------------------------------------------------------------
 * Avada-Schutz (1.14.1). Avada setzt Überschriften über .fusion-post-content h1
 * usw. (Farbe, Gewicht 400, eigene Größen), Absätzen einen Abstand und dem
 * ganzen Body letter-spacing. Alles hier mit doppelter Klasse, damit das
 * Designsystem gewinnt, ohne !important.
 * ------------------------------------------------------------------------- */
.hibd.hibd { letter-spacing: 0; }
.hibd .hibd__h1, .hibd .hibd__h2, .hibd .hibd__h3 { font-family: var(--sans); font-weight: 500; text-transform: none; }
.hibd .hibd__h1 { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.03; letter-spacing: -.035em; color: #fff; }
.hibd .hibd__h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.03em; color: var(--waldgruen); }
.hibd .hibd__h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -.01em; color: var(--waldgruen); }
.hibd .hibd__anfrage-karte .hibd__h2, .hibd .hibd__karte--gruen .hibd__h3 { color: #fff; }
.hibd .hibd__akzent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hibd .hibd__hero .hibd__akzent, .hibd .hibd__anfrage-karte .hibd__akzent { color: var(--gold-hell); }
.hibd p { margin: 0; letter-spacing: 0; }
.hibd .hibd__lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; }
.hibd a.hibd__btn--gold, .hibd button.hibd__btn--gold { color: var(--tiefgruen); }
.hibd a.hibd__btn--gruen { color: #fff; }
.hibd a.hibd__btn--kontur { color: var(--waldgruen); }
.hibd .hibd__btn { letter-spacing: 0; line-height: 1.2; }
.hibd .hibd__feld input { line-height: normal; letter-spacing: 0; }

/* -------------------------------------------------------------------------
 * Terminwahl, zweite Stufe der Buchungsstrecke (ab 1.16.0)
 *
 * Sitzt im Erfolgs-Panel desselben Formulars, erbt also Schrift und Farben.
 * Die Zeiten sind Knöpfe mit mindestens 44 Pixeln Kantenlänge — unter
 * Daumenbreite trifft auf dem Handy niemand verlässlich.
 * ------------------------------------------------------------------------- */
.hibb__kalender { display: flex; flex-direction: column; gap: 14px; }
.hibb__kalender[hidden] { display: none; }

/* Tagesreiter: waagerecht scrollbar, damit drei Wochen nicht umbrechen. */
.hibb__tage { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.hibd .hibb__tag { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--rand); background: var(--weiss); font-family: var(--sans); font-size: 14px;
  color: var(--graphit); cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.hibd .hibb__tag:hover { border-color: var(--waldgruen); }
.hibd .hibb__tag[aria-selected="true"] { background: var(--waldgruen); border-color: var(--waldgruen); color: #fff; }
.hibd .hibb__tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hibb__zeiten { display: flex; flex-direction: column; gap: 10px; }
.hibb__raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hibd .hibb__zeit { min-height: 46px; border-radius: 12px; border: 1px solid var(--rand); background: var(--weiss);
  font-family: var(--mono); font-size: 15px; color: var(--graphit); cursor: pointer;
  transition: background .15s ease, border-color .15s ease; }
.hibd .hibb__zeit:hover { border-color: var(--waldgruen); }
.hibd .hibb__zeit.is-gewaehlt { background: var(--waldgruen); border-color: var(--waldgruen); color: #fff; }
.hibd .hibb__zeit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Zwischenschritt: gewählte Zeit noch einmal zeigen, dann buchen. */
.hibb__bestaetigen { display: flex; flex-direction: column; gap: 12px; margin-top: 4px;
  padding: 16px; border-radius: 16px; background: var(--sand); }
.hibb__bestaetigen p { font-size: 15px; }

/* Ersatzweg: HubSpot-Terminseite */
.hibb__rahmen { border-radius: 16px; overflow: hidden; background: var(--weiss); border: 1px solid var(--linie); }
