* {
    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;
    background-color: white;
}

.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;
}

.category-header {
    grid-column: 1 / -1;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.category-header h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #172d4d;
    margin: 0;
}

.category-header:first-child {
    margin-top: 0;
}

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

.model-preview {
    width: 100%;
    height: 180px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f1f3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.model-preview canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.model-placeholder,
.model-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 2rem;
    text-align: center;
}

.model-placeholder small,
.model-error small {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: #aaa;
}

.model-error {
    color: #dc3545;
}

.model-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

.model-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 10;
}

.model-checkbox input[type="checkbox"] {
    width: 100%;
    height: 100%;
    cursor: pointer;
    accent-color: #667eea;
}

.model-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    line-height: 1.3;
    min-height: 2.5rem;
}

.model-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 3rem;
    flex-grow: 1;
}

.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: #1a3a5c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    width: 100%;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(26, 58, 92, 0.2);
}

.download-btn:hover {
    background: #2a4a6c;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(26, 58, 92, 0.25);
}

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

.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;
    }
}
}

/* Scroll Notification Card */
.scroll-notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #fff;
    color: #172d4d;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 4px solid #667eea;
}

.scroll-notification.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-notification p {
    margin: 0;
}

@media (max-width: 768px) {
    .scroll-notification {
        max-width: calc(100vw - 2rem);
        font-size: 0.85rem;
    }
}