/* assets/css/pricing.css — Preiskarten, Monat/Jahr-Umschalter, Preisrechner. */

.price-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-3); gap: 4px; margin-bottom: 34px; }
.price-toggle button {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  border: none; background: transparent; color: var(--ink-muted); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
}
.price-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-size: 10px; background: var(--accent-soft); color: var(--accent-strong); padding: 2px 6px; border-radius: 999px; }
/* Der "bis zu 50% sparen"-Zusatz ist in laengeren Sprachen (NL/PL) bei
   sehr schmalen Handys (<=380px) zu lang fuer den Umschalter - der
   Kern-Toggle (Monatlich/Jaehrlich) bleibt voll funktionsfaehig, nur
   das Badge verschwindet (Breiten-Audit 26.08.). */
@media (max-width: 380px) { .price-toggle .save { display: none; } }
:root[data-theme="dark"] .price-toggle .save { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price-toggle .save { color: var(--accent); } }

/* Drei Karten (Free / Pro hervorgehoben / Business). Unter 900px waere
   die dritte Spalte fuer die langen NL/FR-CTAs zu schmal - dann stapeln
   alle drei Karten untereinander. */
.price-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; margin-bottom: 22px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
/* Flex-Spalte, damit der CTA in allen drei Karten unten buendig sitzt -
   die Business-Karte ist durch ihre Leistungsliste hoeher als Free/Pro. */
.price-card { display: flex; flex-direction: column; border-radius: var(--r-lg); padding: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-card.highlight { border: 1.5px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.price-card .scope {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 3px 9px; border-radius: 999px; margin-bottom: 16px;
}
:root[data-theme="dark"] .price-card .scope { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price-card .scope { color: var(--accent); } }
.price-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.price-amount { font-family: var(--mono); font-weight: 700; font-size: 38px; letter-spacing: -.02em; line-height: 1; margin-bottom: 4px; }
.price-amount span { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.price-note { font-size: 13px; color: var(--ink-muted); margin-bottom: 20px; }
.price-card .btn { width: 100%; margin-top: auto; }

/* Business: "auf Anfrage" statt Zahl - kleiner gesetzt, aber auf derselben
   Zeilenhoehe wie die 38px-Betraege der Nachbarkarten, damit die drei
   Karten-Koepfe auf einer Linie bleiben. */
.price-amount.is-quote { font-size: 22px; line-height: 38px; letter-spacing: -.01em; }
.price-card.business .price-note { margin-bottom: 10px; }
.price-features { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink-muted); }
.price-features li { position: relative; padding-left: 16px; }
.price-features li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Hinweiszeile unter dem Business-CTA (Hub-Weg "Zahlung -> Business
   anfragen"); leise gesetzt, damit der Knopf die Hauptaktion bleibt. */
.price-hint { font-size: 12px; line-height: 1.45; color: var(--ink-faint); margin: 10px 0 0; }

.calc-box { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); padding: 26px 28px; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.calc-head b { font-size: 14.5px; }
.calc-head span { font-family: var(--mono); font-size: 13px; color: var(--accent-strong); }
:root[data-theme="dark"] .calc-head span { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-head span { color: var(--accent); } }
input[type="range"] { width: 100%; margin: 10px 0 18px; accent-color: var(--accent); height: 4px; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.calc-result .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-faint); text-transform: uppercase; }
.calc-result .v { font-family: var(--mono); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Endanschlag des Schiebers (51 = ab 51 Boxen): statt der zwei Preis-
   felder EIN Feld "Business - auf Anfrage" mit mailto-Knopf. Der
   hidden-Reset ist noetig, weil .calc-results (display:grid) und
   .calc-business (display:flex) das UA-[hidden] sonst ueberstimmen. */
.calc-box [hidden] { display: none !important; }
.calc-business { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 480px) { .calc-business .btn { width: 100%; } }
