/* ===== SHARED STYLES — FRADECO VAT ===== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #233985;
  --primary-dark: #14203b;
  --gold: #8a6d3b;
  --gold-light: #d4bfa3;
  --white: #ffffff;
  --body-text: #262626;
  --paragraph: #7a7a7a;
  --tagline: #bcbcbc;
  --border: #c5c5c5;
  --border-focus: #233985;
  --light-bg: #f8f9fb;
  --success: #27ae60;
  --error: #e74c3c;
  --warning: #f39c12;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--paragraph);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.25;
}

a { color: var(--primary); text-decoration: none; transition: all .3s ease-out; }
a:hover { color: var(--gold); }

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== FORM STYLES ===== */
.form-container {
  max-width: 720px;
  margin: 0 auto;
}

.form-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 100px 0 48px;
  color: white;
  text-align: center;
}

.form-header h1 {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

.form-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* Progress bar — numbered circles with connecting line */
.progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 32px 24px 0;
  max-width: 600px;
  margin: 0 auto;
}

.progress-step {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.4);
  transition: all .4s;
  position: relative;
  flex-shrink: 0;
}

.progress-step::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%);
}
.progress-step:last-child::after { display: none; }

.progress-step.active {
  background: var(--gold);
  color: white;
  box-shadow: 0 0 0 4px rgba(138,109,59,0.3);
}

.progress-step.completed {
  background: var(--success);
  color: white;
}
.progress-step.completed::after {
  background: var(--success);
}

.progress-labels {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 8px 24px 0;
  max-width: 600px;
  margin: 0 auto;
}

.progress-label {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  transition: color .4s;
}

.progress-label.active {
  color: rgba(255,255,255,0.9);
}

.progress-label.completed {
  color: rgba(255,255,255,0.5);
}

/* Form body */
.form-body {
  padding: 48px 24px 80px;
}

.form-step {
  display: none;
  animation: fadeIn .3s ease-out;
}

.form-step.active {
  display: block;
}

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

.step-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.step-subtitle {
  color: var(--paragraph);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Field groups */
.field-group {
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  gap: 16px;
}

.field-row-2 { grid-template-columns: 1fr 1fr; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-row-auto { grid-template-columns: 120px 1fr; }

@media (max-width: 600px) {
  .field-row-2, .field-row-3, .field-row-auto { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--body-text);
}

.field label .required {
  color: var(--error);
}

.field input,
.field select,
.field textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: var(--body-text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35, 57, 133, 0.1);
}

.field input.error,
.field select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a7a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Help text */
.field-help {
  font-size: 13px;
  color: var(--paragraph);
  line-height: 1.5;
  margin-top: 2px;
}

.field-help strong {
  color: var(--body-text);
}

.field-help a {
  border-bottom: 1px dotted var(--primary);
}

/* Info box */
.info-box {
  background: #f0f4ff;
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.info-box.warning {
  background: #fff8e1;
  border-left-color: var(--warning);
}

.info-box.success {
  background: #e8f5e9;
  border-left-color: var(--success);
}

.info-box strong {
  color: var(--body-text);
  display: block;
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Checkbox & Radio */
.checkbox-field,
.radio-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.checkbox-field input,
.radio-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkbox-field span,
.radio-field span {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.5;
}

/* Repeatable sections */
.repeatable-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  background: var(--light-bg);
}

.repeatable-item .item-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px dashed var(--border);
  background: none;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
}

.btn-add:hover {
  border-color: var(--primary);
  background: var(--light-bg);
}

.btn-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--paragraph);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-remove:hover {
  color: var(--error);
  background: rgba(231,76,60,0.1);
}

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 32px 0;
}

/* Navigation buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  border: 1px solid var(--border);
  color: var(--paragraph);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-next,
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  border: none;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  transition: all .2s;
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35, 57, 133, 0.2);
}

.btn-submit {
  background: var(--primary);
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* Review section */
.review-section {
  margin-bottom: 32px;
}

.review-section h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.review-table {
  width: 100%;
  border-collapse: collapse;
}

.review-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.review-table td {
  padding: 8px 0;
  font-size: 14px;
  vertical-align: top;
}

.review-table td:first-child {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--paragraph);
  width: 40%;
  padding-right: 16px;
}

.review-table td:last-child {
  color: var(--body-text);
  font-weight: 500;
}

.review-edit {
  float: right;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-edit:hover {
  color: var(--gold);
}

/* Header (shared across pages) */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.page-header .logo-mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-header .logo-stripe {
  display: flex;
  height: 2px;
  width: 60px;
}

.page-header .logo-stripe .s1 { flex: 1; background: #000; }
.page-header .logo-stripe .s2 { flex: 1; background: #dd0000; }
.page-header .logo-stripe .s3 { flex: 1; background: #ffcc00; }

.page-header .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-dark);
  text-transform: uppercase;
}

.page-header .header-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--paragraph);
}

.page-header .header-link:hover {
  color: var(--primary);
}

/* Saved indicator */
.save-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--success);
  opacity: 0;
  transition: opacity .3s;
}

.save-indicator.visible {
  opacity: 1;
}

/* USt-Voranmeldung specific */
.filing-period {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.filing-period select {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: var(--body-text);
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a7a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Filing sections */
.filing-section {
  margin-bottom: 32px;
}

.filing-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
  cursor: pointer;
}

.filing-section-header h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filing-section-header .kz-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  background: var(--light-bg);
  color: var(--paragraph);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.filing-row {
  display: grid;
  grid-template-columns: 1fr 180px 140px;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

@media (max-width: 600px) {
  .filing-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
}

.filing-row .row-label {
  font-size: 14px;
  color: var(--body-text);
}

.filing-row .row-label small {
  display: block;
  font-size: 12px;
  color: var(--paragraph);
  margin-top: 2px;
}

.filing-row input {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: var(--body-text);
  text-align: right;
  outline: none;
  transition: border-color .2s;
}

.filing-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35, 57, 133, 0.1);
}

.filing-row .calculated {
  padding: 10px 14px;
  background: var(--light-bg);
  border-radius: 4px;
  font-size: 15px;
  text-align: right;
  color: var(--body-text);
  font-weight: 500;
}

/* Summary box */
.filing-summary {
  background: var(--primary);
  color: white;
  padding: 32px;
  border-radius: 8px;
  margin-top: 32px;
}

.filing-summary h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.summary-row:last-child {
  border-bottom: none;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 2px solid rgba(255,255,255,0.3);
  font-size: 18px;
  font-weight: 500;
}

.summary-row .label {
  color: rgba(255,255,255,0.7);
}

.summary-amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.summary-amount.refund {
  color: #81c784;
}

.summary-amount.payment {
  color: #ffab91;
}

/* Collapsible section */
.collapsible {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--light-bg);
  cursor: pointer;
  user-select: none;
}

.collapsible-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--body-text);
}

.collapsible-header .toggle-icon {
  font-size: 18px;
  color: var(--paragraph);
  transition: transform .2s;
}

.collapsible.open .toggle-icon {
  transform: rotate(180deg);
}

.collapsible-body {
  display: none;
  padding: 20px;
}

.collapsible.open .collapsible-body {
  display: block;
}

/* Footer mini */
.page-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--tagline);
  border-top: 1px solid #f0f0f0;
}

.page-footer a {
  color: var(--paragraph);
}

/* Validation error highlight */
.field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

/* Inline field validation */
.field-error-text {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #dc2626;
  margin-top: 4px;
  animation: fadeIn 0.2s ease;
}
.field-error {
  border-color: #fca5a5 !important;
  background: #fef2f2 !important;
}

/* Zero-filing banner */
.zero-filing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #166534;
}
.zero-filing-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.zero-filing-banner span {
  color: #15803d;
}
.zero-filing-banner button {
  background: #16a34a;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.zero-filing-banner button:hover {
  background: #15803d;
}
@media (max-width: 600px) {
  .zero-filing-banner { flex-direction: column; text-align: center; }
}

/* ===== SHARED: Toast Notifications ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 10px; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; line-height: 1.4; max-width: 380px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); animation: toastIn 0.3s ease; backdrop-filter: blur(8px); }
.toast.removing { animation: toastOut 0.3s ease forwards; }
.toast-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.toast-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.toast-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.toast-info { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-close { margin-left: auto; background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0.5; padding: 0 0 0 8px; color: inherit; }
.toast-close:hover { opacity: 1; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ===== SHARED: Skeleton Loading ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-card { height: 120px; margin-bottom: 16px; border-radius: 8px; }
.skeleton-table-row { height: 48px; margin-bottom: 4px; }

/* ===== SHARED: Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  background: white;
  max-width: 480px;
  width: calc(100% - 48px);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* ===== SHARED: Skip Navigation ===== */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  border-radius: 0 0 4px 4px;
  z-index: 10001;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
  color: white;
}

/* ===== Registration Success Screen ===== */
.reg-success {
  text-align: center;
  padding: 48px 0;
}
.reg-success-icon {
  width: 64px; height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.4s ease;
}
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.reg-success h2 { margin-bottom: 8px; }
.reg-success-sub {
  max-width: 480px; margin: 0 auto 28px;
  font-size: 1rem; color: var(--paragraph);
}
.reg-success-timeline {
  text-align: left; max-width: 440px; margin: 0 auto;
  padding: 24px 28px; background: var(--light-bg); border-radius: 10px;
}
.reg-success-timeline .timeline-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 16px;
}
.timeline-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 0; font-size: 14px; color: var(--paragraph);
  border-left: 2px solid #e5e7eb; margin-left: 13px; padding-left: 20px;
  position: relative;
}
.timeline-step:last-child { border-left-color: transparent; }
.timeline-step strong { color: var(--body-text); }
.timeline-step.done { color: var(--body-text); }
.timeline-step.active { color: var(--body-text); }
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; font-family: 'Montserrat', sans-serif;
  background: #e5e7eb; color: #9ca3af;
  position: absolute; left: -15px;
}
.timeline-dot.done { background: var(--success); color: white; }
.timeline-dot.active { background: var(--primary); color: white; }
.reg-success-footer {
  margin-top: 24px; color: var(--paragraph); font-size: 14px;
}

/* ===== PAYMENT PAGE ===== */
.pay-wrapper {
  min-height: 100vh;
  background: var(--light-bg);
  padding-top: 88px;
}
.pay-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.pay-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 32px;
  align-items: start;
}
.pay-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 32px;
}
.pay-card h2 {
  font-family: 'Marcellus', serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
}
.pay-line-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.pay-line-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: var(--body-text);
}
.pay-line-item .label { color: var(--paragraph); }
.pay-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 4px 0;
}
.pay-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--body-text);
  padding-top: 8px;
}
.pay-total .amount {
  font-family: 'Marcellus', serif;
  font-size: 1.5rem;
  color: var(--primary);
}
.pay-note {
  font-size: 13px;
  color: var(--paragraph);
  margin-top: 16px;
  line-height: 1.6;
  padding: 12px 16px;
  background: var(--light-bg);
  border-radius: 6px;
}
.pay-trust {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--paragraph);
}
.pay-trust-item svg {
  flex-shrink: 0;
  color: var(--success);
}
.stripe-element-placeholder {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 44px;
  background: var(--light-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stripe-element-placeholder .placeholder-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--tagline);
  letter-spacing: 0.5px;
}
.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: var(--primary);
  border: none;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  transition: all .2s;
  margin-top: 24px;
}
.pay-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(35, 57, 133, 0.25);
}
.pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pay-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--tagline);
}
.pay-secure-note svg { flex-shrink: 0; }
.pay-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  color: #991b1b;
  font-size: 13px;
}
.pay-scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-scope-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.4;
}
.pay-scope-item.included svg {
  flex-shrink: 0;
  color: var(--success);
}
.pay-scope-item.excluded svg {
  flex-shrink: 0;
  color: var(--tagline);
}
.pay-scope-item.excluded span {
  color: var(--paragraph);
}
.pay-contract-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: var(--body-text);
  line-height: 1.5;
  cursor: pointer;
}
.pay-contract-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.pay-contract-check a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== BILLING (Dashboard Settings) ===== */
.billing-plan {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.billing-plan-info { flex: 1; min-width: 200px; }
.billing-plan-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 4px;
}
.billing-plan-price {
  font-family: 'Marcellus', serif;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1.2;
}
.billing-plan-price span {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--paragraph);
  font-weight: 400;
}
.billing-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.billing-badge.active { background: #dcfce7; color: #166534; }
.billing-badge.past-due { background: #fef2f2; color: #991b1b; }
.billing-badge.cancelled { background: #fef3c7; color: #92400e; }
.billing-badge.none { background: #f3f4f6; color: #6b7280; }
.billing-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tagline);
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.billing-card-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light-bg);
  border-radius: 6px;
}
.billing-card-icon {
  width: 48px;
  height: 32px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}
.billing-card-info {
  flex: 1;
  font-size: 14px;
  color: var(--body-text);
}
.billing-card-info small {
  display: block;
  font-size: 12px;
  color: var(--paragraph);
}
.billing-update-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: var(--body-text);
  transition: all .2s;
}
.billing-update-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.billing-next-payment {
  font-size: 14px;
  color: var(--paragraph);
  margin-bottom: 20px;
}
.billing-next-payment strong {
  color: var(--body-text);
}
.billing-warning {
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.billing-warning svg { flex-shrink: 0; margin-top: 2px; }
.billing-cancel-link {
  display: inline-block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--error);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: left;
}
.billing-cancel-link:hover { text-decoration: underline; }
.billing-reactivate-btn {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .pay-grid { grid-template-columns: 1fr; }
  .billing-plan { flex-direction: column; }
}

/* ===== UTILITY CLASSES ===== */

/* Spacing */
.mb-12 { margin-bottom: 12px; }

/* FAQ button */
.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

/* FAQ answer panel */
.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--paragraph);
  line-height: 1.7;
}

/* FAQ chevron */
.faq-arrow {
  transition: transform .2s;
}

/* Consent / signature box (SEPA, Vollmacht) */
.consent-box {
  padding: 20px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: rgba(35, 57, 133, 0.02);
}
