/* CannaFree App — alles im Shop-CI: Schwarz #12170f, Grün #7fb857 / #9ad072, Hinweistext #b9c7b4, ein Knopftyp (6 px Ecken),
   Schalter wie in Konto → Benachrichtigungen, Ladesymbol = grüner Ring. Keine Dauer-Animationen. */

.cfa-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; background: #12170f; border: 1px solid #7fb857; color: #9ad072; border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; cursor: pointer; box-shadow: none; text-shadow: none; transition: background .15s, color .15s; }
.cfa-knopf:hover, .cfa-knopf:focus-visible { background: #7fb857; color: #12170f; outline: none; }
.cfa-knopf:disabled { opacity: .7; cursor: default; }
.cfa-knopf-leise { border-color: rgba(127,184,87,.45); color: #b9c7b4; }
.cfa-knopf-klein { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.cfa-knopf[hidden] { display: none; }
.cfa-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cfa-ring { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(154,208,114,.25); border-top-color: #9ad072; border-radius: 50%; animation: cfa-dreh .7s linear infinite; }
@keyframes cfa-dreh { to { transform: rotate(360deg); } }

/* Schalter: gleiche Maße und Farben wie .cfs-schalter im Konto */
.cfa-schalter { position: relative; display: inline-block; flex: none; width: 44px; height: 24px; cursor: pointer; }
.cfa-schalter input { position: absolute; opacity: 0; width: 0; height: 0; }
.cfa-schalter span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(127,184,87,.45); transition: background .15s; }
.cfa-schalter span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #d6e8c4; transition: transform .15s, background .15s; }
.cfa-schalter input:checked + span { background: #7fb857; }
.cfa-schalter input:checked + span::after { transform: translateX(20px); background: #12170f; }
.cfa-schalter input:focus-visible + span { box-shadow: 0 0 0 2px rgba(154,208,114,.6); }

/* Karten (Danke-Seite, Konto) — wie die Konto-Kacheln */
.cfa-karte { display: flex; gap: 16px; align-items: flex-start; margin: 22px 0; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(127,184,87,.4); background: #141b11; color: rgba(255,255,255,.97); }
.cfa-karte[hidden] { display: none; }
.cfa-karte-icon img { display: block; width: 56px; height: 56px; border-radius: 14px !important; }
.cfa-karte-inhalt { min-width: 0; }
.cfa-karte h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: rgba(255,255,255,.97); }
.cfa-karte p { margin: 0; color: #b9c7b4; font-size: 14.5px; line-height: 1.5; }
.cfa-karte .cfa-knoepfe { margin-top: 12px; }
@media (max-width: 480px) { .cfa-karte { flex-direction: column; gap: 12px; } }

/* Blatt: fährt unten ein (Handy) bzw. mittig (groß) */
.cfa-blatt-hg { position: fixed; inset: 0; z-index: 2147483647; /* über Trusted-Shops-Siegel und Bewertungsleiste */ display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0); transition: background .2s; }
.cfa-blatt-hg.cfa-offen { background: rgba(0,0,0,.55); }
.cfa-blatt { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border: 1px solid rgba(127,184,87,.5); border-bottom: 0;
  background: linear-gradient(180deg, #1a2416 0%, #12170f 100%); color: rgba(255,255,255,.97); box-shadow: 0 -10px 30px rgba(0,0,0,.45); transform: translateY(100%); transition: transform .22s ease-out; }
.cfa-offen .cfa-blatt { transform: none; }
@media (min-width: 700px) { .cfa-blatt-hg { align-items: center; } .cfa-blatt { border-radius: 14px; border-bottom: 1px solid rgba(127,184,87,.5); transform: translateY(20px); opacity: 0; transition: transform .2s, opacity .2s; } .cfa-offen .cfa-blatt { opacity: 1; } }
.cfa-blatt h3 { margin: 12px 0 10px; font-size: 19px; font-weight: 800; color: rgba(255,255,255,.97); }
.cfa-blatt p { margin: 0 0 10px; color: #b9c7b4; font-size: 14.5px; line-height: 1.5; }
.cfa-blatt a { color: #9ad072; text-decoration: underline; }
.cfa-blatt-icon { display: block; width: 56px; height: 56px; border-radius: 14px; }
.cfa-zu { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #9ad072; cursor: pointer; }
.cfa-zu:hover { background: rgba(127,184,87,.15); }
.cfa-wahl { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(127,184,87,.18); }
.cfa-wahl .cfa-schalter { margin-top: 2px; }
.cfa-wahl strong { display: block; margin-bottom: 3px; font-size: 15px; color: rgba(255,255,255,.97); }
.cfa-wahl p { margin: 0; font-size: 13.5px; }
.cfa-klein { font-size: 12.5px !important; }
.cfa-meldung { min-height: 1.2em; margin: 10px 0 0 !important; font-size: 13.5px !important; font-weight: 700; color: #f0c36b !important; }
.cfa-meldung:empty { display: none; }
.cfa-schritte { margin: 0 0 6px 20px; padding: 0; color: rgba(255,255,255,.97); font-size: 14.5px; line-height: 1.6; }
.cfa-schritte li { margin: 6px 0; }
.cfa-inline { vertical-align: -4px; color: #9ad072; }

/* Hinweisleiste unten (nur Handy) */
.cfa-leiste { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 2147483646; display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 10px;
  border-radius: 12px; border: 1px solid rgba(127,184,87,.55); background: #12170f; box-shadow: 0 8px 24px rgba(0,0,0,.5); color: rgba(255,255,255,.97); transform: translateY(140%); transition: transform .22s ease-out; }
.cfa-leiste.cfa-offen { transform: none; }
.cfa-leiste img { flex: none; width: 42px; height: 42px; border-radius: 10px; }
.cfa-leiste-text { flex: 1; min-width: 0; line-height: 1.25; }
.cfa-leiste-text strong { display: block; font-size: 14.5px; }
.cfa-leiste-text span { display: block; font-size: 12.5px; color: #b9c7b4; }
.cfa-leiste .cfa-zu { position: static; flex: none; width: 36px; height: 36px; }

@media (prefers-reduced-motion: reduce) { .cfa-blatt, .cfa-leiste, .cfa-blatt-hg { transition: none; } }

/* QR-Code am PC (Konto- und Danke-Karte); am Handy der Knopf. Weißer Grund für sicheres Scannen, Rahmen im CI. */
.cfa-handy .cfa-nur-pc, .cfa-pc .cfa-nur-handy { display: none !important; }
.cfa-qr-zeile { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.cfa-qr { flex: none; display: block; width: 164px; height: 164px; padding: 6px; background: #fff; border: 1px solid #7fb857; border-radius: 6px; }
.cfa-qr-zeile p { max-width: none; } /* 14.10.: keine schmale Spalte, Text fließt frei */


/* ---------- App-Karte im Konto → Benachrichtigungen (0.2.4, 15.10.: Feinschliff nach Felix)
   Raster: eine Innenkante (Polster der Karte), an der Logo-Linien, Titel und rechte Spalte beginnen. Vorteils-Kasten = genau so hoch
   wie Titel + Beschreibung (Grid-Stretch, Breite = Sollhöhe bei zwei Zeilen). Rechts keine Trennlinie, keine Fläche bis an den Rand:
   Vorschau, QR im Scan-Rahmen mittig, Handlungsaufforderung groß und einzeilig (Schriftgröße folgt der Spaltenbreite). ---------- */
.cfa-karte-logo img { width: 120px !important; height: auto !important; border-radius: 0 !important; }
.cfa-app { container: cfa-app / inline-size; display: block; position: relative; overflow: hidden; margin: 28px 0; padding: 0;
  border: 1px solid rgba(127,184,87,.45); border-radius: 14px;
  background: radial-gradient(110% 80% at 100% 0%, rgba(127,184,87,.16) 0%, rgba(127,184,87,0) 60%), linear-gradient(180deg, #172013 0%, #12170f 100%); }
.cfa-app[hidden] { display: none; }
.cfa-app-innen { --cfa-pad: 20px; --cfa-ik: 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: var(--cfa-pad); }
.cfa-app-text { display: flex; flex-direction: column; min-width: 0; }

/* Logo: die Kästchen-Linien des Logos (nicht der Leuchtschein) sitzen genau auf der Innenkante. Tinte im Bild 938×313: links 37, oben 47. */
.cfa-app-logo { --lw: 180px; display: block; flex: none; width: var(--lw); height: auto; max-width: none; border-radius: 0 !important;
  margin: calc(var(--lw) * -47 / 938) 0 calc(20px - var(--lw) * 37 / 938) calc(var(--lw) * -37 / 938); }
.cfa-logo-text { display: block; margin-bottom: 16px; font-size: 22px; font-weight: 800; line-height: 1.1; color: rgba(255,255,255,.97); }
.cfa-app h3.cfa-app-titel { margin: 0 0 10px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: rgba(255,255,255,.97); text-wrap: balance; }
.cfa-app p.cfa-app-lead { margin: 0 0 24px; max-width: none; font-size: 15.5px; line-height: 1.5; color: #c9d6c3; text-wrap: pretty; }

/* Vorteile: Kasten links, Höhe = Textblock (oben Titelkante, unten letzte Zeile) */
.cfa-app ul.cfa-app-vorteile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.cfa-app-vorteile li { display: grid; grid-template-columns: var(--cfa-ik) minmax(0, 1fr); align-items: stretch; column-gap: 14px; margin: 0; padding: 0; }
.cfa-app-vorteile li::before { display: none; content: none; }
.cfa-app-element { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--cfa-ik); min-height: 0;
  border: 1.5px solid rgba(154,208,114,.85); border-radius: 2px; color: #9ad072; background: rgba(18,23,15,.55); }
.cfa-app-element svg { display: block; width: 58%; height: 58%; stroke-width: 1.4; } /* Glyphe ≈ Texthöhe, Strich ≈ 2,3 px */
.cfa-ik-klein .cfa-app-element svg { width: 52%; height: 52%; }
.cfa-ik-klein .cfa-app-nr { top: 2px; left: 3px; font-size: 8px; }
.cfa-nw, .cfa-app-vt .cfa-nw { display: inline; white-space: nowrap; }
.cfa-app-nr { position: absolute; top: 3px; left: 5px; font-size: 9.5px; line-height: 1; font-weight: 700; color: #b9c7b4; font-variant-numeric: tabular-nums; }
.cfa-app-vt { display: block; min-width: 0; padding: 0; }
.cfa-app-vt strong { display: block; margin: 0 0 3px; font-size: 16px; line-height: 20px; font-weight: 800; color: rgba(255,255,255,.97); }
.cfa-app-vt span { display: block; font-size: 14px; line-height: 20.5px; color: #b9c7b4; text-wrap: pretty; }

/* Rechte Spalte (am Handy unten): Vorschau, dann QR bzw. Installieren-Knopf */
.cfa-app-buehne { container-type: inline-size; display: flex; flex-direction: column; align-items: stretch; gap: 22px; min-width: 0; padding: 26px 0 0; border: 0; border-top: 1px solid rgba(127,184,87,.22); background: none; }
.cfa-app-vorschau { display: grid; gap: 8px; }
.cfa-app-push { display: block; padding: 11px 14px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.07); box-shadow: 0 8px 22px rgba(0,0,0,.3); color: rgba(255,255,255,.97); }
.cfa-app-push-2 { margin: 0 12px; opacity: .78; }
.cfa-app-push-kopf { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9ad072; }
.cfa-app-push-kopf span { font-weight: 600; letter-spacing: 0; text-transform: none; color: #b9c7b4; }
.cfa-app-push strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 800; }
.cfa-app-push > span:last-child:not(.cfa-app-push-kopf) { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: #c9d6c3; }

.cfa-app-qr { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cfa-app-rahmen { position: relative; flex: none; padding: 14px; line-height: 0; }
.cfa-app-rahmen::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 2px solid #9ad072; border-radius: 4px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat; }
.cfa-app .cfa-qr { width: 176px; height: 176px; padding: 8px; border: 0; border-radius: 4px; background: #fff; }
/* Handlungsaufforderung: eine Zeile, so breit wie die Spalte (cqi = Breite der rechten Spalte), höchstens 28 px */
.cfa-app p.cfa-app-cta { margin: 18px 0 6px; max-width: none; font-size: clamp(17px, 6.7cqi, 28px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; color: rgba(255,255,255,.97); }
.cfa-app p.cfa-app-hinweis { margin: 0; max-width: none; font-size: 14px; line-height: 1.5; color: #b9c7b4; text-wrap: pretty; }
.cfa-app-handy { display: grid; gap: 10px; }
.cfa-knopf.cfa-app-knopf { width: 100%; min-height: 52px; font-size: 15px; }
.cfa-app p.cfa-app-klein { margin: 0; max-width: none; font-size: 13px; line-height: 1.45; text-align: center; color: #b9c7b4; text-wrap: pretty; }

/* Sehr schmale Handys (360 px): etwas kleinere Schrift, damit jede Beschreibung zweizeilig bleibt */
@container cfa-app (max-width: 369.98px) {
  .cfa-app-innen { --cfa-pad: 16px; --cfa-ik: 60px; }
  .cfa-app-vorteile li { column-gap: 12px; }
  .cfa-app-vt strong { font-size: 15px; line-height: 19px; }
  .cfa-app-vt span { font-size: 13.5px; line-height: 19px; }
}
@container cfa-app (min-width: 520px) {
  .cfa-app-innen { --cfa-pad: 30px; --cfa-ik: 66px; }
  .cfa-app-logo { --lw: 210px; }
  .cfa-app h3.cfa-app-titel { font-size: 30px; }
  .cfa-app-vt strong { font-size: 16.5px; line-height: 21px; }
  .cfa-app-vt span { font-size: 14.5px; line-height: 21px; }
}
/* Raster je Kartenbreite so gewählt, dass jede Vorteils-Beschreibung genau zwei Zeilen hat (Kasten = Textblock = quadratisch):
   < 750 untereinander einspaltig · 750–1139 untereinander, Vorteile zweispaltig, unten Vorschau | QR · 1140–1319 nebeneinander (rechts 300 px)
   · ab 1320 nebeneinander (rechts 360 px), größere Schrift. */
@container cfa-app (min-width: 750px) and (max-width: 1139.98px) {
  .cfa-app ul.cfa-app-vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .cfa-app-buehne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
  .cfa-app-buehne > .cfa-app-qr, .cfa-app-buehne > .cfa-app-handy { width: 300px; container-type: inline-size; }
}
@container cfa-app (min-width: 900px) and (max-width: 1139.98px) {
  .cfa-app-innen { --cfa-pad: 36px; }
  .cfa-app-logo { --lw: 230px; }
  .cfa-app h3.cfa-app-titel { font-size: 36px; }
  .cfa-app p.cfa-app-lead { font-size: 17px; }
  .cfa-app-buehne { grid-template-columns: minmax(0, 1fr) 320px; }
  .cfa-app-buehne > .cfa-app-qr, .cfa-app-buehne > .cfa-app-handy { width: 320px; }
}
@container cfa-app (min-width: 1140px) {
  .cfa-app-innen { --cfa-pad: 40px; --cfa-ik: 66px; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .cfa-app-text { justify-content: flex-start; }
  .cfa-app-logo { --lw: 250px; }
  .cfa-app h3.cfa-app-titel { font-size: 44px; margin: auto 0 12px; }
  .cfa-app p.cfa-app-lead { font-size: 18px; line-height: 1.55; margin-bottom: 0; text-wrap: pretty; }
  .cfa-app ul.cfa-app-vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; margin-top: auto; padding-top: 20px; } /* freier Platz verteilt sich gleich auf: Logo – Titel und Text – Vorteile */
  .cfa-app-vt strong { font-size: 16.5px; line-height: 21px; margin-bottom: 3px; }
  .cfa-app-vt span { font-size: 15px; line-height: 21px; }
  .cfa-app-buehne { justify-content: space-between; padding: 0; border-top: 0; gap: 22px; }
  .cfa-app .cfa-qr { width: 156px; height: 156px; }
  .cfa-app-rahmen { padding: 12px; }
  .cfa-app p.cfa-app-cta { margin-top: 14px; }
}
@container cfa-app (min-width: 1320px) {
  .cfa-app-innen { --cfa-ik: 76px; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
  .cfa-app-logo { --lw: 270px; }
  .cfa-app h3.cfa-app-titel { font-size: 50px; margin-bottom: 14px; }
  .cfa-app p.cfa-app-lead { font-size: 19.5px; line-height: 1.55; }
  .cfa-app ul.cfa-app-vorteile { gap: 36px 40px; }
  .cfa-app-vt strong { font-size: 18px; line-height: 24px; margin-bottom: 4px; }
  .cfa-app-vt span { font-size: 16px; line-height: 24px; }
  .cfa-app .cfa-qr { width: 164px; height: 164px; }
}
