/* ===========================================
   KONFIGURATOR.CSS – MOBILE FIRST (WCAG 2.1 AA)
   -------------------------------------------
   1) Reset & Grundeinstellungen
   2) Container & Layout
   3) Pakete & Step-Nummer
   4) Datum-Block
   5) Promo-Container
   6) Basiselemente
   7) Base-Package
   8) Radio-/Checkbox
   9) Info-Icons
   10) Preise, Buttons
   11) Formular-Anker & Verlängerung
   12) Formular-Klassen & Inputs
   13) MODAL (zentriert über Overlay)
   14) Media Queries
=========================================== */

/* -----------------------------------------
   1) Reset & Grundeinstellungen
----------------------------------------- */

body {
  font-family: var(--font-base, sans-serif);
  background-color: #f5f5f5;
  color: #333; /* Textfarbe mit ausreichendem Kontrast */
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* -----------------------------------------
   2) Container & Layout
----------------------------------------- */
.konfigurator-section {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  margin: 20px auto;
  max-width: 100%; /* 100% Breite auf kleinen Screens */
}

@media (min-width: 600px) {
  .konfigurator-section {
    padding: 20px;
    margin: 40px auto;
    max-width: 100%; 
  }
}
@media (min-width: 900px) {
  .konfigurator-section {
    max-width: 900px;
    margin: 50px auto; 
    padding: 30px;
  }
}

.konfigurator-heading,
.base-package-title,
.additional-packages-title,
.eventPackage {
  margin-bottom: 15px;
  margin-left: 0;
}

.eventPackage.label-date {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .eventPackage.label-date {
    font-size: 1.4rem;
  }
}

/* -----------------------------------------
   3) Pakete & Step-Nummer
----------------------------------------- */
.additionalPackage,
.additionalPackage1,
.promo-container {
  margin-bottom: 18px;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;      
  background-color: #fafafa; 
  position: relative; /* Für .step-number (absolute) */
}

.additional-packages-container {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  background-color: #fafafa;
  margin-bottom: 20px;
  position: relative; 
}

/* Step-Nummer – großer, verwaschener Text */
.step-number {
  position: absolute;
  top: -20px;
  right: 0px;
  color: #333;
  font-size: 3.2em; 
  font-family: 'Lato', sans-serif; 
  font-weight: bold;
  filter: blur(1.5px);
  opacity: 0.3;
  z-index: 1;
  pointer-events: none; /* Klick dahinter blockiert nicht */
}
@media (min-width: 480px) {
  .step-number {
    top: -20px;
    right: 0px;
    font-size: 3.5em; 
  }
}
@media (min-width: 768px) {
  .step-number {
    top: -20px;
    right: 5px;
    font-size: 3.7em;
  }
}

.additionalPackage.date-block {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}
.label-date {
  display: block;
  margin-bottom: 8px;
}
.date-input-row {
  margin-top: 0.7rem;
  display: flex; 
  flex-direction: column;
  gap: 6px;
}
.date-field {
  box-sizing: border-box;
  width: 100%;
  max-width: 220px;
  margin-bottom: 10px;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}
.date-field:focus {
  border-color: #007bff;
}
@media (min-width: 600px) {
  .date-field {
    max-width: 250px;
  }
}
@media (min-width: 900px) {
  .date-field {
    max-width: 300px;
  }
}

/* -----------------------------------------
   4) Promo-Container im Mobile-First-Kontext
----------------------------------------- */
.promo-container {
  margin-top: 10px;
}
.error-message-aktionscode {
  font-size: 0.9rem;
  margin-top: 4px;
  display: inline-block;
  margin-left: 0;
}

.error-message-paket,
.error-message-date {
  font-weight: bold; /* macht den Text fett */
  color: red;        /* gibt dem Text die Farbe Rot */
}

/* -----------------------------------------
   5) Weitere Basiselemente
----------------------------------------- */
.eventPackage {
  display: inline-block;
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.hidden {
  display: none;
}

.promo-title,
.extension-heading,
.playtimetext,
.additional-packages-text {
  margin: 0;
}

.extension-heading,
.promo-title {
  margin-bottom: 0.7rem;
}

.playtimetext {
  font-size: 0.7rem;
  margin-left: 0.8rem;
}

.additional-packages-text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}


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

.disabled-content {
  position: relative;    /* Wichtig, damit ::after innerhalb liegt */
  opacity: 1; 
  pointer-events: none; 
  cursor: not-allowed;
}

.disabled-content::before {
  content: "✓";
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;

  color: #007bff;        /* Haken in Blau */
  font-size: 1rem;
  z-index: 2;            /* über dem Inhalt */
}


/* Paket1: eigenes Overlay */
.disabled-content-paket1::after {
  content: "Bewegtes Licht bereits enthalten";
  position: absolute;
  top: 0.2rem;
  left: 2.3rem;
  background-color: #fafafa;);
  color: blue;
  padding: 0.5rem 0.1rem;
  font-size: 1rem;
  z-index: 1;
}

/* Paket2: eigenes Overlay */
.disabled-content-paket2::after {
  content: "Ambiente-Lichter bereits enthalten";
  position: absolute;
  top: 0.2rem;
  left: 2.3rem;
  background-color: #fafafa;
  color: blue;
  padding: 0.5rem 0.1rem;
  border-radius: 4px;
  font-size: 1rem;
  z-index: 1;
}

/* -----------------------------------------
   6) Base-Package moderner Stil
----------------------------------------- */
.base-package-container {
  background-color: #fdfdfd; 
  border: 1px solid #eee; 
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.base-package-title {
  margin-top: 0;
  margin-bottom: 0.7rem;
}
.base-package-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-item {
  position: relative;
  padding-left: 28px; 
  margin-bottom: 10px;
  line-height: 1.4;
}

.list-item::before {
  content: "✓";
  font-size: 1rem;
  color: #007bff;
  font-family: "Noto Sans", sans-serif;
  position: absolute;
  left: 0;
  /* Anstatt 'top: 50%; transform: translateY(-50%)' => einfach oben ausrichten: */
  top: 0; 
  transform: none; /* oder komplett weglassen */
}
@media (min-width: 600px) {
  .base-package-title { /* optional */}
  .list-item { /* optional */}
}
@media (min-width: 900px) {
  .base-package-title { /* optional */}
  .list-item {
    margin-bottom: 12px;
  }
}

/* -----------------------------------------
   7) Radio-/Checkbox-Reihen
----------------------------------------- */
.radio-row input[type="radio"],
.radio-row input[type="checkbox"] {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
}
.radio-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap; 
  gap: 8px;      
}
.radio-row label {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;  
  color: #333;
  user-select: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.radio-row label:hover {
  color: #0056b3;
}

/* RADIO (rund) */
.radio-row input[type="radio"] + label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #007bff;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.radio-row input[type="radio"]:checked + label::before {
  background-color: #007bff;
  border-color: #007bff;
}
/* Weißer Punkt */
.radio-row input[type="radio"] + label::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.radio-row input[type="radio"]:checked + label::after {
  opacity: 1;
}

/* CHECKBOX (eckig) */
.radio-row input[type="checkbox"] + label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #007bff;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.radio-row input[type="checkbox"]:checked + label::before {
  background-color: #007bff;
  border-color: #007bff;
}
/* Weißer Haken */
.radio-row input[type="checkbox"] + label::after {
  content: "✓";
  color: #fff !important;
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.radio-row input[type="checkbox"]:checked + label::after {
  opacity: 1;
}
/* Fokus-Stil Tastatur */
.radio-row input[type="radio"]:focus + label,
.radio-row input[type="checkbox"]:focus + label {
  outline: 2px dotted #007bff;
  outline-offset: 3px;
}

/* Wenn der unsichtbare Input den Fokus bekommt, 
   heben wir das Kontrollkästchen am Label hervor: */
   .radio-row input[type="radio"]:focus + label::before,
   .radio-row input[type="checkbox"]:focus + label::before {
     outline: 2px dotted #007bff;
     outline-offset: 2px;
   }

/* =========================================
   8) Info-Icons
========================================= */
.info-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.8rem;
  margin-left: 4px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}
.info-icon:hover {
  background-color: #777;
}
.tip-style {
  color: darkblue;
  margin-left: 2px;
}
.info-icon:hover,
.info-icon:focus {
  color: white;    /* Hover-/Fokusfarbe */
}
.info-icon:focus {
  outline: 2px dotted #007bff;  /* sichtbarer Tastatur-Fokus, WCAG-konform */
  outline-offset: 2px;
}

/* =========================================
   9) Preise & Buttons
========================================= */

.total-price-container {
  margin-top: 18px;
  background-color: #fafafa;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.price-label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  display: block; 
  margin-left: 0;
}
/* Mobile: Preis in neuer Zeile, 3rem */
.total-price {
  font-size: 3rem;
  color: #007bff;
  display: block;
  margin-left: 0;
  margin-bottom: 6px;
}
/* Desktop: in einer Zeile, größerer Font */
@media (min-width: 900px) {
  .price-label {
    display: inline-block;
    margin-bottom: 0;
    font-size: 1.2rem;
  }
  .total-price {
    display: inline-block;
    font-size: 3rem; 
    margin-left: 10px;
    margin-bottom: 0;
  }
}
.discount-info {
  color: #666;
  font-size: 0.85rem;
  margin-top: 2px;
}
.cost-description {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #444;
  line-height: 1.4;
  margin-left: -0.8rem;
}
@media (min-width: 768px) {
  .cost-description {
    margin-left: -2.5rem;
  }
}

.btn-generate-order {
  margin-top: 14px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  width: 100%;
}
.btn-generate-order:hover {
  background-color: #0056b3;
}

.btn-generate-order:focus {
  outline: 2px dotted #007bff;  /* sichtbarer Tastatur-Fokus, WCAG-konform */
  outline-offset: 2px;
}

/* =========================================
   10) Formular-Anker & Verlängerung
========================================= */
.form-anchor {
  margin-top: 20px;
}
.extension-label {
  font-size: 0.95rem;
  font-weight: 500;
}
.extension-select {
  margin-left: 5px;
  padding: 4px 6px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

/* =========================================
   11) Formular-Klassen & Inputs
========================================= */
.konfigurator-form-wrapper {
  background-color: #fdfdfd; 
  border: 1px solid #eee; 
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.selected-packages,
.selected-packages2,
.selected-packages1 {
  background-color: #fdfdfd; 
  border: 1px solid #eee; 
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-left: 0;
}
.form-main-title {
  font-size: 1.2rem;  
  margin-bottom: 15px;
  font-weight: 600;
}
.form-main-title {
  margin-left: 0;
}
.form-subtitle {
  font-weight: 700;
  font-size: 1.0rem;
  margin-bottom: 5px;
  margin-left: 0;
}
.date-display {
  margin: 0;
}
.email-error-text {
  color: #d32f2f; /* Dunkleres Rot */
  min-height: 1em;
  font-size: 0.9rem;
  margin-top: 2px;
}
.error-message {
  text-align: center;
  padding: 20px;
  background-color: #c62828; /* Dunkleres Rot */
  color: white;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.success-message {
  text-align: center;
  padding: 20px;
  background-color: #388E3C; /* Dunkleres Grün */
  color: white;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.contact-label {
  font-weight: 500;
  margin-top: 10px;
  display: block;
}
.contact-note {
  font-size: 0.75rem;
  color: #999;
}
.pre-line-text {
  display: inline-block;
  white-space: pre-line;
  margin: 0;
  padding: 0;
}
.music-end-label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 500;
}
.music-end-info {
  font-size: 0.6rem;
  margin-left: 5px;
  color: #666;
}
/* Consent-Checkbox-Zeile */
.consent-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.consent-checkbox {
  margin-right: 5px;
}
.consent-label {
  font-size: 0.9rem;
  color: #333;
}

/* Inputs, Select, Textarea */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.6em 0.8em;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-base, sans-serif);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
}
::placeholder {
  color: #777;
  opacity: 1;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
  outline: none;
  outline: 2px dotted #007bff; 
  outline-offset: 2px;
}

.captcha-wrapper {
  display: flex;
  flex-direction: column;  /* Standard: alles untereinander */
  gap: 1rem;               /* Abstand zwischen Spalten/Zeilen */
  margin-bottom: 1rem;     /* etwas Platz nach unten */
}

.captcha-image-container label,
.captcha-image-container img {
  margin: 0 !important;     /* Standardabstand entfernen */
  padding: 0; 
}

.captcha-image-container img {
  width: 250px;
  height: auto;
  width: auto;
}


/* 1) Captcha-Link (.reload-captcha-link)*/

/* Hover & Focus (Tastatur oder Maus) */
.reload-captcha-link:hover,
.reload-captcha-link:focus {
  color: #0056b3;       /* etwas dunkler */
  outline: none;        /* Standard-Outline aus; wir definieren :focus-visible */
}

/* Nur Tastatur-Fokus sichtbar machen */
.reload-captcha-link:focus-visible {
  outline: 2px dotted #007bff; 
  outline-offset: 2px;
}

/* 2) Checkbox (.consent-checkbox)*/

/* Fokus (nur Tastatur) */
.consent-checkbox:focus-visible {
  outline: 2px dotted #007bff;
  outline-offset: 4px; 
}

/* 3) Submit-Button (.submit-button-config)*/

/* Hover & Fokus (Maus oder Tastatur) */
.submit-button:hover,
.submit-button:focus {
  background-color: darkgreen;
  outline: none;  
  font-weight: bold;
  color: white;
}

/* Nur Tastatur-Fokus sichtbar machen */
.submit-button:focus-visible {
  outline: 2px dotted #007bff;
  outline-offset: 4px; 
}

/* ================================
   Datenschutz-Link
   ================================ */

/* Hover + Fokus (Maus oder Tastatur) */
.datenschutz-link:hover,
.datenschutz-link:focus {
  color: #0056b3;       /* dunkler Blau-Ton */
  outline: none;        /* Standard-Outline aus; wir verwenden :focus-visible */
}

/* Nur bei Tastaturfokus (Focus Visible) – Outline als klare Markierung */
.datenschutz-link:focus-visible {
  outline: 2px dotted #007bff; 
  outline-offset: 2px;
}



/* -----------------------------------------
   12) MODAL (modern & mittig, WCAG-tauglich)
----------------------------------------- */
.modal {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw; 
  height: 100vh;
  background-color: rgba(0,0,0,0.6); /* dunkles Overlay */
  display: flex; 
  align-items: center;  /* Vertikale Zentrierung */
  justify-content: center;  /* Horizontale Zentrierung */
  z-index: 9999;
}

/* Wenn versteckt */
.modal.hidden {
  display: none;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background-color: whitesmoke;
  border-radius: 6px;
  padding: 20px;

  /* Optional, damit es nicht zu breit wird */
  max-width: 600px;
  width: 96%;

  /* Damit viel Inhalt nicht nach unten rausläuft */
  max-height: 80vh;
  overflow-y: auto;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.modal-content p {
  margin: 0;
  margin-top: 0rem;
  margin-bottom: 0.1rem;
  margin-left: -0.2rem;
}

/* Schließen-Button (X) */
.modal-close {
  position: absolute;
  top: -5px;
  right: 10px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  color: #666;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: #000;
}
.modal-close:focus {
  outline: 3px dotted #007bff;
  outline-offset: 3px;
}

/* WCAG-Link-Stil im Modal */
.modal-content a {
  color: #007bff;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.modal-content a:hover,
.modal-content a:focus {
  color: #0056b3;
}

/* Ab 600px -> Tablet */
@media (min-width: 600px) {
  .modal-content {
    padding: 24px;
  }
  .modal-content p {
    font-size: 1.05rem;
  }
}

/* Ab 900px -> Desktop */
@media (min-width: 900px) {
  .modal-content {
    padding: 30px;
  }
  .modal-content p {
    font-size: 1.1rem;
  }
}


/* -----------------------------------------
   13) MEDIA QUERIES für Formular
   (Tablet/600px & Desktop/900px)
----------------------------------------- */
@media (min-width: 600px) {
  .form-main-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  .form-subtitle {
    font-size: 1.1rem;
  }
  /* Eingabefelder größer */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    font-size: 1rem;
    padding: 0.7em 1em;
  }
  /* Submit-Button ab 600px nicht mehr volle Breite */
  .submit-button {
    width: auto;
    padding: 10px 24px;
  }
}
@media (min-width: 900px) {
  .form-main-title {
    font-size: 1.6rem;
  }
  .form-subtitle {
    font-size: 1.2rem;
  }
  .email-error-text {
    font-size: 1rem;
  }
  /* Eingabefelder noch minimal größer */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="time"],
  select,
  textarea {
    font-size: 1.05rem;
    padding: 0.8em 1.1em;
  }
}