.cs-checklisten-wrapper {
    margin: 20px 0;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.cs-checklisten-title {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.cs-checklisten-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Sections Container */
.cs-checklisten-sections {
    margin: 20px 0;
}

.cs-checklisten-section {
    margin: 0 0 35px 0;
    padding: 0;
}

.cs-checklisten-section:last-child {
    margin-bottom: 20px;
}

.cs-checklisten-section-title {
    margin: 0 0 10px 0;
}

.cs-checklisten-section-description {
    margin: 10px 0 15px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    border-radius: 3px;
}

.cs-checklisten-section-groups {
    margin: 15px 0 0 0;
}

/* Groups Container */
.cs-checklisten-groups {
    margin: 20px 0;
}

.cs-checklisten-group {
    margin: 0 0 25px 0;
    padding: 0;
}

.cs-checklisten-group:last-child {
    margin-bottom: 0;
}

.cs-checklisten-group-title {
    margin: 0 0 8px 0;
}

.cs-checklisten-group-description {
    margin: 0 0 12px 0;
    padding: 8px 12px;
    background: #f5f5f5;
    border-left: 3px solid #ccc;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    border-radius: 3px;
}

.cs-checklisten-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-checklisten-item {
    position: relative;
    margin: 0 0 10px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 3px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.cs-checklisten-item.cs-checked .cs-checklisten-item-text {
    text-decoration: line-through;
    color: #999;
    opacity: 0.7;
}

.cs-checklisten-item.cs-checked .cs-checklisten-item-content {
    opacity: 0.7;
}

/* Custom Checkbox Styling */
.cs-checklisten-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 15px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.cs-checklisten-checkbox-wrapper:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cs-checklisten-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cs-checklisten-checkbox {
    display: none;
}

.cs-checklisten-checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.cs-checklisten-checkbox:checked ~ .cs-checklisten-checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
    transform: scale(1.05);
}

.cs-checklisten-checkbox:checked ~ .cs-checklisten-checkmark:after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.cs-checklisten-checkbox-wrapper:hover .cs-checklisten-checkmark {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.cs-checklisten-checkbox:focus ~ .cs-checklisten-checkmark {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.cs-checklisten-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cs-checklisten-item-text {
    display: block;
    color: #333;
    line-height: 1.5;
}

.cs-checklisten-item-links {
    display: block;
    font-size: 0.9em;
    line-height: 1.4;
}

.cs-checklisten-item-links a {
    margin: 0 5px;
    color: #2271b1;
    text-decoration: none;
    border-bottom: 1px dotted #2271b1;
}

.cs-checklisten-item-links a:hover {
    color: #135e96;
    border-bottom-style: solid;
}

/* Reset Button Styling */
.cs-checklisten-actions {
    margin: 20px 0 0 0;
    padding: 15px 0 0 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.cs-checklisten-reset {
    display: inline-block;
    padding: 8px 16px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cs-checklisten-reset:hover:not(:disabled) {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cs-checklisten-reset:disabled {
    background: #4CAF50;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cs-checklisten-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* M6/M7: Notice für Fallback-Information */
.cs-checklisten-notice {
    margin: 0 0 20px 0;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95em;
    line-height: 1.5;
}

.cs-checklisten-notice:before {
    content: "ℹ";
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
    font-size: 1.2em;
}

/* Header Styling */
.cs-checklisten-header {
    margin-bottom: 15px;
}

/* Media Container - PDF und QR-Code nebeneinander */
.cs-checklisten-media-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.cs-checklisten-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cs-qr-code-container {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.cs-qr-loading {
    color: #666;
    font-size: 12px;
    text-align: center;
}

.cs-qr-code-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.cs-qr-error {
    color: #721c24;
    font-size: 11px;
    text-align: center;
    padding: 5px;
}

.cs-qr-label {
    margin: 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* PDF Download Button Styling */
.cs-checklisten-pdf-section {
    flex: 1;
}

a.cs-checklisten-pdf-button {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: #fa8936 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 16px;
    font-size: 23px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

a.cs-checklisten-pdf-button:hover {
    background: #e8782f !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

a.cs-checklisten-pdf-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: white !important;
}

a.cs-checklisten-pdf-button:visited {
    color: white !important;
    background: #fa8936 !important;
}

a.cs-checklisten-pdf-button:focus {
    color: white !important;
    background: #fa8936 !important;
}

.cs-checklisten-pdf-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* QR-Code standardmäßig ausblenden, nur auf Desktop anzeigen */
.cs-checklisten-qr-wrapper {
    display: none;
}

/* Desktop Detection - QR-Code nur auf Desktop anzeigen */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .cs-checklisten-qr-wrapper {
        display: flex !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cs-checklisten-wrapper {
        padding: 0;
    }

    /* Sections auf Mobile */
    .cs-checklisten-section {
        margin: 0 0 25px 0;
    }


    .cs-checklisten-section-description {
        font-size: 0.9em;
        padding: 8px 12px;
    }



    .cs-checklisten-checkbox-wrapper {
        padding: 8px 12px;
        gap: 10px;
    }

    .cs-checklisten-checkmark {
        width: 18px;
        height: 18px;
    }

    .cs-checklisten-item-content {
        flex-direction: column;
        gap: 5px;
    }

    .cs-checklisten-item-links {
        display: block;
        margin-top: 5px;
    }

    /* Media Container auf Mobile stapeln */
    .cs-checklisten-media-container {
        flex-direction: column;
        gap: 15px;
    }

    .cs-checklisten-pdf-section {
        width: 100%;
    }

    /* PDF Button auf Mobile anpassen */
    a.cs-checklisten-pdf-button {
        padding: 20px 24px !important;
        font-size: 23px !important;
        width: 100%;
        justify-content: center;
    }

    /* QR-Code auf Mobile zentrieren */
    .cs-checklisten-qr-wrapper {
        align-self: center;
    }
}