/* Home Office School - Checklisten Styles */

.hos-checklisten-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

/* Beschreibungstext aus dem Editor */
.hos-checklisten-excerpt {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

.hos-checklisten-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hos-checklisten-content p { margin-bottom: 12px; }
.hos-checklisten-content ul,
.hos-checklisten-content ol { padding-left: 20px; margin-bottom: 12px; }

/* Fortschrittsanzeige */
.hos-checklisten-progress {
    margin-bottom: 24px;
    padding: 0 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-label {
    color: #666;
    font-weight: 500;
}

.progress-percentage {
    color: #1a1a1a;
    font-weight: 600;
}

.hos-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.hos-progress-fill {
    height: 100%;
    background: #0ea5e9;
    width: 0%;
    transition: width 0.3s ease;
}

/* Action Buttons */
.hos-checklisten-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hos-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.hos-btn i {
    font-size: 16px;
}

.hos-btn-export {
    background: #22c55e;
    color: white;
}

.hos-btn-export:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.hos-btn-check-all,
.hos-btn-clear-all {
    background: #f3f4f6;
    color: #1a1a1a;
    border: 0.5px solid #d1d5db;
}

.hos-btn-check-all:hover,
.hos-btn-clear-all:hover {
    background: #e5e7eb;
}

.hos-btn-secondary {
    background: #3b82f6;
    color: white;
}

.hos-btn-secondary:hover {
    background: #2563eb;
}

/* Kategorien */
.hos-checklisten-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.hos-checklisten-category {
    background: white;
    border: 0.5px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.category-header {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    background: #f9fafb;
    border-bottom: 0.5px solid #e5e7eb;
    transition: background 0.2s;
}

.category-header:hover {
    background: #f3f4f6;
}

.category-header i:first-child {
    font-size: 18px;
    color: #666;
    flex-shrink: 0;
}

.category-name {
    font-weight: 500;
    flex: 1;
    color: #1a1a1a;
}

.chevron {
    font-size: 18px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-header.open .chevron {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 12px 16px;
    background: white;
}

.category-content.open {
    display: block;
    max-height: 2000px;
    border-bottom: 0.5px solid #e5e7eb;
}

/* Items List */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hos-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.hos-item:hover {
    background: #f9fafb;
}

.hos-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0ea5e9;
}

.item-text {
    flex: 1;
}

.affiliate-badge {
    text-decoration: none;
    padding: 4px 10px;
    background: #fff8f0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.affiliate-badge:hover {
    background: #fff3e0;
    border-color: #FF9900;
}

/* Amazon-Logo überall einheitlich */
.hos-amazon-logo-img,
.hos-aff-amazon-logo {
    display: block;
    width: 72px;
    height: auto;
}

.hos-aff-amazon-logo {
    display: inline-block;
    vertical-align: middle;
    width: 56px;
}

.hos-aff-star {
    font-size: 9px;
    vertical-align: super;
    margin-left: 1px;
    font-style: normal;
}

/* Affiliate-Disclaimer */
.hos-checklisten-container .hos-affiliate-disclaimer {
    margin: 12px 16px 4px !important;
    padding: 6px 0 0 !important;
    border-top: 1px solid #f3f4f6 !important;
    font-size: 10px !important;
    color: #c4c9d4 !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

.hos-checklisten-container .hos-affiliate-disclaimer strong {
    font-weight: 400 !important;
    color: #c4c9d4 !important;
}

/* Export-Modal */
.hos-export-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.hos-export-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}

.hos-export-box {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 28px 24px 20px;
    width: 360px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hos-export-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.hos-export-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.5;
}

.hos-export-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.hos-export-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
}

.hos-export-opt:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.hos-export-opt .opt-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.hos-export-opt-progress .opt-icon {
    background: #dcfce7;
    color: #16a34a;
}

.hos-export-opt-blank .opt-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.hos-export-opt .opt-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hos-export-opt .opt-content strong {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

.hos-export-opt .opt-content span {
    font-size: 12px;
    color: #666;
}

.hos-export-cancel {
    width: 100%;
    padding: 10px;
    border: none;
    background: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.hos-export-cancel:hover {
    background: #f3f4f6;
    color: #666;
}

/* Error Messages */
.hos-checklisten-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 16px;
    color: #c00;
    margin: 16px;
}

.hos-checklisten-error p {
    margin: 0;
}

/* QR-Code Grid Sektion */
.hos-qr-section {
    margin: 24px 16px 0;
}

.hos-qr-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hos-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 24px;
}

.hos-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hos-qr-card-frame {
    display: inline-block;
    padding: 8px;
    border: 2.5px solid #0ea5e9;
    border-radius: 10px;
    background: #fff;
    line-height: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.hos-qr-card-frame:hover {
    border-color: #0369a1;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.hos-qr-card-code canvas { display: block !important; border: none !important; }
.hos-qr-card-code img    { display: none !important; }

.hos-qr-card-label {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.hos-qr-card-label:hover { color: #0ea5e9; }

.hos-qr-amazon-badge {
    display: block;
    line-height: 0;
    margin-bottom: 8px;
}

.hos-qr-card-text {
    display: block;
    margin-top: 2px;
}

/* Share-Sektion */
.hos-share-section {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 20px 0 0 !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1.5px solid #bae6fd !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

.hos-share-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.hos-share-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0369a1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hos-share-url {
    font-size: 11px !important;
    color: #0ea5e9 !important;
    font-weight: 500 !important;
    word-break: break-all !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hos-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.hos-share-btn:hover { background: #2563eb !important; }
.hos-share-btn i { font-size: 16px !important; }

/* Checklisten-Übersicht */
.hos-checklisten-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 0 16px;
}

.hos-checkliste-card {
    background: white;
    border: 0.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.hos-checkliste-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.card-content p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hos-checklisten-actions {
        flex-direction: column;
    }
    
    .hos-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hos-checklisten-list {
        grid-template-columns: 1fr;
    }
    
    .hos-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .affiliate-badge {
        align-self: flex-end;
        margin-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .progress-fill,
    .hos-btn,
    .category-header,
    .chevron {
        transition: none;
    }
}
