/* ============================================
   Cookie-Banner + YouTube-Embed Styles
   ============================================ */

/* == Cookie Banner == */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--ink);
    color: #fff;
    padding: 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cookie-banner-text p {
    font-size: 0.85rem;
    color: var(--gray-300);
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--brand);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
}

.cookie-btn-necessary {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
}

.cookie-btn-necessary:hover {
    border-color: var(--gray-500);
    color: #fff;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--gray-300);
    text-decoration: underline;
    font-size: 0.85rem;
}

/* == Cookie Settings Panel == */
.cookie-settings {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-700);
}

.cookie-settings.open {
    display: block;
}

.cookie-setting-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-900);
}

.cookie-setting-row:last-child {
    border-bottom: none;
}

.cookie-setting-info {
    flex: 1;
}

.cookie-setting-info strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cookie-setting-info p {
    color: var(--gray-500);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-700);
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--brand);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input:disabled:checked + .cookie-toggle-slider {
    background: var(--success);
}

/* == YouTube Embed (DSGVO) == */
.yt-embed {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    border: 1px solid var(--gray-200);
}

.yt-embed-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.yt-embed-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition);
    text-align: center;
    padding: 2rem;
}

.yt-embed-placeholder:hover {
    background: linear-gradient(135deg, var(--ink-soft) 0%, var(--gray-900) 100%);
}

.yt-embed-play {
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform var(--transition);
}

.yt-embed-placeholder:hover .yt-embed-play {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.yt-embed-play svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 4px;
}

.yt-embed-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.yt-embed-desc {
    font-size: 0.82rem;
    color: var(--gray-300);
    max-width: 400px;
    line-height: 1.4;
}

.yt-embed-privacy {
    margin-top: 1rem;
    font-size: 0.75rem;
}

.yt-embed-privacy a {
    color: var(--brand-light);
    text-decoration: underline;
}

/* == Language Switcher == */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.lang-switcher a {
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.lang-switcher a:hover {
    color: var(--ink);
    background: var(--gray-100);
}

.lang-switcher a.active {
    color: #fff;
    background: var(--brand);
}

.lang-switcher-sep {
    color: var(--gray-300);
    font-size: 0.7rem;
}

/* == YouTube Video Grid == */
.yt-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.yt-video-grid .yt-embed {
    margin: 0;
    max-width: none;
}

/* == Responsive == */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}