/**
 * Legal Widgets CSS - Minimalistisch & Funktional
 */

/* ==========================================
   COOKIE BANNER
   ========================================== */

#jz-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 16px;
}

.jz-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.jz-cookie-text {
    margin: 0;
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 250px;
}

.jz-cookie-buttons {
    display: flex;
    gap: 10px;
}

.jz-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 140px;
}

.jz-btn-primary {
    background: #2563eb;
    color: #fff;
}

.jz-btn-primary:hover {
    background: #1d4ed8;
}

.jz-btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.jz-btn-secondary:hover {
    background: #e2e8f0;
}

@media (max-width: 640px) {
    .jz-cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .jz-cookie-buttons {
        width: 100%;
    }

    .jz-btn {
        flex: 1;
    }
}

/* ==========================================
   ACCESSIBILITY WIDGET
   ========================================== */

#jz-a11y-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

#jz-a11y-btn:hover {
    transform: scale(1.05);
}

#jz-a11y-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

#jz-a11y-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jz-a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.jz-a11y-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
}

.jz-a11y-body {
    padding: 16px;
}

.jz-a11y-item {
    margin-bottom: 16px;
}

.jz-a11y-item:last-child {
    margin-bottom: 0;
}

.jz-a11y-item>span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.jz-a11y-btns {
    display: flex;
    gap: 8px;
}

.jz-a11y-btns button {
    flex: 1;
    padding: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #334155;
}

.jz-a11y-btns button:hover {
    background: #e2e8f0;
}

.jz-a11y-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
}

.jz-a11y-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 640px) {
    #jz-a11y-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* ==========================================
   ACCESSIBILITY MODES
   ========================================== */

/* High Contrast */
body.jz-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.jz-high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.jz-high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.jz-high-contrast button {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}

/* Focus Mode */
body.jz-focus-mode *:focus {
    outline: 4px solid #2563eb !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2) !important;
}

/* Skip Link - IMMER sichtbar */
.jz-skip-link {
    position: fixed;
    top: 80px;
    left: 10px;
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    z-index: 10000;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s;
}

.jz-skip-link:hover,
.jz-skip-link:focus {
    transform: scale(1.05);
    outline: 3px solid #fff;
    outline-offset: 2px;
}