/* ============================================================
   Advertorial Template — info.apotheken-empfehlung.com
   Driven by CSS custom properties so the Tweaks panel (and
   future products) can re-skin without touching markup.
   ============================================================ */

:root {
  --accent: #F5211F;
  --accent-dark: #C9110F;
  --navy: #1E3A5F;
  --ink: #1d2129;
  --ink-soft: #4a5160;
  --ink-faint: #8a8f9c;
  --paper: #fcfcfb;
  --paper-warm: #f6f5f2;
  --line: #e6e5e1;
  --green: #1F8A5B;
  --green-soft: #e9f4ef;
  --amber: #f7b500;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --col: 720px;
}

body.sans-headlines {
  --font-head: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Masthead ---------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
  font-weight: 600;
}

.masthead {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 14px 24px;
}

.masthead-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.masthead-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-claim {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------- Article shell ---------- */

.article {
  max-width: var(--col);
  margin: 0 auto;
  padding: 36px 24px 0 24px;
}

.kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ad-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 4px;
  background: #ffffff;
}

.kicker {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 18px 0;
  text-wrap: pretty;
}

.lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 26px 0;
  text-wrap: pretty;
}

/* ---------- Author row ---------- */

.author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.author-meta { display: flex; flex-direction: column; gap: 1px; }

.author-name { font-weight: 700; font-size: 16px; }

.author-role { font-size: 14px; color: var(--ink-faint); }

.author-date {
  margin-left: auto;
  text-align: right;
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.author-date strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Body typography ---------- */

.article h2 {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 14px 0;
  text-wrap: pretty;
}

.article h3 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  margin: 32px 0 10px 0;
}

.article p { margin: 0 0 18px 0; }

.article a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

figure { margin: 28px 0; }

figcaption {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 8px;
  text-align: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------- Boxes ---------- */

.note-box {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 26px 0;
}

.note-box-title {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

ul.checklist, ul.crosslist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

ul.checklist li, ul.crosslist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 17.5px;
  line-height: 1.5;
}

.check, .cross-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.check { background: var(--green-soft); color: var(--green); }

.cross-mark { background: #fdebea; color: var(--accent); }

/* ---------- Interview ---------- */

.interview { margin: 30px 0; display: flex; flex-direction: column; gap: 22px; }

.q {
  font-weight: 700;
  font-size: 18.5px;
  color: var(--navy);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.q-label, .a-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  position: relative;
  top: -2px;
}

.q-label { background: var(--navy); color: #ffffff; }

.a-label { background: var(--paper-warm); color: var(--ink-soft); border: 1px solid var(--line); }

.a { display: flex; gap: 12px; align-items: baseline; }

.a p { margin: 0; }

.pull-quote {
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 30px 0;
  font-family: var(--font-head);
  font-size: 23px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy);
  text-wrap: pretty;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* ---------- Ingredients ---------- */

.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 26px 0;
}

.ingredient-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.ingredient-card h4 {
  margin: 0 0 6px 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
}

.ingredient-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.ingredient-card .dose {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 8px;
}

/* ---------- Product / Offer box ---------- */

.offer-box {
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #ffffff;
  margin: 36px 0;
  overflow: hidden;
}

.offer-head {
  background: var(--navy);
  color: #ffffff;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offer-head .pill {
  background: var(--accent);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.offer-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  padding: 26px;
  align-items: start;
}

.offer-product-visual { position: relative; }

.offer-product-visual img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.badge-testsieger {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(201, 17, 15, 0.35);
  transform: rotate(8deg);
}

.badge-testsieger .b1 { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.badge-testsieger .b2 { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.1; }
.badge-testsieger .b3 { font-size: 10.5px; font-weight: 600; opacity: 0.9; }

.offer-info h3 { margin: 0 0 6px 0; font-size: 23px; }

.offer-info .sub { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 12px 0; }

.stars-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.stars { color: var(--amber); font-size: 19px; letter-spacing: 2px; }

.stars-num { font-weight: 700; font-size: 15.5px; }

.stars-count { font-size: 14px; color: var(--ink-faint); }

.offer-info ul.checklist li { font-size: 16px; }

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 9px;
  padding: 16px 28px;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--accent-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.cta-button:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 4px 0 var(--accent-dark); }

.cta-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-dark); }

/* Links inside the article inherit the accent color (.article a) — the CTA
   buttons must stay white regardless, so this later, equally-specific rule wins. */
a.cta-button, a.cta-button:hover, a.cta-button:active {
  color: #ffffff;
  text-decoration: none;
}

.cta-arrow { font-size: 20px; line-height: 1; }

.cta-subnote {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 18px;
}

.offer-secondary {
  display: block;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-faint) !important;
  margin-top: 12px;
}

/* pros / cons */

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }

.proscons .col {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  background: #ffffff;
}

.proscons .col h4 { margin: 0 0 12px 0; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }

.proscons .pros h4 { color: var(--green); }

.proscons .cons h4 { color: var(--ink-faint); }

.proscons ul { margin: 0; }

.proscons li { font-size: 15.5px; }

/* ---------- Timeline ---------- */

.timeline { margin: 26px 0; display: flex; flex-direction: column; }

.timeline-item { display: flex; gap: 18px; }

.timeline-marker { display: flex; flex-direction: column; align-items: center; }

.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fdebea;
  flex-shrink: 0;
  margin-top: 5px;
}

.timeline-line { width: 2px; flex: 1; background: var(--line); margin: 4px 0; }

.timeline-item:last-child .timeline-line { display: none; }

.timeline-content { padding-bottom: 22px; }

.timeline-content h4 { margin: 0 0 4px 0; font-size: 16.5px; color: var(--navy); }

.timeline-content p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */

.testimonials { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }

.testimonial {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
}

.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.avatar-initials {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-head .who { display: flex; flex-direction: column; }

.testimonial-head .name { font-weight: 700; font-size: 15.5px; }

.testimonial-head .verified {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.testimonial-head .t-stars { margin-left: auto; color: var(--amber); font-size: 15px; letter-spacing: 1px; }

.testimonial p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- Update box ---------- */

.update-box {
  border: 2px dashed var(--accent);
  background: #fff7f7;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 36px 0;
}

.update-box .update-tag {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.update-box h3 { margin: 0 0 10px 0; }

.update-box p { font-size: 17px; }

/* ---------- Sources / Author / Disclaimer ---------- */

.sources { font-size: 14.5px; color: var(--ink-soft); }

.sources ol { padding-left: 20px; margin: 10px 0 0 0; display: flex; flex-direction: column; gap: 6px; }

.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 36px 0;
}

.author-box .bio { font-size: 15.5px; color: var(--ink-soft); margin: 4px 0 0 0; }

/* Avatare sind Flex-Kinder — ohne flex-shrink:0 quetscht der Text sie oval */
.author-row .img-placeholder, .author-box .img-placeholder { flex-shrink: 0; }

.disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding: 26px 0 10px 0;
  margin-top: 40px;
}

.disclaimer h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 56px;
  padding: 34px 24px 110px 24px;
  text-align: center;
  font-size: 14px;
}

.site-footer .foot-brand {
  font-family: var(--font-head);
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

/* ---------- Sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(20, 24, 33, 0.12);
  padding: 10px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 60;
}

body.show-sticky .sticky-cta { display: flex; }

.sticky-cta img {
  width: 46px; height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}

.sticky-cta .sticky-info { display: flex; flex-direction: column; min-width: 0; }

.sticky-cta .sticky-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sticky-cta .sticky-stars { font-size: 12.5px; color: var(--amber); }

.sticky-cta .sticky-stars span { color: var(--ink-faint); }

.sticky-cta .cta-button {
  margin: 0 0 0 auto;
  padding: 12px 18px;
  font-size: 15px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  body:not(.sticky-desktop) .sticky-cta { display: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 17.5px; }
  .article { padding-top: 24px; padding-left: 18px; padding-right: 18px; }
  .lead { font-size: 19px; }
  .article h2 { font-size: 24px; }
  .article h3 { font-size: 19.5px; }
  figure .img-placeholder { height: 270px !important; }
  .pull-quote { font-size: 20px; padding-left: 16px; }
  .note-box { padding: 18px; }
  .update-box { padding: 20px 18px; }
  .offer-head { flex-wrap: wrap; }
  .offer-body { grid-template-columns: 1fr; }
  .offer-product-visual { max-width: 300px; margin: 0 auto; }
  .ingredient-grid { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .author-date { display: none; }
  .masthead-logo { height: 42px; }
  .brand-claim { font-size: 11px; }
  .masthead { padding: 14px 16px 12px 16px; }
  .site-footer { padding-bottom: 130px; }
}

/* ---------- Bild-Platzhalter (durch echte <img> ersetzen) ---------- */

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px dashed #c9c7c1;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #f3f2ef 0px, #f3f2ef 14px, #ecebe7 14px, #ecebe7 28px);
  color: #8a8f9c;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}

.img-placeholder--circle {
  border-radius: 50%;
  width: auto;
  font-size: 10px;
}

.disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding: 26px 0 10px 0;
  margin-top: 40px;
}

.disclaimer h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px 0;
}
