/* Grundlayout */
html {
    scroll-behavior: smooth;
  }
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
    /* font-family: Arial, Helvetica, sans-serif; */
}

body {
    background-color: #f7f9fb;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #d9e1e6;
    display: flex;
    align-items: center;
    padding: 2rem;
    flex-wrap: wrap;
}

.profile-photo {
    width: 110px;
    height: 110px;
    background-color: #fff;
    border-radius: 50%;
    border: 3px solid #ccc;
    margin-right: 1.5rem;
    background-image: url("Lebenslauf_Foto.jpg"); /* optionales Profilbild */
    background-size: cover;
    background-position: center -9px;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: bold;
}

.header-text h2 {
    color: #333;
    font-size: 1.2rem;
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
}

.sidebar section,
.content section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    
}

.sidebar h3 {
    background-color: #d9e1e6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.sidebar p,
.sidebar li {
    margin-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content ul {
    list-style: none;

}

.content li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid #d9e1e6;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #d9e1e6;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header {
        text-align: center;
    }

    .profile-photo {
        background-position: center -9px;
    }
}

/* ---------- Druckoptimierung ---------- */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    header {
        background-color: #eee;
        padding: 1rem;
        border-bottom: 2px solid #000;
    }

    .profile-photo {
        border: 2px solid #000;
    }

    .container {
        display: block;
        padding: 0;
    }

    .sidebar,
    .content section {
        box-shadow: none;
        background: #fff;
        padding: 0;
        border: none;
    }

    .sidebar h3,
    .content h3 {
        background: none;
        color: #000;
        border-bottom: 1px solid #000;
        margin-top: 1rem;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    footer {
        display: none;
    }

    @page {
        size: A4;
        margin: 1.5cm;
    }
}
