/**
 * Hundebund Design System
 * Gemeinsames Stylesheet für alle Hundebund-Blöcke (Editor + Frontend).
 *
 * Hinweis: Alle Selektoren sind mit dem Präfix .hb2- gekapselt, damit das
 * Design nicht mit dem übrigen Theme kollidiert.
 */

:root {
  --hb2-bg: #f4f6f7;
  --hb2-dark: #16323f;
  --hb2-petrol: #1f5366;
  --hb2-petrol-light: #e8f0f2;
  --hb2-amber: #c98a2e;
  --hb2-amber-light: #fbf3e4;
  --hb2-cta-orange: #e8820c;
  --hb2-cta-orange-hover: #d07008;
  --hb2-muted: #58666c;
  --hb2-border: #dde3e5;
  --hb2-radius: 8px;
}

/* Optionaler Rahmen, falls Inhalte bewusst zusammengefasst werden sollen. */
.hb2-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; color: var(--hb2-dark); line-height: 1.75; }
.hb2-wrap p { margin-bottom: 20px; }

/* Damit eigenständige Blöcke auch ohne .hb2-wrap die Grundtypografie erben. */
.hb2-headline,
.hb2-standfirst,
.hb2-byline,
.hb2-summary,
.hb2-stat,
.hb2-signs,
.hb2-pull,
.hb2-analogy,
.hb2-expert,
.hb2-criteria,
.hb2-strain,
.hb2-recommend,
.hb2-demo-intro,
.hb2-timeline,
.hb2-demo-result,
.hb2-testimonials,
.hb2-recommend,
.hb2-cta-inline,
.hb2-cta-wrap,
.hb2-guarantee { color: var(--hb2-dark); line-height: 1.75; }

.hb2-masthead { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 4px double var(--hb2-dark); margin-bottom: 24px; flex-wrap: wrap; gap: 6px; }
.hb2-masthead-name { font-weight: 800; letter-spacing: -0.01em; }
.hb2-masthead-section { color: var(--hb2-petrol); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hb2-anzeige { color: var(--hb2-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; display: block; }
.hb2-headline { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--hb2-dark); }
.hb2-standfirst { color: var(--hb2-muted); line-height: 1.6; margin-bottom: 28px; }
.hb2-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hb2-border); border-bottom: 1px solid var(--hb2-border); margin-bottom: 32px; color: var(--hb2-muted); }
.hb2-byline > div:last-child { min-width: 0; flex: 1 1 auto; }
.hb2-byline-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--hb2-petrol); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.hb2-byline-author { font-weight: 700; color: var(--hb2-dark); }
.hb2-byline-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.hb2-summary { background: var(--hb2-petrol-light); border: 1px solid var(--hb2-petrol); border-radius: var(--hb2-radius); padding: 24px 28px; margin: 0 0 36px; }
.hb2-summary-title { font-weight: 800; color: var(--hb2-petrol); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 14px; }
.hb2-summary ul { margin: 0; padding: 0; list-style: none; }
.hb2-summary li { position: relative; padding-left: 20px; margin-bottom: 10px; line-height: 1.5; }
.hb2-summary li:last-child { margin-bottom: 0; }
.hb2-summary li::before { content: '\25B8'; color: var(--hb2-petrol); font-weight: 800; position: absolute; left: 0; top: 0; }
.hb2-wrap h2 { font-weight: 800; letter-spacing: -0.02em; margin-top: 48px; margin-bottom: 20px; padding-top: 32px; border-top: 1px solid var(--hb2-border); color: var(--hb2-dark); }
.hb2-stat { display: flex; align-items: center; gap: 24px; background: var(--hb2-dark); color: #fff; padding: 28px 32px; border-radius: var(--hb2-radius); margin: 32px 0; }
.hb2-stat-num { font-size: 3em; font-weight: 800; line-height: 1; color: #f0b860; flex-shrink: 0; }
.hb2-stat-text { line-height: 1.5; }
.hb2-signs { background: var(--hb2-amber-light); border-left: 5px solid var(--hb2-amber); border-radius: 0 var(--hb2-radius) var(--hb2-radius) 0; padding: 24px 28px; margin: 28px 0; }
.hb2-signs-title { font-weight: 800; display: block; margin-bottom: 14px; }
.hb2-signs p { margin-bottom: 14px; line-height: 1.6; }
.hb2-signs p:last-child { margin-bottom: 0; }
.hb2-pull { border-left: 6px solid var(--hb2-amber); padding: 6px 0 6px 24px; margin: 36px 0; font-weight: 800; line-height: 1.35; color: var(--hb2-dark); font-size: 1.35em; }
.hb2-analogy { background: #fff; border: 2px solid var(--hb2-petrol); border-radius: var(--hb2-radius); padding: 28px; margin: 32px 0; position: relative; }
.hb2-analogy-tag { position: absolute; top: -13px; left: 24px; background: var(--hb2-petrol); color: #fff; padding: 3px 14px; border-radius: 20px; font-weight: 700; letter-spacing: 0.04em; }
.hb2-analogy p { margin-bottom: 0; padding-top: 6px; line-height: 1.7; }
.hb2-expert { background: var(--hb2-dark); color: #fff; border-radius: var(--hb2-radius); padding: 28px 32px; margin: 32px 0; }
.hb2-expert-quote { font-weight: 500; line-height: 1.65; margin-bottom: 16px; font-style: italic; color: #eef3f4; }
.hb2-expert-cite { display: flex; align-items: center; gap: 12px; color: #9fb6bd; }
.hb2-expert-cite strong { color: #fff; }
.hb2-expert-bar { width: 28px; height: 3px; background: #f0b860; flex-shrink: 0; }
.hb2-table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: var(--hb2-radius); overflow: hidden; }
.hb2-table th { background: var(--hb2-petrol); color: #fff; padding: 12px 16px; text-align: left; font-weight: 700; }
.hb2-table td { padding: 12px 16px; border-bottom: 1px solid var(--hb2-border); vertical-align: top; line-height: 1.5; background: #fff; }
.hb2-table tr:nth-child(even) td { background: var(--hb2-bg); }
.hb2-table tr:last-child td { border-bottom: none; }
.hb2-criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.hb2-crit-card { background: #fff; border: 1px solid var(--hb2-border); border-top: 3px solid var(--hb2-petrol); border-radius: var(--hb2-radius); padding: 20px; }
.hb2-crit-label { font-weight: 700; color: var(--hb2-petrol); letter-spacing: 0.04em; display: block; margin-bottom: 6px; }
.hb2-crit-title { font-weight: 800; display: block; margin-bottom: 8px; }
.hb2-crit-text { line-height: 1.55; color: var(--hb2-muted); }
.hb2-strain { background: var(--hb2-petrol-light); border-radius: var(--hb2-radius); padding: 18px 22px; margin-bottom: 12px; }
.hb2-strain-name { font-weight: 800; display: block; margin-bottom: 4px; color: var(--hb2-dark); }
.hb2-recommend { background: var(--hb2-amber-light); border: 2px solid var(--hb2-amber); border-radius: var(--hb2-radius); padding: 28px; margin: 36px 0; }
.hb2-recommend-label { display: inline-block; background: var(--hb2-amber); color: #fff; padding: 4px 14px; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.hb2-recommend-title { font-weight: 800; display: block; margin-bottom: 10px; }
.hb2-demo-intro { background: var(--hb2-bg); border-radius: var(--hb2-radius) var(--hb2-radius) 0 0; padding: 24px 28px 8px; border: 1px solid var(--hb2-border); border-bottom: none; }
.hb2-demo-intro-title { font-weight: 800; display: block; margin-bottom: 8px; }
.hb2-timeline { position: relative; padding: 28px 28px 8px 56px; border: 1px solid var(--hb2-border); border-top: none; border-bottom: none; }
.hb2-timeline::before { content: ''; position: absolute; left: 33px; top: 36px; bottom: 20px; width: 2px; background: var(--hb2-petrol); }
.hb2-tl-item { position: relative; margin-bottom: 24px; }
.hb2-tl-item::before { content: ''; position: absolute; left: -31px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--hb2-petrol); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--hb2-petrol); }
.hb2-tl-label { font-weight: 800; color: var(--hb2-petrol); display: block; margin-bottom: 2px; }
.hb2-tl-text { line-height: 1.6; }
.hb2-demo-result { background: var(--hb2-dark); color: #fff; padding: 24px 28px; border-radius: 0 0 var(--hb2-radius) var(--hb2-radius); line-height: 1.6; }
.hb2-demo-result strong { color: #f0b860; }
.hb2-testimonials { display: flex; flex-direction: column; gap: 18px; margin: 32px 0; }
.hb2-testimonial { background: #fff; border: 1px solid var(--hb2-border); border-radius: var(--hb2-radius); padding: 22px 24px; display: flex; gap: 16px; }
.hb2-test-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--hb2-petrol-light); color: var(--hb2-petrol); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.hb2-test-body { flex: 1; }
.hb2-test-stars { color: #e8a23a; letter-spacing: 2px; display: block; margin-bottom: 6px; }
.hb2-test-text { font-style: italic; line-height: 1.65; margin-bottom: 10px; }
.hb2-test-author { font-weight: 700; color: var(--hb2-muted); }
.hb2-faq { margin: 24px 0; }
.hb2-faq details { background: #fff; border: 1px solid var(--hb2-border); border-radius: var(--hb2-radius); margin-bottom: 12px; overflow: hidden; }
.hb2-faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hb2-faq summary::-webkit-details-marker { display: none; }
.hb2-faq summary::after { content: '+'; color: var(--hb2-petrol); font-weight: 800; flex-shrink: 0; }
.hb2-faq details[open] summary::after { content: '\2212'; }
.hb2-faq-answer { padding: 0 22px 20px; line-height: 1.7; color: var(--hb2-muted); }
.hb2-btn { display: block; background: var(--hb2-cta-orange); color: #fff; padding: 17px 32px; font-weight: 800; text-decoration: none; border-radius: var(--hb2-radius); border: none; cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 16px rgba(232,130,12,0.35); width: 100%; max-width: 460px; text-align: center; margin: 0 auto; box-sizing: border-box; }
.hb2-btn:hover { background: var(--hb2-cta-orange-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,130,12,0.45); color: #fff; text-decoration: none; }
.hb2-cta-inline { background: var(--hb2-bg); border: 1px solid var(--hb2-border); padding: 22px 24px; margin: 32px 0; border-radius: var(--hb2-radius); text-align: center; }
.hb2-cta-inline p { color: var(--hb2-muted); margin-bottom: 14px; font-style: italic; }
.hb2-cta-wrap { background: var(--hb2-petrol-light); border: 2px solid var(--hb2-petrol); padding: 36px 32px; margin: 48px 0 32px; border-radius: var(--hb2-radius); text-align: center; }
.hb2-cta-title { font-weight: 800; margin-bottom: 8px; display: block; }
.hb2-cta-sub { color: var(--hb2-muted); margin-bottom: 24px; display: block; line-height: 1.6; }
.hb2-cta-trust { margin-top: 16px; color: var(--hb2-muted); display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hb2-guarantee { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--hb2-border); padding: 22px 24px; border-radius: var(--hb2-radius); margin: 24px 0; }
.hb2-guarantee-icon { flex-shrink: 0; font-size: 2em; line-height: 1; }
.hb2-guarantee-title { font-weight: 800; display: block; margin-bottom: 4px; }
.hb2-divider { border: none; border-top: 1px solid var(--hb2-border); margin: 40px 0; }
.hb2-disclaimer { color: var(--hb2-muted); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hb2-border); font-style: italic; }

/* Irrtum-Box: heller Rahmen, rotes Badge, grüne "Tatsächlich"-Auflösung. */
.hb2-myth { background: #fff; border: 1px solid #d6bfa6; border-radius: var(--hb2-radius); padding: 22px 26px; margin: 28px 0; }
.hb2-myth-badge { display: inline-block; background: #fbe1de; color: #a8403a; padding: 4px 12px; border-radius: 4px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85em; margin-bottom: 14px; }
.hb2-myth-claim { display: block; font-weight: 800; color: var(--hb2-dark); margin-bottom: 14px; line-height: 1.45; }
.hb2-myth-actually { line-height: 1.65; color: var(--hb2-dark); margin: 0; }
.hb2-myth-actually-label { color: #2f7a4d; font-weight: 800; margin-right: 4px; }

/* Produkt-Box (Testsieger + Platz 2–5) – gemeinsamer Container. */
.hb2-prod { background: #fff; border: 1px solid var(--hb2-border); border-radius: var(--hb2-radius); margin: 36px 0; overflow: hidden; }
.hb2-prod-winner { border: 2px solid var(--hb2-amber); }

.hb2-prod-header { display: flex; align-items: center; gap: 12px; background: var(--hb2-bg); padding: 12px 22px; font-weight: 800; color: var(--hb2-dark); border-bottom: 1px solid var(--hb2-border); }
.hb2-prod-header-winner { background: var(--hb2-amber); color: #fff; padding: 14px 24px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.hb2-prod-trophy { font-size: 1.1em; line-height: 1; }
.hb2-prod-rank { width: 30px; height: 30px; border-radius: 50%; background: var(--hb2-petrol); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95em; flex-shrink: 0; }

.hb2-prod-body { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 24px; }

.hb2-prod-img-wrap { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.hb2-prod-img { position: relative; background: var(--hb2-bg); border: 1px solid var(--hb2-border); border-radius: var(--hb2-radius); min-height: 130px; display: flex; align-items: center; justify-content: center; padding: 16px 12px; color: var(--hb2-muted); text-align: center; line-height: 1.4; font-size: 0.9em; }
.hb2-prod-img img { display: block; width: 100%; height: auto; border-radius: 4px; }
.hb2-prod-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hb2-prod-img-placeholder-icon { font-size: 1.6em; color: var(--hb2-muted); opacity: .6; }

.hb2-prod-donut { width: 86px; height: 86px; margin: 0 auto; position: relative; border-radius: 50%; background: conic-gradient(var(--hb2-donut-color, var(--hb2-amber)) 0 var(--hb2-donut-pct, 0%), var(--hb2-border) var(--hb2-donut-pct, 0%) 100%); display: grid; place-items: center; }
.hb2-prod-donut::after { content: ''; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.hb2-prod-donut-text { position: relative; z-index: 1; text-align: center; font-weight: 800; line-height: 1.05; color: var(--hb2-dark); font-size: 1.05em; }
.hb2-prod-donut-text small { display: block; font-weight: 500; font-size: 0.62em; color: var(--hb2-muted); margin-top: 4px; letter-spacing: 0.02em; }

.hb2-prod-name { display: block; font-weight: 800; font-size: 1.2em; color: var(--hb2-dark); margin-bottom: 4px; }
.hb2-prod-sub { display: block; color: var(--hb2-muted); margin-bottom: 18px; }

.hb2-prod-criteria { display: grid; grid-template-columns: minmax(110px, max-content) 1fr auto; gap: 10px 16px; align-items: center; }
.hb2-prod-crit-name { font-weight: 800; color: var(--hb2-dark); }
.hb2-prod-bar { display: flex; gap: 2px; height: 11px; }
.hb2-prod-bar-seg { flex: 1; background: #e6e9eb; border-radius: 2px; }
.hb2-prod-bar.good .hb2-prod-bar-seg.filled { background: #4eaa61; }
.hb2-prod-bar.mid .hb2-prod-bar-seg.filled { background: #e0a32e; }
.hb2-prod-bar.bad .hb2-prod-bar-seg.filled { background: #c84a3a; }
.hb2-prod-crit-score { font-weight: 800; color: var(--hb2-dark); text-align: right; min-width: 32px; }

.hb2-prod-fazit { background: var(--hb2-bg); border-radius: var(--hb2-radius); padding: 18px 22px; margin: 0 24px 24px; line-height: 1.65; color: var(--hb2-dark); }
.hb2-prod-fazit strong { color: var(--hb2-dark); }
.hb2-prod-cta { padding: 0 24px 24px; }

/* Checkliste mit nummerierten Items in Petrol-Optik. */
.hb2-check { background: var(--hb2-petrol-light); border: 1px solid var(--hb2-petrol); border-radius: var(--hb2-radius); padding: 24px 28px; margin: 28px 0; }
.hb2-check-title { display: block; font-weight: 800; color: var(--hb2-dark); margin-bottom: 18px; line-height: 1.4; }
.hb2-check-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; margin-bottom: 16px; align-items: start; }
.hb2-check-item:last-child { margin-bottom: 0; }
.hb2-check-num { width: 28px; height: 28px; border-radius: 50%; background: var(--hb2-petrol); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.9em; flex-shrink: 0; }
.hb2-check-lead { font-weight: 800; display: block; margin-bottom: 4px; color: var(--hb2-dark); }
.hb2-check-text { line-height: 1.55; color: var(--hb2-dark); }
.hb2-sticky { position: fixed; bottom: 0; left: 0; right: 0; background: var(--hb2-dark); color: #fff; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 999; transform: translateY(100%); transition: transform 0.3s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.hb2-sticky.visible { transform: translateY(0); }
.hb2-sticky-text { font-weight: 700; line-height: 1.3; flex: 1; }
.hb2-sticky-text small { display: block; font-weight: 400; opacity: 0.7; }
.hb2-sticky-btn { background: var(--hb2-cta-orange); color: #fff; padding: 10px 20px; font-weight: 800; border-radius: var(--hb2-radius); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.hb2-sticky-btn:hover { background: var(--hb2-cta-orange-hover); color: #fff; }
.hb2-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--hb2-cta-orange); width: 0%; transition: width 0.1s; z-index: 1000; }

@media (max-width: 600px) {
  .hb2-criteria { grid-template-columns: 1fr; }
  .hb2-cta-wrap { padding: 24px 20px; }
  .hb2-stat { flex-direction: column; text-align: center; gap: 12px; }
  .hb2-sticky { flex-direction: column; text-align: center; }
  .hb2-sticky-btn { width: 100%; text-align: center; padding: 12px; }
  .hb2-table { font-size: 0.88em; }
  .hb2-table th, .hb2-table td { padding: 8px 10px; }
  .hb2-pull { font-size: 1.2em; }

  /*
   * Garantie-Box auf Mobile: Icon + Titel in zwei Spalten oben,
   * Text darunter über beide Spalten. Der innere Wrapper wird via
   * "display: contents" durchlässig, sodass Titel und Text direkte
   * Grid-Items des Containers werden – ohne Save-Markup zu ändern.
   */
  .hb2-guarantee { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 10px; align-items: center; }
  .hb2-guarantee > div:last-child { display: contents; }
  .hb2-guarantee-icon { grid-column: 1; grid-row: 1; }
  .hb2-guarantee-title { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .hb2-guarantee > div:last-child > :last-child { grid-column: 1 / -1; grid-row: 2; }

  /*
   * Produkt-Box auf Mobile: Bild + Donut nebeneinander oben (zwei Spalten),
   * dann Produktname, Untertitel und Kriterien-Block darunter über die
   * volle Breite. Die Kriterien-Reihen bleiben dreispaltig und sind hier
   * etwas kompakter.
   */
  .hb2-prod-body { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .hb2-prod-img-wrap { flex-direction: row; align-items: center; gap: 14px; }
  .hb2-prod-img { flex: 1; min-height: 110px; }
  .hb2-prod-donut { width: 78px; height: 78px; margin: 0; flex-shrink: 0; }
  .hb2-prod-criteria { grid-template-columns: minmax(95px, max-content) 1fr auto; gap: 8px 10px; }
  .hb2-prod-crit-name { font-size: 0.95em; }
  .hb2-prod-fazit { margin: 0 18px 18px; padding: 14px 16px; }
  .hb2-prod-cta { padding: 0 18px 18px; }

  /*
   * Testimonial auf Mobile analog: Avatar + Sterne in Zeile 1,
   * Zitat und Autor jeweils über die volle Breite darunter.
   */
  .hb2-testimonial { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 8px; align-items: center; }
  .hb2-test-body { display: contents; }
  .hb2-test-avatar { grid-column: 1; grid-row: 1; }
  .hb2-test-stars { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .hb2-test-text { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; }
  .hb2-test-author { grid-column: 1 / -1; grid-row: 3; }
}
