/* ============================================================
   Shelly Optima — Shop, Login, Bestellungen
   Ergänzt css/app.css (gleiche Variablen und Handschrift).
   ============================================================ */

/* ---------- Kopfnavigation ---------- */
.kopf-in { gap: 16px; }
.marke { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }

.wortmarke { display: block; line-height: 1; }
.wortmarke b {
  display: block; font-size: 16px; font-weight: 800;
  letter-spacing: .06em; color: var(--ink);
}
.wortmarke i {
  display: block; font-style: normal; font-size: 8.5px; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase; color: var(--gold-ink);
  margin-top: 3px;
}
.marke-teiler { width: 1px; height: 26px; background: var(--line); flex: none; }
.marke-produkt { font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.kopf-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.kopf-nav a { padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); }
.kopf-nav a:hover { color: var(--ink); background: var(--line-2); }
.kopf-nav a.hier { color: var(--ink); font-weight: 600; }
.kopf-nav a.knopf-klein {
  border: 1px solid var(--line); border-radius: var(--r-pille);
  color: var(--ink); margin-left: 4px; padding: 6px 14px;
}
.kopf-nav a.knopf-klein:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }

/* ---------- Knöpfe (Pillenform wie auf codeflux.ch) ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--r-pille); padding: 12px 24px;
  font-size: 15px; font-weight: 640; text-decoration: none; cursor: pointer;
  transition: transform .1s, box-shadow .15s;
}
.knopf:hover { box-shadow: 0 6px 18px -8px rgba(19,28,54,.5); transform: translateY(-1px); }
.knopf:active { transform: none; }
.knopf:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.knopf-zweit {
  background: var(--gold-soft); color: var(--ink); border: 0;
}
.knopf-zweit:hover { box-shadow: 0 6px 18px -8px rgba(198,161,91,.6); }

/* ---------- Startseite: Hero ---------- */
.held {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px;
  align-items: center; margin: 6px 0 4px;
}
.held-text { padding-top: 4px; min-width: 0; }
.kicker {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700; margin-bottom: 10px;
}
.held h1 {
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.08;
  letter-spacing: -.032em; margin: 0 0 14px; font-weight: 690;
}
.lead { font-size: 16.5px; color: var(--muted); line-height: 1.5; max-width: 52ch; margin-bottom: 18px; }
.lead b { color: var(--ink); font-weight: 620; }

.merkmale { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.merkmale li { padding-left: 24px; position: relative; }
.merkmale li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.merkmale i { font-style: italic; }

.held-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cta-neben { line-height: 1.3; }
.cta-neben b { display: block; font-size: 20px; font-weight: 690; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cta-neben span { font-size: 12.5px; color: var(--muted); }

.siegel { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); }
.siegel li { padding-left: 19px; position: relative; }
.siegel li::before {
  content: ""; position: absolute; left: 0; top: .22em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--t-nieder); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.4 3.4 8.6l1.1-1.1 1.7 1.7 4.3-4.3 1.1 1.1z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.4 3.4 8.6l1.1-1.1 1.7 1.7 4.3-4.3 1.1 1.1z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Produktbilder ---------- */
.held-bild {
  margin: 0; min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px; overflow: hidden;
}
.held-bild picture { display: block; }
.held-bild img { width: 100%; height: auto; border-radius: 6px; display: block; }

.bild-platzhalter {
  aspect-ratio: 1200 / 969; display: flex; align-items: center; justify-content: center;
  background: var(--line-2); border-radius: 6px; color: var(--muted); font-size: 13px;
}
.bild-platzhalter.klein { aspect-ratio: 1 / 1; font-size: 12px; }


/* Bildnachweis unter dem Hero-Bild */
.bild-note {
  font-size: 11.5px; color: var(--muted); text-align: center;
  padding: 9px 6px 2px; line-height: 1.4;
}

/* ---------- Rechnung ---------- */
.rechnung { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.rz {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 15px;
  display: flex; flex-direction: column; gap: 3px;
}
.rz-beste { border-color: var(--t-nieder); background: var(--t-nieder-bg); }
.rz-kopf { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rz-tag {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px;
}
.rz-beste .rz-tag { border-color: color-mix(in srgb, var(--t-nieder) 45%, transparent); color: var(--t-nieder); }
.rz-preis { font-size: 27px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.rz-preis span { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rz-jahr { font-size: 14px; font-variant-numeric: tabular-nums; }
.rz-spar { font-size: 14px; font-weight: 680; color: var(--t-nieder); }
.rz-note { font-size: 12px; color: var(--muted); line-height: 1.42; margin-top: 6px; }

/* ---------- Schritte ---------- */
.schritte { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.schritte li { counter-increment: s; padding-top: 38px; position: relative; }
.schritte li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--card);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.schritte h3 { font-size: 15px; font-weight: 650; margin: 0 0 5px; }
.schritte p { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 2px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 13px 34px 13px 0; position: relative;
  font-size: 15px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--gold-ink); }
.faq details p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; max-width: 68ch; }

/* ---------- Abschluss ---------- */
.abschluss { text-align: center; padding: 28px 18px; }
.abschluss h2 { margin-bottom: 12px; }
.ab-preis { margin-bottom: 16px; }
.ab-preis .gross { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ab-preis .klein { font-size: 13px; color: var(--muted); }

/* ---------- Mitlaufende Leiste (nur Handy) ---------- */
.leiste { display: none; }

/* ---------- Datenblatt ---------- */
.datenblatt { width: 100%; font-size: 14px; }
.datenblatt th {
  text-align: left; font-weight: 500; color: var(--muted); width: 38%;
  padding: 7px 12px 7px 0; vertical-align: top; border-bottom: 1px solid var(--line-2);
}
.datenblatt td { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.datenblatt tr:last-child th, .datenblatt tr:last-child td { border-bottom: 0; }

/* ---------- Formular ---------- */
.karte-schmal { max-width: 440px; margin: 0 auto; }
.karte-text { max-width: 76ch; }
.karte-text h3 { font-size: 15px; margin: 20px 0 6px; font-weight: 650; }
.karte-text p, .karte-text ul { margin-bottom: 10px; color: var(--ink); font-size: 14.5px; }
.karte-text ul { padding-left: 20px; display: grid; gap: 5px; }

.formular { display: grid; gap: 14px; }
.f-block { display: grid; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.f-block:last-of-type { border-bottom: 0; }
.f-block h3 { font-size: 14px; font-weight: 650; margin: 0; }
.f-zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.feld { display: grid; gap: 5px; min-width: 0; }
.feld > span { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.feld > span i { font-style: normal; font-weight: 400; }
.feld input, .feld select, .feld textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 11px; width: 100%; min-width: 0;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px;
  border-color: var(--gold);
}
.feld em, em.fehler { font-style: normal; font-size: 12px; color: var(--t-hoch); }
.feld-kurz { max-width: 150px; align-self: start; }

.honig { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.radio {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; cursor: pointer;
}
.radio:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold-soft) 55%, transparent); }
.radio input { margin-top: 3px; }
.radio b { display: block; font-size: 14.5px; font-weight: 620; }
.radio i { font-style: normal; font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.radio.agb { grid-template-columns: 20px 1fr; font-size: 13.5px; }

/* ---------- Summe ---------- */
.summe { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 13px; align-self: end; }
.s-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 2px 0; }
.s-zeile b { font-variant-numeric: tabular-nums; }
.s-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 7px; font-size: 15px; font-weight: 650; }

/* ---------- Bestellung / Status ---------- */
.best-raster {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px; margin-bottom: 16px;
}
.posten { width: 100%; font-size: 14.5px; margin-bottom: 14px; }
.posten td { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.posten td.num, .posten .re { text-align: right; font-variant-numeric: tabular-nums; }
.posten tr.total td { font-weight: 680; font-size: 16px; border-bottom: 0; border-top: 1px solid var(--line); }
.posten tr.tiny td { border: 0; padding-top: 2px; }

.zahlbox {
  background: var(--line-2); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px;
}
.zahlbox h3 { font-size: 14px; margin: 0 0 8px; font-weight: 650; }
.zahlbox .posten td { border-bottom-color: color-mix(in srgb, var(--ink) 9%, transparent); }

.lieferadresse { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }

.status {
  font-size: 12px; font-weight: 650; padding: 3px 11px; border-radius: 999px;
  background: var(--t-leer-bg); color: var(--t-leer); white-space: nowrap;
}
.status-neu       { background: var(--t-mittel-bg); color: var(--t-mittel); }
.status-bezahlt   { background: var(--t-nieder-bg); color: var(--t-nieder); }
.status-versendet { background: var(--gold-soft); color: var(--gold-ink); }
.status-storniert { background: var(--t-hoch-bg); color: var(--t-hoch); }

.gut {
  margin-bottom: 14px; padding: 10px 13px; border-radius: var(--r-sm);
  background: var(--t-nieder-bg); color: var(--t-nieder); font-size: 13.5px;
  border: 1px solid color-mix(in srgb, var(--t-nieder) 28%, transparent);
}

/* ---------- Bestellliste ---------- */
.bestellliste { width: 100%; min-width: 760px; font-size: 13.5px; }
.bestellliste th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 650; padding: 0 10px 7px 0; border-bottom: 1px solid var(--line);
}
.bestellliste td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.bestellliste td.re, .bestellliste th.re { text-align: right; padding-right: 10px; }
.statusform select {
  font: inherit; font-size: 12.5px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px;
}

.blattzeile { margin: -4px 0 4px; }

/* ---------- Fuss ---------- */
.fuss-shop { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.fuss-in {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); padding-bottom: 14px;
}
.fuss-in b { color: var(--ink); }
.fuss-nav { display: flex; gap: 16px; align-items: flex-start; }

/* ---------- Knopfgrösse ---------- */
.knopf-gross { padding: 14px 28px; font-size: 16px; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .held { grid-template-columns: 1fr; gap: 20px; }
  .held-bild { order: -1; }
  .held h1 { font-size: 29px; }
  .lead { font-size: 15.5px; }
  .rechnung { grid-template-columns: 1fr; }
  .schritte { grid-template-columns: 1fr; gap: 14px; }
  .schritte li { padding-top: 0; padding-left: 40px; min-height: 28px; }
  .abschluss { padding: 22px 14px 26px; }
  .held-cta { gap: 12px; }
  .held-cta .knopf { flex: 1 1 100%; }

  /* Mitlaufende Bestellleiste */
  .leiste {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--card); border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px -12px rgba(0,0,0,.35);
  }
  .leiste b { display: block; font-size: 17px; font-weight: 690; font-variant-numeric: tabular-nums; }
  .leiste span { font-size: 11.5px; color: var(--muted); }
  .leiste .knopf { padding: 10px 20px; }
  body { padding-bottom: 72px; }

  .f-zeile2 { grid-template-columns: 1fr; }
  .feld-kurz { max-width: none; }
  .kopf-nav { font-size: 13px; gap: 0; }
  .kopf-nav a { padding: 6px 7px; }
  .kopf-nav a.knopf-klein { padding: 6px 12px; }
  .kopf-in { height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .marke-teiler, .marke-produkt { display: none; }
  .wortmarke b { font-size: 15px; }
  .datenblatt th { width: 45%; }
  .fuss-in { flex-direction: column; gap: 12px; }
}
