/* ==========================================================
   fahrzeuge.css
   Nur für Fahrzeuge.html. Wird NACH style.css eingebunden
   und überschreibt dort nur das, was nötig ist.
   Alle Klassen beginnen mit "fz-", damit andere Seiten
   nicht beeinflusst werden.
   ========================================================== */

main.fz {
    --red: #a22c29;
    --red-dark: #7f1f1d;
    --ink: #1a1a1a;
    --muted: #5f6368;
    --line: #e4e4e4;

    background-color: #fff;
    color: var(--ink);
    padding: clamp(20px, 4vw, 56px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 96px);
}



/* ---------- Überschriften ---------- */



.fz-intro::before {
    content: "";
    width: 56px;
    height: 6px;
    background: var(--red);
}

.fz-intro p {
    margin: 0;
    max-width: 52ch;
    font-size: 19px;
    line-height: 1.5;
    color: var(--muted);
}

main.fz h2 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

main.fz h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- Raster der Module ---------- */

.fz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 28px;
    align-items: start;
}

/* ---------- Karte ---------- */

.fz-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fz-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

.fz-card:has(details[open]) {
    border-color: var(--fz-red);
}

/* Bild */

.fz-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #ececec;
    overflow: hidden;
}

.fz-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fz-card:hover .fz-media img {
    transform: scale(1.03);
}

/* rot-weißer Warnstreifen unten am Bild */
.fz-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: repeating-linear-gradient(135deg,
            var(--red) 0 14px,
            #fff 14px 28px);
}

.fz-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Text unter dem Bild */

.fz-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px 18px;
}

.fz-type {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.fz-body h3 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(26px, 2.4vw, 30px);
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
    /* lange Wörter (z. B. Notstromaggregat) umbrechen statt abschneiden */
    overflow-wrap: break-word;
    hyphens: auto;
}

.fz-sub {
    margin: 4px 0 0;
    font-size: 16px;
    color: var(--muted);
}

/* ---------- Ausklappbarer Bereich ---------- */

.fz-details {
    margin: 0 24px;
    border-top: 1px solid var(--line);
}

.fz-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    user-select: none;
}

.fz-details summary::-webkit-details-marker {
    display: none;
}

/* Plus-Symbol, wird beim Öffnen zum X */
.fz-details summary::after {
    content: "";
    flex: none;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    border: 1.5px solid #c8c8c8;
    border-radius: 50%;
    color: var(--fz-ink);
    background:
        linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
    transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fz-details summary:hover::after {
    border-color: var(--red);
}

.fz-details[open] summary::after {
    transform: rotate(45deg);
    color: #fff;
    background-color: var(--red);
    border-color: var(--red);
}

.fz-details summary:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
    border-radius: 6px;
}

.fz-content {
    padding: 4px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fz-open 0.25s ease;
}

@keyframes fz-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Technische Daten als Kacheln */

.fz-specs {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fz-specs>div {
    min-width: 0;
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 10px;
}

.fz-specs dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.fz-specs dd {
    margin: 2px 0 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.fz-content h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
}

/* Listen: überschreibt die Listen-Abstände aus style.css */

.fz-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.fz-list li {
    position: relative;
    margin: 0;
    padding: 0 0 0 22px;
    font-size: 16px;
    line-height: 1.4;
}

.fz-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    background: var(--red);
}

.fz-note {
    margin: 0;
    padding: 12px 14px;
    background: #fbeeee;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--red-dark);
}

/* ---------- Kleine Displays ---------- */

@media only screen and (max-width: 480px) {
    .fz-body {
        padding: 18px 18px 14px;
    }

    .fz-details {
        margin: 0 18px;
    }

    .fz-body h3 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fz-card,
    .fz-media img,
    .fz-details summary::after {
        transition: none;
    }

    .fz-content {
        animation: none;
    }

    .fz-card:hover {
        transform: none;
    }
}
