/* youpartments Rechnungsportal — Designsystem "Brass Key / Letterhead"
   Dunkles Immergruen als Buehne, helle Briefpapier-Karte fuers Formular,
   Salbei + Messing als Akzente. Keine externen Fonts/Assets. */

:root {
  color-scheme: dark light;
  --night: #081f19;
  --evergreen: #0b2a21;
  --pine: #123a2f;
  --sage: #cfdcc8;
  --sage-dim: rgba(207, 220, 200, 0.66);
  --sage-line: rgba(207, 220, 200, 0.16);
  --linen: #faf7f0;
  --linen-inset: #f2eee3;
  --paper-line: #e6e0d2;
  --ctl-line: #d4cfc0;
  --ink: #16241e;
  --ink-soft: #55635c;
  --brass: #b9905b;
  --brass-soft: rgba(185, 144, 91, 0.38);
  --green: #1c6b52;
  --green-deep: #175843;
  --danger: #b3402e;
  --success: #2e7d4f;
  --radius-card: 20px;
  --radius-ctl: 12px;
  --shadow-card: 0 30px 70px -30px rgba(2, 12, 9, 0.85), 0 8px 24px -12px rgba(2, 12, 9, 0.5);
  --font-display: "Avenir Next", "Avenir", "Futura", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-body);
  line-height: 1.55;
  color: var(--sage);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(207, 220, 200, 0.08), transparent 60%),
    radial-gradient(900px 600px at -15% 30%, rgba(23, 88, 67, 0.35), transparent 65%),
    linear-gradient(180deg, var(--evergreen), var(--night) 900px);
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ambiente: Aurora, Schluesselloch-Wasserzeichen, Korn ---------- */

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(90px);
}

.aurora-a {
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(207, 220, 200, 0.14), transparent 70%);
}

.aurora-b {
  right: -200px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(28, 107, 82, 0.45), transparent 70%);
}

.keyhole-mark {
  position: absolute;
  top: 10%;
  right: -60px;
  height: 72vh;
  color: var(--sage);
  opacity: 0.05;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Grundgeruest ---------- */

.page-shell {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}

.language-switcher {
  display: flex;
  align-items: center;
}

.language-actions {
  display: inline-flex;
  border: 1px solid var(--sage-line);
  border-radius: 999px;
  background: rgba(8, 31, 25, 0.55);
  padding: 3px;
}

.language-button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sage-dim);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.language-button.is-active {
  background: var(--sage);
  color: var(--pine);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 720px;
  margin-bottom: 36px;
}

.hero-eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.15rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #f2f5ee;
}

.hero-title span {
  display: block;
}

.hero-accent {
  color: var(--sage);
}

.lead {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--sage-dim);
  font-size: 1.02rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--sage-line);
  border-radius: 999px;
  background: rgba(18, 58, 47, 0.35);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--sage);
  white-space: nowrap;
}

.trust-chip svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

/* ---------- Karte (Briefpapier) ---------- */

.card {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(207, 220, 200, 0.22);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(185, 144, 91, 0.10), transparent 90px),
    var(--linen);
  box-shadow: var(--shadow-card);
  padding: 26px 30px 30px;
  color: var(--ink);
}

/* ---------- Stepper ---------- */

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  list-style: none;
  border-bottom: 1px solid var(--paper-line);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
}

.progress-step:not(:first-child) {
  flex: 1;
}

.progress-step:not(:first-child)::before {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--paper-line);
}

.progress-step.is-active::before,
.progress-step.is-complete::before {
  background: var(--green);
}

.progress-step span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1.5px solid var(--ctl-line);
  border-radius: 50%;
  background: #ffffff;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  flex: none;
}

.progress-step p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.progress-step.is-active,
.progress-step.is-complete {
  color: var(--ink);
}

.progress-step.is-active span {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--brass-soft);
}

.progress-step.is-complete span {
  border-color: var(--green);
  background: rgba(46, 125, 79, 0.12);
  color: var(--green);
  font-size: 0;
}

.progress-step.is-complete span::after {
  content: "✓";
  font-size: 0.86rem;
  font-weight: 800;
}

/* ---------- Panels & Formulare ---------- */

.panel-header {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.panel-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 11px 14px;
}

.address-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 14px;
}

.f-2 { grid-column: span 2; }
.f-3 { grid-column: span 3; }
.f-4 { grid-column: span 4; }
.f-6 { grid-column: span 6; }

label,
.captcha-box,
.mock-panel {
  display: grid;
  gap: 6px;
}

label span,
legend,
.mock-panel span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}

.field-label > span {
  min-width: 0;
}

.required-mark {
  color: var(--danger);
  font-weight: 850;
  line-height: 1;
}

input:not([type="checkbox"]),
select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--ctl-line);
  border-radius: var(--radius-ctl);
  background: #ffffff;
  color: var(--ink);
  padding: 8px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:not([type="checkbox"]):hover,
select:hover {
  border-color: #b4ae9c;
}

input:not([type="checkbox"]):focus,
select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(28, 107, 82, 0.16);
}

input::placeholder {
  color: #9aa39d;
}

.code-input {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.field-help,
.required-note,
.form-footnote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.form-footnote {
  margin-top: 8px;
}

.captcha-box,
.confirmation-box {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  border: 1px solid #e3ddcb;
  border-radius: 14px;
  background: var(--linen-inset);
  padding: 11px 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 1px;
  accent-color: var(--green);
}

.checkbox-row span {
  font-weight: 600;
}

.mock-panel {
  gap: 10px;
  margin-top: 16px;
  border: 1px dashed #9fb894;
  border-radius: 14px;
  background: #f0f6ec;
  padding: 14px 16px;
}

.mock-panel label {
  max-width: 420px;
}

.mock-note {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.notice,
.redirect-box {
  margin-top: 14px;
}

.notice {
  border: 1px solid #e3ddcb;
  border-radius: 14px;
  background: var(--linen-inset);
  padding: 10px 14px;
}

.notice h3 {
  margin-bottom: 2px;
}

.notice p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.notice-positive {
  border-color: rgba(46, 125, 79, 0.32);
  background: #eef4ea;
  margin-top: 0;
  margin-bottom: 4px;
}

.notice-positive h3 {
  color: var(--success);
}

.notice-positive p {
  color: var(--ink);
}

#prefill-notice {
  border-color: var(--brass-soft);
  background: #f7f1e4;
}

.privacy-note {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--brass-soft);
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.form-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 650;
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.compact-actions {
  align-items: center;
  margin-top: 0;
}

.compact-actions p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.split-actions {
  justify-content: space-between;
}

.primary-button,
.secondary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-ctl);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.primary-button,
.primary-link {
  border: 1px solid var(--green-deep);
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 12px 26px -14px rgba(12, 42, 32, 0.65);
}

.primary-button:hover,
.primary-link:hover {
  background: var(--green-deep);
}

.primary-button:active,
.primary-link:active {
  transform: translateY(1px);
}

.secondary-button {
  border: 1px solid var(--ctl-line);
  background: #ffffff;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: #a49e8b;
}

.secondary-button:disabled,
.primary-button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ---------- Statuspanel ---------- */

.status-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
}

.status-badge[data-tone="success"] {
  background: rgba(46, 125, 79, 0.12);
  color: var(--success);
}

.status-badge[data-tone="success"]::before {
  content: "✓";
}

.status-badge[data-tone="error"] {
  background: rgba(179, 64, 46, 0.1);
  color: var(--danger);
}

.status-badge[data-tone="error"]::before {
  content: "!";
}

.status-panel p {
  max-width: 560px;
}

.status-panel p:last-of-type {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Erfolgspanel ---------- */

.success-mark {
  margin-bottom: 16px;
  color: var(--success);
}

.success-mark svg {
  width: 56px;
  height: 56px;
  display: block;
}

.success-ring,
.success-check {
  stroke-dasharray: none;
}

#success-copy {
  max-width: 560px;
  font-size: 1.0rem;
}

.timeline {
  margin: 20px 0 20px 8px;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 24px;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: -2px;
  width: 2px;
  background: var(--paper-line);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--ctl-line);
}

.timeline-item.is-done .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-item p {
  margin: 0;
  font-size: 0.94rem;
}

.timeline-item.is-done p {
  font-weight: 650;
}

.redirect-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
}

.redirect-box > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* ---------- Sektionen unter der Karte ---------- */

.section-title {
  margin-bottom: 16px;
  color: #f2f5ee;
  font-size: 1.24rem;
}

.how {
  margin-top: 52px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-card {
  border: 1px solid var(--sage-line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(207, 220, 200, 0.08), rgba(207, 220, 200, 0.02));
  padding: 20px 20px 18px;
}

.how-step {
  display: block;
  margin-bottom: 10px;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 650;
  line-height: 1;
}

.how-card h3 {
  color: #f2f5ee;
  margin-bottom: 6px;
}

.how-card p {
  margin: 0;
  color: var(--sage-dim);
  font-size: 0.9rem;
}

.assure {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-top: 44px;
  border: 1px solid var(--brass-soft);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(18, 58, 47, 0.55), rgba(8, 31, 25, 0.4));
  padding: 26px 28px;
}

.assure-keyhole {
  flex: none;
  width: 58px;
  height: auto;
  margin-top: 4px;
  color: var(--brass);
  opacity: 0.55;
}

.assure-body .section-title {
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.assure-body > p {
  color: var(--sage-dim);
  font-size: 0.94rem;
  max-width: 620px;
}

.assure-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.assure-list li {
  position: relative;
  padding-left: 22px;
  color: var(--sage);
  font-size: 0.92rem;
  font-weight: 600;
}

.assure-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brass);
  font-size: 0.82rem;
  font-weight: 800;
}

.assure-outro {
  margin: 0;
  color: var(--sage-dim);
  font-size: 0.88rem;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 44px;
}

.faq-item {
  border: 1px solid var(--sage-line);
  border-radius: 14px;
  background: rgba(18, 58, 47, 0.32);
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  color: #f2f5ee;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.97rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--sage-dim);
  border-bottom: 2px solid var(--sage-dim);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -4px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--sage-dim);
  font-size: 0.92rem;
  max-width: 720px;
}

/* ---------- Support & Footer ---------- */

.support {
  margin-top: 44px;
  text-align: center;
}

.support p {
  margin-bottom: 16px;
  color: var(--sage-dim);
  font-size: 0.95rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--brass-soft);
  border-radius: 999px;
  padding: 10px 24px;
  color: var(--sage);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.support-link:hover {
  border-color: var(--brass);
  background: rgba(185, 144, 91, 0.12);
}

.footer {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--sage-line);
  text-align: center;
}

.footer-keyhole {
  width: 16px;
  height: auto;
  color: var(--sage-dim);
  opacity: 0.7;
  margin-bottom: 10px;
}

.footer-brand {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.02em;
}

.footer-address,
.footer-contact {
  margin: 0 0 4px;
  color: var(--sage-dim);
  font-size: 0.84rem;
}

.footer-contact a {
  color: var(--sage);
  font-weight: 650;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-sep {
  margin: 0 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 14px;
}

.footer-links a {
  color: var(--sage);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(207, 220, 200, 0.35);
}

.footer-links a:hover {
  text-decoration-color: var(--sage);
}

/* ---------- Panelzustaende ---------- */

.is-hidden {
  display: none;
}

/* Attribut [hidden] gewinnt gegen display-Regeln (Dev-Panel bleibt ohne ?dev=1 unsichtbar). */
[hidden] {
  display: none !important;
}

body[data-active-panel="address"] .hero,
body[data-active-panel="status"] .hero,
body[data-active-panel="success"] .hero {
  display: none;
}

body[data-active-panel="address"] .topbar,
body[data-active-panel="status"] .topbar,
body[data-active-panel="success"] .topbar {
  margin-bottom: 24px;
}

/* ---------- Fokus-Sichtbarkeit (dunkler Kontext) ---------- */

.language-button:focus-visible,
.faq-item summary:focus-visible,
.support-link:focus-visible,
.footer-contact a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid rgba(207, 220, 200, 0.75);
  outline-offset: 2px;
  border-radius: 6px;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.primary-link:focus-visible,
.checkbox-row input:focus-visible {
  outline: 3px solid rgba(28, 107, 82, 0.4);
  outline-offset: 2px;
}

/* ---------- Bewegung (nur ohne Reduced Motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: cardIn 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }

  .hero-eyebrow,
  .hero-title,
  .lead,
  .trust-chips {
    animation: riseIn 0.6s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }

  .hero-title { animation-delay: 0.05s; }
  .lead { animation-delay: 0.12s; }
  .trust-chips { animation-delay: 0.2s; }

  .panel-enter {
    animation: panelIn 0.3s ease both;
  }

  .keyhole-mark {
    animation: breathe 9s ease-in-out infinite;
  }

  .aurora-a {
    animation: drift 26s ease-in-out infinite alternate;
  }

  .aurora-b {
    animation: drift 32s ease-in-out infinite alternate-reverse;
  }

  .success-ring {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: draw 0.6s ease-out 0.1s forwards;
  }

  .success-check {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: draw 0.4s ease-out 0.55s forwards;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.04; }
  50% { opacity: 0.07; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(60px, 40px, 0); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Responsiv ---------- */

@media (max-width: 760px) {
  .page-shell {
    padding-top: 16px;
  }

  .topbar {
    margin-bottom: 28px;
  }

  .brand-logo {
    height: 24px;
  }

  .hero {
    margin-bottom: 26px;
  }

  .card {
    padding: 20px 18px 22px;
  }

  .progress {
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  .progress-step {
    gap: 7px;
  }

  .progress-step span {
    width: 27px;
    height: 27px;
    font-size: 0.8rem;
  }

  .progress-step p {
    font-size: 0.7rem;
  }

  input:not([type="checkbox"]),
  select {
    height: 44px;
  }

  .field-grid,
  .address-fields {
    grid-template-columns: 1fr;
  }

  .f-2,
  .f-3,
  .f-4,
  .f-6 {
    grid-column: auto;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .assure {
    flex-direction: column;
    gap: 4px;
    padding: 22px 20px;
  }

  .assure-keyhole {
    width: 42px;
  }

  .assure-list {
    grid-template-columns: 1fr;
  }

  .actions,
  .split-actions {
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button,
  .primary-link {
    width: 100%;
  }

  .keyhole-mark {
    display: none;
  }
}

@media (max-width: 560px) {
  .progress-step:not(.is-active) p {
    display: none;
  }
}

@media (max-width: 430px) {
  .hero-title {
    font-size: 1.9rem;
  }
}
