:root {
    --primary-bg: #111111;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --border-color: #333333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

/* --- Hero Section (Positionierung unten & bildschirmfüllend) --- */
.hero {
    position: relative;
    /* 100dvh unterstützt mobile Browserleisten dynamisch ohne Ruckeln */
    height: 100vh; 
    height: 100dvh; 
    width: 100%;
    background-image: url('bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax-Effekt */
    display: flex;
    align-items: flex-end; /* Text ganz unten platzieren */
    justify-content: flex-start;
}

/* Abdunklung für Lesbarkeit über dem Bild */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding: 0 2rem 4rem 2rem; /* Abstand zum untersten Rand */
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.hero .tagline {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
}

/* --- Inhalt, der über das Bild schiebt --- */
.content-wrapper {
    position: relative;
    z-index: 2;
    background-color: var(--primary-bg);
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.9);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.card h2 {
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.card p {
    margin-bottom: 1.25rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.skill-group {
    margin-bottom: 1.75rem;
}

.skill-group:last-child {
    margin-bottom: 0;
}

.skill-group h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

ul {
    list-style-type: square;
    padding-left: 1.25rem;
}

ul li {
    margin-bottom: 0.45rem;
}

.contact-links {
    list-style: none;
    padding: 0;
}

.contact-links li {
    margin-bottom: 0.75rem;
}

a {
    color: #4da6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    font-size: 0.85rem;
    color: #888888;
    margin-top: 2rem;
}

footer a {
    color: #888888;
}

/* --- Mobile Optimierung (Smartphones & Tablets) --- */
@media (max-width: 768px) {
    .hero {
        /* Parallax-Attachment auf Smartphones auf scroll setzen (verhindert Zoom-/Ruckel-Bugs unter iOS/Android) */
        background-attachment: scroll; 
    }

    .hero-content {
        padding: 0 1.25rem 2.5rem 1.25rem; /* Etwas weniger Padding auf kleinen Bildschirmen */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .tagline {
        font-size: 1.05rem;
    }

    .container {
        padding: 0 1rem;
    }

    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
/* --- Sprachwähler (oben rechts, als Text-Links) --- */
.lang-switch {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem 0.6rem 1.1rem;
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 1px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-bottom-left-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.5);
}

.lang-switch .sep {
    opacity: 0.5;
}

.lang-switch button {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0.25rem 0.1rem;
    cursor: pointer;
    opacity: 0.7;
}

.lang-switch button:hover {
    opacity: 1;
    text-decoration: underline;
}

.lang-switch button[aria-pressed="true"] {
    opacity: 1;
    font-weight: 700;
}

.lang-switch button:focus-visible {
    outline: 2px solid #4da6ff;
    outline-offset: 2px;
}

/* Mobil identisch zum Desktop */
@media (max-width: 768px) {
    .lang-switch {
        top: 0;
        right: 0;
        padding: 0.6rem 1.25rem 0.6rem 1.1rem;
        font-size: 0.95rem;
    }
}
