/* Wizard-Styling */
    .wizard-container {
      background: white;
      border-radius: 30px;
      padding: 40px;
      box-shadow: var(--shadow);
      border: 1px solid var(--line);
      margin: 30px 0 50px;
    }

    /* Fortschrittsanzeige */
    .progress-bar {
      display: flex;
      justify-content: space-between;
      margin-bottom: 40px;
      position: relative;
      counter-reset: step;
    }

    .progress-bar::before {
      content: "";
      position: absolute;
      top: 25px;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--line);
      z-index: 1;
    }

    .progress-step {
      position: relative;
      z-index: 2;
      background: white;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 3px solid var(--line);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--ink-soft);
      counter-increment: step;
    }

    .progress-step::before {
      content: counter(step);
      font-size: 24px;
      line-height: 1;
    }

    .progress-step.active {
      border-color: var(--brand-2);
      background: var(--brand-2);
      color: white;
      box-shadow: 0 0 0 5px rgba(121,200,63,.2);
    }

    .progress-step.completed {
      border-color: var(--brand-2);
      background: var(--brand-2);
      color: white;
    }

    .progress-step.completed::before {
      content: "✓";
      font-size: 28px;
    }

    .step-label {
      position: absolute;
      top: 70px;
      width: 120px;
      text-align: center;
      font-size: 12px;
      font-weight: 600;
      color: var(--ink-soft);
      left: 50%;
      transform: translateX(-50%);
    }

    /* Sektionen */
    .wizard-section {
      display: none;
      animation: fadeIn 0.5s ease;
    }

    .wizard-section.active {
      display: block;
    }

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

    .section-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 2px solid var(--brand-2);
    }

    .section-icon {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, var(--brand-soft), white);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: var(--brand-2);
      border: 1px solid var(--brand-2);
    }

    .section-header h2 {
      font-size: 24px;
      color: var(--brand-2);
      margin: 0;
    }

    .section-header p {
      margin: 5px 0 0 0;
      color: var(--ink-soft);
      font-size: 14px;
    }

    /* Formular-Gruppen */
    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-bottom: 25px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .form-group label {
      font-weight: 600;
      color: var(--ink);
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .form-group label .required {
      color: var(--brand-2);
      font-size: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      padding: 12px 15px;
      border: 2px solid var(--line);
      border-radius: 12px;
      font-family: inherit;
      font-size: 15px;
      transition: all 0.2s ease;
      background: white;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--brand-2);
      outline: none;
      box-shadow: 0 0 0 4px rgba(121,200,63,.1);
    }

    .form-group input:hover,
    .form-group select:hover,
    .form-group textarea:hover {
      border-color: var(--brand-2);
    }

    .form-group input[readonly] {
      background: #f5f5f5;
      border-color: var(--line);
      cursor: default;
    }

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
#ablaufklasse_group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

#ablaufklasse_group .radio-option {
  margin: 0;
}
    .radio-option input[type="radio"] {
      width: 20px;
      height: 20px;
      accent-color: var(--brand-2);
    }

    .checkbox-group {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .checkbox-group input[type="checkbox"] {
      width: 20px;
      height: 20px;
      accent-color: var(--brand-2);
    }

    /* Preis-Tabelle */
    .price-table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0 30px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .price-table th {
      background: linear-gradient(135deg, var(--brand-2), var(--brand));
      color: white;
      padding: 15px;
      text-align: left;
      font-weight: 600;
    }

    .price-table td {
      padding: 12px 15px;
      background: rgba(255,255,255,.8);
      border-bottom: 1px solid var(--line);
    }

    .price-table tr:last-child td {
      border-bottom: none;
    }

    .price-table .price {
      font-weight: 700;
      color: var(--brand-2);
      text-align: right;
    }

    .price-table .select-cell {
      text-align: center;
    }

    .price-table input[type="checkbox"] {
      width: 22px;
      height: 22px;
      accent-color: var(--brand-2);
    }

    /* Navigations-Buttons */
    .wizard-nav {
      display: flex;
      justify-content: space-between;
      margin-top: 40px;
      padding-top: 30px;
      border-top: 2px solid var(--line);
    }

    .nav-btn {
      padding: 14px 32px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
    }

    .nav-btn.prev {
      background: white;
      color: var(--ink);
      border: 2px solid var(--line);
    }

    .nav-btn.prev:hover {
      border-color: var(--brand-2);
      color: var(--brand-2);
    }

    .nav-btn.next {
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      color: white;
      box-shadow: 0 8px 20px rgba(97,175,45,.3);
    }

    .nav-btn.next:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 25px rgba(97,175,45,.4);
    }

    .nav-btn.submit {
      background: linear-gradient(135deg, var(--brand-2), var(--ink));
      color: white;
    }

    /* Zusammenfassung */
    .summary-box {
      background: linear-gradient(135deg, var(--brand-soft), white);
      border-radius: 20px;
      padding: 30px;
      margin: 30px 0;
      border: 1px solid var(--brand-2);
    }

    .summary-item {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px dashed var(--line);
      gap: 20px;
    }

    .summary-item:last-child {
      border-bottom: none;
    }

    .summary-label {
      font-weight: 600;
      color: var(--ink);
    }

    .summary-value {
      color: var(--brand-2);
      font-weight: 600;
      text-align: right;
    }

    /* Standort-Felder Toggle */
    #standort_felder {
      transition: all 0.3s ease;
    }

    .form-group.invalid input,
    .form-group.invalid select,
    .form-group.invalid textarea,
    .form-group.invalid .radio-group {
      border-color: #d93025 !important;
      box-shadow: 0 0 0 4px rgba(217,48,37,.10) !important;
      background: #fff8f7;
    }

    .form-group.invalid label,
    .form-group.invalid small {
      color: #b42318;
    }

    .field-error {
      color: #b42318;
      font-size: 12px;
      font-weight: 600;
      display: none;
    }

    .form-group.invalid .field-error {
      display: block;
    }

    .pdf-preview-box {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 20px;
      margin: 25px 0;
      box-shadow: var(--shadow);
    }

    .pdf-preview-frame {
      width: 100%;
      height: 780px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fafafa;
    }

    /* Floating Preisbox rechts außerhalb des weißen Containers */
    .floating-price {
      position: fixed;
      top: 20px;
      right: 20px;
      width: 300px;
      z-index: 9999;
      display: none;
      pointer-events: none;
    }

    .floating-price.visible {
      display: block;
    }

    .floating-price-inner {
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(6px);
      border: 2px solid var(--brand-2);
      border-radius: 28px;
      padding: 16px 22px;
      box-shadow: 0 14px 35px rgba(97,175,45,.25);
      pointer-events: auto;
    }

    .floating-price .price-label {
      font-size: 14px;
      color: var(--ink-soft);
      margin-right: 10px;
    }

    .floating-price .price-value {
      font-size: 30px;
      font-weight: 800;
      color: var(--brand-2);
      line-height: 1.1;
      white-space: nowrap;
    }

    .floating-price .price-yearly {
      font-size: 13px;
      color: var(--ink-soft);
      margin-top: 8px;
      text-align: right;
      border-top: 1px dashed var(--line);
      padding-top: 8px;
    }

    /* Responsive */
    @media (max-width: 1499px) {
      .floating-price {
        right: 12px;
        width: 270px;
      }
    }

    @media (max-width: 1100px) {
      .floating-price {
        top: auto;
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
      }

      .floating-price .price-yearly {
        text-align: left;
      }
    }

    @media (max-width: 840px) {
      .wizard-container {
        padding: 20px;
      }

      .progress-step {
        width: 45px;
        height: 45px;
      }

      .step-label {
        font-size: 10px;
        width: 80px;
      }

      .summary-item {
        flex-direction: column;
        gap: 6px;
      }

      .summary-value {
        text-align: left;
      }
    }
	
.behorde-panel {
  background: #f3faef;
  border: 1px solid #d6e5ce;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.behorde-panel-header h3 {
  font-size: 18px;
  margin: 0 0 4px 0;
  color: #355b2b;
}

.behorde-panel-header p {
  font-size: 14px;
  margin: 0 0 16px 0;
  color: #66736b;
}

.behorde-panel-header p{
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.behorde-panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.8fr;
  gap: 16px;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .behorde-panel {
    padding: 20px 18px 22px;
    border-radius: 22px;
  }

  .behorde-panel-header h3 {
    font-size: 24px;
  }

  .behorde-panel-grid {
    grid-template-columns: 1fr; /* Eine Spalte auf Mobilgeräten */
    gap: 16px;
  }

  .behorde-card {
    padding: 18px 16px;
    border-radius: 18px;
    width: 100%; /* Volle Breite */
    box-sizing: border-box; /* Padding inklusive */
  }

  .behorde-card h4 {
    font-size: 20px;
  }

  .behorde-card .radio-group {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.behorde-card {
  background: #fcfdfb;
  border: 1px dashed #d6e5ce;
  border-radius: 12px;
  padding: 14px 16px;
}

.behorde-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #355b2b;
}

.behorde-help {
  font-size: 13px;
  color: #6b776f;
  margin-bottom: 10px;
}

.behorde-card .radio-group{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 6px;
}

.behorde-card .radio-option{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.behorde-card .radio-option label{
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.behorde-card input[type="radio"]{
  width: 22px;
  height: 22px;
  accent-color: var(--brand-2);
}
.behorde-card:last-child .radio-group {
  flex-direction: column;
  gap: 6px;
}
.behorde-card.invalid {
  border: 2px solid #d94a4a;
  background: #fff6f6;
  animation: shakeCard 0.25s;
}

@keyframes shakeCard {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px){
  .behorde-panel{
    padding: 20px 18px 22px;
    border-radius: 22px;
  }

  .behorde-panel-header h3{
    font-size: 24px;
  }

  .behorde-card{
    padding: 18px 16px;
    border-radius: 18px;
  }

  .behorde-card h4{
    font-size: 20px;
  }

  .behorde-card .radio-group{
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}
.email-verify-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:8px;
}

.email-verify-btn{
  padding:10px 18px;
}

.email-verify-status{
  font-size:14px;
  color:var(--ink-soft);
  min-height:20px;
}

.email-verified-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:8px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(121,200,63,.14);
  border:1px solid rgba(97,175,45,.28);
  color:var(--brand-2);
  font-size:12px;
  font-weight:700;
}

.nav-btn.disabled,
.nav-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}
.wizard-nav-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.email-verify-row{
  min-height:22px;
  margin-top:8px;
}

.email-verify-status{
  font-size:14px;
  color:var(--ink-soft);
}
.email-verify-status.error{
  color: #c62828;
  font-weight: 700;
  background: #fff2f2;
  border: 1px solid #f1bcbc;
  padding: 8px 12px;
  border-radius: 8px;
}
.email-verified-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:8px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(121,200,63,.14);
  border:1px solid rgba(97,175,45,.28);
  color:var(--brand-2);
  font-size:12px;
  font-weight:700;
}

.nav-btn.disabled,
.nav-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
  pointer-events:none;
}

.email-verification-overlay{
  position:fixed;
  inset:0;
  background:rgba(22,35,29,.45);
  backdrop-filter:blur(4px);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.email-verification-overlay-card{
  width:min(520px, 100%);
  background:#ffffff;
  border:1px solid rgba(121,200,63,.25);
  border-radius:24px;
  box-shadow:0 20px 50px rgba(34,49,41,.18);
  padding:32px 28px;
  text-align:center;
}

.email-verification-overlay-card h3{
  margin:0 0 10px;
  color:var(--brand-2);
  font-size:28px;
  font-weight:800;
}

.email-verification-overlay-card p{
  margin:0;
  color:var(--ink-soft);
  font-size:16px;
  line-height:1.6;
}

.email-hourglass{
  font-size:54px;
  line-height:1;
  margin-bottom:14px;
  display:inline-block;
  animation:emailHourglassPulse 1.2s ease-in-out infinite;
}

@keyframes emailHourglassPulse{
  0%{ transform:translateY(0) scale(1); opacity:1; }
  50%{ transform:translateY(-2px) scale(1.06); opacity:.82; }
  100%{ transform:translateY(0) scale(1); opacity:1; }
}

@media (max-width: 768px){
  .wizard-nav-right{
    width:100%;
    justify-content:flex-end;
  }

  .email-verification-overlay-card{
    padding:26px 20px;
    border-radius:20px;
  }

  .email-verification-overlay-card h3{
    font-size:22px;
  }

  .email-verification-overlay-card p{
    font-size:15px;
  }
}
.highlight-box {
  background: #f3faef;
  border: 1px solid #d6e5ce;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.highlight-box strong {
  color: #355b2b;
}
/* Navigation Code-Eingabe Styling */
#navCodeGroup {
  margin-right: 8px;
}

#navCodeGroup input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(97,175,45,.2);
}

#navCodeGroup input:disabled {
  background: #f5f5f5;
  border-color: #ccc;
  opacity: 0.6;
}

#navCodeTimerContainer {
  font-size: 13px;
  min-height: 20px;
}

#navResendCodeLink {
  text-decoration: underline;
  cursor: pointer;
}

#navResendCodeLink:hover {
  color: var(--brand);
  text-decoration: none;
}
#inbetriebnahme_date_container,
#inbetriebnahme_year_container {
  margin-bottom: 5px;
}

#inbetriebnahme_switch {
  margin-right: 8px;
}

#inbetriebnahme_year {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
}

#inbetriebnahme_year:focus {
  border-color: var(--brand-2);
  outline: none;
  box-shadow: 0 0 0 4px rgba(121,200,63,.1);
}

#inbetriebnahme_hint_exact,
#inbetriebnahme_hint_year {
  transition: all 0.3s ease;
}
/* Allgemeine mobile Optimierungen */
@media (max-width: 768px) {
  .wizard-container {
    padding: 20px 15px;
  }

  .form-row {
    grid-template-columns: 1fr; /* Eine Spalte für alle Formular-Reihen */
    gap: 15px;
  }

  .progress-bar {
    gap: 5px;
  }

  .progress-step {
    width: 45px;
    height: 45px;
  }

  .progress-step::before {
    font-size: 18px;
  }

  .step-label {
    font-size: 10px;
    width: 70px;
    top: 50px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  /* Buttons in der Navigation */
  .wizard-nav {
    flex-direction: column;
    gap: 15px;
  }

  .wizard-nav-right {
    width: 100%;
    justify-content: center;
  }

  .nav-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Tabellen responsive machen */
  .price-table {
    font-size: 13px;
  }

  .price-table th,
  .price-table td {
    padding: 8px 5px;
  }

  /* Checkbox-Gruppen */
  .checkbox-group {
    align-items: flex-start;
  }

  /* Floating Preisbox */
  .floating-price {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  /* Inbetriebnahme Switch */
  #inbetriebnahme_date_container,
  #inbetriebnahme_year_container {
    width: 100%;
  }

  #inbetriebnahme_datum_exact,
  #inbetriebnahme_year {
    width: 100%;
    box-sizing: border-box;
  }

  /* Behördente-Kacheln */
  .behorde-card .radio-option {
    width: 100%;
  }

  .behorde-card .radio-option label {
    font-size: 15px;
  }
}

/* Extra kleine Geräte */
@media (max-width: 480px) {
  .wizard-container {
    padding: 15px 10px;
  }

  .progress-step {
    width: 35px;
    height: 35px;
  }

  .progress-step::before {
    font-size: 14px;
  }

  .step-label {
    font-size: 8px;
    width: 60px;
    top: 40px;
  }

  .section-header {
    gap: 10px;
  }

  .section-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .nav-btn {
    padding: 10px 15px;
    font-size: 13px;
  }

  .price-table {
    font-size: 12px;
  }
}
/* PLZ Error Overlay */
.plz-error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,35,29,.45);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.plz-error-card {
  width: min(450px, 100%);
  background: #ffffff;
  border: 2px solid #d94a4a;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(34,49,41,.18);
  padding: 32px 28px;
  text-align: center;
}

.plz-error-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
}

.plz-error-card h3 {
  margin: 0 0 10px;
  color: #d94a4a;
  font-size: 24px;
  font-weight: 800;
}

.plz-error-card p {
  margin: 0 0 24px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.plz-error-card .nav-btn.next {
  background: linear-gradient(135deg, #d94a4a, #b33e3e);
  color: white;
  box-shadow: 0 8px 20px rgba(217,74,74,.3);
  border: none;
}

.plz-error-card .nav-btn.next:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(217,74,74,.4);
}
/* Hinweis zur rechtlichen Verbindlichkeit */
.legal-hint {
  background: #f3faef;
  border: 1px solid #d6e5ce;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0 25px 0;
  font-size: 14px;
  color: #355b2b;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legal-hint-icon {
  font-size: 22px;
  line-height: 1;
}

.legal-hint-content {
  flex: 1;
}

.legal-hint strong {
  display: block;
  margin-bottom: 4px;
  color: #1f2a22;
}

.legal-hint p {
  margin: 0;
  line-height: 1.6;
}