/* ==========================================================================
   Ultimatives & Final Korrigiertes Custom CSS (Titel-Box angepasst)
   ========================================================================== */

a:focus {
    outline: none;
    outline-offset: 0px;
}

html, body.page-style-fluid {
  background-color: transparent !important;
  background: transparent !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: #0c273c !important;
  -webkit-font-smoothing: antialiased;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
}

/* Äußeren Rahmen & Schatten für Iframe komplett entfernen */
.container-sheet {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Inhaltsboxen / Karten */
.box {
  border-radius: 20px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  background-color: #ffffff !important;
  color: #0c273c !important;
	font-size:16px !important;
}

.box.plain {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.box.border {
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.box.tinted {
  background-color: #f9fafb !important;
  border-color: #e5e7eb !important;
}

/* Highlight-Boxen (Dunkelblau #0c273c) */
.box.highlight {
  background: #0c273c !important;
  color: #ffffff !important;
  border: none !important;
}

.box.highlight h3, 
.box.highlight .title-text, 
.box.highlight .title-icon,
.box.highlight td,
.box.highlight .info-table td {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background-color: transparent !important;
}

.box.highlight h3 {border:none !important; margin-bottom:0px !important;}

.box.highlight .info-table td:first-child {
  color: rgba(255, 255, 255, 0.8) !important;
}

.box.highlight .table > tbody > tr:hover > td,
.box.highlight .table-hover > tbody > tr:hover > td,
.box.highlight tr:hover > td {
  background-color: transparent !important;
}

.box h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  color: #0c273c !important;
}

/* Icons */
.fa:not([class*="color-"]), .fas:not([class*="color-"]), .far:not([class*="color-"]) {
  color: #0c273c !important;
}

.list-table .fa:not([class*="color-"]), .list-table .fas:not([class*="color-"]), .list-table .far:not([class*="color-"]) {
  color: #fff !important;
}

.box.highlight h3 .fa, 
.box.highlight h3 .fas,
.box.highlight h3 .far {
  color: #ffffff !important;
}

/* Allgemeine Tabellen */
.table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  color: #0c273c !important;
}

.table > tbody > tr > td, 
.table > thead > tr > th {
  padding: 9px 14px !important;
  vertical-align: middle !important;
  font-size: 16px !important;
  color: #0c273c !important;
}

/* Kurstermine & Info-Tabellen neutralisieren */
.box .dates-table > thead > tr > th,
.box.border .dates-table > thead > tr > th,
.box.plain .dates-table > thead > tr > th,
.box.tinted .dates-table > thead > tr > th {
  background-color: #f3f4f6 !important;
  color: #0c273c !important;
  border: 1px solid #e5e7eb !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}

.box .dates-table > tbody > tr > td,
.box.border .dates-table > tbody > tr > td,
.box.plain .dates-table > tbody > tr > td,
.box.tinted .dates-table > tbody > tr > td {
  background-color: #ffffff !important;
  color: #0c273c !important;
  border: 1px solid #e5e7eb !important;
  font-size: 16px !important;
}

.box .info-table tr:last-child td,
.info-table tr:last-child td {
  border-bottom: none !important;
}

/* --------------------------------------------------------------------------
   Kursübersicht (List-Table): Desktop Ansicht (ab 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .list-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
  }

  .list-table > thead > tr > th {
    background-color: #0c273c !important;
    color: #0c273c !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left !important;
    padding: 14px 16px !important;
    border-bottom: 2px solid #e5e7eb !important;
  }
	
  .list-table > thead > tr > th a {
    color: #ffffff !important;
  }

  .list-table > tbody > tr > td {
    padding: 16px !important;
    font-size: 16px !important;
    color: #0c273c !important;
    border-bottom: 1px solid #e5e7eb !important;
    vertical-align: middle !important;
    text-align: left !important;
  }

  .list-table > tbody > tr:last-child > td {
    border-bottom: none !important;
  }

  .list-table > tbody > tr:hover > td,
  .table-hover > tbody > tr:hover > td,
  .table > tbody > tr:hover > td {
    background-color: #f3f4f6 !important;
  }
}

/* --------------------------------------------------------------------------
   Kursübersicht (List-Table): Mobile & Tablet Ansicht (unter 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .list-table {
    background: transparent !important;
    border: none !important;
    display: block !important;
  }
  
  .list-table > thead {
    display: none !important;
  }

  .list-table > tbody {
    display: block !important;
  }

  /* Jedes Kurs-Element als saubere Karte mit Padding, damit der Titel perfekt einrastet */
  .list-table > tbody > tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    padding: 0 20px 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: none;
    overflow: hidden !important;
  }

  /* Bootstrap-Clearfixes auf td ausschalten */
  .list-table > tbody > tr > td:before,
  .list-table > tbody > tr > td:after {
    display: none !important;
    content: none !important;
  }

  /* Standard-Zeilen: Label links, Wert rechts */
  .list-table > tbody > tr > td {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 7px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
    text-align: left !important;
  }

  /* Label: 16px, links */
  .list-table > tbody > tr > td .column-label {
    display: block !important;
    font-weight: 500 !important;
    color: #64748b !important;
    font-size: 16px !important;
    text-align: left !important;
    flex: 1 1 auto !important;
  }

  /* Wert: 16px, rechts */
  .list-table > tbody > tr > td .column-value {
    display: block !important;
    font-size: 16px !important;
    color: #0c273c !important;
    text-align: right !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  /* Kurstitel */
  .list-table > tbody > tr > td.list-table-col-title {
    display: block !important;
    text-align: center !important;
    background-color: #f3f4f6 !important;
    margin: 0 -20px 14px -20px !important;
    padding: 14px 20px !important;
    width: auto !important;
    margin-bottom: 5px !important;
  }

  .list-table > tbody > tr > td.list-table-col-title .column-label {
    display: none !important;
  }

  .list-table > tbody > tr > td.list-table-col-title .column-value {
    display: block !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0c273c !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  /* Letzte Infozeile vor dem Button (Preis) */
  .list-table > tbody > tr > td:nth-last-child(2) {
    border-bottom: none !important;
    padding-bottom: 10px !important;
  }

  /* Button-Bereich (Details) */
  .list-table > tbody > tr > td.list-table-col-action {
    display: block !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 10px !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    clear: both !important;
  }

  .list-table > tbody > tr > td.list-table-col-action .column-value {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    flex: none !important;
    margin-left: 0 !important;
  }

  .list-table > tbody > tr > td.list-table-col-action .btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background-color: #0c273c !important;
    border-color: #0c273c !important;
    color: #ffffff !important;
  }
}

.info-table td:first-child {
  font-weight: 500;
  color: #0c273c !important;
  opacity: 0.75;
  width: 40%;
}

/* Breadcrumbs mit #0c273c */
.nav-breadcrumb {
  display: block;
  overflow: hidden;
  counter-reset: flag;
  margin-bottom: 24px !important;
}

.nav-breadcrumb a {
  text-decoration: none !important;
  outline: none;
  display: block;
  float: left;
  font-size: 15px !important;
  line-height: 36px;
  color: #0c273c !important;
  padding: 0 12px 0 60px !important;
  background: #f3f4f6 !important;
  position: relative;
}

.nav-breadcrumb a:first-child {
  padding-left: 46px !important;
}

.nav-breadcrumb a:first-child:before {
  left: 20px !important;
}

.nav-breadcrumb a:last-child {
  padding-right: 16px !important;
}

.nav-breadcrumb a:after {
  content: '';
  color: #0c273c;
  position: absolute;
  top: 0;
  right: -18px;
  width: 36px;
  height: 36px;
  -webkit-transform: scale(0.707) rotate(45deg);
  transform: scale(0.707) rotate(45deg);
  z-index: 1;
  background: #f3f4f6 !important;
  box-shadow: 2px -2px 0 2px #fff;
  border-radius: 0 5px 0 50px;
}

.nav-breadcrumb a:last-child:after {
  content: none !important;
}

.nav-breadcrumb a:before {
  content: counter(flag);
  counter-increment: flag;
  border-radius: 100%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  margin: 8px 0;
  position: absolute;
  top: 0;
  left: 34px !important;
  background: #ffffff !important;
  font-weight: bold;
  color: #0c273c !important;
  text-align: center;
  font-size: 13px !important;
}

.nav-breadcrumb a.disabled,
.nav-breadcrumb a.disabled:after {
  background: #e5e7eb !important;
  color: #9ca3af !important;
}

.nav-breadcrumb a[href]:hover,
.nav-breadcrumb a.active,
.nav-breadcrumb a[href]:hover:after,
.nav-breadcrumb a.active:after {
  background: #0c273c !important;
  color: #ffffff !important;
}

/* Formulare & Eingabefelder */
form .form-control {
  height: 44px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 16px !important;
  background-color: #fff !important;
  color: #0c273c !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

form .form-control:focus {
  border-color: #0c273c !important;
  box-shadow: 0 0 0 3px rgba(12, 39, 60, 0.15) !important;
}

label {
  font-weight: 500 !important;
  color: #0c273c !important;
  margin-bottom: 6px !important;
  font-size: 16px !important;
}

.postal-address {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

.postal-address legend {
  background: #ffffff !important;
  border: 1px solid #e1e1e8 !important;
  padding: 4px 12px !important;
  border-radius: 4px;
  font-size: 16px !important;
  font-weight: 600;
  color: #0c273c !important;
}

/* Buttons */
.btn {
  border-radius: 30px !important;
  font-weight: 500 !important;
  padding: 8px 20px !important;
  font-size: 16px !important;
  transition: background-color 0.15s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: #0c273c !important;
  border-color: #0c273c !important;
  color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #071725 !important;
  border-color: #071725 !important;
}

.btn-success {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: #047857 !important;
}

/* Allgemeine Mobile Anpassungen für Boxen */
@media (max-width: 767px) {
  .box {
    padding: 16px !important;
  }
  .info-table td {
    display: block;
    width: 100% !important;
    border: none !important;
    padding: 6px 0 !important;
  }
  .info-table td:first-child {
    font-weight: 600;
    color: #0c273c !important;
    padding-top: 12px !important;
	  padding-bottom:0px !important;
  }
}

/* ==========================================================================
   Buchungsseite (Seite 3): Volle Breite & 2 Spalten NUR HIER
   ========================================================================== */

@media (min-width: 992px) {
  /* Zieht nur auf der Buchungsseite die blaue Box und das Formular auf 100% */
  body:has(#the_form) .packery-item,
  body:has(#the_form) form#the_form fieldset.col-md-6#participant {
    width: 100% !important;
  }

  /* Kontaktdaten-Formularfelder auf der Buchungsseite in 2 Spalten aufteilen */
  body:has(#the_form) form#the_form fieldset.col-md-6#participant .box > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 24px !important;
  }
}

/* Checkbox-Beschriftungen am Formularende auf normalen Font-Weight (400) zurücksetzen */
.checkbox label,
#terms_conditions label {
  font-weight: 400 !important;
  font-size: 16px !important;
}

/* Trennlinie bei mobiler Ansicht nur nach dem Wert (letztes TD der Zeile) */
@media (max-width: 767px) {
  .box .info-table tr td,
  .box.highlight .info-table tr td {
    border-bottom: none !important;
  }
  
  /* Nur die Wert-Zelle bekommt den feinen Strich unten */
  .box.highlight .info-table tr td:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 12px !important;
  }
  .box:not(.highlight) .info-table tr td:last-child {
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 12px !important;
  }
  
  /* Nach der allerletzten Zeile (vor dem Button) fliegt der Strich ganz raus */
  .box .info-table tr:last-child td:last-child,
  .box.highlight .info-table tr:last-child td:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

.box.border h3 {border:none !important; margin-bottom: 5px !important;}

.box.border .info-table > tbody > tr > td {
    border-color: #e5e7eb !important;
}

.payments .btn-primary {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
}