/* Override WordPress global content-size constraint */
body {
  --wp--style--global--content-size: 90%;
  --wp--style--global--wide-size: 90%;
}

/* ===== SERVICE-ABO SECTION ===== */
.svc-section {
  padding: 0px 20px;
  background: transparent;
}

.svc-container {
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */
.svc-header {
  text-align: center;
  margin-bottom: 48px;
}

.svc-header h2 {
  font-size: 2rem;
  margin: 0 0 16px;
  color: #fff;
}

.svc-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Benefits list */
.svc-benefits {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  text-align: left;
}

.svc-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.4;
}

.svc-benefit-icon {
  font-size: 1.15rem;
  color: #b98823;
  flex-shrink: 0;
  margin-top: 1px;
}

.svc-benefits strong {
  color: #fff;
}

.svc-vehicle-note {
  margin: 20px auto 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 600px;
}

@media (max-width: 640px) {
  .svc-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Schedule display inside cards */
.svc-card-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-schedule-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
  margin-bottom: 4px;
}

.svc-schedule-item {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}

.svc-featured .svc-card-schedule {
  background: rgba(185, 136, 35, 0.06);
  border-color: rgba(185, 136, 35, 0.15);
}

.svc-featured .svc-schedule-item {
  background: rgba(185, 136, 35, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

/* ===== MODELL & LAUFZEIT AUSWAHL ===== */
.svc-selection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.svc-selection-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-selection-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.svc-selection-buttons {
  display: flex;
  gap: 8px;
}

.svc-sel-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.svc-sel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.svc-sel-btn.active {
  background: rgba(185, 136, 35, 0.15);
  border-color: #b98823;
  color: #b98823;
}

.svc-sel-discount {
  font-size: 0.75rem;
  color: #b98823;
  margin-left: 4px;
}

/* Price discount badge in cards */
.svc-price-discount {
  display: block;
  font-size: 0.85rem;
  color: #b98823;
  margin-top: 6px;
  min-height: 20px;
}

/* Savings display in cards - now integrated into discount text */
.svc-price-savings {
  display: none; /* Hidden - savings now shown inline with discount */
}

@media (max-width: 640px) {
  .svc-selection {
    flex-direction: column;
    gap: 20px;
  }
  .svc-selection-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== PRICING GRID ===== */
.svc-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .svc-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Protect: 3 columns */
.pro-pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}

@media (max-width: 900px) {
  .pro-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing Card */
.svc-pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.svc-pricing-card:hover {
  border-color: rgba(185, 136, 35, 0.2);
  box-shadow: 0 0 15px rgba(185, 136, 35, 0.03);
}

/* Featured Card (STANDARD) */
.svc-pricing-card.svc-featured {
  background: rgba(185, 136, 35, 0.08);
  border-color: rgba(185, 136, 35, 0.4);
}

.svc-pricing-card.svc-featured:hover {
  border-color: rgba(185, 136, 35, 0.5);
  box-shadow: 0 0 15px rgba(185, 136, 35, 0.05);
}

/* Badge */
.svc-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #b98823;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Badge Varianten für Service-Typen */
.svc-badge-neutral {
  background: rgba(10, 10, 10, 1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.svc-badge-premium {
  background: linear-gradient(135deg, #b98823 0%, #d4a02a 100%);
  color: #000;
}

/* Pricing Header */
.svc-pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.svc-pricing-header h3 {
  font-size: 1.3rem;
  margin: 0 0 16px;
  color: #fff;
  font-weight: 600;
}

.svc-pricing-price {
  margin-bottom: 8px;
}

.svc-price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #b98823;
  line-height: 1;
}

.svc-pricing-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* Features List */
.svc-pricing-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  flex-grow: 1;
}

.svc-pricing-features li {
  position: relative;
  color: #e7e7e7;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 28px;
}

.svc-pricing-features li::before {
  content: "\2714";
  color: #b98823;
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* Feature Highlight (erste Zeile hervorheben) */
.svc-pricing-features li.svc-feature-highlight {
  font-weight: 600;
  color: #b98823;
}

.svc-pricing-features li.svc-feature-highlight::before {
  content: "\2605"; /* Stern */
}

/* Price note (legacy, kann entfernt werden wenn nicht mehr benötigt) */
.svc-price-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0;
  font-style: italic;
}

/* Buttons */
.svc-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.svc-pricing-cta .svc-btn {
  width: 100%;
}

.svc-btn-gold {
  background: rgba(185, 136, 35, 0.2);
  border: 1px solid rgba(185, 136, 35, 0.6);
  color: #b98823;
}

.svc-btn-gold:hover {
  background: rgba(185, 136, 35, 0.9);
  border-color: #b98823;
  color: #000;
}

.svc-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.svc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ===== VERGLEICHSTABELLE ===== */
.svc-hidden {
  display: none !important;
}

.svc-compare-notice {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  max-width: 100%;
  overflow: hidden;
}

.svc-compare-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #b98823;
  font-size: 1rem;
  font-weight: 600;
}

.svc-compare-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.svc-compare-header span {
  flex: 1;
}

.svc-compare-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.svc-compare-icon svg {
  width: 18px;
  height: 18px;
}

.svc-compare-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.svc-compare-toggle svg {
  width: 18px;
  height: 18px;
}

.svc-compare-notice.expanded .svc-compare-toggle {
  transform: rotate(180deg);
}

/* Content (collapsed by default) */
.svc-compare-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  background: transparent;
}

.svc-compare-notice.expanded .svc-compare-content {
  max-height: 2000px;
  padding: 20px 20px 24px;
}

/* Sections */
.svc-compare-section {
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.svc-compare-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.svc-compare-section h4 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 500;
  position: sticky;
  left: 0;
  background: #0a0a0a;
  z-index: 5;
  padding-right: 10px;
  text-align: center;
}

/* Vergleichstabelle - Clean Design */
/* Override Divi/WordPress default table styles */
.svc-compare-table,
.entry-content .svc-compare-table,
.entry-content table.svc-compare-table,
table.svc-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: none !important;
  margin: 0 !important;
}

.svc-compare-table th,
.svc-compare-table td,
.entry-content .svc-compare-table th,
.entry-content .svc-compare-table td {
  padding: 14px 16px;
  text-align: left;
  border: none !important;
  background: transparent;
}

.svc-compare-table thead tr {
  background: rgba(255, 255, 255, 0.06);
}

.svc-compare-table th {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Spaltenüberschriften zentrieren (ausser erste Spalte) */
.svc-compare-table th:not(:first-child) {
  text-align: center;
}

.svc-compare-table tbody tr {
  background: transparent;
}

.svc-compare-table td {
  color: rgba(255, 255, 255, 0.85);
}

/* Check / No markers */
.svc-check {
  color: #b98823 !important;
  font-weight: bold;
  text-align: center !important;
}

.svc-no {
  color: rgba(255, 255, 255, 0.2) !important;
  text-align: center !important;
}

/* Section Header in Vergleichstabelle */
.svc-section-header td {
  background: rgba(185, 136, 35, 0.12) !important;
  color: #b98823 !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px !important;
  letter-spacing: 0.3px;
  position: sticky;
  left: 0;
  z-index: 2;
}

/* Kleinere Schrift unter Spaltenüberschriften */
.svc-compare-table th small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: none;
  opacity: 0.6;
  margin-top: 2px;
}

/* Preistabelle */
.svc-price-table td:not(:first-child),
.svc-price-table th:not(:first-child) {
  text-align: right;
}

.svc-price-table td:not(:first-child) {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  color: #fff;
  font-weight: 500;
}

/* Discount styling */
.svc-discount {
  color: #b98823 !important;
  font-weight: 600;
}

.svc-discount-tag {
  display: inline-block;
  background: rgba(185, 136, 35, 0.15);
  color: #b98823;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

/* Footer note */
.svc-compare-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  padding-top: 20px;
  border: none;
  font-style: normal;
}

/* Last paragraph padding */
p:not(.has-background):last-of-type {
  padding-bottom: 20px;
}

/* Compare Modal (Mobile only) */
.svc-compare-modal {
  display: none !important;
}

.svc-compare-modal .svc-modal-content {
  max-width: 95%;
  width: 95%;
}

.svc-compare-modal .svc-modal-title h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.svc-compare-modal .svc-modal-body {
  padding: 0;
}

.svc-compare-modal .svc-compare-section {
  margin-bottom: 36px;
  padding: 0 20px 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.svc-compare-modal .svc-compare-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 20px;
}

.svc-compare-modal .svc-compare-section:first-child {
  padding-top: 20px;
}

.svc-compare-modal .svc-compare-section h4 {
  position: sticky;
  left: 0;
  background: #0a0a0a;
  z-index: 5;
  padding: 0 20px;
  margin: 0 0 12px 0;
  text-align: center;
}

.svc-compare-modal .svc-compare-note {
  padding: 20px;
  margin: 0;
}

/* Responsive Tables */
@media (max-width: 768px) {
  /* Auf Mobile: Compare-Notice verstecken, Modal nutzen */
  .svc-compare-notice .svc-compare-content {
    display: none !important;
  }

  /* Modal anzeigen auf Mobile */
  .svc-compare-modal.active {
    display: flex !important;
  }

  /* Tabellen im Modal */
  .svc-compare-modal .svc-compare-table {
    font-size: 0.8rem;
    border-radius: 0 !important;
  }

  .svc-compare-modal .svc-compare-table th,
  .svc-compare-modal .svc-compare-table td {
    padding: 10px 8px;
  }

  /* Wrapper für horizontales Scrollen */
  .svc-compare-modal .svc-compare-section {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 36px 0;
    padding: 0 20px 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .svc-compare-modal .svc-compare-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 20px;
  }

  /* Alle Tabellen bekommen Mindestbreite für Scrollen */
  .svc-compare-modal .svc-compare-table {
    min-width: 600px;
  }

  .svc-compare-modal .svc-price-table {
    min-width: 480px;
  }

  /* INSPEKTION Preistabelle (3 Spalten) - kein Scrollen auf Mobile */
  .svc-compare-modal .svc-price-table-3col {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
  }

  .svc-compare-modal .svc-price-table-3col th,
  .svc-compare-modal .svc-price-table-3col td {
    width: 33.33%;
    position: static !important;
  }

  .svc-compare-modal .svc-price-table-3col th::after,
  .svc-compare-modal .svc-price-table-3col td::after {
    display: none;
  }

  /* Sticky erste Spalte - mit solidem Hintergrund gegen Transparenz */
  .svc-compare-modal .svc-compare-table th:first-child,
  .svc-compare-modal .svc-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #0a0a0a;
  }

  /* Thead sticky Zellen - solider Hintergrund */
  .svc-compare-modal .svc-compare-table thead th:first-child {
    background: #181818;
    z-index: 4;
  }

  /* Section Header sticky - komplette Row und TD fix beim horizontalen Scrollen */
  .svc-compare-modal .svc-section-header {
    position: relative;
  }

  .svc-compare-modal .svc-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(185, 136, 35, 0.25);
    z-index: 4;
    pointer-events: none;
  }

  .svc-compare-modal .svc-section-header td {
    background: transparent !important;
    color: #b98823 !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px !important;
    letter-spacing: 0.3px;
    position: sticky;
    left: 0;
    z-index: 5;
    max-width: calc(100vw - 40px);
  }

  /* Schatten für sticky Spalte */
  .svc-compare-modal .svc-compare-table th:first-child::after,
  .svc-compare-modal .svc-compare-table td:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
    z-index: 1;
  }
}

@media (max-width: 480px) {
  /* Compare Modal Tabellen auf schmalen Displays */
  .svc-compare-modal .svc-compare-table {
    font-size: 0.75rem;
    min-width: 500px;
    border-radius: 0 !important;
  }

  .svc-compare-modal .svc-compare-table th,
  .svc-compare-modal .svc-compare-table td {
    padding: 10px 6px;
  }

  /* INSPEKTION Preistabelle (3 Spalten) - kein Scrollen auch auf kleinen Displays */
  .svc-compare-modal .svc-price-table-3col {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
  }

  .svc-compare-modal .svc-price-table-3col th,
  .svc-compare-modal .svc-price-table-3col td {
    width: 33.33%;
    position: static !important;
    padding: 10px 6px;
  }

  .svc-compare-modal .svc-price-table-3col th::after,
  .svc-compare-modal .svc-price-table-3col td::after {
    display: none;
  }

  .svc-compare-modal .svc-compare-section {
    padding: 0 0 16px 0;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .svc-compare-modal .svc-compare-section:first-child {
    padding-top: 16px;
  }

  .svc-compare-modal .svc-compare-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 16px;
  }

  .svc-compare-modal .svc-compare-section h4 {
    left: 0;
    padding: 0 12px;
    margin: 0 0 12px 0;
    text-align: center;
  }

  .svc-compare-modal .svc-discount-tag {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    width: fit-content;
  }

  .svc-compare-modal .svc-section-header td {
    font-size: 0.8rem;
    max-width: 100vw;
    position: sticky;
    left: 0;
    z-index: 5;
  }

  /* Kleinere erste Spalte auf sehr schmalen Displays */
  .svc-compare-modal .svc-compare-table th:first-child,
  .svc-compare-modal .svc-compare-table td:first-child {
    min-width: 140px;
    max-width: 180px;
  }

  /* Modal selbst anpassen */
  .svc-compare-modal .svc-modal-content {
    max-width: 100%;
    width: 100%;
  }

  .svc-compare-modal .svc-modal-header {
    padding: 20px 16px 16px;
  }
}

/* ===== MODAL ===== */
.svc-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: calc(70px + 20px); /* Navbar Höhe + Padding */
}

.svc-modal.active {
  display: flex;
}

/* Scroll-Lock für body wenn Modal offen */
body.svc-modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
}

.svc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.svc-modal-content {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 70px - 40px); /* Viewport - Navbar - Padding oben/unten */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.svc-modal-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.svc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.svc-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.svc-modal-close svg {
  width: 18px;
  height: 18px;
}

/* Progress Bar */
.svc-progress {
  margin-bottom: 20px;
  padding-right: 40px;
}

.svc-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.svc-progress-fill {
  height: 100%;
  background: #b98823;
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 50%;
}

.svc-progress-steps {
  display: flex;
  justify-content: space-between;
}

.svc-step {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.svc-step.active {
  color: #b98823;
  font-weight: 600;
}

.svc-step.completed {
  color: rgba(255, 255, 255, 0.8);
}

/* Selected Plan Display */
.svc-selected-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(185, 136, 35, 0.1);
  border: 1px solid rgba(185, 136, 35, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
}

.svc-plan-name {
  font-weight: 600;
  color: #fff;
}

.svc-plan-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b98823;
}

/* Modal Body */
.svc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

/* Form Steps */
.svc-form-step {
  display: none;
}

.svc-form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.svc-form-step h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 24px;
  font-weight: 500;
}

/* Form Grid */
.svc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.svc-form-group {
  display: flex;
  flex-direction: column;
}

.svc-form-group.svc-full {
  grid-column: 1 / -1;
}

.svc-form-group.svc-col-1 {
  grid-column: span 1;
}

.svc-form-group.svc-col-2 {
  grid-column: span 2;
}

/* Address Row (Strasse + Nr, PLZ + Ort) */
.svc-form-row {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.svc-form-row.svc-row-street {
  grid-template-columns: 1fr 100px;
}

.svc-form-row.svc-row-plz {
  grid-template-columns: 100px 1fr;
}

@media (max-width: 500px) {
  .svc-form-grid {
    grid-template-columns: 1fr;
  }
  .svc-form-group.svc-col-1,
  .svc-form-group.svc-col-2 {
    grid-column: span 1;
  }

  /* Address rows stay side-by-side on mobile */
  .svc-form-row.svc-row-street {
    grid-template-columns: 1fr 80px;
  }

  .svc-form-row.svc-row-plz {
    grid-template-columns: 80px 1fr;
  }
}

/* Labels & Inputs */
.svc-form-group label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.svc-form-group input,
.svc-form-group select,
.svc-form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.svc-form-group input::placeholder,
.svc-form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.svc-form-group input:focus,
.svc-form-group select:focus,
.svc-form-group textarea:focus {
  outline: none;
  border-color: #b98823;
  box-shadow: 0 0 0 3px rgba(185, 136, 35, 0.15);
}

.svc-form-group input.error,
.svc-form-group select.error {
  border-color: #e74c3c;
}

.svc-form-group select option {
  background: #1a1a1a;
  color: #fff;
}

.svc-error {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 18px;
}

/* Checkbox */
.svc-checkbox {
  flex-direction: row !important;
  align-items: flex-start;
}

.svc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.4;
}

.svc-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #b98823;
  margin-top: 2px;
  flex-shrink: 0;
}

.svc-checkbox-label a {
  color: #b98823;
  text-decoration: underline;
}

.svc-agb {
  margin-top: 16px;
}

/* Summary */
.svc-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 24px 0;
}

.svc-summary h4 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.svc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.svc-summary-row span:last-child {
  color: #fff;
  text-align: right;
  max-width: 60%;
}

.svc-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  font-weight: 600;
}

.svc-total-price {
  color: #b98823 !important;
  font-size: 1.3rem;
}

/* Success */
.svc-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.svc-success.active {
  display: block;
}

.svc-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(185, 136, 35, 0.15);
  border: 2px solid #b98823;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #b98823;
  margin: 0 auto 24px;
}

.svc-success h3 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.svc-success p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
}

/* Loading */
.svc-loading {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.svc-loading.active {
  display: flex;
}

.svc-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #b98823;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.svc-loading p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Modal Footer */
.svc-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}

.svc-btn-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.svc-btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.svc-btn-next,
.svc-btn-submit {
  background: #b98823;
  border: none;
  color: #000;
  flex: 1;
  max-width: 200px;
}

.svc-btn-next:hover,
.svc-btn-submit:hover {
  background: #d4a02a;
}

.svc-btn-submit {
  display: none;
}

.svc-modal-footer.step-4 .svc-btn-next {
  display: none;
}

.svc-modal-footer.step-4 .svc-btn-submit {
  display: inline-block;
}

.svc-modal-footer.hidden {
  display: none;
}

/* Responsive Modal */
@media (max-width: 640px) {
  .svc-modal {
    padding: 10px;
    padding-top: calc(70px + 10px); /* Navbar Höhe + Padding */
  }
  .svc-modal-content {
    max-height: calc(100svh - 70px - 20px); /* Small viewport - Navbar - Padding */
    max-height: calc(100dvh - 70px - 20px); /* Dynamic viewport (fallback) */
    border-radius: 15px;
  }

  /* Fallback für Browser ohne svh/dvh Support */
  @supports not (height: 100svh) {
    .svc-modal-content {
      max-height: calc(100vh - 150px); /* Konservative Höhe mit Puffer für URL-Leiste */
    }
  }

  .svc-modal-header {
    padding: 20px 16px 16px;
  }
  .svc-modal-body {
    padding: 20px 16px;
  }
  .svc-modal-footer {
    padding: 16px;
    flex-wrap: nowrap;
  }
  .svc-btn-back {
    flex: 1;
  }
  .svc-btn-next,
  .svc-btn-submit {
    flex: 1;
    max-width: none;
  }
}
