/* Einstellungen → Paket, Credits nachkaufen, Rechnungen, WhatsApp-Nummer buchen (app/abo.js, app/whatsapp.js) – Look der Landingpage: Lime/Schwarz, Geist */
.pk-box { display: block; flex: none; }
.pk-box img { display: block; width: auto; height: 100%; filter: drop-shadow(0 18px 18px rgba(14,14,14,.2)) drop-shadow(0 3px 5px rgba(14,14,14,.12)); }

/* Aktuelles Paket: dunkle Karte mit Produktbox */
.pk-aktuell { position: relative; display: flex; gap: 28px; align-items: center; margin-top: 18px; padding: 28px 30px; border-radius: 28px; background: var(--text); color: #f3f3f1; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(14,14,14,.6); }
.pk-aktuell::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(185,242,124,.22), transparent 70%); pointer-events: none; }
.pk-box.gross { height: 190px; }
.pk-aktuell .pk-box img { filter: drop-shadow(0 22px 26px rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(185,242,124,.18)); }
.pk-aktuell-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.pk-marke { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gruen); }
.pk-aktuell-kopf { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pk-aktuell-kopf h3 { font-size: 44px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.pk-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gruen); color: var(--text); }
.pk-status.aus { background: #3a3a36; color: #e8e8e2; }
.pk-credits { margin-top: 18px; max-width: 460px; }
.pk-credits-zahl { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pk-credits-zahl b { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pk-credits-zahl span { color: #a3a39b; font-size: 14px; }
.pk-balken { margin-top: 10px; height: 8px; border-radius: 999px; background: #2e2e2b; overflow: hidden; }
.pk-balken span { display: block; height: 100%; border-radius: inherit; background: var(--gruen); }
.pk-zusatz { margin-top: 8px; font-size: 14px; color: #d4d4cd; }
.pk-zusatz b { color: #fff; }
.pk-werte { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; }
.pk-werte dt { font-size: 12.5px; color: #a3a39b; }
.pk-werte dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.pk-werte small { color: #a3a39b; font-weight: 400; }
.pk-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.pk-link { color: #d4d4cd; font-size: 14px; text-decoration-color: #5a5a54; }
.pk-link:hover { color: #fff; text-decoration-color: #fff; }

/* Knöpfe wie auf der Landingpage */
.pk-knopf { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px; background: var(--text); color: #fff; font-weight: 650; font-size: 15px; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; }
.pk-knopf:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.pk-knopf:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.pk-knopf:disabled, .pk-knopf[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.pk-knopf.gruen, .pk-knopf.lime { background: var(--gruen); color: var(--text); }
.pk-knopf.hell { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.pk-knopf.hell:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.pk-aktuell .pk-knopf.hell { background: #f3f3f1; box-shadow: none; }

.pk-wechsel-hinweis { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 14px; padding: 14px 18px; border-radius: 18px; background: var(--gruen-soft); font-size: 14.5px; }

/* Paket wechseln */
.pk-wahl { margin-top: 30px; }
.pk-wahl-kopf { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; }
.pk-wahl-kopf h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.pk-schalter { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pk-schalter button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--muted); }
.pk-schalter button.aktiv { background: var(--text); color: #fff; }
.pk-schalter button:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.pk-spar { font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: var(--gruen); color: var(--text); font-weight: 700; }
.pk-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pk-karte { position: relative; display: flex; flex-direction: column; padding: 46px 24px 22px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pk-karte .pk-box { height: 132px; margin: 0 auto 14px; }
.pk-karte h4 { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.pk-preis { margin-top: 10px; font-size: 44px; font-weight: 650; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.pk-preis small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pk-preis-text { margin-top: 8px; min-height: 40px; font-size: 13.5px; color: var(--muted); }
.pk-karte ul { list-style: none; display: grid; gap: 9px; margin: 16px 0 20px; font-size: 14.5px; color: #3c3c37; }
.pk-karte li { display: grid; grid-template-columns: 24px 1fr; align-items: start; }
.pk-karte li svg, .pk-dialog-liste svg, .cr-vorteile svg { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--gruen); stroke: var(--text); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; padding: 3px; box-sizing: border-box; }
.pk-karte li.nein { color: var(--muted); }
.pk-karte li.nein svg { background: none; stroke: #a3a39b; padding: 0; }
.pk-karte li b { color: var(--text); font-weight: 650; }
.pk-karte-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.pk-karte-fuss .pk-knopf { width: 100%; white-space: nowrap; }
.pk-notiz { font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }
.pk-notiz.klein { font-size: 12.5px; font-weight: 500; }
.pk-band { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gruen); color: var(--text); }
.pk-band.hell { background: var(--text); color: var(--gruen); }
.pk-karte.empfohlen { box-shadow: inset 0 0 0 2px var(--text); }
.pk-karte.aktuell { background: var(--text); color: #f3f3f1; box-shadow: 0 0 0 3px var(--gruen); }
.pk-karte.aktuell .pk-preis small, .pk-karte.aktuell .pk-preis-text, .pk-karte.aktuell .pk-notiz { color: #a3a39b; }
.pk-karte.aktuell ul { color: #d4d4cd; }
.pk-karte.aktuell li b { color: #fff; }
.pk-karte.aktuell .pk-box img { filter: drop-shadow(0 22px 26px rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(185,242,124,.18)); }

/* Dialog Paketwechsel */
.pk-dialog { margin: auto; border: 0; padding: 0; border-radius: 28px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.pk-dialog::backdrop { background: rgba(14,14,14,.55); }
.pk-dialog-innen { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.pk-dialog h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.15; }
.pk-box.dialog { height: 110px; align-self: center; }
.pk-dialog-weg { color: var(--muted); font-size: 14px; }
.pk-summe { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 16px 18px; border-radius: 18px; background: var(--text); color: #fff; }
.pk-summe span { font-weight: 600; }
.pk-summe b { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; color: var(--gruen); font-variant-numeric: tabular-nums; }
.pk-summe small { grid-column: 1 / -1; color: #a3a39b; font-size: 13px; }
.pk-zeilen summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.pk-zeilen ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; font-size: 13.5px; }
.pk-zeilen li { display: flex; justify-content: space-between; gap: 12px; }
.pk-zeilen li span { color: var(--muted); }
.pk-zeilen b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-dialog-liste { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.pk-dialog-liste li { display: grid; grid-template-columns: 26px 1fr; }
.pk-dialog-knoepfe { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pk-dialog-knoepfe .btn-small { margin: 0; }
.pk-dialog-agb { text-align: right; }
.pk-haken { width: 56px; height: 56px; border-radius: 50%; background: var(--gruen); display: grid; place-items: center; font-size: 28px; font-weight: 800; align-self: center; }

/* Credits nachkaufen */
.cr-stand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cr-stand > div { padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.cr-stand span { display: block; font-size: 13px; color: var(--muted); }
.cr-stand b { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cr-stand > div:first-child { background: var(--text); color: #fff; }
.cr-stand > div:first-child span { color: #a3a39b; }
.cr-stand > div:first-child b { color: var(--gruen); }
.cr-vorteile { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.cr-vorteile li { display: inline-flex; align-items: flex-start; gap: 7px; }
.cr-vorteile svg { flex: none; }
.cr-vorteile li svg { margin-top: 1px; }
.cr-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.cr-karte { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cr-karte.beliebt { box-shadow: inset 0 0 0 2px var(--text), 0 24px 50px -30px rgba(14,14,14,.45); transform: translateY(-6px); }
.cr-karte.dunkel { background: var(--text); color: #f3f3f1; }
.cr-marke { position: absolute; top: -12px; left: 22px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--text); color: var(--gruen); }
.cr-karte.dunkel .cr-marke { background: var(--gruen); color: var(--text); }
.cr-menge { font-size: 15px; color: var(--muted); }
.cr-menge b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.cr-karte.dunkel .cr-menge, .cr-karte.dunkel .cr-tausend, .cr-karte.dunkel .cr-preis small { color: #a3a39b; }
.cr-karte.dunkel .cr-menge b { color: #fff; }
.cr-preis { margin-top: 12px; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.cr-preis small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.cr-tausend { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.cr-spar { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--gruen); color: var(--text); font-size: 12px; font-weight: 700; }
.cr-gegenwert { list-style: none; display: grid; gap: 5px; margin: 16px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: #3c3c37; }
.cr-gegenwert b { color: var(--text); font-variant-numeric: tabular-nums; }
.cr-karte.dunkel .cr-gegenwert { border-top-color: #2e2e2b; color: #d4d4cd; }
.cr-karte.dunkel .cr-gegenwert b { color: #fff; }
.cr-karte .pk-knopf { margin-top: auto; width: 100%; white-space: nowrap; }
.cr-tipp { margin-top: 10px; }
.cr-auto:empty { display: none; }
.cr-auto { container-type: inline-size; margin-top: 22px; padding: 20px 20px 16px; border-radius: 22px; background: var(--bg); }
.cr-auto-felder { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 10px 12px; align-items: end; margin-top: 16px; }
.cr-auto-felder label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.cr-auto-felder select { width: 100%; min-width: 0; height: 46px; text-overflow: ellipsis; }
.cr-auto-felder .pk-knopf { white-space: nowrap; }
.cr-auto > .sub { margin-top: 10px; }
.cr-auto .msg { margin-top: 10px; }
@container (max-width: 620px) { .cr-auto-felder { grid-template-columns: 1fr; } .cr-auto-felder .pk-knopf { width: 100%; } }

/* Rechnungen */
.re-liste { margin-top: 16px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.re-zeile { display: grid; grid-template-columns: 92px minmax(0, 1fr) 118px 100px 196px; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.re-zeile:first-child { border-top: 0; }
.re-kopf { background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.re-datum { font-variant-numeric: tabular-nums; color: var(--muted); }
.re-was b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.re-was small, .re-betrag small { display: block; font-size: 12.5px; color: var(--muted); }
.re-betrag { font-weight: 650; font-variant-numeric: tabular-nums; }
.re-links { display: flex; gap: 6px; justify-content: flex-end; }
.re-links .btn-small { margin: 0; }
.re-leer { margin-top: 12px; padding: 22px; border-radius: 20px; background: var(--bg); }

/* WhatsApp-Nummer buchen (app/whatsapp.js): Nutzen hell und ruhig, darunter die Buchungskarte (Preis links, Auswahl rechts; schmal untereinander) */
.wa-angebot { margin-top: 18px; padding: 24px 24px 22px; border-radius: 24px; background: var(--bg); }
.wa-angebot h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.15; max-width: 560px; }
.wa-angebot h3 em { font-style: normal; background: linear-gradient(transparent 60%, var(--gruen) 60%, var(--gruen) 92%, transparent 92%); padding: 0 2px; }
.wa-angebot-text { margin-top: 8px; max-width: 620px; color: var(--muted); font-size: 15px; }
.wa-nutzen { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 18px; }
.wa-nutzen li { display: grid; grid-template-columns: 26px 1fr; align-items: start; padding: 14px 14px 14px 12px; border-radius: 16px; background: var(--surface); font-size: 13.5px; color: var(--muted); }
.wa-nutzen li b { display: block; margin-bottom: 2px; font-size: 14.5px; color: var(--text); }
.wa-nutzen svg { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--gruen); stroke: var(--text); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; padding: 3px; box-sizing: border-box; }
.wa-buchung { container-type: inline-size; margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 28px; align-items: center;
  padding: 22px 24px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 5px 0 0 var(--gruen); }
.wa-betrag { font-size: 46px; font-weight: 700; letter-spacing: -0.055em; line-height: 1; color: var(--text); }
.wa-betrag small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.wa-kasse-text { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.wa-preisblock .wa-mindest { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.wa-kasse { min-width: 0; }
.wa-kasse .wa-buchen-form { margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.wa-kasse .wa-buchen-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); white-space: normal; }
.wa-kasse .wa-buchen-form select { width: 100%; min-width: 0; max-width: 100%; height: 48px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.wa-kasse .pk-knopf { width: 100%; white-space: nowrap; }
.wa-auto { margin-top: 14px; padding: 16px 18px; border-radius: 20px; background: var(--bg); }
.wa-auto-schalter { display: grid !important; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; cursor: pointer; font-weight: 400 !important; }
.wa-auto-schalter input { appearance: none; -webkit-appearance: none; width: 44px !important; height: 26px !important; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; }
.wa-auto-schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.wa-auto-schalter input:checked { background: var(--text); }
.wa-auto-schalter input:checked::after { transform: translateX(18px); background: var(--gruen); }
.wa-auto-schalter input:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.wa-auto-text b { display: block; font-size: 14.5px; color: var(--text); }
.wa-auto-text span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.wa-auto .msg { margin-top: 8px; }
@container (max-width: 560px) { .wa-buchung > * { grid-column: 1 / -1; } }
@supports not (container-type: inline-size) { .wa-buchung { grid-template-columns: 1fr; } }

/* Drei Karten nur, wenn jede mindestens ~200 px bekommt (Breite des Detailbereichs, nicht des Fensters), sonst untereinander */
.pk-wahl, .cr-bereich { container-type: inline-size; }
@container (max-width: 640px) {
  .pk-grid, .cr-grid { grid-template-columns: 1fr; }
  .cr-karte.beliebt { transform: none; }
}
@media (max-width: 640px) {
  .pk-aktuell { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 14px; }
  .pk-box.gross { height: 140px; align-self: center; }
  .pk-aktuell-kopf h3 { font-size: 36px; }
  .pk-preis { font-size: 38px; }
  .cr-stand { grid-template-columns: 1fr 1fr; }
  .cr-stand > div:first-child { grid-column: 1 / -1; }
  .re-kopf { display: none; }
  .re-zeile { grid-template-columns: 1fr auto; grid-template-areas: "was betrag" "datum status" "links links"; gap: 6px 12px; }
  .re-zeile > :nth-child(1) { grid-area: datum; }
  .re-zeile > :nth-child(2) { grid-area: was; }
  .re-zeile > :nth-child(3) { grid-area: betrag; text-align: right; }
  .re-zeile > :nth-child(4) { grid-area: status; justify-self: end; }
  .re-zeile > :nth-child(5) { grid-area: links; justify-content: flex-start; }
  .wa-angebot { padding: 20px 16px; }
  .wa-buchung { padding: 20px 18px; }
  .pk-dialog-innen { padding: 22px 18px 18px; }
  .pk-dialog-knoepfe { flex-direction: column-reverse; }
  .pk-dialog-knoepfe > * { width: 100%; }
}

/* Starter: Zusatz-Credits erst ab Pro */
.cr-nur-abo { margin-top: 20px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, #e3e3dd); display: grid; gap: 10px; justify-items: start; }

/* Bestellungen & Vertragsunterlagen (Einstellungen → Rechnungen) */
.re-bestellungen { margin-top: 26px; }
.re-bestellung { grid-template-columns: 92px minmax(0, 1fr) 118px 110px; }
.re-bestellung .re-dok { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 640px) { .re-bestellung .re-dok { grid-area: links; } }
