:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --primary: #0f2c59;
    --accent: #00b4d8;
    --text-main: #2b2d42;
    --text-muted: #8d99ae;
    --border-color: #e2e8f0;
    --danger: #e63946;
    --success: #2a9d8f;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent);
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

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

/* 4x6 Grid für die 24 Module */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.module-img-container {
    width: 100%;
    height: 140px;
    background-color: #e9ecef;
    position: relative;
}

.module-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.module-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.module-status-hint {
    font-size: 0.85rem;
    color: var(--danger);
    font-style: italic;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--accent);
}

.btn-disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Profil & Checkbox Layouts */
.profile-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.preference-category {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.preference-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.75rem;
    transform: scale(1.1);
}

.difficulty-badge {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e2e8f0;
    color: var(--text-main);
    font-weight: 600;
}