:root {
    --bg: #f7fcf5;
    --bg-2: #e9f4e4;
    --surface: #ffffff;
    --surface-2: #f0f9ed;
    --surface-3: #e0f0da;
    --text: #012101;
    --text-2: #044a02;
    --muted: #3d6b35;
    --muted-2: #6c9e5f;
    --border: rgba(96, 160, 32, 0.16);
    --border-hover: rgba(96, 160, 32, 0.32);
    --accent: #60a020;
    --accent-2: #066704;
    --accent-3: #8dc88c;
    --accent-4: #a9cd85;
    --success: #066704;
    --warn: #a67c00;
    --danger: #c9372d;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 3px rgba(6, 103, 4, 0.06), 0 8px 24px rgba(6, 103, 4, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(180deg, #f7fcf5 0%, #e9f4e4 40%);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1020px; margin: 0 auto; padding: 36px 22px 60px; }

.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 22px;
    transition: color 0.15s ease;
}
.back:hover { color: var(--accent-2); }

.hero {
    position: relative;
    background: linear-gradient(135deg, #60a020 0%, #066704 100%);
    border-radius: var(--radius);
    padding: 36px 30px 30px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(96, 160, 32, 0.25);
}
.hero::before { display: none; }

.hero-top {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}
.hero .logo {
    height: 64px;
    width: auto;
    margin-right: auto;
    filter: brightness(0) invert(1);
}
.pill, .year-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.pill {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}
.year-pill {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.22);
}
.hero h1 {
    position: relative;
    font-size: clamp(2.1rem, 6.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #ffffff;
}
.hero h1 .accent {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}
.hero p {
    position: relative;
    color: rgba(255,255,255,0.85);
    margin-top: 12px;
    max-width: 580px;
    font-size: 1.05rem;
}

.stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}
.stat {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    text-align: center;
    backdrop-filter: blur(2px);
}
.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    justify-content: center;
}
.tab {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}
.tab:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-hover); }
.tab.active {
    background: linear-gradient(135deg, #60a020, #066704);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(96, 160, 32, 0.25);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}
.search {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
}
.search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--muted-2);
    fill: none;
    stroke-width: 2;
}
.search input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 16px 12px 42px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(96, 160, 32, 0.12);
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.filter:hover { border-color: var(--border-hover); color: var(--text-2); }
.filter.active {
    background: rgba(96, 160, 32, 0.10);
    color: var(--accent);
    border-color: rgba(96, 160, 32, 0.35);
}
.filter svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 5px;
    fill: currentColor;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 36px 0 18px;
    letter-spacing: -0.01em;
}
.section-title .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}
.section-title .count {
    background: var(--surface-2);
    color: var(--accent-2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 14px;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 1px 3px rgba(96, 160, 32, 0.04);
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(96, 160, 32, 0.10);
}
.card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.card-title {
    font-size: 1.12rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-title .icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.card-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card p {
    color: var(--text-2);
    margin-top: 8px;
    font-size: 0.96rem;
}
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
    background: rgba(96, 160, 32, 0.08);
    color: var(--accent);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.tag.result {
    background: rgba(6, 103, 4, 0.10);
    color: var(--accent-2);
}
.tag.achievement {
    background: rgba(96, 160, 32, 0.12);
    color: #5e861b;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge.sport {
    background: rgba(96, 160, 32, 0.08);
    color: var(--accent);
}

.timeline {
    position: relative;
    padding-left: 28px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, #60a020, #066704 60%, transparent);
    border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border: 2px solid var(--accent-2);
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.highlight::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(96, 160, 32, 0.12);
}
.timeline-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.timeline-content:hover { transform: translateX(4px); border-color: var(--border-hover); }

.empty {
    text-align: center;
    color: var(--muted);
    padding: 50px 20px;
    background: var(--surface-2);
    border: 1px dashed var(--accent-3);
    border-radius: var(--radius-sm);
}
.empty svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    margin-bottom: 12px;
    fill: none;
    stroke-width: 1.8;
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
}

footer {
    text-align: center;
    color: var(--muted);
    margin-top: 60px;
    font-size: 0.88rem;
}
footer a { color: var(--accent-2); }
.sources {
    display: none;
    margin-top: 14px;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.85rem;
}
.sources a { display: block; margin: 4px 0; }
.sources.open { display: block; }

@media (max-width: 640px) {
    .container { padding: 24px 16px 50px; }
    .hero { padding: 28px 20px 24px; border-radius: 14px; }
    .hero .logo { height: 48px; }
    .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat { padding: 14px 8px; }
    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }
    .tabs { gap: 8px; }
    .tab { padding: 9px 16px; font-size: 0.85rem; }
    .toolbar { gap: 12px; }
    .search { flex: 1 1 100%; }
    .filters { width: 100%; }
    .section-title { font-size: 1.1rem; margin: 28px 0 14px; }
    .card { padding: 16px; }
    .timeline { padding-left: 22px; }
    .timeline::before { left: 5px; }
    .timeline-item::before { left: -22px; width: 10px; height: 10px; }
}

/* Schullogo im Header */
.hero .logo {
    height: 64px;
    width: auto;
    margin-right: auto;
    filter: brightness(0) invert(1);
}
