/*
Theme Name: AUTOmeinungen.de – Theme 2.6
Theme URI: https://automeinungen.de/
Author: AUTOmeinungen.de
Description: Eigenes WordPress-Theme für AUTOmeinungen.de – Fahrzeugdatenbank, Fahrermeinungen und lokale Fahrzeugvideos.
Version: 2.6.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: automeinungen
*/

:root {
    --am-text: #151515;
    --am-muted: #6d6d6d;
    --am-border: #e6e6e6;
    --am-bg: #f7f7f7;
    --am-white: #fff;
    --am-accent: #111;
    --am-radius: 14px;
    --am-content: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--am-text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.am-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.am-container {
    width: min(calc(100% - 40px), var(--am-content));
    margin-inline: auto;
}

.am-header {
    border-bottom: 1px solid var(--am-border);
    background: #fff;
}

.am-header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.am-brand {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.am-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
}

.am-nav a { text-decoration: none; }
.am-nav a:hover { text-decoration: underline; }

.am-main {
    flex: 1;
    padding: 54px 0 80px;
}

.am-vehicle-title {
    margin: 0 0 34px;
    text-align: center;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 500;
}

.am-gallery {
    width: min(100%, 1000px);
    margin: 0 auto 55px;
}

.am-gallery-main {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--am-radius);
    background: #eee;
}

.am-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.am-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #111;
    font-size: 28px;
    line-height: 48px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.22);
}
.am-gallery-prev { left: 18px; }
.am-gallery-next { right: 18px; }

.am-gallery-zoom {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
}

.am-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.am-gallery-thumb {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
    appearance: none;
}
.am-gallery-thumb.is-active { border-color: #111; }

.am-gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.am-gallery-thumb span {
    display: block;
    padding: 7px 4px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.am-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,.94);
}
.am-lightbox.is-open { display: flex; }
.am-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.am-lightbox-close,
.am-lightbox-prev,
.am-lightbox-next {
    position: fixed;
    z-index: 2;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
}
.am-lightbox-close {
    top: 20px; right: 24px;
    width: 48px; height: 48px;
    font-size: 32px;
}
.am-lightbox-prev,
.am-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 30px;
}
.am-lightbox-prev { left: 25px; }
.am-lightbox-next { right: 25px; }

.am-section {
    width: min(100%, 1000px);
    margin: 0 auto 48px;
}

.am-section h2 {
    margin: 0 0 20px;
    font-size: 30px;
    font-weight: 500;
}

.am-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-top: 1px solid var(--am-border);
}

.am-data-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--am-border);
}
.am-data-label { color: var(--am-muted); }
.am-data-value { font-weight: 600; }

.am-placeholder {
    padding: 28px;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: var(--am-bg);
    color: var(--am-muted);
}

.am-footer {
    padding: 30px 0;
    border-top: 1px solid var(--am-border);
    color: var(--am-muted);
    font-size: 14px;
}

@media (max-width: 800px) {
    .am-header-inner { min-height: 64px; }
    .am-nav { gap: 14px; font-size: 13px; }
    .am-gallery-thumbs { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .am-data { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .am-container { width: min(calc(100% - 24px), var(--am-content)); }
    .am-header-inner { align-items: flex-start; padding: 16px 0; flex-direction: column; gap: 12px; }
    .am-nav { flex-wrap: wrap; }
    .am-main { padding-top: 30px; }
    .am-gallery-thumbs { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .am-gallery-arrow { width: 40px; height: 40px; line-height: 40px; }
}


/* =========================================================
   AUTOmeinungen.de – Fahrzeugseite 1.1
   ========================================================= */

.am-vehicle-hero {
    width: min(100%, 1000px);
    margin: 0 auto 64px;
}

.am-vehicle-kicker {
    margin: 0 0 10px;
    text-align: center;
    color: var(--am-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.am-vehicle-title {
    margin-bottom: 42px;
}

.am-gallery {
    margin-bottom: 60px;
}

.am-gallery-main {
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.am-gallery-thumb {
    transition: transform .15s ease, box-shadow .15s ease;
}

.am-gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.am-gallery-thumb.is-active {
    box-shadow: 0 0 0 1px #111;
}

.am-vehicle-data-card {
    padding: 30px;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.04);
}

.am-data-row {
    grid-template-columns: minmax(150px, .8fr) 1.2fr;
}

.am-opinion-card {
    padding: 30px;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.04);
}

.am-opinion-intro {
    margin: 0 0 18px;
    color: var(--am-muted);
}

.am-opinion-button {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.am-opinion-button:hover {
    background: #333;
    color: #fff;
}

.am-vehicle-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
}

.am-vehicle-nav a {
    padding: 12px 18px;
    border: 1px solid var(--am-border);
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
}

.am-vehicle-nav a:hover {
    border-color: #111;
}

@media (max-width: 700px) {
    .am-vehicle-hero,
    .am-section,
    .am-gallery {
        width: 100%;
    }

    .am-vehicle-data-card,
    .am-opinion-card {
        padding: 20px;
    }

    .am-data-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .am-vehicle-nav {
        flex-direction: column;
    }
}

/* =========================================================
   AUTOmeinungen.de – Fahrzeugseite 1.2
   ========================================================= */
.am-vehicle-page { width: min(calc(100% - 40px), var(--am-content)); }

.am-vehicle-data-card,
.am-opinion-card {
    padding: 26px 30px;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: var(--am-white);
    box-shadow: 0 5px 20px rgba(0,0,0,.04);
}

.am-opinion-intro {
    margin: 0 0 22px;
    color: var(--am-muted);
}

.am-opinion-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.am-opinion-button:hover { opacity: .88; }

.am-vehicle-nav {
    width: min(100%, 1000px);
    margin: 10px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--am-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.am-vehicle-nav a {
    text-decoration: none;
    font-weight: 600;
}

.am-vehicle-nav a:last-child { text-align: right; }

@media (max-width: 800px) {
    .am-vehicle-data-card,
    .am-opinion-card { padding: 22px 20px; }
}

@media (max-width: 560px) {
    .am-vehicle-page { width: min(calc(100% - 24px), var(--am-content)); }
    .am-vehicle-nav { grid-template-columns: 1fr; }
    .am-vehicle-nav a:last-child { text-align: left; }
}


/* =========================================================
   AUTOmeinungen.de – Startseite 1.5
   ========================================================= */
.am-home-hero {
    position: relative;
    overflow: hidden;
    margin: -54px 0 0;
    padding: 88px 0 74px;
    min-height: 720px;
    display: flex;
    align-items: center;
    color: #fff;
    background: #1a1a1a url("assets/hero-home.jpg") center center / cover no-repeat;
}
.am-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.43) 38%, rgba(0,0,0,.08) 72%, rgba(0,0,0,.03) 100%);
}
.am-home-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.18));
    pointer-events: none;
}
.am-home-hero-inner {
    position: relative;
    z-index: 1;
}
.am-home-eyebrow {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .03em;
    color: rgba(255,255,255,.92);
}
.am-home-title {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -.035em;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.am-home-lead {
    max-width: 720px;
    margin: 0 0 34px;
    color: rgba(255,255,255,.92);
    font-size: clamp(17px, 2vw, 21px);
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.am-finder-card {
    position: relative;
    z-index: 2;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    color: var(--am-text);
    box-shadow: 0 20px 55px rgba(0,0,0,.30);
    backdrop-filter: blur(4px);
}
.am-finder-title { margin: 0 0 5px; font-size: 23px; }
.am-finder-subtitle { margin: 0 0 20px; color: var(--am-muted); }
.am-finder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}
.am-finder-field label {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--am-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.am-finder-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font: inherit;
}
.am-finder-submit {
    display: inline-flex;
    margin-top: 14px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.am-finder-status { min-height: 20px; margin-top: 12px; color: var(--am-muted); font-size: 13px; }
.am-home-section { padding: 72px 0 0; }
.am-home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.am-home-section h2 { margin: 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.1; }
.am-home-section-intro { margin: 8px 0 0; color: var(--am-muted); }
.am-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.am-brand-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--am-border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}
.am-brand-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.am-brand-count { color: var(--am-muted); font-size: 12px; font-weight: 400; }
.am-home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.am-feature-card { padding: 24px; border: 1px solid var(--am-border); border-radius: 14px; background: #fff; }
.am-feature-icon { font-size: 28px; margin-bottom: 12px; }
.am-feature-card h3 { margin: 0 0 8px; font-size: 20px; }
.am-feature-card p { margin: 0; color: var(--am-muted); }
.am-home-cta {
    margin-top: 72px;
    padding: 44px;
    border-radius: 18px;
    background: var(--am-bg);
    text-align: center;
}
.am-home-cta h2 { margin: 0 0 10px; font-size: 30px; }
.am-home-cta p { max-width: 680px; margin: 0 auto 22px; color: var(--am-muted); }
.am-home-cta a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 10px 20px; border-radius: 999px;
    background: #111; color: #fff; text-decoration: none; font-weight: 700;
}
.am-home-bottom { padding-bottom: 80px; }
@media (max-width: 900px) {
    .am-home-hero { min-height: 680px; }
    .am-finder-grid { grid-template-columns: 1fr; }
    .am-finder-submit { display: block; }
    .am-brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .am-home-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .am-home-hero { margin-top: -30px; min-height: 760px; padding: 54px 0 46px; background-position: 66% center; }
    .am-home-hero::before { background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.38)); }
    .am-home-title { font-size: clamp(38px, 11vw, 54px); }
    .am-finder-card { padding: 18px; }
    .am-brand-grid { grid-template-columns: 1fr; }
    .am-home-cta { padding: 28px 20px; }
}


/* =========================================================
   AUTOmeinungen.de – Startseite 1.6
   Funktionaler, kompakter Fahrzeugfinder / sachlicher Look
   ========================================================= */
.am-finder-card {
    width: min(100%, 780px);
    margin: 0;
    padding: 20px 22px;
    border-radius: 12px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 38px rgba(0,0,0,.24);
}
.am-finder-title {
    font-size: 20px;
    margin-bottom: 3px;
}
.am-finder-subtitle {
    margin-bottom: 14px;
    font-size: 14px;
}
.am-finder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}
.am-finder-field label {
    margin-bottom: 5px;
    font-size: 11px;
}
.am-finder-field select {
    min-height: 43px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 14px;
}
.am-finder-submit {
    width: auto;
    min-height: 43px;
    margin-top: 12px;
    padding: 0 22px;
    border-radius: 8px;
}
.am-finder-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.am-finder-status {
    min-height: 16px;
    margin-top: 7px;
    font-size: 12px;
}
.am-home-hero {
    min-height: 660px;
    padding: 72px 0 62px;
}
.am-home-title {
    max-width: 650px;
    font-size: clamp(38px, 5vw, 64px);
}
.am-home-lead {
    max-width: 650px;
    margin-bottom: 26px;
    font-size: 18px;
}
.am-feature-card {
    padding: 24px;
}
.am-feature-icon { display: none; }

@media (max-width: 900px) {
    .am-finder-card { width: min(100%, 680px); }
    .am-home-hero { min-height: 700px; }
}

@media (max-width: 700px) {
    .am-finder-card { width: 100%; }
    .am-finder-grid { grid-template-columns: 1fr; }
    .am-finder-submit { width: 100%; }
}


/* =========================================================
   AUTOmeinungen.de – Startseite 1.9
   Mockup-derived final hero / translucent finder / white header
   ========================================================= */
.am-header {
    background: #fff;
    color: #111;
    position: relative;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.am-home-hero {
    margin: 0;
    min-height: 650px;
    padding: 72px 0 70px;
    background-position: center center;
}
.am-home-hero::before {
    background: linear-gradient(90deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.38) 42%, rgba(0,0,0,.08) 74%, rgba(0,0,0,.02) 100%);
}
.am-home-hero-inner { display:flex; flex-direction:column; justify-content:center; min-height:650px; }
.am-home-copy { max-width:760px; }
.am-home-eyebrow { margin-bottom:12px; }
.am-home-title { max-width:720px; font-size:clamp(40px,5.2vw,68px); }
.am-home-lead { max-width:690px; margin-bottom:28px; }
.am-finder-card {
    width:100%;
    max-width:1180px;
    margin: 0 auto;
    padding: 18px 20px 15px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 16px;
    background: rgba(255,255,255,.28);
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color:#fff;
}
.am-finder-grid { display:grid; grid-template-columns: 1fr 1fr 1.13fr auto; gap:12px; align-items:end; }
.am-finder-field label { color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.35); margin-bottom:6px; }
.am-finder-field select { min-height:46px; border:1px solid rgba(255,255,255,.7); border-radius:8px; background:rgba(255,255,255,.93); }
.am-finder-submit { width:auto; min-height:46px; margin:0; padding:0 26px; border-radius:8px; background:#1f73d8; white-space:nowrap; }
.am-finder-submit:hover:not(:disabled) { background:#1763bd; }
.am-finder-submit:disabled { opacity:.55; }
.am-finder-status { color:rgba(255,255,255,.95); margin-top:8px; }
.am-feature-icon { display:none; }
@media (max-width:1000px){ .am-finder-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.am-finder-submit{grid-column:1/-1;justify-self:start;} }
@media (max-width:700px){ .am-home-hero{min-height:760px;padding:52px 0 46px;background-position:66% center;}.am-home-hero-inner{min-height:760px;}.am-finder-card{padding:16px;background:rgba(255,255,255,.24);}.am-finder-grid{grid-template-columns:1fr;gap:10px;}.am-finder-submit{grid-column:auto;width:100%;}.am-home-title{font-size:clamp(38px,11vw,54px);} }


/* =========================================================
   AUTOmeinungen.de – 1.10 final corrections
   ========================================================= */
body.home .am-main,
body.front-page .am-main {
    padding-top: 0;
}
.am-finder-card {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.am-finder-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    line-height: 1;
}
.am-finder-submit span:first-child { display:inline-block; }
.am-finder-submit span:last-child { display:inline-block; }
@media (max-width: 1000px) {
    .am-finder-submit { justify-content:center; }
}

/* =========================================================
   AUTOmeinungen.de – Finder 1.16
   Eigene Dropdowns: alle Menüs öffnen kontrolliert nach unten.
   ========================================================= */
.am-finder-card { overflow: visible; }
.am-finder-grid { overflow: visible; }
.am-custom-select { position: relative; min-width: 0; }
.am-finder-select-button {
    width: 100%;
    min-height: 43px;
    padding: 0 12px 0 13px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.am-finder-select-button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.am-custom-select.is-disabled .am-finder-select-button,
.am-finder-select-button:disabled { opacity: .5; cursor: not-allowed; background: #f5f5f5; }
.am-finder-select-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-finder-chevron { flex: 0 0 auto; font-size: 18px; line-height: 1; transform: translateY(-2px); }
.am-finder-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.am-custom-select.is-open .am-finder-menu { display: block; }
.am-finder-menu { color: #111 !important; }
.am-finder-option {
    color: #111 !important;
    padding: 10px 11px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
}
.am-finder-option:hover,
.am-finder-option[aria-selected="true"] { background: #f1f1f1; }
.am-finder-option:focus { outline: none; background: #f1f1f1; }
@media (max-width: 900px) {
    .am-finder-menu { max-height: 240px; }
}


/* AUTOmeinungen.de 1.16 – Finder dropdown text/overflow hardening */
.am-home-hero,
.am-home-hero-inner,
.am-home-copy,
.am-finder-card,
.am-finder-grid,
.am-custom-select { overflow: visible !important; }
.am-finder-menu,
.am-finder-option { color: #111 !important; }
.am-finder-menu { background: #fff !important; }

/* =========================================================
   AUTOmeinungen.de 1.19 – Dropdown bleibt innerhalb des Heroes
   Die tatsächliche Höhe wird beim Öffnen per JavaScript auf den
   verbleibenden Bereich bis zum Hero-/Inhaltsübergang begrenzt.
   ========================================================= */
.am-finder-menu {
    box-sizing: border-box;
    overscroll-behavior: contain;
}

/* =========================================================
   AUTOmeinungen.de – Fahrzeugseite 2.0
   ========================================================= */
.am-vehicle-page-2 {
    max-width: 1180px;
}

.am-vehicle-hero-2 {
    max-width: 1000px;
    margin: 0 auto 30px;
}

.am-vehicle-title-block {
    text-align: left;
    padding: 8px 0 0;
}

.am-vehicle-page-2 .am-vehicle-kicker {
    text-align: left;
    margin-bottom: 8px;
    color: #777;
}

.am-vehicle-page-2 .am-vehicle-title {
    margin: 0 0 18px;
    text-align: left;
    font-size: clamp(34px, 4.5vw, 58px);
    letter-spacing: -.035em;
    font-weight: 700;
}

.am-vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.am-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #f8f8f8;
    color: #555;
    font-size: 13px;
}

.am-meta-chip strong { color: #222; }

.am-gallery-2 {
    max-width: 1000px;
    margin-bottom: 64px;
}

.am-gallery-2 .am-gallery-main {
    border-radius: 18px;
    box-shadow: 0 14px 42px rgba(0,0,0,.10);
}

.am-gallery-2 .am-gallery-thumbs { margin-top: 14px; gap: 10px; }
.am-gallery-2 .am-gallery-thumb { border-radius: 12px; }

.am-vehicle-main-grid {
    width: min(100%, 1000px);
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
    gap: 22px;
    align-items: stretch;
}

.am-vehicle-main-grid .am-section {
    width: 100%;
    margin: 0;
}

.am-section-heading { margin-bottom: 18px; }
.am-section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #777;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.am-section-heading h2 {
    margin: 0;
    font-size: clamp(27px, 3vw, 34px);
    letter-spacing: -.025em;
    font-weight: 700;
}

.am-vehicle-data-card-2 {
    height: calc(100% - 54px);
    padding: 22px 26px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.045);
}

.am-data-2 { grid-template-columns: 1fr; }
.am-data-2 .am-data-row {
    grid-template-columns: minmax(145px, .75fr) 1.25fr;
    padding: 13px 0;
}

.am-experience-card {
    align-self: end;
    min-height: 100%;
    padding: 28px;
    border-radius: 18px;
    background: #151515;
    color: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.13);
}

.am-experience-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 20px;
}

.am-experience-card .am-section-eyebrow { color: #aaa; }
.am-experience-card h2 {
    margin: 0 0 12px;
    font-size: 29px;
    line-height: 1.1;
}
.am-experience-card p {
    margin: 0 0 24px;
    color: #d0d0d0;
}

.am-opinion-button-2 {
    width: 100%;
    gap: 12px;
    margin-top: 0;
    border-radius: 10px;
    background: #fff;
    color: #111;
}
.am-opinion-button-2:hover { background: #f0f0f0; color: #111; }

.am-opinions-section {
    width: min(100%, 1000px);
    margin: 0 auto 64px;
}

.am-opinion-card-2 {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 20px;
    align-items: start;
    padding: 30px;
    border-radius: 18px;
    background: #f7f7f7;
    box-shadow: none;
}

.am-opinion-empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 32px;
}

.am-opinion-card-2 h3 {
    margin: 0 0 7px;
    font-size: 21px;
}
.am-opinion-card-2 p { margin: 0 0 14px; color: #666; }
.am-text-link {
    color: #111;
    font-weight: 700;
    text-decoration: none;
}
.am-text-link:hover { text-decoration: underline; }

.am-vehicle-nav-2 {
    width: min(100%, 1000px);
    margin: 0 auto;
    padding-top: 0;
    border-top: 0;
    gap: 12px;
}

.am-nav-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 82px;
    padding: 18px 20px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.am-nav-card:hover {
    border-color: #aaa;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.am-nav-card span { color: #777; font-size: 12px; font-weight: 700; }
.am-nav-card strong { font-size: 15px; }
.am-nav-card-next { text-align: right; }

@media (max-width: 850px) {
    .am-vehicle-main-grid { grid-template-columns: 1fr; }
    .am-experience-card { min-height: 0; }
    .am-vehicle-data-card-2 { height: auto; }
}

@media (max-width: 700px) {
    .am-vehicle-page-2 .am-vehicle-title { font-size: clamp(31px, 9vw, 46px); }
    .am-vehicle-title-block { padding-top: 0; }
    .am-vehicle-meta { gap: 6px; }
    .am-meta-chip { font-size: 12px; }
    .am-gallery-2 { margin-bottom: 46px; }
    .am-data-2 .am-data-row { grid-template-columns: 1fr; gap: 3px; }
    .am-opinion-card-2 { grid-template-columns: 1fr; padding: 24px; }
    .am-vehicle-nav-2 { grid-template-columns: 1fr; }
    .am-nav-card-next { text-align: left; }
}

/* =========================================================
   AUTOmeinungen.de – Fahrzeugseite 2.2
   ---------------------------------------------------------
   Ruhigere Flächen, besser ausgerichtete Fahrzeugseite und kein schwarzer CTA-Block.
   Finder, Galerie, Fahrzeugübergabe und Datenlogik bleiben unverändert.
   ========================================================= */
body:has(.am-vehicle-page-2) {
    background: #f2f3f4;
}

.am-vehicle-page-2 {
    padding-top: 12px;
    padding-bottom: 34px;
}

.am-vehicle-hero-2 {
    max-width: 1080px;
    margin-bottom: 26px;
}

.am-vehicle-title-block {
    padding: 8px 0 2px;
}

.am-vehicle-page-2 .am-vehicle-kicker {
    color: #73777b;
    letter-spacing: .1em;
}

.am-vehicle-page-2 .am-vehicle-title {
    color: #17191b;
    margin-bottom: 16px;
}

.am-meta-chip {
    min-height: 32px;
    padding: 6px 11px;
    border-color: #d9dcdf;
    background: #e7e9eb;
    color: #555a5e;
}

.am-meta-chip strong { color: #222528; }

.am-gallery-2 {
    max-width: 1080px;
    margin-bottom: 46px;
}

.am-gallery-2 .am-gallery-main {
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0,0,0,.10);
}

.am-gallery-2 .am-gallery-thumbs {
    margin-top: 10px;
}

.am-gallery-2 .am-gallery-thumb span {
    background: #e8eaec;
    color: #3e4347;
}

.am-vehicle-main-grid {
    max-width: 1080px;
    margin-bottom: 50px;
    gap: 34px;
}

/* Rechte Erfahrungsbox beginnt auf Höhe der oberen Datenlinie. */
.am-vehicle-main-grid .am-experience-card {
    margin-top: 49px;
}

/* Fahrzeugüberschrift beginnt exakt auf der gleichen linken Achse wie die Galerie. */
.am-vehicle-title-block {
    padding-left: 0;
    padding-right: 0;
}
.am-vehicle-page-2 .am-vehicle-title {
    margin-top: 0;
}

.am-section-heading {
    margin-bottom: 14px;
}

.am-section-eyebrow {
    color: #74797e;
}

.am-section-heading h2 {
    color: #181a1c;
}

/* Fahrzeugdaten: keine weiße Karte mehr, sondern ruhige offene Fläche. */
.am-vehicle-data-card-2 {
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.am-data-2 {
    overflow: hidden;
    border-top: 1px solid #d7dadd;
    border-bottom: 1px solid #d7dadd;
}

.am-data-2 .am-data-row {
    padding: 14px 8px;
    border-bottom-color: #d7dadd;
}

.am-data-2 .am-data-row:last-child {
    border-bottom: 0;
}

.am-data-2 .am-data-label {
    color: #777d82;
    font-size: 14px;
}

.am-data-2 .am-data-value {
    color: #202326;
}

/* Community-CTA: hell und freundlich statt schwarzer Block. */
.am-experience-card {
    min-height: 0;
    align-self: start;
    padding: 28px;
    border: 1px solid #d9dcdf;
    border-radius: 16px;
    background: #e5e7e9;
    color: #1d2023;
    box-shadow: none;
}

.am-experience-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.am-experience-card .am-section-eyebrow {
    color: #6d7277;
}

.am-experience-card h2 {
    color: #17191b;
    margin-bottom: 10px;
}

.am-experience-card p {
    color: #555b60;
    margin-bottom: 20px;
}

.am-opinion-button-2 {
    width: auto;
    min-width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid #cfd3d6;
    border-radius: 10px;
    background: #fff;
    color: #17191b;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
}

.am-opinion-button-2:hover {
    background: #f7f7f7;
    color: #111;
    border-color: #b9bec2;
}

/* Fahrermeinungen als ruhiger Inhaltsbereich statt großer weißer Karte. */
.am-opinions-section {
    max-width: 1080px;
    margin-bottom: 50px;
}

.am-opinion-card-2 {
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 24px 0;
    border-top: 1px solid #d7dadd;
    border-bottom: 1px solid #d7dadd;
    border-radius: 0;
    background: transparent;
}

.am-opinion-empty-icon {
    width: 48px;
    height: 48px;
    background: #dfe2e4;
    color: #4d5358;
    font-size: 28px;
}

.am-opinion-card-2 h3 {
    color: #222528;
}

.am-opinion-card-2 p {
    color: #666c71;
}

.am-text-link {
    color: #202326;
}

/* Vorher/Nächstes: leicht und nicht wie zwei weitere weiße Karten. */
.am-vehicle-nav-2 {
    max-width: 1080px;
}

.am-nav-card {
    min-height: 72px;
    padding: 15px 4px;
    border: 0;
    border-top: 1px solid #d7dadd;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.am-nav-card:hover {
    border-color: #bfc3c7;
    transform: none;
    box-shadow: none;
}

.am-nav-card span { color: #777d82; }
.am-nav-card strong { color: #202326; }

@media (max-width: 850px) {
    .am-experience-card {
        padding: 24px;
    }
    .am-vehicle-main-grid .am-experience-card {
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    .am-vehicle-page-2 {
        padding-top: 4px;
    }
    .am-vehicle-main-grid {
        gap: 38px;
    }
    .am-opinion-card-2 {
        padding: 20px 0;
    }
}


/* =========================================================
   AUTOmeinungen.de – Fahrzeugseite 2.4
   Titelblock exakt auf die Galerie ausrichten
   ========================================================= */
.am-vehicle-title-block {
    width: min(100%, 1000px);
    margin-inline: auto;
}

.am-vehicle-title-block .am-vehicle-title {
    text-align: left;
}

@media (max-width: 700px) {
    .am-vehicle-title-block {
        width: 100%;
    }
}


/* =========================================================
   AUTOmeinungen.de – 2.5.0 Fahrermeinungen & lokale Videos
   ========================================================= */
.am-opinions-list {
    display: grid;
    gap: 18px;
}
.am-opinion-entry {
    padding: 22px 0;
    border-top: 1px solid #d7dadd;
}
.am-opinion-entry:last-child { border-bottom: 1px solid #d7dadd; }
.am-opinion-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}
.am-opinion-entry h3 { margin: 0 0 3px; font-size: 19px; }
.am-opinion-date { color: #81868b; font-size: 13px; }
.am-opinion-rating {
    white-space: nowrap;
    font-weight: 700;
    font-size: 15px;
}
.am-opinion-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 14px;
    color: #60666b;
    font-size: 13px;
}
.am-opinion-content { color: #33383c; }
.am-opinion-content > :first-child { margin-top: 0; }
.am-opinion-content > :last-child { margin-bottom: 0; }
.am-opinion-share-link { display: inline-block; margin-top: 16px; }

.am-videos-section { max-width: 1080px; margin-bottom: 52px; }
.am-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.am-video-card { margin: 0; }
.am-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111;
    border-radius: 14px;
}
.am-video-card h3 { margin: 10px 0 0; font-size: 16px; }
.am-video-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
    border-top: 1px solid #d7dadd;
    border-bottom: 1px solid #d7dadd;
    color: #656b70;
}
.am-video-empty strong { color: #202326; }
@media (max-width: 700px) {
    .am-opinion-entry-head { flex-direction: column; gap: 8px; }
    .am-video-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   AUTOmeinungen.de – Fahrzeugseite 2.6
   ---------------------------------------------------------
   Community-Bereich kompakter und moderner; Fahrermeinungen ohne
   Sternebewertung; lokale Videos als eigener Inhaltsblock.
   ========================================================= */
.am-vehicle-main-grid .am-experience-card {
    margin-top: 74px;
}

.am-community-grid {
    width: min(100%, 1080px);
    margin: 0 auto 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 34px;
    align-items: start;
}

.am-community-grid .am-section {
    width: 100%;
    margin: 0;
}

.am-community-grid .am-section-heading {
    position: relative;
    margin-bottom: 18px;
}

.am-section-subline {
    margin: 7px 0 0;
    color: #73797e;
    font-size: 14px;
    line-height: 1.5;
}

.am-community-heading {
    padding-right: 190px;
}

.am-inline-action {
    position: absolute;
    right: 0;
    bottom: 2px;
    color: #202326;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.am-inline-action:hover {
    text-decoration: underline;
}

.am-opinions-section .am-opinions-list {
    gap: 0;
}

.am-opinions-section .am-opinion-entry {
    padding: 20px 22px;
    border: 1px solid #dfe2e4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.035);
}

.am-opinions-section .am-opinion-entry + .am-opinion-entry {
    margin-top: 12px;
}

.am-opinion-entry-head {
    margin-bottom: 9px;
}

.am-opinion-entry h3 {
    font-size: 17px;
    line-height: 1.3;
}

.am-opinion-date {
    font-size: 12px;
}

.am-opinion-extra {
    margin: 0 0 13px;
    gap: 7px;
}

.am-opinion-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef0f1;
    color: #555b60;
    font-size: 12px;
}

.am-opinion-pill strong {
    color: #25292c;
}

.am-opinion-content {
    font-size: 14px;
    line-height: 1.65;
}

.am-opinion-content-empty {
    color: #747a7f;
    font-style: italic;
}

.am-videos-section .am-video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.am-video-card video {
    border: 1px solid #d9dcdf;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(0,0,0,.035);
}

.am-video-empty {
    min-height: 214px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 24px;
    border: 1px dashed #cbd0d4;
    border-radius: 15px;
    background: rgba(255,255,255,.42);
}

.am-video-play {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 50%;
    background: #dfe5e9;
    color: #59636b;
    font-size: 17px;
    padding-left: 3px;
}

.am-video-empty strong {
    color: #24282b;
    font-size: 15px;
}

.am-video-empty span {
    max-width: 360px;
    color: #73797e;
    font-size: 13px;
    line-height: 1.45;
}

.am-video-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 15px;
    border: 1px solid #d0d4d7;
    border-radius: 9px;
    background: #fff;
    color: #202326;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(0,0,0,.035);
}

.am-video-upload-button:hover {
    background: #f7f7f7;
    color: #111;
}

/* Sternebewertung ist auf AUTOmeinungen.de bewusst nicht Bestandteil der Darstellung. */
.am-opinion-rating {
    display: none !important;
}

@media (max-width: 850px) {
    .am-community-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }
    .am-community-heading {
        padding-right: 0;
    }
    .am-inline-action {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 700px) {
    .am-vehicle-main-grid .am-experience-card {
        margin-top: 0;
    }
    .am-community-grid {
        margin-bottom: 44px;
    }
    .am-opinions-section .am-opinion-entry {
        padding: 18px;
    }
}
