/* --- CSS Variablen & Reset --- */
:root {
    --primary-color: #E20074; /* DT Magenta Anlehnung */
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --card-bg: #f3f4f6;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-color: #111827;
    --text-color: #f3f4f6;
    --card-bg: #1f2937;
    --nav-bg: rgba(17, 24, 39, 0.95);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--primary-color); }

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}
#theme-toggle:hover { background-color: var(--card-bg); }

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    min-height: 90vh;
    flex-wrap: wrap;
}

.hero-content { flex: 1; min-width: 300px; }
.greeting { color: var(--primary-color); font-weight: 600; margin-bottom: 0.5rem; }
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; opacity: 0.8; margin-bottom: 1.5rem; }
.bio-short { margin-bottom: 2rem; max-width: 500px; }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.hero-visual { flex: 1; display: flex; justify-content: center; min-width: 300px; }

.code-block {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #5af;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transform: rotate(3deg);
}

/* --- Sections General --- */
.container { padding: 4rem 5%; }
.section-title { font-size: 2rem; margin-bottom: 2rem; border-left: 5px solid var(--primary-color); padding-left: 1rem; }

/* --- About Card --- */
.about-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.details ul li { margin-bottom: 0.5rem; }

/* --- Timeline (Career) --- */
.timeline { border-left: 2px solid var(--primary-color); margin-left: 1rem; padding-left: 2rem; }
.timeline-item { margin-bottom: 2rem; position: relative; }
.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    position: absolute;
    left: -2.4rem;
    top: 5px;
    border-radius: 50%;
}
.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.date { font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.company { color: var(--primary-color); font-weight: 600; display: block; margin: 0.5rem 0; }

/* --- Kontaktformular --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border 0.3s;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary-color); }

.form-status { margin-top: 1rem; font-weight: 600; text-align: center; }
.success { color: #10b981; }
.error { color: #ef4444; }

/* --- Honeypot (Spamschutz) --- */
.h-pot {
    opacity: 0;
    position: absolute;
    top: 0; left: 0;
    height: 0; width: 0;
    z-index: -1;
    overflow: hidden;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 4rem 5%;
    background-color: var(--card-bg);
    margin-top: 2rem;
}
.copyright { margin-top: 2rem; font-size: 0.9rem; opacity: 0.6; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 2.5rem; }
    .hero { flex-direction: column-reverse; text-align: center; gap: 2rem; }
    .hero-visual { display: none; }
    .section-title { text-align: center; border-left: none; border-bottom: 3px solid var(--primary-color); padding-bottom: 0.5rem; display: inline-block;}
}

