/* =========================================================================
   POWERMIETER — Detail styles for Screen 3 (Vertrag) & Screen 4 (Aktivierung)
   ========================================================================= */

/* Card heads */
.pm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pm-card-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin: 0; }
.pm-card-title svg { color: var(--accent); flex: none; }
.pm-edit { background: none; border: 0; cursor: pointer; font-size: 13px; }

/* Review two-col gap fix */
.pm-review { padding-right: 18px; }
.pm-narrow .pm-review { padding-right: 0; }

/* Consent boxes */
.pm-consentbox { padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); transition: all .18s var(--ease); }
.pm-consentbox-err { border-color: #E0556B; background: color-mix(in oklab, #E0556B 8%, var(--surface)); }

/* SMS code input */
.pm-code { display: flex; gap: 10px; }
.pm-code-box {
  width: 52px; height: 60px; text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 700;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); outline: none;
  transition: all .15s var(--ease);
}
.pm-code-box:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.pm-narrow .pm-code { gap: 6px; }
.pm-narrow .pm-code-box { width: 100%; height: 54px; font-size: 20px; }

/* Signature pad */
.pm-sigpad { position: relative; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 26px 20px 14px; }
.pm-sigpad-input { width: 100%; border: 0; background: none; outline: none; font-family: 'Schibsted Grotesk', cursive; font-size: 28px; font-weight: 600; color: var(--text); font-style: italic; }
.pm-sigpad-input::placeholder { color: var(--text-3); font-style: normal; font-weight: 400; font-size: 18px; font-family: var(--font-sans); }
.pm-sigpad-line { display: block; height: 1px; background: var(--border-strong); margin: 6px 0 8px; }
.pm-sigpad-hint { font-size: 12px; color: var(--text-3); }

/* ---------------- Screen 4 ---------------- */
.pm-success { text-align: center; padding: 36px 28px; }
.pm-success-title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 18px 0 0; color: var(--text); }
.pm-success-sub { font-size: 15px; color: var(--text-2); line-height: 1.55; margin: 10px auto 0; max-width: 38em; }
.pm-success-meta { display: inline-flex; gap: 0; margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.pm-success-meta-item { padding: 12px 22px; display: flex; flex-direction: column; gap: 3px; }
.pm-success-meta-item + .pm-success-meta-item { border-left: 1px solid var(--border); }
.pm-success-meta-item span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.pm-success-meta-item b { font-size: 15px; color: var(--text); }

/* Portal CTA card */
.pm-portal { background: linear-gradient(155deg, var(--navy-700), var(--navy-900)); border: 1px solid var(--navy-600); position: relative; overflow: hidden; color: #fff; }
.pm-portal-glow { position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent-400) 32%, transparent), transparent 65%); pointer-events: none; }
.pm-portal-inner { position: relative; padding: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.pm-narrow .pm-portal-inner { grid-template-columns: 1fr; }
.pm-portal-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; color: #fff; }
.pm-portal-sub { font-size: 14px; line-height: 1.55; color: #C6D4E6; margin: 8px 0 0; max-width: 30em; }
.pm-portal-preview { display: flex; justify-content: center; }
.pm-portal-mini { width: 100%; max-width: 260px; background: #ffffff12; border: 1px solid #ffffff24; border-radius: var(--radius-md); padding: 18px; backdrop-filter: blur(6px); }
.pm-portal-mini-top { display: flex; align-items: baseline; justify-content: space-between; color: #C6D4E6; font-size: 12.5px; font-weight: 600; }
.pm-portal-mini-top b { font-family: var(--font-display); font-size: 26px; color: var(--accent-300); }
.pm-portal-bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; margin-top: 14px; }
.pm-portal-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent-400), color-mix(in oklab, var(--accent-400) 30%, transparent)); min-height: 8px; }

/* Referral */
.pm-referral { display: flex; align-items: center; gap: 16px; }
.pm-referral-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-tint-border); display: grid; place-items: center; }
.pm-narrow .pm-referral { flex-wrap: wrap; }
.pm-narrow .pm-referral .btn { width: 100%; }
