:root {
    --primary: #003b73;
    --primary-light: #e8f1f8;
    --accent: #0074c8;
    --text: #24303d;
    --muted: #637083;
    --white: #ffffff;
    --border: #d9e1e8;
}

/* Grundeinstellungen */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient( 135deg, #e6eef5 0%, #f7f9fb 100% );
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-image: linear-gradient( rgba(234, 242, 255, 0.12), rgba(234, 242, 255, 0.12) ), url("bilder/hintergrund.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

a {
    color: inherit;
}

/* Hauptnavigation */

.navbar {
    display: flex;
    position: sticky;
    z-index: 1000;
    top: 0;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px max(5%, 20px);
    color: var(--white);
    background-color: rgba(0, 47, 115, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 5px 20px rgba(0, 25, 48, 0.2);
    backdrop-filter: blur(12px);
}

.navbar-logo {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .navbar-links a {
        padding: 9px 14px;
        color: rgba(255, 255, 255, 0.88);
        border-radius: 7px;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

        .navbar-links a:hover,
        .navbar-links a[aria-current="page"] {
            color: var(--white);
            background: rgba(255, 255, 255, 0.15);
        }

.navbar-schalter {
    display: none;
    padding: 6px 10px;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Lebenslaufseite */

.page {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto;
    overflow: hidden;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(29, 55, 80, 0.16);
}

/* Linke Seitenleiste */

.sidebar {
    padding: 42px 30px;
    color: var(--white);
    background: linear-gradient( 180deg, var(--primary), #00284d );
}

.profile-image {
    display: block;
    width: 170px;
    height: 170px;
    margin: 0 auto 28px;
    object-fit: cover;
    background: var(--primary-light);
    border: 5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

.sidebar h2 {
    margin: 30px 0 12px;
    padding-bottom: 8px;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.sidebar p {
    margin: 7px 0;
    font-size: 0.94rem;
}

.contact-list,
.skill-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .contact-list li,
    .skill-list li {
        margin-bottom: 10px;
    }

    .contact-list a {
        overflow-wrap: anywhere;
        text-decoration: none;
    }

        .contact-list a:hover {
            text-decoration: underline;
        }

/* Hauptinhalt */

.content {
    padding: 50px 56px;
}

/* Kopfbereich */

.intro {
    margin-bottom: 42px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--primary-light);
}

    .intro h1 {
        margin: 0;
        color: var(--primary);
        font-size: clamp(2.1rem, 5vw, 3.2rem);
        line-height: 1.08;
    }

    .intro p {
        margin: 12px 0 0;
        color: var(--accent);
        font-size: 1.25rem;
        font-weight: 700;
    }

/* Abschnitte */

section {
    margin-bottom: 38px;
}

    section:last-child {
        margin-bottom: 0;
    }

    section > h2 {
        display: flex;
        gap: 12px;
        align-items: center;
        margin: 0 0 22px;
        color: var(--primary);
        font-size: 1.45rem;
    }

        section > h2::before {
            width: 7px;
            height: 28px;
            content: "";
            background: var(--accent);
            border-radius: 4px;
        }

/* Einzelne Einträge */

.entry {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

    .entry:last-child {
        margin-bottom: 0;
    }

.date {
    color: var(--accent);
    font-weight: 700;
}

.entry h3 {
    margin: 0 0 3px;
    font-size: 1.05rem;
}

.entry p {
    margin: 0;
    color: var(--muted);
}

.secondary {
    opacity: 0.82;
}

/* Druckschaltfläche */

.print-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    padding: 12px 18px;
    color: var(--white);
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 59, 115, 0.28);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .print-button:hover {
        background: var(--accent);
    }

/* Smartphones und Tablets */

@media screen and (max-width: 800px) {
    .navbar {
        flex-wrap: wrap;
    }

    .navbar-schalter {
        display: block;
    }

    .navbar-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 10px;
    }

        .navbar-links.geoeffnet {
            display: flex;
        }

        .navbar-links a {
            text-align: center;
        }

    .page {
        grid-template-columns: 1fr;
        width: min(100% - 20px, 680px);
        margin: 10px auto;
        border-radius: 10px;
    }

    .sidebar,
    .content {
        padding: 34px 26px;
    }

    .entry {
        grid-template-columns: 1fr;
        gap: 2px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--border);
    }
}

/* Download-Button für den Lebenslauf */
.print-button {
    display: inline-block;
    padding: 12px 20px;
    color: white;
    background-color: #0057a8;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .print-button:hover {
        color: white;
        background-color: #003f7d;
        text-decoration: none;
    }

/* Button beim Drucken ausblenden */
@media print {
    .print-button {
        display: none;
    }
}
/* ========================================
   Footer
======================================== */

footer {
    width: 100%;
    padding: 25px 20px;
    text-align: center;
    color: white;
    background: linear-gradient( 135deg, rgba(0, 47, 115, 0.98), rgba(0, 71, 171, 0.96) );
    border-top: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 -4px 18px rgba(0, 47, 115, 0.18);
}

    footer nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 25px;
    }

    footer a {
        padding-bottom: 4px;
        color: white;
        font-weight: bold;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

        footer a:hover,
        footer a:focus {
            color: #dbeafe;
            border-bottom-color: #dbeafe;
        }

        footer a[aria-current="page"] {
            border-bottom-color: white;
        }

.copyright {
    margin-top: 20px;
    margin-bottom: 0;
    color: #dbeafe;
    font-size: 0.9rem;
}