/* --- Grid System & Cards --- */
.ea-offer { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: center; }
@media(max-width:900px) { .ea-offer { grid-template-columns: 1fr; } }
.ea-media { margin-right: -3.5rem; padding: 1.25rem; }
@media(max-width:900px) { .ea-media { margin: 0; padding: 0 0 1rem 0; } }
.ea-media-inner { aspect-ratio: 16/9; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ea-media-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ea-body { background: #fff; border-radius: 20px; padding: 1.5rem 1.75rem; box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.ea-title { font-size: clamp(28px, 4.5vw, 50px); line-height: 1.1; margin: .25rem 0 .5rem; color: #0B1830; font-weight: 800; }
.ea-meta { display: grid; gap: .35rem; margin: .5rem 0 1rem; }
.ea-meta > div { display: flex; align-items: center; gap: .35rem; }
.ea-label { color: #24324D; opacity: .75; }
.ea-price { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: .2px; color: #0B1830; margin: .5rem 0 .5rem; }
.ea-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.ea-cta { display: inline-block; background: #0B1830; color: #fff; padding: .8rem 1.15rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.ea-cta--ghost { background: #e7ebf3; color: #0B1830; }
.ea-cta--sm { padding: .45rem .8rem; font-size: .95rem; line-height: 1; }
.ea-disclaimer-full { margin: 18px 4px 0 4px; font-size: .9rem; color: #22303E; opacity: .9; }

/* --- Tabs (Kundenart im Angebot) --- */
.ea-tabs { margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: 8px; }
.ea-tab-btn { display: inline-block; border: 1px solid #CBD5E1; background: #fff; padding: .5rem .8rem; border-radius: 8px; cursor: pointer; font-size: .95rem; font-weight: 600; text-align: center; color: #4B5563; }
@media(max-width:600px) {
    .ea-tabs { flex-wrap: nowrap; } 
    .ea-tab-btn { flex: 1; padding: .6rem 0; font-size: .9rem; } 
}
.ea-tab-btn[aria-selected="true"] { background: #0B1830; color: #fff; border-color: #0B1830; }
.ea-tab-panel { display: none; }
.ea-tab-panel.is-active { display: block; animation: fadeIn .3s ease; }

/* --- Akkordeon (Modell-Auswahl) --- */
.ea-accordion-root { margin-bottom: 30px; display: flex; flex-direction: column; gap: 10px; }
.ea-accordion-item { border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; overflow: hidden; transition: all 0.3s ease; }
.ea-accordion-header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: transparent; border: none; cursor: pointer; text-align: left; }
.ea-accordion-header:hover { background: #F8FAFC; }
.ea-acc-title { font-size: 1.1rem; font-weight: 700; color: #0B1830; flex: 1; padding-right: 10px; }
.ea-acc-price { font-size: 1rem; font-weight: 600; color: #4B5563; white-space: nowrap; padding-right: 15px; }
.ea-acc-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; color: #0B1830; }
.ea-accordion-header[aria-expanded="true"] .ea-acc-icon { transform: rotate(180deg); }
.ea-accordion-header[aria-expanded="true"] { border-bottom: 1px solid #E5E7EB; background: #F8FAFC; }
.ea-accordion-content { padding: 20px; background: #F8FAFC; }

@media(max-width:600px) {
    .ea-accordion-header { padding: 14px 15px; flex-wrap: wrap; }
    .ea-acc-title { flex: 1 1 100%; margin-bottom: 4px; font-size: 1.05rem; }
    .ea-acc-price { font-size: 0.95rem; }
    .ea-accordion-content { padding: 15px 10px; }
}

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

/* --- Modals (Ausstattung) --- */
.ea-modal[hidden] { display: none; }
.ea-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.ea-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ea-modal__dialog { position: relative; max-width: 720px; max-height: 80vh; margin: 0 auto; background: #fff; border-radius: 16px; padding: 1.25rem 1.5rem; box-shadow: 0 10px 50px rgba(0,0,0,.25); overflow: auto; }
.ea-modal__close { position: absolute; top: .5rem; right: .5rem; background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer; }

/* --- Grid & Toolbar --- */
.eg-root { margin-top: 1.5rem; }
.eg-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.eg-left { display: flex; flex-wrap: wrap; gap: .5rem; }
.eg-right { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Brand-Chips */
.ea-chip { border: 1px solid #E5E7EB; border-radius: 12px; padding: 8px 10px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.08); min-height: 70px; }
.ea-chip-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ea-chip-logo img { max-width: 80px; max-height: 50px; object-fit: contain; display: block; }
.ea-chip.is-active { border-color: #0B1830; box-shadow: 0 0 0 2px rgba(11,24,48,.12); }
.eg-filter-brands { display: flex; flex-wrap: nowrap; gap: .5rem; justify-content: center; }
.eg-filter-brands .ea-chip { flex: 0 0 30%; max-width: 110px; }

/* Filter Buttons */
.eg-kind-btn, .eg-drive-btn { border: 1px solid #CBD5E1; border-radius: 12px; padding: 8px 18px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; }
.eg-kind-btn span, .eg-drive-btn span { font-weight: 500; }
.eg-kind-btn.is-active, .eg-drive-btn.is-active { background: #0B1830; color: #fff; border-color: #0B1830; }
.eg-sep { width: 1px; height: 30px; background: #E5E7EB; margin: 0 .25rem; }
.eg-price-wrap { display: inline-flex; align-items: center; border: 1px solid #CBD5E1; border-radius: 12px; padding: 6px 10px; background: #fff; min-height: 48px; }
.eg-price-wrap input.eg-max { border: none; outline: none; background: transparent; padding: 6px 4px; min-width: 80px; font: inherit; font-size: 16px; }
.eg-price-wrap span { margin-left: 4px; }

/* --- Mobile Filter Panel --- */
.eg-filter-toggle { display: none; border: 1px solid #CBD5E1; border-radius: 12px; padding: 8px 16px; background: #fff; font: inherit; cursor: pointer; align-items: center; }
.eg-filter-panel[hidden] { display: none; }
.eg-filter-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; height: auto; }
.eg-filter-panel-inner { background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); padding: 1.5rem; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.eg-filter-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 0; }
.eg-filter-head strong { font-size: 1.2rem; }
.eg-filter-head button { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; }

.eg-filter-section { display: flex; flex-direction: column; gap: .5rem; }
.eg-filter-section strong { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; }
.eg-brand-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.eg-drive-row, .eg-kind-row { display: flex; flex-wrap: wrap; gap: .5rem; }

@media(max-width:600px){
    .eg-kind-row .eg-kind-btn, .eg-drive-row .eg-drive-btn { flex: 1; justify-content: center; text-align: center; }
    .eg-brand-row .ea-chip { min-height: 50px; }
    .eg-brand-row .ea-chip-logo img { max-height: 35px; }
}

.eg-filter-actions { display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #eee; }
.eg-filter-actions button { border-radius: 999px; padding: 12px 24px; border: 1px solid #CBD5E1; background: #fff; cursor: pointer; font-weight: 600; font-size: 1rem; }
.eg-filter-actions .eg-apply { background: #0B1830; color: #fff; border-color: #0B1830; flex: 1; margin-left: 10px; }
.eg-filter-actions .eg-reset { color: #666; border-color: transparent; }

/* --- Grid Cards --- */
.eg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media(max-width:1100px) { .eg-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:640px) { .eg-grid { grid-template-columns: 1fr; } }
.eg-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.eg-img { aspect-ratio: 16/9; background: #F3F4F6; overflow: hidden; }
.eg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eg-body { padding: 18px; }
.eg-title { font-size: 22px; line-height: 1.25; margin: 10px 0 10px; font-weight: 700; color: #0B1830; }
.eg-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #0B1830; color: #fff; font-size: .8rem; font-weight: 600; margin-bottom: 10px; }
.eg-line { font-size: 18px; margin: 4px 0; color: #1F2937; }
.eg-line strong { font-weight: 700; }
.eg-line-verbrauch { font-size: .9rem; margin-top: 6px; color: #4B5563; }
.eg-link { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-weight: 700; text-decoration: none; color: #0B1830; }
.eg-link:hover { opacity: .85; }

@media(max-width:900px) { .eg-toolbar { align-items: flex-start; } }
@media(max-width:768px) {
    .eg-toolbar { justify-content: flex-start; }
    .eg-left, .eg-right { display: none; }
    .eg-filter-toggle { display: inline-flex; margin-left: 0; width: 100%; justify-content: center; }
}