/* FOND OF Help Center – Styling & Marken-Paletten via [data-brand].
   Marken-Werte je Block unten anpassen. Doku: README.md */

:root {
  --hc-maxw: 720px;
  --hc-radius: 14px;
  --hc-radius-sm: 10px;
  --hc-border: #e7e7e4;
  --hc-muted: #6f6f6a;
  --hc-text: #1c1c1a;
  --hc-bg: #ffffff;
  --hc-surface: #ffffff;
  --hc-tint: #f6f6f3;
  --hc-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --hc-font-display: 'Inter', system-ui, sans-serif;
  --hc-primary: #3f9c42;
  --hc-primary-dark: #2f7a32;
  --hc-on-primary: #ffffff;
}

/* ergobag - Grundschule, Natur, warm */
[data-brand="ergobag"] {
  --hc-primary: #009ABD;
  --hc-primary-dark: #007e9a;
  --hc-on-primary: #ffffff;
  --hc-tint: #EBF9FC;
  --hc-radius: 0px;
  --hc-radius-sm: 0px;
}

/* satch - Teenager, sportlich, frech */
[data-brand="satch"] {
  --hc-primary: #007BC2;
  --hc-primary-dark: #00649f;
  --hc-on-primary: #ffffff;
  --hc-tint: #edf5fa;
  --hc-radius: 0px;
  --hc-radius-sm: 0px;
}

/* alvi - Babys, sanft, geborgen */
[data-brand="alvi"] {
  --hc-primary: #002C57;
  --hc-primary-dark: #002447;
  --hc-on-primary: #ffffff;
  --hc-tint: #edf0f3;
  --hc-radius: 0px;
  --hc-radius-sm: 0px;
}

/* AEVOR - urban, technisch, reduziert */
[data-brand="aevor"] {
  --hc-primary: #1f1f24;
  --hc-primary-dark: #000000;
  --hc-on-primary: #ffffff;
  --hc-tint: #f3f3f4;
  --hc-text: #15151a;
  --hc-radius: 0px;
  --hc-radius-sm: 0px;
}

/* Affenzahn - Kindergarten, verspielt, tierisch-bunt */
[data-brand="affenzahn"] {
  --hc-primary: #22656C;
  --hc-primary-dark: #1b5258;
  --hc-on-primary: #ffffff;
  --hc-tint: #EAF4F2;
  --hc-radius: 25px;
  --hc-radius-sm: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--hc-font-body);
  color: var(--hc-text);
  background: var(--hc-bg);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
a { color: var(--hc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.hc-container {
  width: 100%;
  max-width: var(--hc-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.hc-header {
  border-bottom: 1px solid var(--hc-border);
  padding: 20px 0;
  background: var(--hc-surface);
}
.hc-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hc-header__brand { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; }
.hc-header__logo {
  height: 50px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}
.hc-header__wordmark {
  font-family: var(--hc-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--hc-text);
  text-transform: lowercase;
}
[data-brand="aevor"] .hc-header__wordmark { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* Home */
.hc-home {
  padding: 80px 0 64px;
  background: radial-gradient(120% 80% at 50% 0%, var(--hc-tint) 0%, transparent 70%);
}
.hc-home__inner { text-align: center; }
.hc-home__eyebrow {
  display: inline-block;
  font-family: var(--hc-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hc-primary);
  margin-bottom: 16px;
}
.hc-home__title {
  font-family: var(--hc-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.hc-home__lead {
  color: var(--hc-muted);
  font-size: 1.12rem;
  margin: 0 auto 44px;
  max-width: 46ch;
}

/* Formular-Karten */
.hc-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  text-align: left;
  margin-top: 8px;
}
.hc-form-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.hc-form-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--hc-primary);
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--hc-primary) 40%, transparent);
}
.hc-form-card__title {
  font-family: var(--hc-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--hc-text);
  letter-spacing: -0.01em;
}
.hc-form-card__desc { color: var(--hc-muted); font-size: 0.95rem; }
.hc-form-card__arrow {
  margin-top: 6px;
  font-weight: 700;
  color: var(--hc-primary);
  font-family: var(--hc-font-display);
}

.hc-home__search { margin-top: 44px; }
.hc-home__search input[type="search"],
.hc-home__search input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 14px 18px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  background: var(--hc-surface);
}

/* Buttons */
.hc-btn {
  display: inline-block;
  font-family: var(--hc-font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--hc-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .14s ease, opacity .14s ease;
  text-decoration: none;
  line-height: 1.2;
}
.hc-btn:hover { text-decoration: none; transform: translateY(-1px); }
.hc-btn:active { transform: translateY(0); }
.hc-btn--primary {
  background: var(--hc-primary);
  color: var(--hc-on-primary);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--hc-primary) 70%, transparent);
}
.hc-btn--primary:hover { background: var(--hc-primary-dark); color: var(--hc-on-primary); }
.hc-btn--ghost {
  background: transparent;
  color: var(--hc-text);
  border-color: var(--hc-border);
}
.hc-btn--ghost:hover { border-color: var(--hc-primary); color: var(--hc-primary); }

/* Formularseite */
.hc-form-page { padding: 56px 0 72px; }
.hc-form-page__inner { max-width: 600px; }
.hc-form-page__title {
  font-family: var(--hc-font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.hc-form-page__intro {
  color: var(--hc-muted);
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hc-border);
}

/* Feld als Flex-Spalte: Label -> Sublabel -> Input -> Fehler
   per order. Selektoren absichtlich ohne ">" und mit mehreren
   Klassenvarianten, da Zendesk die Fehlermeldung mal als direktes
   Kind, mal verschachtelt und teils VOR dem Label rendert. */
.hc-form-page .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 26px;
}
.hc-form-page .form-field label { order: 1; }
.hc-form-page .form-field .description,
.hc-form-page .form-field > p { order: 2; }
.hc-form-page .form-field input,
.hc-form-page .form-field textarea,
.hc-form-page .form-field select,
.hc-form-page .form-field .nesty-input,
.hc-form-page .form-field .dropdown,
.hc-form-page .form-field .upload-dropzone,
.hc-form-page .form-field .form-field-input { order: 3; }
.hc-form-page .form-field .message,
.hc-form-page .form-field .form-field-error,
.hc-form-page .form-field .notification-error,
.hc-form-page .form-field [class*="error"],
.hc-form-page .form-field [aria-live] { order: 4; }

.hc-form-page label {
  font-family: var(--hc-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--hc-text);
  margin: 0 0 2px;
  line-height: 1.3;
}

/* Sublabel/Beschreibung direkt unter dem Label, vor dem Input */
.hc-form-page .form-field .description,
.hc-form-page .form-field > p {
  color: var(--hc-muted);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.hc-form-page input[type="text"],
.hc-form-page input[type="email"],
.hc-form-page input[type="number"],
.hc-form-page input[type="tel"],
.hc-form-page select,
.hc-form-page .nesty-input,
.hc-form-page textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  background: var(--hc-surface);
  color: var(--hc-text);
  transition: border-color .14s ease, box-shadow .14s ease;
}
/* nesty-Dropdown: als Block wie ein Input, mit Pfeil rechts */
.hc-form-page .nesty-input {
  display: block;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* feste Hoehe + vertikale Zentrierung statt padding oben/unten */
  height: 50px;
  line-height: 24px;
  padding: 12px 38px 12px 15px;
}
.hc-form-page .nesty-input::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--hc-muted);
  border-bottom: 2px solid var(--hc-muted);
  transform: translateY(-65%) rotate(45deg);
}
.hc-form-page .nesty-input:focus {
  outline: none;
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-primary) 16%, transparent);
}
.hc-form-page textarea { min-height: 150px; resize: vertical; }
.hc-form-page input::placeholder,
.hc-form-page textarea::placeholder { color: #b3b3ad; }
.hc-form-page input:focus,
.hc-form-page select:focus,
.hc-form-page textarea:focus {
  outline: none;
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-primary) 16%, transparent);
}

/* Pflichtfeld-Sternchen dezent in Markenfarbe */
.hc-form-page label .required,
.hc-form-page abbr[title="required"] {
  color: var(--hc-primary);
  text-decoration: none;
  border: none;
  margin-left: 2px;
}

.hc-form-page [type="submit"],
.hc-form-page button[type="submit"],
.hc-form-page .button-primary {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--hc-primary);
  color: var(--hc-on-primary);
  font-family: var(--hc-font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 34px;
  border: none;
  border-radius: var(--hc-radius-sm);
  cursor: pointer;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--hc-primary) 70%, transparent);
  transition: background .14s ease, transform .08s ease;
}
.hc-form-page [type="submit"]:hover,
.hc-form-page button[type="submit"]:hover { background: var(--hc-primary-dark); transform: translateY(-1px); }

/* --- Fehler-/Validierungs-Styling (Flexbox-Icon, keine Ueberlappung) --- */
.hc-form-page .notification-error,
.hc-form-page .alert-error,
.hc-form-page .form-field .message,
.hc-form-page .form-field-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 14px;
  background: #fdecec;
  color: #9b1c1c;
  border: 1px solid #f1c4c4;
  border-radius: var(--hc-radius-sm);
  font-size: 0.875rem;
  line-height: 1.45;
}
.hc-form-page .notification-error::before,
.hc-form-page .alert-error::before,
.hc-form-page .form-field .message::before,
.hc-form-page .form-field-error::before {
  content: "!";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #d83b3b;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  line-height: 18px;
}

/* nur die erste Meldung mit Icon, falls Zendesk mehrere rendert */
.hc-form-page .form-field .message:not(:first-of-type)::before { display: none; }

.hc-form-page .form-field.error input,
.hc-form-page .form-field.error textarea,
.hc-form-page .form-field.error select,
.hc-form-page input[aria-invalid="true"],
.hc-form-page textarea[aria-invalid="true"] {
  border-color: #d83b3b;
  box-shadow: 0 0 0 3px rgba(216, 59, 59, 0.10);
}
.hc-form-page .notification {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: var(--hc-radius-sm);
  font-size: 0.92rem;
}
.hc-form-page .notification-success {
  background: color-mix(in srgb, var(--hc-primary) 12%, #fff);
  color: var(--hc-primary-dark);
  border: 1px solid color-mix(in srgb, var(--hc-primary) 30%, #fff);
}


.hc-field-hidden { display: none !important; }

/* Generischer Content */
.hc-content { padding: 48px 0; }
.hc-content__title {
  font-family: var(--hc-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hc-breadcrumbs { font-size: 0.85rem; color: var(--hc-muted); margin-bottom: 16px; }
.hc-breadcrumbs a { color: var(--hc-muted); }
.hc-article__body { margin-bottom: 32px; }

/* Footer */
.hc-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--hc-border);
  padding: 28px 0;
  margin-top: 56px;
  background: var(--hc-tint);
}
.hc-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hc-footer__copy { color: var(--hc-muted); font-size: 0.85rem; }
.hc-footer__nav { display: flex; gap: 24px; }
.hc-footer__link { color: var(--hc-muted); font-size: 0.875rem; }
.hc-footer__link:hover { color: var(--hc-primary); }

@media (max-width: 600px) {
  .hc-home { padding: 56px 0 48px; }
  .hc-form-page { padding: 36px 0 48px; }
  .hc-forms { grid-template-columns: 1fr; }
  .hc-btn { width: 100%; text-align: center; }
}

:focus-visible { outline: 2px solid var(--hc-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* Anfrage-Bestaetigungsseite (request_page) */
.hc-request { padding: 56px 0 80px; }
.hc-request__card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 52px 40px;
}
.hc-request__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--hc-primary);
}
.hc-request__icon svg { width: 100%; height: 100%; }
.hc-request__title {
  font-family: var(--hc-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.hc-request__lead {
  color: var(--hc-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}
.hc-request__ref {
  color: var(--hc-text);
  font-size: 0.95rem;
  margin: 0 0 32px;
}
.hc-request__ref strong { font-weight: 700; }
.hc-request__submit {
  display: inline-block;
  background: var(--hc-primary);
  color: var(--hc-on-primary);
  font-family: var(--hc-font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 34px;
  border: none;
  border-radius: var(--hc-radius-sm);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--hc-primary) 70%, transparent);
  transition: background .14s ease, transform .08s ease;
}
.hc-request__submit:hover { background: var(--hc-primary-dark); transform: translateY(-1px); }

/* Wizard: Kaufdatum-Gewaehrleistungs-Stopp */
.hc-date-block {
  margin: 4px 0 20px;
  padding: 16px 18px;
  border: 1px solid #e4b4b4;
  background: #fcf4f4;
  border-radius: var(--hc-radius-sm);
}
.hc-date-block__title {
  display: block;
  font-family: var(--hc-font-display);
  font-weight: 700;
  color: #a83232;
  margin-bottom: 6px;
}
.hc-date-block__msg {
  margin: 0;
  line-height: 1.55;
  color: #6b2f2f;
}
.hc-request__submit.hc-disabled,
[type="submit"].hc-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Wizard: Multi-Step-Layout */
.hc-steps-progress {
  display: flex;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  counter-reset: step;
  gap: 8px;
}
.hc-steps-progress__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
  color: var(--hc-muted);
  font-size: 0.85rem;
}
/* Verbindungslinie zwischen den Schritten */
.hc-steps-progress__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--hc-border);
}
.hc-steps-progress__item.is-done:not(:last-child)::after {
  background: var(--hc-primary);
}
.hc-steps-progress__num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--hc-tint);
  color: var(--hc-muted);
  border: 2px solid var(--hc-border);
  position: relative;
  z-index: 1;
  transition: all .15s ease;
}
.hc-steps-progress__item.is-active .hc-steps-progress__num {
  background: var(--hc-primary);
  color: var(--hc-on-primary);
  border-color: var(--hc-primary);
}
.hc-steps-progress__item.is-done .hc-steps-progress__num {
  background: var(--hc-primary);
  color: var(--hc-on-primary);
  border-color: var(--hc-primary);
}
.hc-steps-progress__item.is-active .hc-steps-progress__label {
  color: var(--hc-text);
  font-weight: 600;
}
.hc-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.hc-steps-nav__back {
  background: transparent;
  color: var(--hc-muted);
  border: 1px solid var(--hc-border);
  font-family: var(--hc-font-display);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--hc-radius-sm);
  cursor: pointer;
  transition: border-color .14s ease, color .14s ease;
}
.hc-steps-nav__back:hover {
  border-color: var(--hc-muted);
  color: var(--hc-text);
}
.hc-steps-nav__next,
.hc-steps-nav__submit {
  margin-left: auto;
  margin-top: 0;
  border: none;
  cursor: pointer;
  align-self: auto;
}
/* Mobile: Labels kleiner / ausblenden bei wenig Platz */
@media (max-width: 540px) {
  .hc-steps-progress__label { display: none; }
  .hc-steps-progress__item:not(:last-child)::after {
    top: 16px; left: calc(50% + 18px); right: calc(-50% + 18px);
  }
}

/* Multi-Step: Felder eines Schritts als Karte fassen (Aufraeumen) */
.hc-form-page .hc-step {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  background: var(--hc-surface);
  padding: 28px 28px 30px;
  margin-top: 4px;
}
@media (max-width: 540px) {
  .hc-form-page .hc-step { padding: 20px 18px 22px; }
}
