/* ONE FIT HORSE – Kaufberater 4.1 LIVE */
/* =========================================================
   ONE FIT HORSE – Kaufberater 4.0 UX/UI
   Mobile first · ohne externe Bibliotheken · Source Sans Pro
   ========================================================= */

.ofh-kb-shell,
.ofh-kb-shell * {
  box-sizing: border-box;
}

.ofh-kb-shell {
  --ofh-dark: #0F222D;
  --ofh-orange: #FA8104;
  --ofh-orange-soft: #FFF3E6;
  --ofh-text: #14232C;
  --ofh-muted: #63717A;
  --ofh-line: #DDE3E6;
  --ofh-soft: #F6F8F8;
  --ofh-white: #FFFFFF;
  --ofh-radius: 16px;
  color: var(--ofh-text);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  width: 100%;
}

.ofh-kaufberater-form {
  width: 100%;
}

/* -------------------------
   Kompakter Hero
   ------------------------- */
.ofh-kb-hero {
  display: grid;
  gap: 18px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--ofh-white);
  border: 1px solid var(--ofh-line);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(15, 34, 45, .06);
}

.ofh-kb-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ofh-orange-soft);
  color: #B75200;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ofh-kb-hero__title {
  margin: 0;
  color: var(--ofh-dark);
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.02em;
}

.ofh-kb-hero__text {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ofh-text);
  font-size: 17px;
  line-height: 1.45;
}

.ofh-kb-hero__text strong {
  color: var(--ofh-dark);
}

.ofh-kb-quickinfo {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.ofh-kb-quickinfo__item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ofh-muted);
  font-size: 14px;
  font-weight: 650;
}

.ofh-kb-quickinfo__number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--ofh-orange-soft);
  color: var(--ofh-orange);
  font-size: 13px;
  font-weight: 900;
}

/* Pferdename bewusst visuell zurückgenommen */
.ofh-kb-namecard {
  align-self: end;
  padding: 14px;
  background: var(--ofh-soft);
  border: 1px solid #E7EBED;
  border-radius: 14px;
}

.ofh-kb-namecard__label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--ofh-dark);
  font-size: 14px;
  font-weight: 800;
}

.ofh-kb-namecard__label span {
  color: var(--ofh-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
}

.ofh-kb-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #CBD3D7;
  border-radius: 10px;
  background: #fff;
  color: var(--ofh-text);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ofh-kb-input:focus {
  border-color: var(--ofh-orange);
  box-shadow: 0 0 0 3px rgba(250, 129, 4, .13);
}

.ofh-kb-namecard__hint {
  margin-top: 6px;
  color: var(--ofh-muted);
  font-size: 12px;
}

/* -------------------------
   Abschnittsintro + Live-Zähler
   ------------------------- */
.ofh-kb-section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.ofh-kb-section-intro h3 {
  margin: 0;
  color: var(--ofh-dark);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.ofh-kb-section-intro p {
  margin: 4px 0 0;
  color: var(--ofh-muted);
  font-size: 14px;
}

.ofh-kb-selected-summary {
  display: none;
  flex: 0 0 auto;
  color: var(--ofh-muted);
  font-size: 13px;
  white-space: nowrap;
}

.ofh-kb-selected-summary strong {
  color: var(--ofh-orange);
  font-size: 17px;
  font-weight: 900;
}

/* -------------------------
   Accordion-Karten
   ------------------------- */
.ofh-kb-accordions {
  display: grid;
  gap: 10px;
}

.ofh-kb-topic {
  overflow: clip;
  background: var(--ofh-white);
  border: 1px solid var(--ofh-line);
  border-radius: var(--ofh-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ofh-kb-topic.is-open {
  border-color: #C6D0D5;
  box-shadow: 0 6px 20px rgba(15, 34, 45, .05);
}

.ofh-kb-topic.has-selection {
  border-color: rgba(250, 129, 4, .55);
}

.ofh-kb-topic__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px 13px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ofh-kb-topic__toggle:focus-visible {
  outline: 3px solid rgba(250, 129, 4, .25);
  outline-offset: -3px;
}

.ofh-kb-topic__number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-right: 11px;
  border-radius: 11px;
  background: var(--ofh-soft);
  color: var(--ofh-dark);
  font-size: 13px;
  font-weight: 900;
}

.ofh-kb-topic.has-selection .ofh-kb-topic__number {
  background: var(--ofh-orange-soft);
  color: var(--ofh-orange);
}

.ofh-kb-topic__heading {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.ofh-kb-topic__title,
.ofh-kb-topic__summary {
  display: block;
}

.ofh-kb-topic__title {
  color: var(--ofh-dark);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
}

.ofh-kb-topic__summary {
  margin-top: 3px;
  color: var(--ofh-muted);
  font-size: 13px;
  line-height: 1.25;
}

.ofh-kb-topic__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: 8px;
}

.ofh-kb-topic__count {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--ofh-orange-soft);
  color: #B75200;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.ofh-kb-topic__chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ofh-dark);
  border-bottom: 2px solid var(--ofh-dark);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}

.ofh-kb-topic.is-open .ofh-kb-topic__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.ofh-kb-topic__panel[hidden] {
  display: none !important;
}

.ofh-kb-topic__body {
  padding: 0 13px 14px;
  border-top: 1px solid #EEF1F2;
}

.ofh-kb-question {
  margin: 13px 0 10px;
  color: var(--ofh-dark);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.ofh-kb-options {
  display: grid;
  gap: 8px;
}

/* Große Touch-Auswahlflächen */
.ofh-kb-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #D8DEE1;
  border-radius: 12px;
  background: #fff;
  color: var(--ofh-text);
  cursor: pointer;
  user-select: none;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.ofh-kb-option:hover {
  border-color: #B9C3C8;
}

.ofh-kb-option:has(input:checked) {
  border-color: var(--ofh-orange);
  background: var(--ofh-orange-soft);
  box-shadow: inset 0 0 0 1px rgba(250, 129, 4, .08);
}

.ofh-kb-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ofh-kb-option__control {
  position: relative;
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 2px solid #AEB9BE;
  border-radius: 7px;
  background: #fff;
  transition: border-color .12s ease, background .12s ease;
}

.ofh-kb-option input:checked + .ofh-kb-option__control {
  border-color: var(--ofh-orange);
  background: var(--ofh-orange);
}

.ofh-kb-option input:checked + .ofh-kb-option__control::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ofh-kb-option:focus-within {
  outline: 3px solid rgba(250, 129, 4, .18);
  outline-offset: 1px;
}

.ofh-kb-option__text {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 650;
}

/* -------------------------
   Permanenter CTA
   ------------------------- */
.ofh-kb-actionbar {
  position: sticky;
  bottom: 8px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #D9E0E3;
  border-radius: 15px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(15, 34, 45, .14);
  backdrop-filter: blur(8px);
}

.ofh-kb-actionbar__status {
  min-width: 0;
  padding-left: 3px;
  color: var(--ofh-muted);
  font-size: 12px;
  line-height: 1.15;
}

.ofh-kb-actionbar__status strong,
.ofh-kb-actionbar__status span {
  display: block;
}

.ofh-kb-actionbar__status strong {
  color: var(--ofh-dark);
  font-size: 18px;
  font-weight: 900;
}

.ofh-kb-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  min-width: 180px;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--ofh-orange);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.ofh-kb-submit:hover {
  background: var(--ofh-dark);
  color: #fff;
}

.ofh-kb-submit:active {
  transform: translateY(1px);
}

.ofh-kb-submit__arrow {
  font-size: 20px;
  line-height: 1;
}

/* =========================================================
   Empfehlung-Modal
   ========================================================= */
.ofh-kb-modal { display: none; }
.ofh-kb-modal.is-open { display: block; }

.ofh-kb-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.48);
}

.ofh-kb-modal__panel {
  position: fixed;
  top: 3vh;
  left: 50%;
  z-index: 9999;
  width: min(940px, calc(100vw - 20px));
  max-height: 94vh;
  overflow: auto;
  transform: translateX(-50%);
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--ofh-text, #14232C);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.ofh-kb-modal__close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #F3F5F5;
  color: #0F222D;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ofh-kb-modal__head { margin: 2px 44px 14px 0; }
.ofh-kb-modal__title {
  margin: 0 0 5px;
  color: #0F222D;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}
.ofh-kb-modal__sub { color: #63717A; line-height: 1.4; }

.ofh-kb-modal__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ofh-kb-group {
  padding: 12px;
  border: 1px solid #E0E5E7;
  border-radius: 13px;
  background: #fff;
}

.ofh-kb-group__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
}

.ofh-kb-group__title { color: #0F222D; font-weight: 900; }
.ofh-kb-links { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.ofh-kb-link { color: #0F222D; text-decoration: none; font-weight: 800; }
.ofh-kb-link:hover { color: #FA8104; }
.ofh-kb-link.is-hidden { display: none; }

.ofh-kb-card {
  padding: 11px;
  border: 1px solid #E0E5E7;
  border-radius: 11px;
  background: #FAFBFB;
}

.ofh-kb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-weight: 800;
}

.ofh-kb-card__line1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.ofh-kb-dot { opacity: .5; }
.ofh-kb-card__price { margin-top: 3px; font-size: 16px; }
.ofh-kb-card__price del { opacity: .55; }
.ofh-kb-card__price ins { text-decoration: none; }

.ofh-kb-alts {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.ofh-kb-alts__label { color: #63717A; font-size: 13px; font-weight: 700; }

.ofh-kb-alt-select {
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #CCD4D8;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.ofh-kb-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.ofh-kb-type label { cursor: pointer; }
.ofh-kb-type label.is-disabled { opacity: .45; cursor: default; }

.ofh-kb-modal__footer {
  position: sticky;
  bottom: -1px;
  z-index: 3;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
  padding: 10px 0 0;
  background: #fff;
}

.ofh-kb-btn {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.ofh-kb-btn--secondary {
  border: 1px solid #0F222D;
  background: #fff;
  color: #0F222D;
}

.ofh-kb-btn--primary {
  border: 0;
  background: #FA8104;
  color: #fff;
}

.ofh-kb-btn--primary:hover { background: #0F222D; }
.ofh-kb-btn--secondary:hover { background: #F3F5F5; }

/* -------------------------
   Desktop
   ------------------------- */
@media (min-width: 768px) {
  .ofh-kb-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    align-items: end;
    padding: 26px;
  }

  .ofh-kb-quickinfo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .ofh-kb-quickinfo__item {
    align-items: flex-start;
  }

  .ofh-kb-selected-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
  }

  .ofh-kb-topic__toggle {
    min-height: 76px;
    padding: 14px 16px;
  }

  .ofh-kb-topic__body {
    padding: 0 16px 16px;
  }

  .ofh-kb-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ofh-kb-actionbar {
    bottom: 14px;
    margin-top: 18px;
    padding: 11px 12px;
  }

  .ofh-kb-actionbar__status {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
  }

  .ofh-kb-actionbar__status strong,
  .ofh-kb-actionbar__status span {
    display: inline;
  }

  .ofh-kb-modal__panel { padding: 20px; }
  .ofh-kb-modal__content { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .ofh-kb-hero__title { font-size: 42px; }
  .ofh-kb-section-intro h3 { font-size: 25px; }
  .ofh-kb-topic__title { font-size: 17px; }
  .ofh-kb-topic__summary { font-size: 14px; }
}

/* Sehr kleine Smartphones */
@media (max-width: 390px) {
  .ofh-kb-hero { padding: 16px; }
  .ofh-kb-hero__title { font-size: 25px; }
  .ofh-kb-topic__number { flex-basis: 34px; width: 34px; height: 34px; }
  .ofh-kb-topic__count { display: none; }
  .ofh-kb-actionbar { gap: 8px; }
  .ofh-kb-submit { min-width: 0; flex: 1 1 auto; padding-inline: 12px; }
  .ofh-kb-modal__footer { flex-direction: column-reverse; }
  .ofh-kb-btn { width: 100%; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  .ofh-kb-shell *,
  .ofh-kb-shell *::before,
  .ofh-kb-shell *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* v4.1.1 – Accordion Hover: Orange statt Blau */
.ofh-kb-topic__toggle:hover,
.ofh-kb-topic__toggle:focus-visible {
  background: #FA8104 !important;
}
