/* Satoshi (Fontshare, Free Font License) — lokal eingebunden, damit beim
   Seitenaufruf keine IP-Adressen an Dritte uebertragen werden (Art. 6 DSGVO). */
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   roleca® macrogol — Direktbestellung
   Designsystem, abgeleitet aus den Markenfarben der Gebrauchsinformation
   (PANTONE 2248 C / PANTONE 325 C) und dem Logo-Grün #86c7ad
   ============================================================ */

:root {
  /* Marke */
  --brand: #86c7ad;          /* Logo-Grün, PANTONE 2248 C */
  --brand-600: #4f9d7d;
  --brand-700: #2f6b52;
  --brand-900: #16352a;
  --aqua: #93cfd2;           /* PANTONE 325 C */
  --brand-050: #f2f9f5;
  --brand-100: #e3f1ea;
  --line: #e2ebe6;

  /* Neutral */
  --ink: #182521;
  --ink-2: #3f524c;
  --ink-3: #74857f;
  --paper: #ffffff;
  --bg: #f6f9f8;

  /* Signal */
  --alert: #b4460f;
  --alert-bg: #fdf4ef;

  /* Form */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(22, 53, 42, .05), 0 4px 16px rgba(22, 53, 42, .05);
  --shadow-2: 0 2px 6px rgba(22, 53, 42, .06), 0 18px 44px rgba(22, 53, 42, .09);
  --ring: 0 0 0 3px rgba(134, 199, 173, .45);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
/* Muss nach allen display-Regeln greifen: Flex-/Grid-Container wuerden das
   hidden-Attribut sonst ueberschreiben (z. B. .field, .panel, .mobilebar). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  font-feature-settings: "tnum" 0;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { color: var(--brand-900); margin: 0 0 .45em; line-height: 1.18; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-2); }
.mini { font-size: .845rem; line-height: 1.55; color: var(--ink-3); }
.mini-strong { font-size: .875rem; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- Kopfzeile mit Schrittanzeige ---------------- */
.topbar {
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.topbar .logo { flex: none; }
.topbar .logo img { height: 32px; width: auto; }
.topbar .mailto { margin-left: auto; font-size: .85rem; color: var(--ink-2); text-decoration: none; flex: none; }
.topbar .mailto:hover { color: var(--brand-700); }

.steps { min-width: 0; }
.steps ol { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3);
  padding: 5px 12px 5px 7px; border-radius: 999px; white-space: nowrap; cursor: pointer;
}
.steps li b { font-weight: 500; }
.steps li i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); font-size: .78rem; font-weight: 600; flex: none;
}
.steps li[aria-current="step"] { background: var(--brand-050); color: var(--brand-900); }
.steps li[aria-current="step"] i { background: var(--brand-600); color: #fff; }
.steps li.done i { background: var(--brand-700); color: #fff; }
@media (max-width: 900px) { .topbar .mailto { display: none; } .steps { margin-left: auto; } }
@media (max-width: 620px) {
  .topbar .wrap { gap: 12px; min-height: 56px; padding: 0 16px; }
  .topbar .logo img { height: 27px; }
  .steps li { padding: 5px 7px; font-size: .8rem; }
  .steps li b { display: none; }
  .steps li[aria-current="step"] b { display: inline; }
}

/* ---------------- Hero: statisches Live-Bild ---------------- */
/* Gleiche maximale Breite und Seitenabstände wie .wrap, damit das Bild exakt
   so breit wie das Bestellformular darunter ist und mit ihm fluchtet. */
.livehero-shot-link {
  display: block; line-height: 0;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.livehero-shot { display: block; width: 100%; height: auto; }
.livehero-shot-link:focus-visible { outline: 3px solid var(--brand-600); outline-offset: -3px; }

/* Auf schmalen Bildschirmen die Seitenabstaende aufheben: das Bild nutzt die
   volle Breite und wird damit so hoch dargestellt, wie es das Seitenverhaeltnis
   zulaesst — begrenzt durch die maximale Inhaltsbreite oben. */
@media (max-width: 620px) {
  .livehero-shot-link { padding: 0; }
}


/* ---------------- Layout Funnel ---------------- */
.funnel { padding: 26px 0 68px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 30px; margin-bottom: 22px;
}
.panel > header { margin-bottom: 20px; }
.panel > header h2 { margin-bottom: 4px; }
.panel > header .mini { margin: 0; }
.step-num {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 6px;
}
@media (max-width: 620px) { .panel { padding: 22px 18px; border-radius: var(--r); } }

/* ---------------- Produktauswahl ---------------- */
.packs { display: grid; gap: 22px; }
.pack { position: relative; }
.pack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pack label {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 20px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pack label:hover { border-color: var(--brand); background: #fcfefd; }
.pack input:focus-visible + label { box-shadow: var(--ring); }
.pack input:checked + label { border-color: var(--brand-600); background: var(--brand-050); box-shadow: 0 0 0 1px var(--brand-600) inset; }
.pack .tube {
  width: 74px; height: 92px; border-radius: 12px; background: linear-gradient(180deg, #fff 0%, var(--brand-050) 100%);
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
}
.pack .tube svg { width: 46px; height: 74px; }
.pack .t-name { display: block; font-weight: 600; color: var(--brand-900); font-size: 1.06rem; }
.pack .t-sub { display: block; font-size: .875rem; color: var(--ink-3); margin-top: 2px; }
.pack .t-price { text-align: right; }
.pack .t-price b { display: block; font-size: 1.32rem; font-weight: 700; color: var(--brand-900); }
.pack .t-price span { font-size: .8rem; color: var(--ink-3); }
.pack .flag {
  position: absolute; top: -12px; right: 18px; box-shadow: 0 0 0 4px #fff; background: var(--brand-700); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; z-index: 2;
}
@media (max-width: 560px) {
  .pack label { grid-template-columns: 56px 1fr; row-gap: 10px; padding: 16px; }
  .pack .tube { width: 56px; height: 70px; }
  .pack .tube svg { width: 34px; height: 56px; }
  .pack .t-price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .pack .t-price b { display: inline; }
}

.qtyrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button {
  width: 44px; height: 46px; border: 0; background: #fff; color: var(--brand-700);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.stepper button:hover { background: var(--brand-050); }
.stepper button:disabled { color: #c9d5d0; cursor: not-allowed; background: #fff; }
.stepper input {
  width: 58px; height: 46px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font: inherit; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  -moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------- Formular ---------------- */
fieldset { border: 0; margin: 0 0 8px; padding: 0; }
legend { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 12px; }
.row { display: grid; gap: 16px; }
.row.two { grid-template-columns: 1fr 1fr; }
.row.split { grid-template-columns: 140px 1fr; }
@media (max-width: 620px) { .row.two, .row.split { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.field .opt { color: var(--ink-3); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #d7e3dd; border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, textarea:hover, select:hover { border-color: #c2d4cc; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand-600); box-shadow: var(--ring); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--alert); background: var(--alert-bg); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2374857f' stroke-width='1.8' d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.err { color: var(--alert); font-size: .82rem; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; font-size: .93rem; }
.check input[type="checkbox"] { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--brand-600); cursor: pointer; }
.check label { cursor: pointer; padding: 5px 0; min-height: 34px; }
.switchrow { padding: 4px 0 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 1rem; font-weight: 600; border-radius: 12px; padding: 15px 26px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-primary:disabled { background: #cfe0d8; color: #fff; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--brand-700); border-color: #d7e3dd; }
.btn-ghost:hover { background: var(--brand-050); color: var(--brand-700); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

/* ---------------- Prüfen & bestellen ---------------- */
.review { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.review .rhead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--brand-050); padding: 12px 18px; font-size: .875rem; font-weight: 600; color: var(--brand-900);
}
.review .rhead button {
  background: none; border: 0; color: var(--brand-600); font: inherit; font-size: .85rem;
  font-weight: 500; cursor: pointer; text-decoration: underline; padding: 0;
}
.review .rbody { padding: 16px 18px; font-size: .95rem; }
.review .rbody p { margin: 0 0 .35em; }
.review .rbody p:last-child { margin: 0; }

.payline {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 22px; background: #fcfefd;
}
.payline .pic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-100); display: grid; place-items: center; color: var(--brand-700); }
.payline .pic svg { width: 22px; height: 22px; }

/* ---------------- Zusammenfassung ---------------- */
.summary { position: sticky; top: 78px; }
.sum-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-item .n { font-size: .93rem; color: var(--ink-2); }
.sum-item .n small { display: block; color: var(--ink-3); font-size: .8rem; }
.sum-item .v { font-weight: 600; color: var(--brand-900); white-space: nowrap; }
.sum-empty { color: var(--ink-3); font-size: .92rem; padding: 6px 0 12px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .94rem; }
.sum-line > :last-child { white-space: nowrap; font-weight: 500; color: var(--ink); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
}
.sum-total span { font-weight: 600; color: var(--brand-900); }
.sum-total strong { font-size: 1.5rem; font-weight: 700; color: var(--brand-900); white-space: nowrap; }
.freebar { margin: 12px 0 0; }
.freebar .track { height: 6px; background: var(--brand-100); border-radius: 999px; overflow: hidden; }
.freebar .fill { height: 100%; background: var(--brand); width: 0; transition: width .3s ease; }
.trust { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.trust li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .85rem; color: var(--ink-3); }
.trust svg { width: 16px; height: 16px; color: var(--brand-600); margin-top: 3px; }

/* Mobile Abschlussleiste */
.mobilebar { display: none; }
.mobilebar[hidden] { display: none !important; }
@media (max-width: 980px) {
  .summary { position: static; }
  .mobilebar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 14px; align-items: center;
    justify-content: space-between; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(22, 53, 42, .07);
  }
  .mobilebar .mb-sum { font-size: .8rem; color: var(--ink-3); }
  .mobilebar .mb-sum b { display: block; font-size: 1.16rem; color: var(--brand-900); }
  .mobilebar .btn { padding: 13px 20px; }
  body.has-bar .funnel { padding-bottom: 108px; }
}

/* ---------------- Bestätigung ---------------- */
.done-hero { text-align: left; }
.done-hero .tick {
  width: 58px; height: 58px; border-radius: 50%; background: var(--brand-600); color: #fff;
  display: grid; place-items: center; margin-bottom: 18px;
}
.done-hero .tick svg { width: 30px; height: 30px; }
.ordernum {
  display: inline-flex; gap: 10px; align-items: baseline; background: var(--brand-050);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin: 4px 0 22px;
}
.ordernum b { font-size: 1.18rem; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.timeline .dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center; font-size: .82rem; font-weight: 600;
}
.timeline b { display: block; color: var(--brand-900); font-weight: 600; }

/* ---------------- Inhaltsbereiche ---------------- */
.info { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0; }
.info .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .info .grid { grid-template-columns: 1fr; gap: 32px; } }
.dose { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dose li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; font-size: .96rem; }
.dose .k {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-050); border: 1px solid var(--line);
  color: var(--brand-700); display: grid; place-items: center; font-weight: 600; font-size: .85rem;
}
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--brand-900); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand-600); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 2px; font-size: .95rem; }

.legal {
  background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0;
}
.legal .box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px;
  font-size: .875rem; line-height: 1.62; color: var(--ink-2);
}
.legal .box h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.legal .box .warn { color: var(--brand-900); font-weight: 600; }
.legal .box dl { display: grid; grid-template-columns: 190px 1fr; gap: 6px 20px; margin: 16px 0 0; }
.legal .box dt { color: var(--ink-3); }
.legal .box dd { margin: 0; }
@media (max-width: 620px) { .legal .box dl { grid-template-columns: 1fr; gap: 2px; } .legal .box dd { margin-bottom: 10px; } }

/* ---------------- Fußzeile ---------------- */
.site-footer { background: var(--paper); padding: 38px 0 56px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand-700); text-decoration: underline; }
.site-footer img { height: 34px; margin-bottom: 12px; }

.hidden { display: none !important; }
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--brand-050);
  border-radius: 12px; padding: 14px 18px; font-size: .9rem; margin: 0 0 20px; color: var(--ink-2);
}
.notice.draft { border-left-color: var(--alert); background: var(--alert-bg); }
