* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #a1c8e5 0%, #e2eaf2 100%);
    color: #172d4d;
}

.adlerlogo {
    width: 250px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.header {
    height: 20vh;
    color: #172d4d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 15px;
    position: relative;
    max-width: 1200px;
}

.subtitle {
    padding: 0 0 0.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.1rem;
    max-width: 600px;
    opacity: 0.9;
}

.download-all-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 15px;
}

.download-all-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.download-all-btn:active {
    transform: translateY(0);
}

.download-all-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-count {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.download-progress {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

.download-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.icon-preview img {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    display: block;
    transition: all 0.3s ease;
}

.icon-card:hover .icon-preview img {
    transform: scale(1.2);
}

.icon-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-card.selected {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 2px solid #667eea;
}

.icon-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
}

.icon-checkbox input[type="checkbox"] {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.icon-preview {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.icon-preview svg {
    width: 60px;
    height: 60px;
    fill: #667eea;
}

.icon-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
    height: clamp(4rem, 4rem, 5rem);
}

.icon-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
    height: clamp(4rem, 4rem, 6rem);
    overflow: auto;
    text-overflow: ellipsis;
}

.download-buttons-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 12px;
}

.download-selected-btn {
    background: #172d4d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.download-selected-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.download-selected-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.selection-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #172d4d;
}

.selection-controls button {
    background: #e6e6e6;
    border: 1px solid #dee2e6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.selection-controls button:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.download-btn {
    background: #172d4d;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.download-btn:hover {
    opacity: 0.9;
}

.language-switcher {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-btn {
    background: #e9d6b3;
    color: white;
    border: 3px solid #e9d6b3b3;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #172d4d;
    border-color: #e9d6b3;
}

/* Sticky Download Button */
.sticky-download-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-download-container.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-download-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-selection-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.sticky-selection-count {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.sticky-download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.sticky-download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.sticky-download-btn:active {
    transform: translateY(0);
}

.sticky-download-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Download Icon für den Button */
.sticky-download-btn::before {
    content: "📦";
    font-size: 1em;
}

/* Responsive Design für Sticky Button */
@media (max-width: 768px) {
    .sticky-download-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .sticky-selection-info {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .sticky-download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sticky-download-container {
        padding: 0.5rem;
    }
    
    .sticky-selection-info {
        font-size: 0.75rem;
    }
    
    .sticky-download-btn {
        font-size: 0.85rem;
        padding: 0.65rem;
    }
}

/* Verhindere Layout-Sprünge */
body.sticky-download-active {
    scroll-padding-top: 80px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .icon-name {
        font-size: 1rem;
        height: clamp(2rem, 2rem, 3rem);
    }

    .icon-description {
        font-size: 0.9rem;
        height: clamp(3rem, 3rem, 4rem);
    }
    
    .container {
        padding: 0 1rem;
    }
    .header-text {
        display: none;
    }
    .adlerlogo {
        width: 150px;
    }

@media (max-width: 480px) {
    .icon-grid {
        grid-template-columns: 1fr;
    }
    
    .header-text {
    display: none;
    }
    
    .adlerlogo {
        width: 120px;
    }
}
}