/* Fahrer / Fahrerlager */

.fahrer-title {
    margin-bottom: 30px;
}
.fahrer-intro {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.fahrer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* SLIDER FÜR FAHRZEUGBILDER */
.fahrer-slider {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: var(--msv-blue);
    overflow: hidden;
}
.fahrer-car-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--msv-blue);
    display: block;
}
.fahrer-car-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.fahrer-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1;
    will-change: opacity;
}
.fahrer-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Pfeile im Slider */
.slider-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    user-select: none;
}
.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--msv-yellow);
    transform: translateY(-50%) scale(1.1);
}
.slider-prev {
    left: 10px;
}
.slider-next {
    right: 10px;
}

/* Punkte-Navigation unten links */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 15px;
    display: flex;
    gap: 6px;
    z-index: 5;
}
.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.slider-dot.active {
    background: var(--msv-yellow);
    transform: scale(1.25);
}

/* FIXES PORTRAIT BILD */
.fahrer-portrait-wrapper {
    position: absolute;
    top: 115px;
    right: 20px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #fff;
    background-color: #eee;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10;
}
.fahrer-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3);
    object-position: center 30%;
}
.fahrer-portrait-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    background: #fff;
}

.fahrer-info {
    padding: 35px 20px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fahrer-name {
    color: var(--msv-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
    /* Namen nie mitten im Wort trennen */
    overflow-wrap: normal;
    hyphens: manual;
}
/* Unsichtbarer Platzhalter rechts oben: Nur die ERSTE Zeile (Vorname) weicht
   dem runden Portrait aus, der Nachname darunter hat die volle Kartenbreite.
   Passt ein Vorname nicht daneben, rutscht er automatisch unter das Portrait. */
.fahrer-name::before {
    content: '';
    float: right;
    width: 135px;
    height: 1em;
}
/* Sehr lange Namen (ab 13 Buchstaben) etwas kleiner */
.fahrer-name--long {
    font-size: 1.25rem;
}
.klasse-badge {
    display: inline-block;
    background: var(--msv-yellow);
    color: var(--msv-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
    align-self: flex-start;
}
.fahrzeug-info {
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.erfolge {
    margin-top: 10px;
}
.erfolge-list {
    font-size: 0.9rem;
    color: #555;
    margin-left: 20px;
}

/* TRENNLINIE & ÜBERSCHRIFT FÜR EHEMALIGE FAHRER */
.fahrer-separator {
    height: 3px;
    background: var(--msv-blue);
    width: 100%;
    margin: 60px 0 35px 0;
    border-radius: 2px;
    opacity: 0.8;
}
.fahrer-subtitle {
    color: var(--msv-blue);
    margin-bottom: 30px;
    font-size: 2rem;
}
