/**
 * BREiHOF iT – CI-Tokens + Landingpage-Komponenten (.bh-*)
 * Limette #90C41E · Anthrazit #3C3C3B · Weiß #FFFFFF
 *
 * HINWEIS: Alle Schrift- und Abstandswerte in px (nicht rem), damit das Design
 * unabhängig von der html-Schriftgröße des WordPress-Themes funktioniert.
 */

:root {
  --bh-charcoal: #3c3c3b;
  --bh-charcoal-deep: #2a2a2a;
  --bh-bg: #2e2e2e;
  --bh-surface: #383838;
  --bh-text: #ffffff;
  --bh-muted: #b0b0ae;
  --bh-brand: #90c41e;
  --bh-brand-hover: #a8d93a;
  --bh-brand-muted: rgba(144, 196, 30, 0.22);
  --bh-max: 1140px;
  --bh-radius: 12px;
  --bh-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --bh-font-sans: "Open Sans", system-ui, -apple-system, sans-serif;
  --bh-font-head: "Montserrat", var(--bh-font-sans);
}

*, *::before, *::after { box-sizing: border-box; }

/* Auf body (Vollseite) oder umschließendes div (WordPress-HTML-Block) */
.bh-landing {
  margin: 0;
  font-family: var(--bh-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bh-text);
  background: var(--bh-bg);
}

.bh-wrap { max-width: var(--bh-max); margin: 0 auto; padding: 0 20px; }

.bh-landing a {
  color: var(--bh-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bh-landing a:hover { color: var(--bh-brand-hover); }

.bh-skip {
  position: absolute;
  left: -9999px;
}

.bh-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--bh-brand);
  color: #fff;
}

header.bh-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(46, 46, 46, 0.97);
  position: sticky;
  top: 0;
  z-index: 50;
}

.bh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bh-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.bh-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bh-brand);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}

.bh-header-cta:hover {
  background: var(--bh-brand-hover);
  color: #fff !important;
}

.bh-hero {
  padding: 48px 0 56px;
  background: linear-gradient(
    165deg,
    var(--bh-bg) 0%,
    var(--bh-charcoal) 45%,
    var(--bh-bg) 100%
  );
}

.bh-hero h1 {
  font-family: var(--bh-font-head);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.bh-lead {
  font-size: 18px;
  color: var(--bh-muted);
  max-width: 608px;
  margin: 0 0 28px;
}

.bh-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.bh-btn-primary {
  display: inline-block;
  background: var(--bh-brand);
  color: #fff !important;
  padding: 14px 24px;
  border-radius: var(--bh-radius);
  font-weight: 600;
}

.bh-btn-primary:hover {
  background: var(--bh-brand-hover);
  color: #fff !important;
}

.bh-btn-ghost {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: var(--bh-text) !important;
  padding: 13px 22px;
  border-radius: var(--bh-radius);
  font-weight: 600;
}

.bh-btn-ghost:hover {
  border-color: var(--bh-brand);
  color: #fff !important;
}

.bh-landing section { padding: 44px 0; }

section.bh-alt { background: var(--bh-surface); }

.bh-landing h2 {
  font-family: var(--bh-font-head);
  font-size: clamp(23px, 3vw, 30px);
  margin: 0 0 20px;
  font-weight: 700;
}

.bh-landing h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
}

.bh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.bh-stat {
  background: var(--bh-bg);
  border-radius: var(--bh-radius);
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--bh-shadow);
}

.bh-stat strong {
  display: block;
  font-size: 28px;
  color: var(--bh-brand);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.bh-stat span {
  font-size: 14px;
  color: var(--bh-muted);
  line-height: 1.45;
}

.bh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .bh-grid-2 { grid-template-columns: 1fr; }
}

ul.bh-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--bh-muted);
}

ul.bh-list li {
  margin-bottom: 9px;
  padding-left: 22px;
  position: relative;
}

ul.bh-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bh-brand);
}

.bh-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--bh-radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bh-cta-band {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(
    135deg,
    var(--bh-brand-muted) 0%,
    rgba(46, 46, 46, 0.95) 100%
  );
  border-radius: var(--bh-radius);
  border: 1px solid rgba(144, 196, 30, 0.35);
  margin: 32px 0 0;
}

.bh-sources {
  font-size: 13px;
  color: var(--bh-muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bh-sources ol { padding-left: 19px; margin: 8px 0 0; }

.bh-sources a { word-break: break-all; }

details.bh-faq {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
}

details.bh-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}

details.bh-faq p {
  margin: 12px 0 0;
  color: var(--bh-muted);
}

/* Eyebrow (Kategorie-Label über Überschriften) */
.bh-eyebrow {
  font-family: var(--bh-font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bh-brand);
  margin: 0 0 8px;
}

/* Steps (nummerierter Prozess-Ablauf) */
.bh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.bh-step {
  background: var(--bh-bg);
  border-radius: var(--bh-radius);
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--bh-shadow);
  position: relative;
}

.bh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bh-brand);
  color: #fff;
  font-family: var(--bh-font-head);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.bh-step h3 {
  margin: 0 0 6px;
}

.bh-step p {
  margin: 0;
  font-size: 15px;
  color: var(--bh-muted);
  line-height: 1.5;
}

/* ─── Testimonials ─── */

/* Avatar-Kreis (Fallback ohne Foto) */
.bh-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bh-brand-muted);
  border: 2px solid var(--bh-brand);
  color: var(--bh-brand);
  font-family: var(--bh-font-head);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* Avatar mit echtem Foto: einfach src setzen, der Rest stimmt */
.bh-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Große Case-Study-Box */
.bh-case-study {
  margin: 32px 0 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(144, 196, 30, 0.25);
  border-radius: var(--bh-radius);
  padding: 32px 32px 24px;
}

.bh-case-study blockquote { margin: 0; }

.bh-case-study__headline {
  font-family: var(--bh-font-head);
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 700;
  color: var(--bh-text);
  line-height: 1.3;
  margin: 0 0 20px;
}

.bh-case-study__story {
  font-style: italic;
  color: var(--bh-muted);
  border-left: 3px solid var(--bh-brand);
  padding-left: 20px;
  margin: 0 0 24px;
  line-height: 1.7;
}

.bh-case-study__author {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--bh-muted);
}

.bh-case-study__author strong { color: var(--bh-text); }

/* 4er-Testimonial-Grid */
.bh-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.bh-testimonial {
  background: var(--bh-bg);
  border-radius: var(--bh-radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.bh-testimonial blockquote {
  margin: 0;
  flex: 1;
}

.bh-testimonial blockquote p {
  font-size: 14px;
  color: var(--bh-muted);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

.bh-testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--bh-muted);
  line-height: 1.35;
}

.bh-testimonial footer strong { color: var(--bh-text); display: block; }

footer.bh-footer {
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--bh-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Scroll-Reveal Animationen ─── */

@keyframes bh-reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bh-reveal-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes bh-reveal-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes bh-reveal-scale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.bh-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
}

.bh-reveal.bh-from-left  { transform: translateX(-40px); }
.bh-reveal.bh-from-right { transform: translateX(40px); }
.bh-reveal.bh-scale-in   { transform: scale(0.92); }

.bh-reveal.bh-visible {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

.bh-reveal.bh-visible                { animation-name: bh-reveal-up; }
.bh-reveal.bh-from-left.bh-visible   { animation-name: bh-reveal-left; }
.bh-reveal.bh-from-right.bh-visible  { animation-name: bh-reveal-right; }
.bh-reveal.bh-scale-in.bh-visible    { animation-name: bh-reveal-scale; }

/* Stagger-Delays für Kinder in Grids */
.bh-stagger > .bh-reveal:nth-child(1)  { animation-delay: 0s; }
.bh-stagger > .bh-reveal:nth-child(2)  { animation-delay: 0.08s; }
.bh-stagger > .bh-reveal:nth-child(3)  { animation-delay: 0.16s; }
.bh-stagger > .bh-reveal:nth-child(4)  { animation-delay: 0.24s; }
.bh-stagger > .bh-reveal:nth-child(5)  { animation-delay: 0.32s; }
.bh-stagger > .bh-reveal:nth-child(6)  { animation-delay: 0.40s; }
.bh-stagger > .bh-reveal:nth-child(7)  { animation-delay: 0.48s; }
.bh-stagger > .bh-reveal:nth-child(8)  { animation-delay: 0.56s; }
.bh-stagger > .bh-reveal:nth-child(9)  { animation-delay: 0.64s; }

/* Glow-Hover auf Karten */
.bh-glow-hover {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.bh-glow-hover:hover {
  border-color: rgba(144, 196, 30, 0.5);
  box-shadow: 0 8px 32px rgba(144, 196, 30, 0.12), 0 4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  .bh-reveal { opacity: 1; transform: none; }
  .bh-reveal.bh-visible { animation: none; opacity: 1; transform: none; }
  .bh-glow-hover:hover { transform: none; }
}
