/* Datei: style.css */
#mcc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#mcc-modal {
    background: #fff;
    color: #333;
    padding: 25px;
    max-width: 700px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 75vh;
    overflow-y: auto;
}

.mcc-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.mcc-btn-ess-wrap {
    margin-top: 8px;
    text-align: center;
}

@media (max-width: 480px) {
    .mcc-btn-row {
        grid-template-columns: 1fr;
    }
}

.mcc-row {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
}

.mcc-details-content {
    display: none;
    padding: 10px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.03);
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Dark Mode Enhancements */
#mcc-modal.mcc-dark .mcc-row {
    background: rgba(255, 255, 255, 0.05);
}

#mcc-modal.mcc-dark .mcc-details-content {
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
}

#mcc-revoke-button {
    transition: transform 0.2s;
}

#mcc-revoke-button:hover {
    transform: scale(1.1);
}

/* Apple-style Toggle Switch */
input[type="checkbox"].mcc-toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background: var(--mcc-toggle-frame, #cccccc);
    border-radius: 24px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
    margin: 0;
    flex-shrink: 0;
}

input[type="checkbox"].mcc-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--mcc-toggle-knob, #ffffff);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"].mcc-toggle:checked {
    background: var(--mcc-toggle-bg, #28a745);
}

input[type="checkbox"].mcc-toggle:checked::after {
    transform: translateX(20px);
}

input[type="checkbox"].mcc-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Minimal Design Mode */
.mcc-minimal-mode .mcc-options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .mcc-minimal-mode .mcc-options-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

.mcc-minimal-mode .mcc-row {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.mcc-minimal-mode .mcc-row>span {
    display: none !important;
}

.mcc-minimal-mode .mcc-details-content {
    display: none !important;
}

.mcc-minimal-mode .mcc-btn-row {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 15px;
    margin-top: 30px;
}

.mcc-minimal-mode .mcc-btn-row button,
.mcc-minimal-mode .mcc-btn-row>div {
    flex: 0 1 auto !important;
    width: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (max-width: 480px) {
    .mcc-minimal-mode .mcc-btn-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.mcc-minimal-mode .mcc-btn-ess-wrap {
    display: none !important;
}

.mcc-minimal-mode .mcc-intro-text .mcc-text-content {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mcc-minimal-mode .mcc-intro-text.mcc-expanded .mcc-text-content {
    display: block;
    -webkit-line-clamp: unset;
}

.mcc-minimal-mode .mcc-read-more {
    display: inline-block !important;
}

.mcc-minimal-mode .mcc-intro-text.mcc-expanded .mcc-read-more {
    display: none !important;
}