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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f6fa;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #1a1a2e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: #e94560;
    border-bottom-color: #e94560;
}

.user-email {
    color: #aaa;
    font-size: 0.9rem;
}

/* Dashboard Layout */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-hero {
    margin-bottom: 2rem;
}

.dashboard-hero h1 {
    font-size: 2.25rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.dashboard-hero p {
    color: #666;
    font-size: 1.1rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #e94560;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a2e;
    line-height: 1;
}

.stat-label {
    color: #666;
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2,
.notizen h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
}

.btn-primary {
    padding: 0.6rem 1.2rem;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #c73650;
}

/* Projekt-Kacheln */
.projekte {
    margin-bottom: 3rem;
}

.projekt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.projekt-kachel {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.projekt-kachel:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #e94560;
}

.projekt-icon {
    font-size: 2rem;
}

.projekt-kachel h3 {
    color: #1a1a2e;
    font-size: 1.15rem;
}

.projekt-kachel p {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1;
}

.projekt-status {
    align-self: flex-start;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.status-aktiv {
    background: #d4edda;
    color: #155724;
}

.status-geplant {
    background: #fff3cd;
    color: #856404;
}

.projekt-kachel-neu {
    background: transparent;
    border: 2px dashed #ccc;
    box-shadow: none;
    color: #888;
}

.projekt-kachel-neu:hover {
    border-color: #e94560;
    color: #e94560;
    transform: none;
    box-shadow: none;
}

/* Notizen */
.notizen {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

#notiz-feld {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-top: 1rem;
}

#notiz-feld:focus {
    outline: none;
    border-color: #e94560;
}

.notiz-hinweis {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Projekt-Unterseite */
.projekt-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.zurueck {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #e94560;
    text-decoration: none;
    font-size: 0.95rem;
}

.zurueck:hover {
    text-decoration: underline;
}

.projekt-page h1 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.projekt-page .card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #1a1a2e;
    color: #fff;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dashboard-main {
        padding: 1rem;
    }

    .dashboard-hero h1 {
        font-size: 1.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
