:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-hetzner: #d50c2d; /* Hetzner Rot */
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
}

body {
    background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 60%);
    background-attachment: fixed; /* Fixiert den Verlauf beim Scrollen */
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-green); }

/* --- Header --- */
header {
    background: rgba(30, 41, 59, 0.8); /* Leicht transparent */
    backdrop-filter: blur(10px); /* Milchglas-Effekt */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
nav a { font-weight: 500; color: var(--text-main); }
nav a:hover { color: var(--accent-blue); }

/* --- Main --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
}

/* Animations */
.fade-in { animation: fadeIn 1s ease-out; }
.fade-in-delay { animation: fadeIn 1s ease-out 0.3s backwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wave { display: inline-block; animation: wave 2.5s infinite; transform-origin: 70% 70%; }
@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

/* Hero Section */
.hero { text-align: center; max-width: 700px; margin-bottom: 4rem; }

h1 { font-size: 3rem; margin-bottom: 0.5rem; font-weight: 800; }
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 2rem; }

.bio-box {
    background: rgba(30, 41, 59, 0.5);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    line-height: 1.7;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.highlight-blue { color: var(--accent-blue); font-weight: bold; }
.highlight-green { color: var(--accent-green); font-weight: bold; }
.highlight-hetzner { color: var(--accent-hetzner); font-weight: bold; }

/* Buttons */
.links { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.btn-primary { background: var(--gradient-main); }
.btn-secondary { background: #334155; }
.btn-secondary:hover { background: #475569; }

/* --- Timeline --- */
.timeline-section { max-width: 800px; width: 100%; position: relative; }
.timeline-section h2 {
    text-align: center; margin-bottom: 3rem; font-size: 2rem;
    border-bottom: 2px solid #334155; padding-bottom: 1rem; display: table; margin-left: auto; margin-right: auto;
}

.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
/* Linie */
.timeline::before {
    content: ''; position: absolute; left: 0; top: 15px; bottom: 0;
    width: 2px; background: #334155;
}

.timeline-item {
    display: flex; flex-direction: column; position: relative;
    padding-left: 2rem; margin-bottom: 2.5rem;
}

/* Punkt */
.timeline-item::before {
    content: ''; position: absolute; left: -6px; top: 6px;
    width: 14px; height: 14px;
    background: var(--bg-dark);
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    z-index: 1;
    transition: background 0.3s;
}
.timeline-item:hover::before { background: var(--accent-green); border-color: var(--accent-green); }

.year { font-weight: bold; font-family: monospace; font-size: 1rem; margin-bottom: 0.5rem; opacity: 0.8; }

/* Timeline Cards */
.card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #334155;
    transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-item:hover .card {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: #475569;
}

.card h3 { margin: 0 0 0.5rem 0; font-size: 1.3rem; color: white; }
.card p { margin: 0.5rem 0; color: var(--text-muted); line-height: 1.5; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.75rem; padding: 3px 10px; border-radius: 20px;
    font-weight: 600;
}
.highlight-text { color: #e2e8f0 !important; font-style: italic; border-left: 3px solid var(--accent-hetzner); padding-left: 10px; }

/* Footer */
footer { text-align: center; padding: 2rem; font-size: 0.9rem; color: #64748b; margin-top: auto; border-top: 1px solid #334155; }

/* Responsive Desktop */
@media (min-width: 768px) {
    .timeline::before { left: 140px; }
    .timeline-item { flex-direction: row; padding-left: 0; align-items: flex-start; }
    .timeline-item::before { left: 134px; top: 25px; } /* Punkt angepasst */

    .year { width: 120px; text-align: right; padding-right: 2.5rem; padding-top: 1.2rem; flex-shrink: 0; }
    .info { flex: 1; position: relative; }

    /* Pfeil an der Karte */
    .info.card::after {
        content: ''; position: absolute; left: -8px; top: 25px;
        width: 15px; height: 15px; background: var(--bg-card);
        transform: rotate(45deg); border-left: 1px solid #334155; border-bottom: 1px solid #334155;
    }
}