/* Einstellungen für den gesamten Lebenslauf */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    background-color: #f4f6f8;
    line-height: 1.5;
    padding: 10px;
}

/* Buttons */
.button-bar {
    max-width: 900px;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
}

.button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background-color: #1a365d;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.button:hover {
    background-color: #2b6cb0;
}

/* Allgemeine Einstellungen */
.main {
    max-width: 900px;
    margin: auto;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Kopfzeile */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.text h1 {
    font-size: 28px;
    color: #1a365d;   
}

.text h2 {
    font-size: 18px;
    color: #4a5568;
    font-weight:bold;
    margin-bottom: 15px;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 14px;
    color: #4a5568;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 14px;
    color: #4a5568;
    margin-top: 15px;
}

.info a, 
.links a {
    color: #4a5568;
    text-decoration: none;
}

.info a:hover, 
.links a:hover {
    text-decoration: underline;
}

.pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a365d;
    flex-shrink: 0;
    transform: scaleX(-1);
}

/* Allgemeine Einstellungen fürs Layout */
.page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Profil */
.profile {
    margin-bottom: 30px;
}

.title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a365d;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.profile-text {
    font-size: 14px;
    color: #4a5568;
}

/* Berufserfahrung / Linke Spalte */
.timeline {
    margin-bottom: 15px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.timeline-header .company::before {
    content: " - ";
}

.job {
    font-size: 15px;
    font-weight: bold;
    color: #2d3748;
}

.company {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.date {
    font-size: 12px;
    color: #718096;
    font-weight: bold;
}

.details {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 14px;
    color: #4a5568;
}

.details li {
    margin-bottom: 5px;
}

.stack {
    font-size: 12px;
    color: #2b6cb0;
    font-weight: bold;
}

/* Kenntnisse / Rechte Spalte */
.skill {
    margin-bottom: 12px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 5px;    
}

.skill-bar-fill {
    height: 100%;
    background-color: #1a365d;
    border-radius: 5px;
}

.list {
    list-style: none;
    font-size: 12px;
    color: #4a5568;
}

.list li {
    margin-bottom: 10px;
}

.list strong {
    color: #2d3748;
}

/* Smartphone Einstellungen */
@media (max-width: 768px){

    .button-bar {
        display: none;
    }

    .page {
        display: grid;
        grid-template-columns: 1fr;
    }

    .timeline-header .company {
        display: block;
    }

    .timeline-header .company::before {
        content: "";
    }

    .timeline-header .date {
        white-space: nowrap;
        flex-shrink: 0;
    }

}

/* PDF und Drucken Einstellungen */
@page {
    size: A4;
    margin: 1cm;
}

@media print {
    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main {
        box-shadow: none;
    }

    .page {
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }

    .skill-bar-bg,
    .skill-bar-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}