/* Preisseite (templates/preise.html, en/preise.html).

   Bausteine (lp-shell, lp-btn, Knöpfe) aus landing.css. Oben die drei
   Unternehmenstarife als drei gleiche Karten, der Einstieg dünn im Akzent
   gerahmt; jede Karte zeigt nur,
   worin sie sich unterscheidet. Darunter einmal, was alle drei enthalten,
   dann Gratis und Privat als schmale Zeilen, dann der Vergleich als Tabelle. */

/* ── Kopf ─────────────────────────────────────────────────── */

.pr-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(128px, 17vh, 176px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

/* Ein Hauch der gemalten Fläche der Startseite hinter dem Kopf, damit die
   Seite nicht mit einer leeren weissen Fläche beginnt. */
.pr-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 -160px;
  background:
    radial-gradient(ellipse 38% 55% at 18% 30%, rgba(150, 178, 136, 0.22), transparent 70%),
    radial-gradient(ellipse 38% 55% at 82% 30%, rgba(204, 178, 140, 0.24), transparent 70%),
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(227, 234, 238, 0.9), transparent 75%);
  content: "";
  pointer-events: none;
}

.landing-page .pr-hero h1 {
  margin: 0 auto;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.pr-table svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--accent-bright);
}

.pr-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 40px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.pr-status > div {
  min-width: min(100%, 320px);
  flex: 1;
}

.pr-status-title {
  margin: 0 0 8px;
}

.pr-status-title span,
.pr-status-sub {
  color: var(--muted);
  font-size: 14px;
}

.pr-status-sub {
  margin: 6px 0 0;
}

.pr-section-title {
  margin: 0 0 18px !important;
  color: var(--ink);
  font-size: 17px !important;
  font-weight: 560 !important;
  letter-spacing: -0.015em !important;
}

/* ── Unternehmenstarife ──────────────────────────────────── */

.pr-business {
  scroll-margin-top: 90px;
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.pr-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pr-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pr-card.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.landing-page .pr-card h3,
.landing-page .pr-mini h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.pr-flag {
  margin: 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 560;
  white-space: nowrap;
}

.pr-flag.is-current {
  background: var(--accent);
  color: #fff;
}

.pr-mini .pr-flag {
  display: inline-block;
  margin-left: 6px;
  vertical-align: 2px;
}

.pr-audience {
  min-height: 2.9em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.pr-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 0;
  font-size: clamp(46px, 4.4vw, 58px);
  font-weight: 460;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pr-price span,
.pr-mini-price span {
  color: var(--faint);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.pr-mini-price span {
  margin-left: 6px;
}

.landing-page .pr-cta {
  width: 100%;
  margin-top: 24px;
}

.pr-hint {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pr-hint a {
  color: var(--accent-strong);
}

/* Die drei Zahlen, in denen sich die Tarife unterscheiden. */
.pr-specs {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pr-specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.pr-specs > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pr-specs dt {
  color: var(--muted);
  font-size: 14.5px;
}

.pr-specs dd {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 520;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pr-specs dd small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Der Einstieg (29 €): nur ein dünner Rahmen im Akzent, sonst wie die
   anderen Karten. */
.pr-card.is-entry {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 1px var(--accent-bright), var(--shadow-sm);
}

/* ── In jedem Tarif enthalten ────────────────────────────── */

.pr-included {
  margin-top: 16px;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--wash);
}

.landing-page .pr-included h3 {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.pr-included ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pr-included li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pr-included svg {
  width: 38px;
  height: 38px;
  flex: none;
  padding: 9px;
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.pr-included strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
}

.pr-included span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* ── Anfrage ─────────────────────────────────────────────── */

.pr-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
}

/* Ohne Skript (vom Server offen gerendert) liegt der Dialog nicht in der
   obersten Ebene; dann setzt ihn das hier trotzdem über die Seite. */
.pr-dialog[open]:not(:modal) {
  position: fixed;
  z-index: 100;
  inset: 0;
  box-shadow: 0 0 0 100vmax rgba(20, 21, 23, 0.45);
}

.pr-dialog::backdrop {
  background: rgba(20, 21, 23, 0.45);
  backdrop-filter: blur(3px);
}

.pr-dialog[open] {
  animation: pr-dialog-in 180ms ease-out;
}

@keyframes pr-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

body:has(.pr-dialog[open]) {
  overflow: hidden;
}

.pr-dialog-card {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 40px 90px -30px rgba(20, 21, 23, 0.45);
}

.landing-page .pr-dialog h2 {
  margin: 0;
  padding-right: 40px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pr-dialog-lead {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.pr-dialog-x {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  transition: background 150ms ease, color 150ms ease;
}

.pr-dialog-x:hover {
  background: var(--wash);
  color: var(--ink);
}

.pr-dialog-x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.pr-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
}

.pr-form-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fdecec;
  color: #9b2c2c;
  font-size: 14px;
}

.pr-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pr-picks {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
}

.pr-pick {
  position: relative;
  cursor: pointer;
}

.pr-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pr-pick span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.pr-pick strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 560;
}

.pr-pick small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.pr-pick:hover span {
  border-color: rgba(20, 21, 23, 0.3);
}

.pr-pick input:checked + span {
  border-color: var(--accent);
  background: var(--tint);
  box-shadow: 0 0 0 1px var(--accent);
}

.pr-pick input:focus-visible + span {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.pr-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.pr-field > span {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
}

.pr-field em {
  margin-left: 4px;
  color: var(--faint);
  font-style: normal;
  font-weight: 400;
}

.landing-page .pr-field input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  box-shadow: none;
}

.landing-page .pr-field input:focus {
  border-color: var(--accent);
  outline: none;
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(26, 156, 143, 0.18);
}

.pr-form-foot {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px 20px;
  margin-top: 6px;
}

.pr-form-foot p {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.pr-form-foot a {
  color: var(--muted);
}

.pr-enquiry-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.pr-enquiry-done svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
}

.pr-enquiry-done p {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

/* ── Gratis und Privat ───────────────────────────────────── */

.pr-personal {
  margin-top: clamp(64px, 8vw, 104px);
}

.pr-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pr-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.pr-mini.is-current {
  border-color: var(--accent);
}

.pr-mini .pr-tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.pr-mini-price {
  margin: 0;
  font-size: 26px;
  font-weight: 480;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.pr-mini-action {
  grid-column: 1 / -1;
}

.landing-page .pr-mini-action .pr-cta {
  margin-top: 0;
}

.pr-mini-action .pr-hint {
  margin: 0;
}

/* ── Vergleich ───────────────────────────────────────────── */

.pr-compare {
  margin-top: clamp(80px, 10vw, 128px);
}

.landing-page .pr-compare-title {
  margin: 0 0 28px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 460;
  letter-spacing: -0.03em;
  text-align: center;
}

.pr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

/* app.css setzt Tabellen global auf display:block und Kopfzellen auf 8px
   Monospace in Grossbuchstaben (für die Anrufliste im Konto). Hier gilt das
   nicht. */
.pr-table {
  display: table;
  width: 100%;
  min-width: 820px;
  overflow: visible;
  border-collapse: collapse;
  font-size: 14.5px;
}

.pr-table th,
.pr-table td {
  min-width: 0;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  vertical-align: middle;
}

.pr-table tbody tr:last-child th,
.pr-table tbody tr:last-child td {
  border-bottom: 0;
}

.pr-table thead th {
  padding-top: 20px;
  padding-bottom: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
}

.pr-table thead small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
}

.pr-table tbody th {
  width: 26%;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 450;
  text-align: left;
}

.pr-table td {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pr-table tbody tr:hover th,
.pr-table tbody tr:hover td {
  background: #fafaf8;
}

/* Hervorgehobene Spalte: der Einstieg (29 €), wie die Karte oben. Getönt und
   links wie rechts mit einer Linie im Akzent gerahmt, oben mit Schild. */
.pr-table .is-top,
.pr-table tbody tr:hover .is-top {
  background: var(--tint);
  box-shadow: inset 2px 0 var(--accent-bright), inset -2px 0 var(--accent-bright);
}

.pr-table thead .is-top {
  box-shadow: inset 2px 0 var(--accent-bright), inset -2px 0 var(--accent-bright), inset 0 2px var(--accent-bright);
  color: var(--accent-strong);
}

.pr-table tbody tr:last-child .is-top {
  box-shadow: inset 2px 0 var(--accent-bright), inset -2px 0 var(--accent-bright), inset 0 -2px var(--accent-bright);
}

.pr-table-flag {
  display: block;
  width: max-content;
  margin: 0 auto 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.pr-table td svg {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.pr-no {
  color: var(--faint);
}

/* ── Abschluss ───────────────────────────────────────────── */

.pr-close {
  display: grid;
  justify-items: center;
  margin-top: clamp(80px, 10vw, 128px);
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: 22px;
  background:
    url('/static/landing-grain.svg?v=20260906a'),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(150, 178, 136, 0.55), transparent 70%),
    radial-gradient(ellipse 45% 55% at 100% 100%, rgba(204, 178, 140, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 236, 212, 0.9), transparent 70%),
    linear-gradient(180deg, #e3eaee, #eeeae1);
  background-size: 256px 256px, auto, auto, auto, auto;
  text-align: center;
}

.landing-page .pr-close h2 {
  margin: 0 0 30px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 460;
  letter-spacing: -0.032em;
  line-height: 1.1;
}

.pr-close .lp-hero-actions {
  justify-content: center;
}

.pr-cancel {
  margin: 28px 0 0;
  font-size: 14px;
  text-align: center;
}

.pr-cancel a {
  color: var(--muted);
}

.pricing-page .faq {
  margin-top: clamp(72px, 9vw, 112px);
}

@media (prefers-reduced-motion: reduce) {
  .pr-card {
    transition: none;
  }

  .pr-dialog[open] {
    animation: none;
  }

  .pr-card:hover {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .pr-included ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .pr-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin: 0 auto;
  }

  .pr-audience {
    min-height: 0;
  }

  .pr-included {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
  }

  .pr-included ul,
  .pr-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pr-personal {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* Im Dialog reichen zwei Spalten bis zur Handybreite. */
@media (max-width: 600px) {
  .pr-form,
  .pr-picks {
    grid-template-columns: minmax(0, 1fr);
  }

  .pr-picks {
    gap: 8px;
  }

  .pr-pick span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
  }

  .pr-pick small {
    margin-top: 0;
  }
}
