/* eineurohilft Cookie Consent Banner */

/* ── BANNER ─────────────────────────────────────────────────── */
#eeh-cookie-banner {
    position: fixed;
    z-index: 999999;
    background: #ffffff;
    box-shadow: 0 -4px 32px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
    animation: eeh-slide-up .3s ease;
}

/* Positionen */
#eeh-cookie-banner.pos-bottom       { bottom: 0; left: 0; right: 0; border-radius: 16px 16px 0 0; padding: 24px 32px; }
#eeh-cookie-banner.pos-top          { top: 0; left: 0; right: 0; border-radius: 0 0 16px 16px; padding: 24px 32px; }
#eeh-cookie-banner.pos-bottom-left  { bottom: 20px; left: 20px; width: 380px; max-width: calc(100vw - 40px); border-radius: 16px; padding: 24px; }
#eeh-cookie-banner.pos-bottom-right { bottom: 20px; right: 20px; width: 380px; max-width: calc(100vw - 40px); border-radius: 16px; padding: 24px; }

@keyframes eeh-slide-up { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

/* ── BANNER LAYOUT ───────────────────────────────────────────── */
#eeh-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
}
#eeh-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
#eeh-banner-icon { font-size: 28px; flex-shrink: 0; margin-top: -2px; }
#eeh-banner-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}
#eeh-banner-text {
    color: #444;
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.65;
}

/* ── KATEGORIEN ──────────────────────────────────────────────── */
#eeh-cookie-cats {
    display: none;
    gap: 12px;
    margin-bottom: 16px;
}
#eeh-cookie-cats.visible { display: flex; flex-wrap: wrap; }

.eeh-cat {
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    border: 1.5px solid #e0e2ea;
    border-radius: 12px;
    padding: 14px 16px;
}
.eeh-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.eeh-cat-title { font-size: 13px; font-weight: 800; color: #1a1a1a; }
.eeh-cat-text  { font-size: 12px; color: #666; line-height: 1.5; }

/* Notwendige Cookies: immer aktiv, kein Toggle */
.eeh-cat.necessary .eeh-cat-badge {
    font-size: 10px; font-weight: 700; background: #dcfce7; color: #15803d;
    padding: 3px 8px; border-radius: 50px; white-space: nowrap;
}

/* Toggle Switch */
.eeh-toggle-wrap { display: flex; align-items: center; gap: 8px; }
.eeh-toggle {
    position: relative; width: 40px; height: 22px; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background: #d1d5db; border-radius: 50px; border: none; outline: none;
    transition: background .2s;
}
.eeh-toggle:checked { background: var(--eeh-primary, #e21627); }
.eeh-toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.eeh-toggle:checked::after { transform: translateX(18px); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
#eeh-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.eeh-btn {
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all .15s;
    white-space: nowrap;
}
.eeh-btn-accept {
    background: var(--eeh-primary, #e21627);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(226,22,39,.35);
}
.eeh-btn-accept:hover { filter: brightness(1.1); transform: translateY(-1px); }
.eeh-btn-decline {
    background: #f4f5f8;
    color: #444;
    border: 1.5px solid #e0e2ea;
}
.eeh-btn-decline:hover { background: #e0e2ea; }
.eeh-btn-settings {
    background: transparent;
    color: var(--eeh-primary, #e21627);
    border: 1.5px solid var(--eeh-primary, #e21627);
}
.eeh-btn-settings:hover {
    background: var(--eeh-primary, #e21627);
    color: #fff;
}
.eeh-btn-save {
    background: var(--eeh-primary, #e21627);
    color: #fff;
}

#eeh-banner-links {
    margin-left: auto;
    font-size: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
#eeh-banner-links a {
    color: #888;
    text-decoration: underline;
    font-size: 12px;
    font-weight: 500;
}
#eeh-banner-links a:hover { color: #444; }



/* ── YOUTUBE WRAPPER ─────────────────────────────────────────── */
.eeh-yt-wrap {
    position: relative;
    display: block;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}
.eeh-yt-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .7;
    transition: opacity .2s;
}
.eeh-yt-wrap:hover .eeh-yt-thumb { opacity: .5; }

.eeh-yt-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}
.eeh-yt-play {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none; cursor: pointer; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    transition: transform .15s, background .15s;
    color: var(--eeh-primary, #e21627);
    font-family: inherit;
}
.eeh-yt-play:hover { transform: scale(1.1); background: #fff; }

/* Wenn Marketing-Cookies nicht akzeptiert: Notice anzeigen */
.eeh-yt-notice {
    display: none;
    background: rgba(0,0,0,.75);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    font-family: 'Nunito', system-ui, sans-serif;
    max-width: 340px;
}
.eeh-yt-wrap.needs-consent .eeh-yt-play  { display: none; }
.eeh-yt-wrap.needs-consent .eeh-yt-notice { display: block; }

.eeh-yt-accept {
    display: inline-block;
    margin-top: 10px;
    background: var(--eeh-primary, #e21627);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.eeh-yt-accept:hover { background: #b01020; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media(max-width: 640px) {
    #eeh-cookie-banner.pos-bottom,
    #eeh-cookie-banner.pos-top { padding: 18px 16px; }
    #eeh-banner-actions { flex-direction: column; align-items: stretch; }
    .eeh-btn { text-align: center; }
    #eeh-banner-links { margin-left: 0; justify-content: center; }
    .eeh-cat { min-width: 100%; }
}
