/* AK Fahrzeugmarkt Frontend Styles */

/* ─── CI Custom Properties (overridden by WordPress settings) ─── */
:root {
    --ak-primary: #1a3a5c;
    --ak-button: #1a3a5c;
    --ak-button-text: #ffffff;
    --ak-accent: #e8491d;
    --ak-header-bg: #1a3a5c;
    --ak-header-text: #ffffff;
    --ak-price: #1a3a5c;
    --ak-badge-neu-bg: #e8491d;
    --ak-badge-neu-text: #ffffff;
}

/* ─── Globaler Button-Reset: Kein roter Rand auf keinem Button ─── */
.ak-fm-container button,
.ak-fm-container .ak-fm-detail-btn,
.ak-fm-container input[type="submit"],
.ak-fm-detail-page button,
.ak-fm-detail-page .ak-fm-detail-btn,
.ak-fm-detail-page input[type="submit"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.ak-fm-container button:focus,
.ak-fm-container button:active,
.ak-fm-container .ak-fm-detail-btn:focus,
.ak-fm-container .ak-fm-detail-btn:active,
.ak-fm-detail-page button:focus,
.ak-fm-detail-page button:active,
.ak-fm-detail-page .ak-fm-detail-btn:focus,
.ak-fm-detail-page .ak-fm-detail-btn:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Container nimmt 100% der verfügbaren Breite ein */
.ak-fm-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
    box-sizing: border-box;
}

.ak-fm-container *,
.ak-fm-container *::before,
.ak-fm-container *::after {
    box-sizing: border-box;
}

/* ===== FILTER BAR ===== */

.ak-fm-filters {
    background: #f5f7f9;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 30px;
    box-shadow: none;
}

.ak-fm-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ak-fm-filter-row:last-child {
    margin-bottom: 0;
}

.ak-fm-filter-select {
    padding: 8px 12px;
    border: 1px solid #dce1e8;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 40px;
    box-shadow: none;
}

.ak-fm-filter-select:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ak-fm-filter-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Schnellsuche Input */
.ak-fm-filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ak-fm-filter-input:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ak-fm-filter-input:focus {
    outline: none;
    border-color: var(--ak-button, #2e6ea6);
    box-shadow: 0 0 0 3px rgba(46, 110, 166, 0.15);
}

.ak-fm-filter-input::placeholder {
    color: #999;
    font-weight: 400;
}

.ak-fm-search-row {
    margin-bottom: 10px;
}

/* Checkbox Filter Row */
.ak-fm-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px solid #e8e8e8;
}

.ak-fm-checkbox-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    user-select: none;
    white-space: nowrap;
}

.ak-fm-checkbox-filter:hover {
    border-color: var(--ak-button, #2e6ea6);
    background: #f0f6fb;
}

.ak-fm-checkbox-filter:has(.ak-fm-checkbox-input:checked) {
    background: var(--ak-button, #2e6ea6);
    border-color: var(--ak-button, #2e6ea6);
    color: var(--ak-button-text, #fff);
}

.ak-fm-checkbox-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--ak-button, #2e6ea6);
}

.ak-fm-checkbox-label {
    font-weight: 500;
    line-height: 1;
}

/* Filter Actions Row */
.ak-fm-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}

.ak-fm-btn-reset {
    padding: 7px 16px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ak-fm-btn-reset:hover {
    background: #e8e8e8;
    color: #333;
}

/* ===== BUTTONS ===== */

.ak-fm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.ak-fm-btn-search {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #d0d0d0;
}

.ak-fm-btn-search:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.ak-fm-btn-submit {
    padding: 7px 16px;
    background: var(--ak-button);
    color: var(--ak-button-text);
    border-radius: 4px;
    font-size: 12px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.ak-fm-btn-submit:hover {
    background: #2a5a8c;
    box-shadow: none;
}

.ak-fm-btn-expose,
a.ak-fm-btn-expose,
a.ak-fm-btn-expose:link,
a.ak-fm-btn-expose:visited {
    background: var(--ak-button);
    color: #ffffff !important;
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: none;
    text-decoration: none;
}

.ak-fm-btn-expose:hover,
a.ak-fm-btn-expose:hover {
    background: #2a5a8c;
    text-decoration: none;
    color: #ffffff !important;
    box-shadow: none;
}

.ak-fm-btn-expose:active {
    opacity: 0.9;
    box-shadow: none;
}

/* ===== RESULTS HEADER ===== */

.ak-fm-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f7f9;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.ak-fm-results-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.ak-fm-pagination {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    min-width: 200px;
}

.ak-fm-sort,
.ak-fm-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ak-fm-sort::before {
    content: "Sortierung:";
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.ak-fm-per-page::before {
    content: "Pro Seite:";
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.ak-fm-sort select,
.ak-fm-per-page select {
    min-width: 150px;
}

/* ===== PAGINATION ===== */

.ak-fm-pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ak-fm-page-link,
.ak-fm-page-current {
    padding: 6px 12px;
    border: 1px solid #dce1e8;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 38px;
    text-align: center;
}

.ak-fm-page-link:hover {
    border-color: var(--ak-button);
    background-color: #f0f8ff;
    color: var(--ak-button);
}

.ak-fm-page-current {
    background-color: var(--ak-button);
    color: #ffffff;
    border-color: var(--ak-button);
    cursor: default;
}

.ak-fm-page-ellipsis {
    padding: 8px 5px;
    color: #999;
    font-weight: 500;
}

.ak-fm-pagination-bottom {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ===== VEHICLES LIST ===== */

.ak-fm-vehicles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.ak-fm-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    font-size: 16px;
}

/* ===== VEHICLE CARD ===== */

.ak-fm-vehicle-card {
    background-color: #ffffff;
    border: 1px solid #e2e6ec;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ak-fm-vehicle-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #c0c8d4;
}

.ak-fm-vehicle-title {
    display: block !important;
    width: 100% !important;
    background-color: var(--ak-header-bg) !important;
    color: var(--ak-header-text) !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

/* Ensure title stays correct on hover (if rendered as <a> tag) */
.ak-fm-vehicle-title:hover,
.ak-fm-vehicle-title:focus,
.ak-fm-vehicle-title:visited,
.ak-fm-vehicle-title:active,
a.ak-fm-vehicle-title,
a.ak-fm-vehicle-title:link,
a.ak-fm-vehicle-title:visited,
a.ak-fm-vehicle-title:hover {
    color: var(--ak-header-text) !important;
    text-decoration: none !important;
    background-color: var(--ak-header-bg) !important;
}

.ak-fm-vehicle-body {
    display: grid;
    grid-template-columns: 280px 1fr 220px;
    gap: 20px;
    padding: 16px;
    align-items: start;
}

.ak-fm-vehicle-image {
    position: relative;
}

.ak-fm-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border: 1px solid #e2e6ec;
    border-radius: 6px;
    overflow: hidden;
    /* Kein display:flex – Firefox positioniert absolut positionierte Kinder
       innerhalb von Flex-Containern falsch (justify-content/align-items leckt
       in die Positionsberechnung). Bild wird stattdessen per object-fit zentriert. */
    display: block;
}

.ak-fm-no-image {
    color: #999;
    font-size: 13px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.ak-fm-vehicle-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    cursor: pointer;
    -webkit-transition: transform 0.2s ease;
    -moz-transition: transform 0.2s ease;
    transition: transform 0.2s ease;
}

.ak-fm-vehicle-img:hover {
    transform: scale(1.02);
}

.ak-fm-image-count {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    background: var(--ak-button, #1a3a5c) !important;
    background-color: #1a3a5c !important;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 10px 6px 14px;
    border-radius: 6px 0 0 0;
    z-index: 10;
    box-shadow: -2px -2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    line-height: 1;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    float: none !important;
    width: auto !important;
    height: auto !important;
}

/* ───NEU Badge ─── */
.ak-fm-badge-neu {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    background: var(--ak-button, #1a3a5c) !important;
    background-color: #1a3a5c !important;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px 6px 10px;
    border-radius: 0 0 6px 0;
    z-index: 10;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    line-height: 1;
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
}

/* NEU badge on detail page */
.ak-fm-detail-badge-neu {
    display: inline-block;
    background: var(--ak-badge-neu-bg);
    color: var(--ak-badge-neu-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-left: 12px;
    vertical-align: middle;
}

/* ===== VEHICLE DATA ===== */

.ak-fm-vehicle-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 5px 0;
}

.ak-fm-data-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ak-fm-data-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.ak-fm-icon {
    font-size: 16px;
    min-width: 18px;
    display: inline-block;
}

/* ===== VEHICLE PRICE SECTION ===== */

.ak-fm-vehicle-price {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    text-align: right;
}

.ak-fm-upe {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.ak-fm-upe span {
    font-weight: 600;
}

.ak-fm-savings {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
}

.ak-fm-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--ak-price);
    line-height: 1;
    margin: 5px 0;
}

.ak-fm-mwst {
    font-size: 12px;
    color: #666;
}

/* ===== VEHICLE FOOTER ===== */

.ak-fm-vehicle-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background-color: #fafafa;
    border-top: 1px solid #e0e0e0;
    padding: 10px 16px;
    font-size: 13px;
    color: #555;
}

.ak-fm-footer-dealer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ak-fm-footer-dealer .ak-fm-icon {
    margin-top: 2px;
}

.ak-fm-footer-dealer div {
    font-size: 12px;
    line-height: 1.5;
}

.ak-fm-footer-dealer strong {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.ak-fm-footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.ak-fm-footer-info div {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ak-fm-footer-info strong {
    font-weight: 600;
    color: #333;
}

.ak-fm-footer-anfahrt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ak-button);
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 4px;
}

.ak-fm-footer-anfahrt:hover {
    text-decoration: underline;
    color: var(--ak-primary);
}

.ak-fm-footer-anfahrt svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ===== LOADING SPINNER ===== */

.ak-fm-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
}

.ak-fm-loading.active {
    display: block;
}

.ak-fm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--ak-button);
    border-radius: 50%;
    animation: ak-fm-spin 0.8s linear infinite;
}

@keyframes ak-fm-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== LIGHTBOX/GALLERY ===== */

.ak-fm-lightbox {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.ak-fm-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ak-fm-lightbox-content {
    position: relative;
    background-color: #000;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    overflow: hidden;
}

.ak-fm-lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ak-fm-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.ak-fm-lightbox-close:hover {
    color: #ccc;
}

.ak-fm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px 20px;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    transition: background 0.2s ease;
    z-index: 9999;
}

.ak-fm-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.ak-fm-lightbox-prev {
    left: 0;
}

.ak-fm-lightbox-next {
    right: 0;
}

.ak-fm-lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 3px;
    z-index: 9999;
}

.ak-fm-lightbox-title {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 3px;
    z-index: 9999;
    white-space: nowrap;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Touch-friendly larger hit areas on mobile */
@media (pointer: coarse) {
    .ak-fm-lightbox-nav {
        padding: 30px 25px;
        font-size: 28px;
    }

    .ak-fm-lightbox-close {
        font-size: 40px;
        padding: 10px;
        top: 10px;
        right: 15px;
    }
}

/* Smooth image transition in lightbox */
.ak-fm-lightbox-img {
    transition: opacity 0.2s ease;
}

/* Data icons (replacing emojis for consistency) */
.ak-fm-data-icon {
    font-size: 13px;
    min-width: 20px;
    display: inline-block;
    text-align: center;
    color: #666;
}

/* ===== RESULTS WRAPPER ===== */

.ak-fm-results-wrapper {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
    .ak-fm-vehicle-body {
        grid-template-columns: 250px 1fr 200px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .ak-fm-vehicle-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ak-fm-vehicle-data {
        grid-template-columns: 1fr 1fr;
    }

    .ak-fm-vehicle-price {
        text-align: left;
        padding: 10px 0;
        border-top: 1px solid #e0e0e0;
        padding-top: 15px;
    }

    .ak-fm-vehicle-footer {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ak-fm-results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .ak-fm-pagination {
        min-width: 100%;
    }

    .ak-fm-sort,
    .ak-fm-per-page {
        width: 100%;
    }

    .ak-fm-sort select,
    .ak-fm-per-page select {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .ak-fm-container {
        padding: 15px;
    }

    .ak-fm-filters {
        padding: 15px;
    }

    .ak-fm-filter-row {
        grid-template-columns: 1fr;
    }

    .ak-fm-filter-select {
        width: 100%;
    }

    .ak-fm-checkbox-row {
        gap: 6px;
    }

    .ak-fm-checkbox-filter {
        padding: 5px 10px;
        font-size: 12px;
    }

    .ak-fm-filter-actions {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .ak-fm-vehicle-body {
        grid-template-columns: 1fr;
    }

    .ak-fm-vehicle-image {
        width: 100%;
    }

    .ak-fm-image-wrapper {
        aspect-ratio: auto;
        min-height: 250px;
    }

    .ak-fm-vehicle-data {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ak-fm-data-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ak-fm-vehicle-price {
        padding: 15px 0;
        margin-top: 10px;
    }

    .ak-fm-vehicle-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ak-fm-results-header {
        padding: 8px 12px;
    }

    .ak-fm-results-count {
        width: 100%;
        text-align: center;
    }

    .ak-fm-pagination-links {
        width: 100%;
        justify-content: center;
    }

    .ak-fm-sort::before,
    .ak-fm-per-page::before {
        display: none;
    }

    .ak-fm-vehicle-title {
        font-size: 16px !important;
        padding: 8px 12px !important;
        display: block !important;
        width: 100% !important;
        background-color: var(--ak-header-bg, #1a3a5c) !important;
        color: var(--ak-header-text, #ffffff) !important;
        text-decoration: none !important;
    }

    .ak-fm-price {
        font-size: 24px;
    }

    /* Mobile: Exposé button - volle Breite, weiße Schrift auf blauem Hintergrund */
    .ak-fm-btn-expose,
    a.ak-fm-btn-expose,
    a.ak-fm-btn-expose:link,
    a.ak-fm-btn-expose:visited,
    a.ak-fm-btn-expose:active {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Mobile: Details button - inherits from base rule, just ensure touch-friendly size */
    .ak-fm-vehicle-card-details,
    a.ak-fm-vehicle-card-details,
    a.ak-fm-vehicle-card-details:link,
    a.ak-fm-vehicle-card-details:visited {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }

    /* Mobile: Detail page buttons */
    .ak-fm-detail-btn-expose-large,
    a.ak-fm-detail-btn-expose-large,
    a.ak-fm-detail-btn-expose-large:link,
    a.ak-fm-detail-btn-expose-large:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-qi-btn,
    a.ak-fm-detail-qi-btn,
    a.ak-fm-detail-qi-btn:link,
    a.ak-fm-detail-qi-btn:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-location-btn,
    a.ak-fm-detail-location-btn,
    a.ak-fm-detail-location-btn:link,
    a.ak-fm-detail-location-btn:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-btn-dark,
    a.ak-fm-detail-btn-dark,
    a.ak-fm-detail-btn-dark:link,
    a.ak-fm-detail-btn-dark:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-lightbox-nav {
        font-size: 24px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .ak-fm-container {
        padding: 10px;
    }

    .ak-fm-filters {
        padding: 12px;
    }

    .ak-fm-vehicle-body {
        padding: 15px;
    }

    .ak-fm-vehicle-title {
        font-size: 13px !important;
        padding: 10px 15px !important;
        display: block !important;
        width: 100% !important;
        background-color: var(--ak-header-bg, #1a3a5c) !important;
        color: var(--ak-header-text, #ffffff) !important;
        text-decoration: none !important;
    }

    .ak-fm-vehicle-data {
        grid-template-columns: 1fr;
    }

    .ak-fm-data-col {
        grid-template-columns: 1fr;
    }

    .ak-fm-price {
        font-size: 22px;
    }

    .ak-fm-vehicle-footer {
        padding: 8px 12px;
        gap: 10px;
        font-size: 12px;
    }

    /* 480px: Exposé + Detail buttons vollständig abgesichert */
    .ak-fm-btn-expose,
    a.ak-fm-btn-expose,
    a.ak-fm-btn-expose:link,
    a.ak-fm-btn-expose:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px !important;
    }

    /* Details button: inherits stable base styles */

    .ak-fm-pagination-links {
        gap: 4px;
    }

    .ak-fm-page-link,
    .ak-fm-page-current {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
    }

    .ak-fm-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .ak-fm-checkbox-row {
        gap: 4px;
    }

    .ak-fm-checkbox-filter {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 15px;
    }
}

/* ===== UTILITY CLASSES ===== */

.ak-fm-fade-out {
    opacity: 0.5;
    pointer-events: none;
}

.ak-fm-transition {
    transition: all 0.3s ease;
}

/* ===== ACCESSIBILITY ===== */

.ak-fm-filter-select:focus-visible,
.ak-fm-page-link:focus-visible,
.ak-fm-btn:focus-visible {
    outline: 2px solid var(--ak-button);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ak-fm-vehicle-card,
    .ak-fm-results-wrapper,
    .ak-fm-lightbox,
    .ak-fm-vehicle-img {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== DETAIL PAGE STYLES ===== */

/* Detail Container */
.ak-fm-detail-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Global override: all buttons inside detail container must show white text */
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large,
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large:link,
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large:visited,
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large:active,
.ak-fm-detail-container a.ak-fm-detail-qi-btn,
.ak-fm-detail-container a.ak-fm-detail-qi-btn:link,
.ak-fm-detail-container a.ak-fm-detail-qi-btn:visited,
.ak-fm-detail-container a.ak-fm-detail-location-btn,
.ak-fm-detail-container a.ak-fm-detail-location-btn:link,
.ak-fm-detail-container a.ak-fm-detail-location-btn:visited,
.ak-fm-detail-container a.ak-fm-detail-btn-dark,
.ak-fm-detail-container a.ak-fm-detail-btn-dark:link,
.ak-fm-detail-container a.ak-fm-detail-btn-dark:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Same for listing container */
.ak-fm-container a.ak-fm-btn-expose,
.ak-fm-container a.ak-fm-btn-expose:link,
.ak-fm-container a.ak-fm-btn-expose:visited,
.ak-fm-container a.ak-fm-btn-expose:active,
.ak-fm-container a.ak-fm-vehicle-card-details,
.ak-fm-container a.ak-fm-vehicle-card-details:link,
.ak-fm-container a.ak-fm-vehicle-card-details:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ===== COMPREHENSIVE BUTTON PROTECTION (Theme Override) ===== */
/* Exposé button must ALWAYS show white text on dark blue background */
.ak-fm-btn-expose,
a.ak-fm-btn-expose,
.ak-fm-container .ak-fm-btn-expose,
.ak-fm-container a.ak-fm-btn-expose,
.ak-fm-vehicle-card .ak-fm-btn-expose,
.ak-fm-vehicle-card a.ak-fm-btn-expose,
.ak-fm-vehicle-price .ak-fm-btn-expose,
.ak-fm-vehicle-price a.ak-fm-btn-expose,
a.ak-fm-btn-expose:link,
a.ak-fm-btn-expose:visited,
a.ak-fm-btn-expose:active,
a.ak-fm-btn-expose:focus {
    background: var(--ak-button, #1a3a5c) !important;
    background-color: var(--ak-button, #1a3a5c) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    border: none !important;
    box-shadow: none !important;
}

.ak-fm-btn-expose:hover,
a.ak-fm-btn-expose:hover,
.ak-fm-container .ak-fm-btn-expose:hover,
.ak-fm-container a.ak-fm-btn-expose:hover {
    background: #2a5a8c !important;
    background-color: #2a5a8c !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Details button must ALWAYS show white text on dark blue background, full width */
.ak-fm-vehicle-card-details,
a.ak-fm-vehicle-card-details,
.ak-fm-container .ak-fm-vehicle-card-details,
.ak-fm-container a.ak-fm-vehicle-card-details,
a.ak-fm-vehicle-card-details:link,
a.ak-fm-vehicle-card-details:visited,
a.ak-fm-vehicle-card-details:active,
a.ak-fm-vehicle-card-details:focus {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--ak-button, #1a3a5c) !important;
    background-color: var(--ak-button, #1a3a5c) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer;
}

a.ak-fm-vehicle-card-details:hover,
.ak-fm-container a.ak-fm-vehicle-card-details:hover {
    background: #2a5a8c !important;
    background-color: #2a5a8c !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Detail page buttons - comprehensive override */
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large,
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large:link,
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large:visited,
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large:active,
.ak-fm-detail-container a.ak-fm-detail-btn-expose-large:focus {
    background: var(--ak-button, #1a3a5c) !important;
    background-color: var(--ak-button, #1a3a5c) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.ak-fm-detail-container a.ak-fm-detail-qi-btn,
.ak-fm-detail-container a.ak-fm-detail-qi-btn:link,
.ak-fm-detail-container a.ak-fm-detail-qi-btn:visited,
.ak-fm-detail-container a.ak-fm-detail-qi-btn:active,
.ak-fm-detail-container a.ak-fm-detail-qi-btn:focus {
    background: var(--ak-button, #1a3a5c) !important;
    background-color: var(--ak-button, #1a3a5c) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.ak-fm-detail-container a.ak-fm-detail-location-btn,
.ak-fm-detail-container a.ak-fm-detail-location-btn:link,
.ak-fm-detail-container a.ak-fm-detail-location-btn:visited,
.ak-fm-detail-container a.ak-fm-detail-location-btn:active,
.ak-fm-detail-container a.ak-fm-detail-location-btn:focus {
    background: var(--ak-button, #1a3a5c) !important;
    background-color: var(--ak-button, #1a3a5c) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.ak-fm-detail-container *,
.ak-fm-detail-container *::before,
.ak-fm-detail-container *::after {
    box-sizing: border-box;
}

/* Detail Title Bar */
.ak-fm-detail-title-bar {
    background-color: var(--ak-header-bg, #1a3a5c);
    color: var(--ak-header-text, #ffffff);
    padding: 8px 16px;
    margin-bottom: 15px;
    border-radius: 4px 4px 0 0;
}

.ak-fm-detail-title,
.ak-fm-detail-title-bar h3,
.ak-fm-detail-title-bar h4 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border: none !important;
}

/* Equipment Categories */
.ak-fm-detail-equipment-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ak-fm-detail-equip-category {
    min-width: 0;
}

.ak-fm-detail-equip-cat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ak-primary, #1a3a5c);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.ak-fm-detail-equip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ak-fm-detail-equip-list li {
    font-size: 12px;
    color: #444;
    padding: 3px 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.ak-fm-detail-equip-list li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 11px;
}

/* Schnellinfo */
.ak-fm-detail-schnellinfo .ak-fm-detail-box-content {
    padding: 15px;
}

.ak-fm-detail-price-section {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.ak-fm-detail-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ak-price, #1a3a5c);
    line-height: 1;
    margin: 4px 0;
}

.ak-fm-detail-upe {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.ak-fm-detail-savings {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
}

.ak-fm-detail-mwst {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.ak-fm-detail-specs-list {
    margin-bottom: 15px;
}

.ak-fm-detail-spec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dotted #eee;
    font-size: 13px;
}

.ak-fm-detail-spec-row:last-child {
    border-bottom: none;
}

.ak-fm-spec-icon {
    color: #666;
    width: 22px;
    min-width: 22px;
    font-size: 14px;
    text-align: center;
    flex-shrink: 0;
}

.ak-fm-detail-meta {
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

.ak-fm-detail-meta p {
    margin: 3px 0;
}

/* Info Table Grid */
.ak-fm-detail-info-table-grid {
    width: 100%;
    border-collapse: collapse;
}

.ak-fm-detail-info-table-grid td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.ak-fm-info-label {
    color: #666;
    width: 40%;
    white-space: nowrap;
}

.ak-fm-info-value {
    color: #333;
    font-weight: 500;
}

/* Disclaimer */
.ak-fm-detail-disclaimer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

.ak-fm-detail-disclaimer p {
    margin: 3px 0;
}

/* Detail Navigation - Breadcrumb-style Links */
.ak-fm-detail-navigation {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 16px !important;
    margin-bottom: 10px !important;
    gap: 0 !important;
    background: #f5f7fa !important;
    border: none !important;
    border-radius: 4px !important;
    line-height: 1.4 !important;
}

.ak-fm-detail-nav-link {
    color: var(--ak-button, #1a3a5c) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
    white-space: nowrap !important;
}

.ak-fm-detail-nav-link:hover {
    color: #2a5a8c !important;
    text-decoration: underline !important;
}

.ak-fm-detail-nav-sep {
    color: #999 !important;
    margin: 0 8px !important;
    font-size: 13px !important;
    display: inline !important;
}

/* NEU Badge inline in title bar */
.ak-fm-badge-neu-inline {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 10px !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
    position: relative !important;
    top: -1px !important;
    float: none !important;
    margin-top: 0 !important;
}

.ak-fm-detail-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.ak-fm-detail-btn-back {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #d0d0d0;
}

.ak-fm-detail-btn-back:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.ak-fm-detail-btn-primary {
    background-color: var(--ak-button);
    color: var(--ak-button-text);
}

.ak-fm-detail-btn-primary:hover {
    background-color: #2a5a8c;
}

.ak-fm-detail-btn-dark,
a.ak-fm-detail-btn-dark,
a.ak-fm-detail-btn-dark:link,
a.ak-fm-detail-btn-dark:visited {
    background-color: var(--ak-button);
    color: #ffffff !important;
    width: 100%;
    text-decoration: none;
}

.ak-fm-detail-btn-dark:hover,
a.ak-fm-detail-btn-dark:hover {
    background-color: #2a5a8c;
    color: #ffffff !important;
}

/* Detail Content Layout - Zwei-Spalten Grid */
.ak-fm-detail-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

.ak-fm-detail-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.ak-fm-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Kein zusätzlicher Margin in den Spalten – gap regelt den Abstand */
.ak-fm-detail-main > .ak-fm-detail-box,
.ak-fm-detail-sidebar > .ak-fm-detail-box {
    margin-top: 0;
}

/* Detail Image Gallery */
.ak-fm-detail-gallery {
    margin-bottom: 0;
}

.ak-fm-detail-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.ak-fm-detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.ak-fm-detail-gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.ak-fm-detail-gallery-enlarge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 10px;
    border: none !important;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
}

.ak-fm-detail-gallery-enlarge:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.ak-fm-detail-gallery-enlarge:focus,
.ak-fm-detail-gallery-enlarge:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ak-fm-detail-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.ak-fm-detail-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ak-fm-detail-thumb:hover {
    opacity: 0.9;
}

.ak-fm-detail-thumb.active {
    opacity: 1;
    border-color: var(--ak-button);
    box-shadow: 0 0 0 2px rgba(46, 110, 166, 0.2);
}

/* Detail Info Sections/Boxes */
.ak-fm-detail-box {
    background-color: #ffffff;
    border: 1px solid #e2e6ec;
    border-radius: 6px;
    margin-top: 20px;
    box-shadow: none;
}

.ak-fm-detail-box-header,
.ak-fm-detail-box-header h4,
h4.ak-fm-detail-box-header {
    background-color: var(--ak-header-bg);
    color: var(--ak-header-text) !important;
    padding: 6px 12px;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px 6px 0 0;
    margin: 0 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border: none !important;
}

.ak-fm-detail-box-content {
    padding: 20px;
}

/* Weitere Informationen Table */
.ak-fm-detail-info-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ak-fm-detail-info-item {
    display: flex;
    gap: 10px;
    font-size: 13px;
    align-items: flex-start;
}

.ak-fm-detail-info-label {
    color: #666;
    min-width: 120px;
    flex-shrink: 0;
}

.ak-fm-detail-info-value {
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

/* Ausstattungsmerkmale Grid */
.ak-fm-detail-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ak-fm-detail-equipment-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #333;
    padding: 6px 0;
    align-items: flex-start;
}

.ak-fm-detail-equipment-item::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    flex-shrink: 0;
}

/* Fahrzeugbeschreibung */
/* Fahrzeug-Info Block (top of description) */
.ak-fm-detail-vehicle-info {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.ak-fm-detail-info-item {
    margin-bottom: 10px;
}

.ak-fm-detail-info-item:last-child {
    margin-bottom: 0;
}

.ak-fm-detail-info-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 2px;
}

.ak-fm-detail-info-value {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.ak-fm-detail-info-address-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
}

.ak-fm-detail-info-address-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ak-fm-detail-info-address-line {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.ak-fm-detail-description-content {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}

.ak-fm-detail-description-content p {
    margin-bottom: 12px;
}

.ak-fm-detail-description-content p:last-child {
    margin-bottom: 0;
}

/* Schnellinformation Sidebar */
.ak-fm-detail-quick-info {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ak-fm-detail-qi-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333;
    padding: 6px 12px;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.ak-fm-detail-qi-price {
    font-size: 22px;
    color: var(--ak-price);
    font-weight: 700;
    padding: 8px 12px;
}

.ak-fm-detail-qi-upe {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.ak-fm-detail-qi-savings {
    color: #27ae60;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
}

.ak-fm-detail-qi-mwst {
    font-size: 12px;
    color: #666;
}

.ak-fm-detail-qi-specs {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.ak-fm-detail-qi-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
    font-size: 13px;
    align-items: center;
}

.ak-fm-detail-qi-spec-item:last-child {
    border-bottom: none;
}

.ak-fm-detail-qi-spec-label {
    color: #666;
}

.ak-fm-detail-qi-spec-value {
    font-weight: 600;
    color: #333;
}

.ak-fm-detail-qi-actions {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.ak-fm-detail-qi-btn,
a.ak-fm-detail-qi-btn,
a.ak-fm-detail-qi-btn:link,
a.ak-fm-detail-qi-btn:visited {
    width: 100%;
    padding: 14px;
    background-color: var(--ak-button);
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ak-fm-detail-qi-btn:hover,
a.ak-fm-detail-qi-btn:hover {
    background-color: #2a5a8c;
    color: #ffffff !important;
}

/* Fahrzeugstandort */
.ak-fm-detail-location {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ak-fm-detail-location-info {
    padding: 20px;
    font-size: 13px;
}

.ak-fm-detail-location-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.ak-fm-detail-location-address {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ak-fm-detail-location-btn,
a.ak-fm-detail-location-btn,
a.ak-fm-detail-location-btn:link,
a.ak-fm-detail-location-btn:visited {
    width: 100%;
    padding: 12px;
    background-color: var(--ak-button);
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ak-fm-detail-location-btn:hover,
a.ak-fm-detail-location-btn:hover {
    background-color: #2a5a8c;
    color: #ffffff !important;
}

/* Contact Form */
.ak-fm-detail-contact {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ak-fm-detail-form-group {
    margin-bottom: 15px;
}

.ak-fm-detail-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.ak-fm-detail-form-input,
.ak-fm-detail-form-select,
.ak-fm-detail-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.ak-fm-detail-form-input:focus,
.ak-fm-detail-form-select:focus,
.ak-fm-detail-form-textarea:focus {
    outline: none;
    border-color: var(--ak-button);
    box-shadow: 0 0 0 3px rgba(46, 110, 166, 0.1);
}

.ak-fm-detail-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.ak-fm-detail-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 40px;
}

.ak-fm-detail-form-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.ak-fm-detail-form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.ak-fm-detail-form-checkbox a {
    color: var(--ak-button);
    text-decoration: none;
}

.ak-fm-detail-form-checkbox a:hover {
    text-decoration: underline;
}

.ak-fm-detail-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.ak-fm-detail-form-btn-submit {
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    transition: all 0.2s ease;
    background-color: var(--ak-button) !important;
    color: var(--ak-button-text) !important;
}

.ak-fm-detail-form-btn-submit:hover {
    background-color: #0052a3 !important;
}

.ak-fm-detail-form-btn-submit:focus,
.ak-fm-detail-form-btn-submit:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.ak-fm-detail-form-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ak-fm-detail-form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    display: none;
    margin-top: 25px;
    margin-bottom: 15px;
}

.ak-fm-detail-form-success.show {
    display: block;
}

.ak-fm-detail-form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    display: none;
    margin-bottom: 15px;
}

.ak-fm-detail-form-error.show {
    display: block;
}

.ak-fm-detail-form-required {
    color: #dc3545;
    font-size: 12px;
}

/* Detail Lightbox */
.ak-fm-detail-lightbox {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.ak-fm-detail-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.ak-fm-detail-lightbox-content {
    position: relative;
    background-color: #000;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 4px;
    overflow: hidden;
}

.ak-fm-detail-lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.ak-fm-detail-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.ak-fm-detail-lightbox-close:hover {
    color: #ccc;
}

.ak-fm-detail-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px 20px;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    transition: background 0.2s ease;
    z-index: 9999;
}

.ak-fm-detail-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.ak-fm-detail-lightbox-prev {
    left: 0;
}

.ak-fm-detail-lightbox-next {
    right: 0;
}

.ak-fm-detail-lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 3px;
    z-index: 9999;
}

/* ===== RESPONSIVE DESIGN - DETAIL PAGE ===== */

@media (max-width: 1200px) {
    .ak-fm-detail-content {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 992px) {
    .ak-fm-detail-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px;
    }

    /* Mobile: Wrapper auflösen, Kinder direkt in den Flex-Container */
    .ak-fm-detail-main,
    .ak-fm-detail-sidebar {
        display: contents !important;
    }

    /* Mobile: Alle Sektionen volle Breite + kein extra Margin */
    .ak-fm-detail-gallery,
    .ak-fm-detail-schnellinfo,
    .ak-fm-detail-quick-info,
    .ak-fm-detail-location,
    .ak-fm-detail-equipment,
    .ak-fm-detail-description,
    .ak-fm-detail-contact,
    .ak-fm-detail-financing {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        position: static !important;
    }

    /* Mobile Reihenfolge: Galerie > Schnellinfo > Weitere Info > Standort > Ausstattung > Beschreibung > Anfrage > Finanzierung */
    .ak-fm-detail-gallery       { order: 1; }
    .ak-fm-detail-schnellinfo   { order: 2; }
    .ak-fm-detail-quick-info    { order: 3; }
    .ak-fm-detail-location      { order: 4; }
    .ak-fm-detail-equipment     { order: 5; }
    .ak-fm-detail-description   { order: 6; }
    .ak-fm-detail-contact       { order: 7; }
    .ak-fm-detail-financing     { order: 8; }

    /* Mobile: "Zu den Details" Button volle Breite */
    .ak-fm-vehicle-actions {
        padding: 10px 15px;
    }
    .ak-fm-vehicle-actions .ak-fm-vehicle-card-details,
    .ak-fm-vehicle-actions a.ak-fm-vehicle-card-details {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .ak-fm-detail-info-table {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ak-fm-detail-equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .ak-fm-detail-equipment-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .ak-fm-detail-info-table-grid {
        grid-template-columns: 1fr;
    }

    .ak-fm-detail-thumbnails {
        gap: 6px;
    }

    .ak-fm-detail-thumb {
        width: 70px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .ak-fm-detail-container {
        padding: 15px;
    }

    .ak-fm-detail-title {
        font-size: 14px !important;
    }

    .ak-fm-detail-title-bar {
        padding: 7px 12px;
    }

    .ak-fm-detail-navigation {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        gap: 0 !important;
    }

    .ak-fm-detail-nav-link {
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .ak-fm-detail-nav-sep {
        display: inline !important;
        margin: 0 6px !important;
    }

    /* NEU Badge inline - mobile */
    .ak-fm-badge-neu-inline {
        font-size: 9px !important;
        padding: 2px 6px !important;
        margin-left: 6px !important;
    }

    .ak-fm-detail-btn {
        padding: 9px 14px;
        font-size: 12px;
        flex: 1;
    }

    .ak-fm-detail-gallery-main {
        aspect-ratio: 16 / 10;
    }

    .ak-fm-detail-thumbnails {
        gap: 5px;
        margin-top: 10px;
    }

    .ak-fm-detail-thumb {
        width: 60px;
        height: 45px;
    }

    .ak-fm-detail-info-table {
        gap: 10px;
    }

    .ak-fm-detail-equipment-grid {
        gap: 5px;
    }

    .ak-fm-detail-equipment-item {
        font-size: 12px;
        padding: 4px 0;
    }

    .ak-fm-detail-qi-title {
        font-size: 12px;
        padding: 6px 12px;
    }

    .ak-fm-detail-qi-price {
        font-size: 24px;
        padding: 10px 16px;
    }

    .ak-fm-detail-box-header {
        padding: 8px 12px;
        font-size: 13px;
    }

    .ak-fm-detail-box-content {
        padding: 15px;
    }

    .ak-fm-detail-form-actions {
        flex-direction: column;
    }

    .ak-fm-detail-form-btn-cancel,
    .ak-fm-detail-form-btn-submit {
        width: 100%;
    }

    /* Mobile 768px: Detail page buttons - weiße Schrift auf blauem Hintergrund */
    .ak-fm-detail-btn-expose-large,
    a.ak-fm-detail-btn-expose-large,
    a.ak-fm-detail-btn-expose-large:link,
    a.ak-fm-detail-btn-expose-large:visited,
    a.ak-fm-detail-btn-expose-large:active {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .ak-fm-detail-qi-btn,
    a.ak-fm-detail-qi-btn,
    a.ak-fm-detail-qi-btn:link,
    a.ak-fm-detail-qi-btn:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-location-btn,
    a.ak-fm-detail-location-btn,
    a.ak-fm-detail-location-btn:link,
    a.ak-fm-detail-location-btn:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-btn-dark,
    a.ak-fm-detail-btn-dark,
    a.ak-fm-detail-btn-dark:link,
    a.ak-fm-detail-btn-dark:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    /* Detail Title Bar - mobile absichern */
    .ak-fm-detail-title-bar {
        background-color: var(--ak-header-bg, #1a3a5c) !important;
        color: var(--ak-header-text, #ffffff) !important;
    }

    .ak-fm-detail-title,
    .ak-fm-detail-title-bar h3,
    .ak-fm-detail-title-bar h4 {
        color: #ffffff !important;
    }

    .ak-fm-detail-box-header,
    .ak-fm-detail-box-header h4,
    h4.ak-fm-detail-box-header {
        background-color: var(--ak-header-bg, #1a3a5c) !important;
        color: var(--ak-header-text, #ffffff) !important;
    }
}

@media (max-width: 480px) {
    .ak-fm-detail-container {
        padding: 10px;
    }

    /* Navigation - immer horizontal, auch auf kleinen Screens */
    .ak-fm-detail-navigation {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 10px !important;
        gap: 0 !important;
    }

    .ak-fm-detail-nav-link {
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .ak-fm-detail-nav-sep {
        display: inline !important;
        margin: 0 4px !important;
        font-size: 11px !important;
    }

    .ak-fm-detail-equipment-categories {
        grid-template-columns: 1fr;
    }

    .ak-fm-detail-title {
        font-size: 13px !important;
    }

    /* NEU Badge inline - small mobile */
    .ak-fm-badge-neu-inline {
        font-size: 8px !important;
        padding: 1px 5px !important;
        margin-left: 4px !important;
    }

    .ak-fm-detail-navigation {
        padding: 10px;
        gap: 8px;
    }

    .ak-fm-detail-btn {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
    }

    .ak-fm-detail-gallery-main {
        aspect-ratio: 16 / 11;
    }

    .ak-fm-detail-thumbnails {
        gap: 4px;
        margin-top: 8px;
    }

    .ak-fm-detail-thumb {
        width: 50px;
        height: 38px;
    }

    .ak-fm-detail-equipment-grid {
        grid-template-columns: 1fr;
    }

    .ak-fm-detail-info-table {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ak-fm-detail-info-item {
        font-size: 13px;
    }

    .ak-fm-detail-qi-title {
        font-size: 12px;
        padding: 6px 10px;
    }

    .ak-fm-detail-qi-price {
        font-size: 24px;
        padding: 10px 12px;
    }

    .ak-fm-detail-qi-specs {
        padding: 10px 12px;
    }

    .ak-fm-detail-qi-spec-item {
        padding: 6px 0;
        font-size: 12px;
    }

    .ak-fm-detail-box-header {
        padding: 8px 12px;
        font-size: 13px;
    }

    .ak-fm-detail-box-content {
        padding: 12px;
    }

    .ak-fm-detail-form-group {
        margin-bottom: 12px;
    }

    .ak-fm-detail-form-label {
        font-size: 12px;
    }

    .ak-fm-detail-form-input,
    .ak-fm-detail-form-select,
    .ak-fm-detail-form-textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    .ak-fm-detail-form-textarea {
        min-height: 100px;
    }

    .ak-fm-detail-form-actions {
        gap: 8px;
        margin-top: 15px;
    }

    .ak-fm-detail-description-content {
        font-size: 13px;
        line-height: 1.6;
    }

    .ak-fm-detail-description-content p {
        margin-bottom: 10px;
    }

    /* 480px: Detail page buttons - vollständig abgesichert */
    .ak-fm-detail-btn-expose-large,
    a.ak-fm-detail-btn-expose-large,
    a.ak-fm-detail-btn-expose-large:link,
    a.ak-fm-detail-btn-expose-large:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-qi-btn,
    a.ak-fm-detail-qi-btn,
    a.ak-fm-detail-qi-btn:link,
    a.ak-fm-detail-qi-btn:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-location-btn,
    a.ak-fm-detail-location-btn,
    a.ak-fm-detail-location-btn:link,
    a.ak-fm-detail-location-btn:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-btn-dark,
    a.ak-fm-detail-btn-dark,
    a.ak-fm-detail-btn-dark:link,
    a.ak-fm-detail-btn-dark:visited {
        background: var(--ak-button, #1a3a5c) !important;
        background-color: var(--ak-button, #1a3a5c) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .ak-fm-detail-box-header,
    .ak-fm-detail-box-header h4,
    h4.ak-fm-detail-box-header {
        background-color: var(--ak-header-bg, #1a3a5c) !important;
        color: var(--ak-header-text, #ffffff) !important;
    }

    .ak-fm-detail-title-bar {
        background-color: var(--ak-header-bg, #1a3a5c) !important;
    }

    .ak-fm-detail-title,
    .ak-fm-detail-title-bar h3 {
        color: #ffffff !important;
    }
}

/* Touch-friendly larger hit areas on mobile */
@media (pointer: coarse) {
    .ak-fm-detail-btn {
        padding: 12px 16px;
        min-height: 44px;
    }

    .ak-fm-detail-thumb {
        min-height: 44px;
    }

    .ak-fm-detail-qi-btn {
        min-height: 44px;
    }

    .ak-fm-detail-location-btn {
        min-height: 44px;
    }

    .ak-fm-detail-form-btn-cancel,
    .ak-fm-detail-form-btn-submit {
        min-height: 44px;
    }

    .ak-fm-detail-form-input,
    .ak-fm-detail-form-select,
    .ak-fm-detail-form-textarea {
        min-height: 44px;
    }

    .ak-fm-detail-form-checkbox {
        min-height: 44px;
    }

    .ak-fm-detail-lightbox-nav {
        padding: 30px 25px;
        font-size: 28px;
    }

    .ak-fm-detail-lightbox-close {
        font-size: 40px;
        padding: 10px;
        top: 10px;
        right: 15px;
    }
}

/* ===== MISSING UTILITY CLASSES ===== */

.ak-fm-vehicle-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ak-fm-vehicle-clickable:hover {
    opacity: 0.9;
}

.ak-fm-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ak-fm-gallery-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #f5f5f5;
    color: #999;
    font-size: 16px;
}

.ak-fm-detail-nav-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ak-fm-detail-btn-new-search {
    background: var(--ak-button, #2e6ea6);
    color: var(--ak-button-text, #fff);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.ak-fm-detail-btn-new-search:hover {
    background: #2a5a8c;
}

.ak-fm-detail-btn-pdf {
    background: var(--ak-button);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.ak-fm-detail-btn-pdf,
a.ak-fm-detail-btn-pdf:link,
a.ak-fm-detail-btn-pdf:visited {
    color: #fff !important;
}

.ak-fm-detail-btn-pdf:hover,
a.ak-fm-detail-btn-pdf:hover {
    background: #2a5a8c;
    color: #fff !important;
    text-decoration: none;
}

.ak-fm-detail-btn-expose-large,
a.ak-fm-detail-btn-expose-large,
a.ak-fm-detail-btn-expose-large:link,
a.ak-fm-detail-btn-expose-large:visited {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: var(--ak-button);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.ak-fm-detail-btn-expose-large:hover,
a.ak-fm-detail-btn-expose-large:hover {
    background: #2a5a8c;
    color: #fff !important;
    text-decoration: none;
    box-shadow: none;
}

.ak-fm-detail-badge {
    margin-left: auto;
}

.ak-fm-vehicle-actions {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.ak-fm-vehicle-card-details,
a.ak-fm-vehicle-card-details,
a.ak-fm-vehicle-card-details:link,
a.ak-fm-vehicle-card-details:visited {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 24px !important;
    background: var(--ak-button, #1a3a5c) !important;
    background-color: var(--ak-button, #1a3a5c) !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-align: center !important;
    transition: background 0.2s ease;
    cursor: pointer;
}

.ak-fm-vehicle-card-details:hover,
a.ak-fm-vehicle-card-details:hover {
    background: #2a5a8c !important;
    background-color: #2a5a8c !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ===== COMPARISON FEATURE ===== */

.ak-fm-vehicle-compare {
    padding: 8px 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.ak-fm-compare-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    user-select: none;
    transition: color 0.2s ease;
}

.ak-fm-compare-label:hover {
    color: var(--ak-primary, #1a3a5c);
}

.ak-fm-compare-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--ak-button, #2e6ea6);
    cursor: pointer;
}

.ak-fm-compare-checkbox:checked + .ak-fm-compare-text {
    color: var(--ak-primary, #1a3a5c);
    font-weight: 600;
}

/* Floating Comparison Bar */
.ak-fm-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ak-primary, #1a3a5c);
    color: #fff;
    padding: 8px 16px;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.ak-fm-compare-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ak-fm-compare-bar-items {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
}

.ak-fm-compare-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    max-width: 220px;
}

.ak-fm-compare-bar-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ak-fm-compare-bar-noimg {
    width: 50px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}

.ak-fm-compare-bar-title {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.ak-fm-compare-bar-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ak-fm-compare-bar-remove:hover {
    color: #fff;
}

.ak-fm-compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ak-fm-compare-count {
    font-size: 13px;
    opacity: 0.85;
    white-space: nowrap;
}

.ak-fm-btn-compare {
    background: var(--ak-accent, #e8491d);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ak-fm-btn-compare:hover:not(:disabled) {
    filter: brightness(1.15);
}

.ak-fm-btn-compare:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ak-fm-btn-compare-clear {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ak-fm-btn-compare-clear:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Comparison Modal */
.ak-fm-compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 30px 20px;
}

.ak-fm-compare-modal-content {
    background: #fff;
    border-radius: 4px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ak-fm-compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--ak-primary, #1a3a5c);
    color: #fff;
}

.ak-fm-compare-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.ak-fm-compare-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.ak-fm-compare-modal-close:hover {
    color: #fff;
}

.ak-fm-compare-modal-body {
    padding: 0;
    overflow-x: auto;
}

/* Comparison Table */
.ak-fm-compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ak-fm-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 600px;
}

.ak-fm-compare-table th,
.ak-fm-compare-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.ak-fm-compare-table thead th {
    background: #f8f8f8;
    font-weight: 700;
    font-size: 13px;
    color: var(--ak-primary, #1a3a5c);
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ak-fm-compare-label-col {
    width: 140px;
    min-width: 140px;
}

.ak-fm-compare-label-cell {
    font-weight: 600;
    color: #555;
    background: #fafafa;
    white-space: nowrap;
}

.ak-fm-compare-value-cell {
    min-width: 200px;
}

.ak-fm-compare-row-even td {
    background-color: #fff;
}

.ak-fm-compare-row-odd td {
    background-color: #f9f9f9;
}

.ak-fm-compare-row-even .ak-fm-compare-label-cell {
    background-color: #f5f5f5;
}

.ak-fm-compare-row-odd .ak-fm-compare-label-cell {
    background-color: #efefef;
}

.ak-fm-compare-img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.ak-fm-compare-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 140px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #999;
    font-size: 13px;
}

.ak-fm-compare-detail-btn {
    padding: 6px 14px;
    background: var(--ak-button, #2e6ea6);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-right: 8px;
    transition: filter 0.2s;
}

.ak-fm-compare-detail-btn:hover {
    filter: brightness(1.1);
}

.ak-fm-compare-pdf-btn {
    padding: 6px 14px;
    background: var(--ak-accent, #e8491d);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    transition: filter 0.2s;
}

.ak-fm-compare-pdf-btn:hover {
    filter: brightness(1.1);
}

/* Responsive: Comparison Bar */
@media (max-width: 768px) {
    .ak-fm-compare-bar-inner {
        flex-direction: column;
        gap: 10px;
    }

    .ak-fm-compare-bar-items {
        width: 100%;
        justify-content: center;
    }

    .ak-fm-compare-bar-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .ak-fm-compare-bar-title {
        max-width: 80px;
    }

    .ak-fm-compare-modal {
        padding: 10px;
    }

    .ak-fm-compare-modal-content {
        border-radius: 4px;
    }

    .ak-fm-compare-img {
        width: 120px;
        height: 85px;
    }

    .ak-fm-compare-noimg {
        width: 120px;
        height: 85px;
    }

    .ak-fm-compare-table th,
    .ak-fm-compare-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .ak-fm-compare-label-col {
        width: 100px;
        min-width: 100px;
    }

    .ak-fm-compare-value-cell {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .ak-fm-compare-bar-item img {
        width: 40px;
        height: 28px;
    }

    .ak-fm-compare-bar-title {
        display: none;
    }
}

/* ===== SOCIAL SHARING ===== */

.ak-fm-detail-sharing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.ak-fm-sharing-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-right: 2px;
}

.ak-fm-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.ak-fm-share-btn:hover {
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.1);
}

.ak-fm-share-whatsapp:hover {
    background: #25D366;
}

.ak-fm-share-facebook:hover {
    background: #1877F2;
}

.ak-fm-share-email:hover {
    background: #555555;
}

.ak-fm-share-copy:hover {
    background: var(--ak-button, #1a3a5c);
}

.ak-fm-share-copy.ak-fm-copied {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #ffffff;
}

.ak-fm-share-copy.ak-fm-copied::after {
    content: "Kopiert!";
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #2ecc71;
    font-weight: 600;
    white-space: nowrap;
}

.ak-fm-share-copy {
    position: relative;
}

/* Mobile: Sharing-Buttons auch volle Breite */
@media (max-width: 992px) {
    .ak-fm-detail-sharing {
        order: 2;
        width: 100% !important;
        justify-content: flex-start;
    }
}

/* ==============================================
   MERKLISTE / FAVORITEN
   ============================================== */

/* Herz-Button auf Fahrzeugkarten – bündig oben rechts wie NEU-Badge */
/* Herz-Span auf Fahrzeugkarten – exakt wie ak-fm-image-count Pattern */
.ak-fm-favorite-btn {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    background: var(--ak-button, #1a3a5c) !important;
    background-color: #1a3a5c !important;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    padding: 7px 10px 7px 12px;
    border-radius: 0 0 0 6px;
    z-index: 10;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    cursor: pointer;
    line-height: 1;
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: opacity 0.25s ease;
    -moz-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}

.ak-fm-favorite-btn:hover {
    opacity: 0.85;
}

.ak-fm-favorite-btn svg {
    display: block;
    stroke: #fff;
    fill: none;
    width: 18px;
    height: 18px;
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

/* Aktiv: Herz rot gefüllt mit Puls-Animation */
.ak-fm-favorite-btn.ak-fm-favorite-active svg {
    stroke: #e74c3c;
    fill: #e74c3c;
    -webkit-animation: ak-fm-heart-pulse 0.4s ease;
    -moz-animation: ak-fm-heart-pulse 0.4s ease;
    animation: ak-fm-heart-pulse 0.4s ease;
}

@-webkit-keyframes ak-fm-heart-pulse {
    0%   { -webkit-transform: scale(1); transform: scale(1); }
    30%  { -webkit-transform: scale(1.35); transform: scale(1.35); }
    60%  { -webkit-transform: scale(0.9); transform: scale(0.9); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

@-moz-keyframes ak-fm-heart-pulse {
    0%   { -moz-transform: scale(1); transform: scale(1); }
    30%  { -moz-transform: scale(1.35); transform: scale(1.35); }
    60%  { -moz-transform: scale(0.9); transform: scale(0.9); }
    100% { -moz-transform: scale(1); transform: scale(1); }
}

@keyframes ak-fm-heart-pulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Herz-Span auf Detailseite – weißer Button in der Titelleiste */
/* Doppel-Klasse für höhere Spezifität gegenüber .ak-fm-favorite-btn !important-Regeln */
.ak-fm-favorite-btn.ak-fm-favorite-btn-detail {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    gap: 6px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    float: none !important;
    margin: 0 !important;
}

.ak-fm-favorite-btn.ak-fm-favorite-btn-detail:hover {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    opacity: 1;
}

.ak-fm-favorite-btn.ak-fm-favorite-btn-detail svg {
    display: block;
    stroke: #1a3a5c !important;
    stroke: var(--ak-header-bg, #1a3a5c) !important;
    fill: none !important;
    width: 18px;
    height: 18px;
}

.ak-fm-favorite-btn.ak-fm-favorite-btn-detail.ak-fm-favorite-active svg {
    stroke: #e74c3c !important;
    fill: #e74c3c !important;
    -webkit-animation: ak-fm-heart-pulse 0.4s ease;
    -moz-animation: ak-fm-heart-pulse 0.4s ease;
    animation: ak-fm-heart-pulse 0.4s ease;
}

.ak-fm-favorite-btn.ak-fm-favorite-btn-detail.ak-fm-favorite-active {
    background: #fff !important;
    background-color: #fff !important;
}

.ak-fm-favorite-btn.ak-fm-favorite-btn-detail .ak-fm-favorite-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a3a5c;
    color: var(--ak-header-bg, #1a3a5c);
}

.ak-fm-favorite-btn.ak-fm-favorite-btn-detail.ak-fm-favorite-active .ak-fm-favorite-label {
    color: #1a3a5c;
    color: var(--ak-header-bg, #1a3a5c);
}

.ak-fm-detail-title-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 15px;
}

/* Merkliste-Button in der Filter-Aktionszeile */
.ak-fm-btn-merkliste {
    padding: 7px 16px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ak-fm-btn-merkliste:hover {
    background: #e8e8e8;
    color: #333;
}

.ak-fm-btn-merkliste svg {
    stroke: #666;
    fill: none;
    transition: all 0.3s ease;
}

.ak-fm-btn-merkliste:hover svg {
    stroke: #333;
}

.ak-fm-btn-merkliste.ak-fm-merkliste-active {
    background: var(--ak-button, #1a3a5c);
    color: var(--ak-button-text, #fff);
    border-color: var(--ak-button, #1a3a5c);
}

.ak-fm-btn-merkliste.ak-fm-merkliste-active svg {
    stroke: #e74c3c;
    fill: #e74c3c;
}

.ak-fm-btn-merkliste.ak-fm-merkliste-active:hover {
    background: #2a5a8c;
}

/* Leere Merkliste Hinweis */
.ak-fm-merkliste-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.ak-fm-merkliste-empty svg {
    margin-bottom: 15px;
}

.ak-fm-merkliste-empty p {
    margin: 5px 0;
    font-size: 1em;
}

/* Mobile: Merkliste-Button */
@media (max-width: 992px) {
    .ak-fm-favorite-btn.ak-fm-favorite-btn-detail {
        padding: 6px 12px !important;
    }

    .ak-fm-favorite-btn.ak-fm-favorite-btn-detail .ak-fm-favorite-label {
        font-size: 12px;
    }

    .ak-fm-detail-title-bar {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .ak-fm-favorite-btn.ak-fm-favorite-btn-detail {
        padding: 4px 10px !important;
    }

    .ak-fm-favorite-btn.ak-fm-favorite-btn-detail .ak-fm-favorite-label {
        font-size: 11px;
    }

    .ak-fm-favorite-btn.ak-fm-favorite-btn-detail svg {
        width: 16px;
        height: 16px;
    }

    .ak-fm-btn-merkliste {
        width: 100%;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}
