/* AMS EU-Label – Frontend & Admin Styles */

.ams-eu-label,
.ams-eu-label * {
    box-sizing: border-box;
}
.ams-eu-label {
    margin: 0 auto 1.5rem;
    max-width: 520px;
    text-align: center;
    font-family: inherit;
}
.ams-eu-label__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    line-height: 1.25;
}
.ams-eu-label__eyebrow {
    display: block;
    margin-bottom: .65rem;
    color: #1769ff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ams-eu-label img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    background: #fff;
}
.ams-eu-lightbox-trigger {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    font: inherit;
}
.ams-eu-lightbox-hint {
    position: absolute;
    left: 50%;
    bottom: .55rem;
    transform: translateX(-50%);
    padding: .3rem .65rem;
    background: rgba(16,32,45,.82);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
}
/* Lightbox-Overlay (ein einziges Overlay pro Seite, wird per JS befüllt) */
.ams-eu-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(10,16,22,.86);
}
.ams-eu-lightbox-overlay.is-open { display: flex; }
.ams-eu-lightbox-overlay img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92vw, 640px);
    max-height: 92vh;
    border-radius: .4rem;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.ams-eu-lightbox-close {
    position: absolute !important;
    top: 1.1rem !important;
    right: 1.3rem !important;
    z-index: 1 !important;
    width: 2.4rem !important;
    height: 2.4rem !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #14294f !important;
    color: #fff !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
.ams-eu-lightbox-close:hover { background: #1c3a6e !important; }
.ams-eu-lightbox-close svg { display: block !important; width: 1.1rem !important; height: 1.1rem !important; }
.ams-eu-label--grayscale img { filter: grayscale(100%); }
.ams-eu-label figcaption {
    margin-top: .65rem;
    color: #657582;
    font-size: .75rem;
    line-height: 1.45;
}
.ams-eu-label--print { max-width: none; }

/* Hinweis-Banner */
.ams-eu-notice {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr);
    gap: 2rem;
    align-items: center;
    margin: 2.5rem auto;
    padding: 2rem;
    background: #edf5ff;
    border: 1px solid #d7e7ff;
    border-radius: 1rem;
    font-family: inherit;
}
.ams-eu-notice h2, .ams-eu-information h2 {
    margin: .2rem 0 .8rem;
    color: #10202d;
    font-size: clamp(1.65rem,3vw,2.35rem);
    line-height: 1.1;
}
.ams-eu-notice p, .ams-eu-information p {
    color: #416b9d;
    font-size: 1rem;
    line-height: 1.7;
}
.ams-eu-notice__small { font-size: .88rem !important; }
.ams-eu-notice__label {
    padding: 1rem;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(16,32,45,.1);
}
.ams-eu-notice__label .ams-eu-label { margin: 0; max-width: 320px; }

.ams-eu-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    background: #1769ff;
    color: #fff !important;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease;
    border: 0;
}
.ams-eu-button:hover { background: #0b56d4; transform: translateY(-1px); }
.ams-eu-button--print { background: #2c3e50; }
.ams-eu-button--print:hover { background: #1c2833; }

/* Informationsseite */
.ams-eu-information {
    max-width: 980px;
    margin: 2rem auto;
    padding: clamp(1.25rem,4vw,3rem);
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 1rem;
    box-shadow: 0 15px 45px rgba(16,32,45,.08);
    font-family: inherit;
}
.ams-eu-information__intro { max-width: 680px; margin-bottom: 2rem; }
.ams-eu-information > .ams-eu-label { max-width: 650px; padding: 1rem; background: #f7f8fa; border-radius: .75rem; }
.ams-eu-information__steps { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #dfe5eb; }
.ams-eu-information__steps h3, .ams-eu-information__garan-list h3 { color: #10202d; font-size: 1.45rem; }
.ams-eu-information__steps ol { display: grid; gap: .75rem; margin: 1rem 0; padding-left: 1.35rem; color: #29404f; line-height: 1.6; }
.ams-eu-information__steps a, .ams-garan a { color: #1769ff; font-weight: 800; }
.ams-eu-information__garan-list { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #dfe5eb; }

/* GARAN – Vollformat */
.ams-garan {
    display: grid;
    grid-template-columns: minmax(170px,260px) 1fr;
    gap: 1.25rem;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: .8rem;
    box-shadow: 0 8px 25px rgba(16,32,45,.07);
    font-family: inherit;
}
.ams-garan__visual { display: flex; min-height: 120px; align-items: center; justify-content: center; background: #f7f8fa; border-radius: .5rem; padding: .6rem; }
.ams-garan__visual .ams-eu-lightbox-trigger,
.ams-garan__visual img { width: 100%; height: auto; }
.ams-garan h3 { margin: .25rem 0 .55rem; color: #10202d; font-size: 1.25rem; }
.ams-garan p { margin: 0; color: #657582; line-height: 1.6; }

/* GARAN – geschachteltes (nested) Format: kompaktes Badge, öffnet per Klick die
   vollständige, gut lesbare Grafik in der Lightbox (siehe .ams-eu-lightbox-trigger). */
.ams-garan-nested {
    display: inline-block;
    max-width: 220px;
}
.ams-garan-nested img { border: 1px solid #dfe5eb; border-radius: .4rem; }

/* Fahrzeugseiten-Block (Gebrauchtwagen/Neuwagen, oberhalb des mobile.de-Bereichs) */
.ams-eu-vehicle-notice {
    margin: 0 0 1.5rem;
    border: 1px solid #e1e8f0;
    border-radius: .75rem;
    overflow: hidden;
    font-family: inherit;
}
.ams-eu-vehicle-notice__top {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1.1rem 1.4rem;
    background: #f7f9fc;
    border-left: 4px solid #1769ff;
}
.ams-eu-vehicle-notice__icon { flex: 0 0 auto; font-size: 1.3rem; line-height: 1; margin-top: .1rem; }
.ams-eu-vehicle-notice__intro { margin: 0; font-size: .92rem; color: #33465c; }

.ams-eu-vehicle-notice__panel {
    padding: 1.85rem 1.75rem 2.1rem;
    background: linear-gradient(160deg, #14294f 0%, #0b1c3a 100%);
    color: #fff;
    text-align: left;
}
.ams-eu-vehicle-notice__eyebrow {
    display: block;
    margin: 0 0 .5rem;
    color: #7fa6ff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ams-eu-vehicle-notice__heading {
    margin: 0 0 .4rem;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}
.ams-eu-vehicle-notice__subheading {
    margin: 0 0 1.75rem;
    color: #c4d3ec;
    font-size: .95rem;
}
.ams-eu-vehicle-notice__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}
.ams-eu-vehicle-notice__col { flex: 0 1 240px; max-width: 240px; text-align: center; }
.ams-eu-vehicle-notice__grid.has-single .ams-eu-vehicle-notice__col { flex-basis: 280px; max-width: 280px; }
.ams-eu-vehicle-notice__col-label {
    display: block;
    margin-bottom: .75rem;
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-align: center;
}
.ams-eu-vehicle-notice__col .ams-eu-label,
.ams-eu-vehicle-notice__col .ams-eu-lightbox-trigger { margin: 0; max-width: none; }
.ams-eu-vehicle-notice__col .ams-eu-label figcaption { display: none; }
/* Beide Grafiken bekommen denselben weißen Rahmen in fester Höhe/Breite (Seitenverhältnis
   des höheren Gewährleistungs-Labels). Das GARAN-Label ist flacher/breiter und bekommt
   dadurch automatisch mehr weißen Rand oben/unten – ohne verzerrt zu werden. */
.ams-eu-vehicle-notice__col .ams-eu-lightbox-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1653 / 2338;
    padding: .85rem;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    overflow: hidden;
}
.ams-eu-vehicle-notice__col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.ams-eu-admin-warning {
    padding: 1rem;
    border: 1px solid #e3aa00;
    background: #fff8dc;
    color: #6e5200;
    border-radius: .4rem;
    font-family: inherit;
}

.ams-eu-print-only { display: none; }

@media (max-width: 700px) {
    .ams-eu-notice { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
    .ams-eu-notice__label { max-width: 340px; margin: auto; }
    .ams-garan { grid-template-columns: 1fr; }
    .ams-garan__visual { max-width: 200px; }
    .ams-eu-information { border-radius: .6rem; }
}

@media print {
    .ams-eu-notice, .ams-eu-information { box-shadow: none; border: 0; }
    .ams-eu-notice__copy { display: none; }
    .ams-eu-notice { display: block; background: #fff; padding: 0; }
    .ams-eu-notice__label { box-shadow: none; }
    .ams-eu-label { max-width: none; }
    .ams-eu-label figcaption, .ams-eu-button, .ams-eu-lightbox-hint, .ams-eu-lightbox-overlay { display: none !important; }
    .ams-eu-label img { max-width: 100%; page-break-inside: avoid; }
}

/* ---------------------------------------------------------------- */
/* Admin: Settings-Seite                                             */
/* ---------------------------------------------------------------- */
.ams-eu-admin .ams-eu-preset-table { margin-top: 1rem; }
.ams-eu-admin .ams-eu-preset-table th, .ams-eu-admin .ams-eu-preset-table td { padding: .5rem; }
.ams-eu-admin .ams-eu-preset-table input[type="text"],
.ams-eu-admin .ams-eu-preset-table input[type="url"] { width: 100%; }
.ams-eu-admin .ams-eu-preset-remove { color: #a00; font-weight: 700; }
