html {
    color-scheme: light;
}

/* ==== Globale Styles & Font-Definitionen ==== */

/* Inter Font - Modern und sauber */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==== Header - Schmal und sauber ==== */
.page-header {
    background: #fff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    box-shadow: none;
    backdrop-filter: none;
}

.page-header .container {
    background: none;
    box-shadow: none;
}

.logo img {
    max-height: 40px;
    width: auto;
    vertical-align: middle;
    box-shadow: none;
    filter: none;
    background: none;
}

/* ==== Main Content Area ==== */
.main-content {
    flex-grow: 1;
    padding: 40px 0;
    background: transparent;
}

/* ==== Step System ==== */
.step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== Typography ==== */
h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1f2937;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
}

/* ==== Grid Layout ==== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Custom Scrollbar - Blau */
.grid::-webkit-scrollbar {
    width: 8px;
}

.grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #14284c 0%, #1a365d 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0f1e38 0%, #14284c 100%);
}

/* ==== Card Styles ==== */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 40, 76, 0.05) 0%, rgba(242, 182, 53, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(20, 40, 76, 0.2);
}

.card:focus {
    outline: none;
    ring: 2px;
    ring-color: #14284c;
    ring-offset: 2px;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    font-weight: 400;
}

/* ==== Back Button ==== */
.back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.back:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #14284c 0%, #1a365d 100%);
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(20, 40, 76, 0.2);
}

/* ==== Footer ==== */
.page-footer {
    background: linear-gradient(135deg, #14284c 0%, #1a365d 100%);
    color: #f4f5fa;
    padding: 40px 0 20px 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.9em;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline-block;
    margin: 0 15px;
}

.footer-links a {
    color: #f4f5fa;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #f2b635;
    background: rgba(242, 182, 53, 0.1);
    transform: translateY(-2px);
}

.footer-copyright {
    margin-top: 18px;
    color: #f4f5fa;
    font-size: 0.95em;
    opacity: 0.85;
    letter-spacing: 0.01em;
}

/* ==== Responsive Design ==== */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    h1 {
        font-size: 2.25rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-links li {
        display: block;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .card {
        padding: 1.25rem;
        min-height: 100px;
    }
    
    .card-icon {
        font-size: 1.75rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
    }
}

/* ==== Accessibility ==== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==== Print Styles ==== */
@media print {
    .page-header,
    .page-footer,
    .back {
        display: none;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .grid {
        display: block;
    }
    
    .card {
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

/* ==== High Contrast Mode - Accessibility ==== */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
        background: #fff;
        box-shadow: none; 
    }
    
    .card:hover,
    .card:focus {
        border-color: #14284c;
        border-width: 3px; 
    }
    
    .card-title {
        color: #000; 
        font-weight: 700;
    }
    
    .card-subtitle {
        color: #333;
    }
    
    .letter-icon {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .back:hover {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
}