/* ===================
   SCHRITT 1: SERIE / MODELLAUSWAHL
   =================== */
.konfigurator-schritt {
    background-color: #f8f8f8;
    padding: 50px 25px;
}

.konfigurator-schritt h2 {
    text-align: center;
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    color: #314044;
	font-weight: bold;
	padding: 0;
    margin-bottom: 20px;
	text-transform: uppercase
}

.konfigurator-schritt h3 {
    font-size: 20px;
	text-align: center;
	font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    color: #314044;
	padding: 0;
    margin-bottom: 15px;
}

.eq-bildwahl {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.eq-bild {
    flex: 1 1 calc(25% - 1em);
    text-align: center;
    border: 2px solid #dddddd;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.eq-bild img {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-bottom: 0.5em;
}

.eq-bild p {
    margin: 0;
    font-weight: bold;
    color: #606d71;
}

.eq-bild.active {
    border-color: #d71920;
    background-color: #fff0f0;
}
.eq-bild.active p {
    color: #314044;
}

.eq-konfiguration-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    margin-top: 2em;
}

.eq-konfiguration-row .eq-select-wrap {
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.eq-konfiguration-row select {
    width: 100%;
    padding: 0.5em;
    font-size: 16px;
    font-family: 'Libre Franklin', sans-serif;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #fff;
}

/* ===================
   NAVIGATION (Steps)
   =================== */
.konfigurator-nav,
.konfigurator-nav-bar,
.nav-step-block {
    overflow: visible !important;
}
.konfigurator-nav {
    width: 100%;
    margin: 0 0 2px 0;
}

.konfigurator-nav-bar {
    display: flex;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.nav-step-block {
    position: relative;
    flex: 1;
    padding: 0.75em 0.5em;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    border-right: 2px solid white;
}

.nav-step-block:last-child {
    border-right: none;
}

.nav-step-block .step-number {
    font-weight: bold;
}

.nav-step-block .step-title {
    display: inline-block;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-step-block.done {
    background-color: #314044;
    color: white;
}

.nav-step-block.pending {
    background-color: #e6e7e8;
    color: #606d71;
    cursor: default;
}

.nav-step-block.active {
    background-color: #d71920;
    color: white;
    flex: 0 0 50%;
}

/* Tooltip */
.nav-step-block:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    font-family: 'Libre Franklin', sans-serif;
    border-radius: 0;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    margin-bottom: 10px;
}
.nav-step-block:hover::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #314044 transparent transparent transparent;
    z-index: 10;
}


/* ===================
   SCHRITTE EIN-/AUSBLENDEN
   =================== */
.konfigurator-schritt,
.reiter {
    display: none;
}
.konfigurator-schritt.active,
.reiter.active {
    display: block;
}

/* ===================
   OPTIONEN (Checkbox/Radio Style)
   =================== */
.untergruppe {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.untergruppe label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 100px;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    padding: 10px;
}
.untergruppe input {
    display: none;
}
.untergruppe label:hover {
    border-color: #314044;
}
.untergruppe input:checked + span {
    border: 2px solid #d71920;
    background-color: #fff0f0;
    font-weight: bold;
}
.untergruppe input:checked + span::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.5rem;
    color: #d71920;
}
.untergruppe span {
    display: block;
    width: 100%;
}
.untergruppe small {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.85em;
}
.untergruppe .option-deaktiviert {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
}

/* ===================
   BUTTONS (Weiter / Zurück / Absenden)
   =================== */
.step-nav-buttons {
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
}
.step-nav-buttons button,
.bulmor-konfigurator-form button[type="submit"] {
    background-color: #d71920;
    border: 2px solid #d71920;
    color: white;
    padding: 0.6em 1.5em;
    border-radius: 0;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.step-nav-buttons button:hover,
.bulmor-konfigurator-form button[type="submit"]:hover {
    background-color: #314044;
    border-color: #314044;
}
.konfigurator-schritt[data-step="1"] .step-nav-buttons {
    justify-content: flex-end;
    margin-top: 3em;
}


/* Karten-Gitter */
.konfig-auswahl-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin-bottom: 50px;
}

.konfig-auswahl-option {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 0.6em 1.2em;
    cursor: pointer;
    background-color: #fff;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.konfig-auswahl-option:hover {
    border-color: #314044;
}

.konfig-auswahl-option.active {
    border-color: #d71920;
	background-color: #fff0f0;
    color: #314044;
}

/* Hubmast-Grid: exakt 3 in einer Reihe */
.hubmast-grid .konfig-auswahl-option {
    flex: 1 1 calc(33.333% - 1em);
    max-width: calc(33.333% - 1em);
    box-sizing: border-box;
}
.konfig-auswahl-option {
    padding: 0.75em 1em;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
