:root {
    --schramberg-black: #1a1a1a;
    --schramberg-gold: #ffcc00;
    --schramberg-gold-dark: #e6b800;
    --schramberg-gold-light: #fff3b3;
    --text-dark: #2c2c2c;
    --text-medium: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-section: #f8f6f2;
    --border-light: #e6e6e6;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --red-bg: #fef2f2;
    --red-border: #dc2626;
    --red-text: #991b1b;
    --orange-bg: #fffbeb;
    --orange-border: #f59e0b;
    --orange-text: #92400e;
    --green-bg: #f0fdf4;
    --green-border: #16a34a;
    --green-text: #166534;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}
.header {
    background: var(--schramberg-black);
    color: var(--schramberg-gold);
    text-align: center;
    padding: 2.5rem 1rem;
    box-shadow: var(--shadow-light);
}
.header h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.header .version { font-size: 0.9rem; color: var(--schramberg-gold-light); opacity: 0.8; font-weight: 500; }
.header .subtitle { font-size: 1.1rem; margin-top: 1rem; font-weight: 300; color: #ccc; }
nav {
    background: var(--bg-white);
    border-bottom: 3px solid var(--schramberg-gold);
    padding: 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav .nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
nav a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
nav a:hover, nav a.active {
    color: var(--schramberg-black);
    border-bottom-color: var(--schramberg-gold);
    background: var(--schramberg-gold-light);
}
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
section {
    margin: 2.5rem 0;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
}
section.hero {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-white) 100%);
    border-left: 6px solid var(--schramberg-gold);
}
section.alert-section {
    border-left: 6px solid var(--red-border);
    background: linear-gradient(135deg, var(--red-bg) 0%, var(--bg-white) 100%);
}
h2 {
    font-size: 1.8rem;
    color: var(--schramberg-black);
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}
h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--schramberg-gold);
}
h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.8rem;
    font-weight: 500;
}
h4 { margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-dark); font-size: 1rem; }
ul { padding-left: 2rem; margin: 1rem 0; }
li { margin-bottom: 0.5rem; color: var(--text-dark); }
a { color: var(--schramberg-gold-dark); }

/* Fact cards */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.fact-card {
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid;
    text-align: center;
}
.fact-card.fact-red { background: var(--red-bg); border-color: var(--red-border); }
.fact-card.fact-orange { background: var(--orange-bg); border-color: var(--orange-border); }
.fact-card.fact-green { background: var(--green-bg); border-color: var(--green-border); }
.fact-number { font-size: 1.8rem; font-weight: 700; color: var(--schramberg-black); }
.fact-label { font-size: 0.95rem; font-weight: 600; margin: 0.3rem 0; }
.fact-context { font-size: 0.8rem; color: var(--text-medium); }

/* Problem list */
.problem-list { margin: 1rem 0; }
.problem-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: var(--bg-section);
    border-radius: 6px;
}
.problem-rank {
    background: var(--schramberg-black);
    color: var(--schramberg-gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.problem-item p { font-size: 0.9rem; margin: 0.3rem 0 0; color: var(--text-medium); }

/* Projekt grid */
.projekt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.projekt-card {
    background: var(--bg-section);
    border-radius: 6px;
    padding: 1.5rem;
    border-left: 4px solid var(--schramberg-gold);
    transition: transform 0.2s ease;
}
.projekt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-light); }
.projekt-card h4 { font-size: 1.1rem; color: var(--schramberg-black); font-weight: 600; }
.projekt-card p { font-size: 0.9rem; color: var(--text-medium); margin: 0.5rem 0; }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}
.status-ok { background: var(--green-bg); color: var(--green-text); border: 1px solid var(--green-border); }
.status-planung { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.status-warnung { background: var(--orange-bg); color: var(--orange-text); border: 1px solid var(--orange-border); }
.status-kritisch { background: var(--red-bg); color: var(--red-text); border: 1px solid var(--red-border); }
.status-aktiv { background: var(--schramberg-gold-light); color: var(--schramberg-black); }
.status-beschlossen { background: #e8f5e8; color: #2e7d2e; }

/* Projekt detail sections */
.projekt-detail {
    margin: 2rem 0;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border-left: 6px solid var(--schramberg-gold);
}
.projekt-detail.status-border-red { border-left-color: var(--red-border); }
.projekt-detail.status-border-orange { border-left-color: var(--orange-border); }
.projekt-detail.status-border-green { border-left-color: var(--green-border); }

.projekt-detail h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.projekt-detail h2 .status-badge { margin-left: auto; }

.source-list {
    background: var(--bg-section);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.source-list h4 { margin-bottom: 0.5rem; color: var(--text-dark); }
.source-list a { display: block; margin-bottom: 0.3rem; word-break: break-all; }

.bewertung-box {
    background: var(--schramberg-gold-light);
    border: 1px solid var(--schramberg-gold-dark);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.bewertung-box.bewertung-warnung {
    background: var(--orange-bg);
    border-color: var(--orange-border);
}
.bewertung-box.bewertung-kritisch {
    background: var(--red-bg);
    border-color: var(--red-border);
}
.bewertung-box.bewertung-positiv {
    background: var(--green-bg);
    border-color: var(--green-border);
}

.timeline {
    background: var(--bg-section);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.timeline h4 { color: var(--schramberg-black); margin-bottom: 0.5rem; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.data-table th {
    background: var(--schramberg-black);
    color: var(--schramberg-gold);
    font-weight: 500;
}
.data-table tr:hover { background: var(--bg-section); }
.data-table .trend-down { color: var(--red-text); font-weight: 600; }
.data-table .trend-up { color: var(--green-text); font-weight: 600; }

.hinweis {
    background: var(--schramberg-gold-light);
    border: 1px solid var(--schramberg-gold-dark);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 0.95rem;
}
.hinweis strong { color: var(--schramberg-black); }

.tag {
    display: inline-block;
    background: var(--schramberg-black);
    color: var(--schramberg-gold);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer {
    background: var(--schramberg-black);
    color: var(--schramberg-gold-light);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}
.footer a { color: var(--schramberg-gold); text-decoration: none; }
.footer p { margin-bottom: 0.3rem; }

/* Empfehlungen */
.empfehlung-card {
    background: var(--bg-section);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--schramberg-gold);
}
.empfehlung-card h4 { color: var(--schramberg-black); margin-bottom: 0.5rem; }
.empfehlung-card p { font-size: 0.9rem; margin-bottom: 0; }

/* Version blocks */
.version-block {
    background: var(--bg-white);
    border-left: 6px solid var(--schramberg-gold);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}
.version-block .date { font-size: 0.9rem; color: var(--text-medium); font-weight: 500; }

@media (max-width: 768px) {
    .header h1 { font-size: 2.2rem; }
    section { margin: 1.5rem 0; padding: 1.5rem; }
    .projekt-grid { grid-template-columns: 1fr; gap: 1rem; }
    .fact-grid { grid-template-columns: 1fr 1fr; }
    nav a { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .projekt-detail { padding: 1.5rem; }
    .projekt-detail h2 { flex-direction: column; align-items: flex-start; }
    .projekt-detail h2 .status-badge { margin-left: 0; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 0.4rem 0.5rem; }
}
