/*   br + br{display:none;}   */

:root {
  --bfg-surface: #ffffff;
  --bfg-surface-muted: #f2f7fb;
  --bfg-border: #d8e6f2;
  --bfg-accent: #014785;
  --bfg-text: #001c35;
  --bfg-text-subtle: #3a3a3a;
  --bfg-shadow: 0 12px 30px rgba(1, 28, 53, 0.08);
  --bfg-radius: 18px;
  --bfg-radius-sm: 12px;
  --bfg-radius-lg: 24px;
}

.buttonMargin{
    margin-top: 10px;
    margin-right: 5px;
}
/* .ergebnis{
  text-align: center;
} */

#finishReg{
    margin-left: auto; 
    width:auto!important; 
   /*  margin-right: 0; */
}

#step7Text{
  padding-bottom: 10px;
}
#familyNameReg{
  padding-top: 10px;
}

.dropDownAge{
  margin-left: 10px;
}
.errorMessage{
  color: red;
  font-weight:bold;
}

.error{
  border: solid 1px red !important;
}

.big {
  display:block;
  width:100px;
  height:100px;
  cursor:pointer;
  position: relative;
}

.big:hover {

  border:1px solid 014785;
}

[type=radio] { 
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* IMAGE STYLES */
  [type=radio] + img {
    cursor: pointer;
  }
  
  /* CHECKED STYLES */
  [type=radio]:checked + img {
    outline: 2px solid #014785;
    border-radius: 2px;
  }

  /* IMAGE STYLES */
  [type=radio] + label {
    cursor: pointer;
  }
    
  /* CHECKED STYLES */
  [type=radio]:checked + label {
    outline: 2px solid #014785;
    border-radius: 2px;
  }
  
  .filterIcons{

   
    height: 50px;
    margin: 3px;
  }
/* 
  .fieldName{
    margin-bottom: 10px;
    padding-bottom: 10px;
  } */
    

/* Layout for category sections with side-by-side placeholder image */
.category-row { display: flex; gap: 20px; align-items: flex-start; }
.category-main { flex: 1 1 auto; }
.category-illustration { flex: 0 0 220px; max-width: 220px; }
.category-illustration img { width: 100%; height: auto; display: block; border-radius: var(--bfg-radius-sm); box-shadow: none; background: transparent; }

@media (max-width: 768px) {
  .category-row { flex-direction: column; }
  /* Hide images on mobile as requested */
  .category-illustration { display: none; }
}

/* Score labels shown under the game image */
.category-illustration .score-under-image {
  margin-top: 8px;
  text-align: center;
}
  .category-illustration .score-under-image h4 {
  margin: 0;
  font-weight: 600;
}

/* Hide native UM submit to ensure only custom button is visible */
.um .um-form input[type="submit"],
#um-submit-btn,
.um .um-form button.um-button {
  display: none !important;
}

.um.um-register,
.um-15018.um {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 450px;
}

.um .um-field-checkbox {
  text-align: left !important;
}
.um .um-field-checkbox input[type="checkbox"] {
  float: left !important;
  margin: 0 !important;
}
.um .um-field-checkbox .um-field-checkbox-option {
  display: block !important;
  margin-left: 36px !important;
  line-height: 24px;
}

/* Final registration row (UM form + summary) */
.final-row { display: flex; gap: 16px; align-items: flex-start; }
.final-main { flex: 1 1 auto; }
.final-summary { flex: 0 0 680px; max-width: 680px; margin: 0 auto; background: transparent; border: none; border-radius: 8px; padding: 20px; text-align: center; box-shadow: none; }
.final-summary h3, .final-summary .summary-title { margin-top: 0; color: #014785; font-weight: 700; }
.final-summary .summary-lead { margin: 6px 0 12px; color: #244a68; }
.final-summary .summary-subtitle { margin: 10px 0; color: #244a68; }
.final-summary .total-points { font-size: 28px; font-weight: 700; color: #014785; margin: 8px 0 14px; }
.final-summary ul { text-align: left; margin: 0 0 0 18px; padding: 0; }

@media (max-width: 768px) {
  .final-row { flex-direction: column; }
  .final-summary { max-width: 100%; }
}

/* Top row layout for Anzahl + Names (stacked, Names below Anzahl) */
.top-row { display: flex; flex-direction: column; gap: 16px; }
.top-col { flex: 1 1 auto; min-width: 0; }

/* Make the first illustration span the top row (Anzahl + Name) */
#box-top .top-row {
  position: relative;
  background: url("../icons/BDG-0022-2026-BFG-Disziplinen-2026-Blitz-Kurier.png") right center no-repeat;
  background-size: contain;
  padding-right: 260px;
  min-height: 220px;
}
#box-top .category-illustration {
  display: none;
}
@media (max-width: 900px) {
  #box-top .top-row {
    background-position: center top;
    background-size: 240px auto;
    padding-right: 0;
    padding-top: 200px;
  }
}

/* Grouped boxes */
.group-box { background: #ffffff; border: 1px solid var(--bfg-border); border-radius: var(--bfg-radius-lg); padding: 24px; box-shadow: none; margin-bottom: 28px; }
.group-box#box-summary,
.group-box#box-registration {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.games-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
/* Games should be untereinander (one below another) on all viewports */
@media (min-width: 900px) {
  .games-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Thin separator between individual games */
#box-games .games-grid > div + div { border-top: 1px solid #e1e6ef; padding-top: 16px; margin-top: 4px; }

/* Reverse order helper for specific game rows on desktop */
@media (min-width: 900px) {
  .row-reverse { flex-direction: row-reverse; }
}

/* Headings & spacing to better match reference */
.group-box h4 { color: #014785; margin: 0 0 4px; font-family: "Open Sans", sans-serif; font-size: 18px; font-weight: 700; }
.group-box .category-row + .category-row { margin-top: 12px; }
.section-spacer { height: 8px; }

/* Password area helper text styling */
#div7 .pw-helper { color: #244a68; background: #f7f9fb; border: 1px solid #e1e6ef; border-radius: 8px; padding: 12px 14px; margin: 6px 0 12px; }
#div7 h4 { color: #014785; margin: 0 0 4px; }

.pw-requirements {
  background: transparent;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.pw-checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.pw-checklist li {
  padding: 5px 0;
  transition: color 0.2s ease;
}

.pw-checklist li.pw-valid {
  color: #28a745;
}

.pw-checklist li.pw-invalid {
  color: #6c757d;
}

.pw-icon {
  display: inline-block;
  width: 20px;
  font-weight: bold;
}

.pw-valid .pw-icon {
  color: #28a745;
}

#pw-match-status {
  margin-top: 8px;
  font-size: 14px;
}

#pw-match-status .pw-valid {
  color: #28a745;
}

/* Form fields */
input[type="text"],
input[type="number"],
input[type="password"],
select {
  width: 100%;
  max-width: 520px;
  padding: 16px;
  border: 2px solid #346C9D;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: var(--bfg-text);
  box-shadow: inset 0 1px 2px rgba(1,28,53,0.04);
}

label.fieldName,
.textLabel,
.textLabele {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bfg-text);
}

#box-blitzkurier #blitzkurierlabel {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

.category-main p,
.category-main label {
  color: var(--bfg-text-subtle);
}

/* First two boxes: keep body text non-bold */
#div0 label,
#div1 label,
#div0 b,
#div1 b {
  font-weight: 400;
}

.game-segment {
  background: #ffffff;
  border-radius: var(--bfg-radius);
  border: 1px solid var(--bfg-border);
  box-shadow: none;
}

/* Buttons */
button,
.buttonMargin {
  background: var(--bfg-accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(1, 71, 133, 0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(1, 71, 133, 0.18);
}

/* Numeric slider + counters */
#NumberOfUser,
#myRange {
  max-width: 260px;
}

#div8 .final-row {
  align-items: stretch;
}

#div8 .um.um-register,
#div8 .um-15018.um {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

/* Error messaging */
.errorMessage {
  background: #ffecec;
  border: 1px solid #f5b5b5;
  border-radius: var(--bfg-radius-sm);
  padding: 8px 10px;
  color: #b50909;
  display: inline-block;
}

/* Final registration box layout */
#box-registration {
  background: #ffffff;
  border-radius: var(--bfg-radius-lg);
  border: 1px solid var(--bfg-border);
  box-shadow: none;
}

/* Registration form blocks (Familienname + Passwort) to feel like a tidy form */
#div6,
#div7,
#div8 {
  max-width: 640px;
  margin: 0 auto 20px;
}

#div6 input,
#div7 input {
  width: 100%;
}

#div6 .fieldName,
#div7 .fieldName {
  display: block;
  margin-bottom: 6px;
}

#div6 .fieldName + input,
#div7 .fieldName + input {
  margin-bottom: 12px;
}

#div7 .pw-requirements {
  margin-top: 0;
}

/* Hide the extra illustration in the name entry box only */
#div1 .category-illustration { display: none; }

/* Inline name + dropdown rows */
#enterNames input[type="text"],
#enterNames select,
#namesAndValues2 input[type="text"],
#namesAndValues2 select,
#namesAndValues3 input[type="text"],
#namesAndValues3 select {
  display: inline-block;
  width: auto;
  min-width: 180px;
  margin-right: 10px;
  vertical-align: middle;
}
