:root {
    --siemens-dark: #000028;
    --siemens-tech-bar: #0a0a3d;
    --siemens-petrol: #009999;
    --text-main: #333;
    --text-light: #636e72;
    --bg-body: #f4f7f6;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    padding: 20px 0;
}

.cv-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* --- HEADER SECTION --- */
header {
    background: linear-gradient(180deg, #000028 0%, #05052c 100%);
    color: white;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid var(--siemens-petrol);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
}

.profile-placeholder,
.profile-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border: 2px solid var(--siemens-petrol);
    border-radius: 50%;
    overflow: hidden;
    background: #070b21;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--siemens-petrol);
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-content h1 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
}

.header-content .title {
    font-size: 0.95rem;
    color: var(--siemens-petrol);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.04em;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 8px 20px;
    font-size: 0.85rem;
    color: #c9d8df;
    line-height: 1.4;
    margin-top: 0;
}

.contact-grid span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.contact-grid span svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    fill: var(--siemens-petrol);
    flex-shrink: 0;
}

.contact-grid span.contact-github-item {
    grid-column: 1 / -1;
    margin-top: 4px;
    width: 100%;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 6px 14px;
    background: rgba(0, 153, 153, 0.12);
    border: 1px solid rgba(0, 153, 153, 0.4);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.github-btn:hover {
    background: rgba(0, 153, 153, 0.28);
    border-color: var(--siemens-petrol);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 153, 153, 0.25);
}

.github-btn svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
    fill: var(--siemens-petrol);
    flex-shrink: 0;
    transition: fill 0.2s ease;
}

.github-btn:hover svg {
    fill: #ffffff;
}

.contact-grid a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-grid a:hover {
    color: white;
}

/* --- TECH BAR (Edge to Edge) --- */
.tech-bar {
    background-color: var(--siemens-tech-bar);
    padding: 17px 50px;
}

.tech-tag {
    display: inline-block;
    background: rgba(0, 204, 204, 0.1);
    color: #00cccc;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin: 0 6px 8px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 1px solid rgba(0, 204, 204, 0.3);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(0, 204, 204, 0.2);
    border-color: rgba(0, 204, 204, 0.5);
    transform: translateY(-1px);
}

/* --- CONTENT SECTIONS --- */
.content {
    padding: 45px;
}

section {
    margin-bottom: 36px;
}

h2 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--siemens-dark);
    margin-bottom: 30px;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

h2::before,
h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 153, 153, 0), var(--siemens-petrol));
}

h2::after {
    background: linear-gradient(to left, rgba(0, 153, 153, 0), var(--siemens-petrol));
}
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--siemens-petrol), rgba(0, 153, 153, 0.1));
}

.item {
    margin-bottom: 30px;
    padding-bottom: 18px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 1px;
}

.item-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.item-title::after {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.12);
    margin-left: 16px;
}

.item-meta {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.company {
    color: var(--siemens-petrol);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.desc {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #555;
}

ul { padding-left: 20px; margin-bottom: 15px; }
li { margin-bottom: 5px; font-size: 0.95rem; }

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* --- PRINT --- */
@media print {
    @page { size: A4; margin: 10mm; }
    body { background: white; padding: 0; line-height: 1.45; font-size: 0.9rem; }
    .cv-wrapper { box-shadow: none; width: 100%; max-width: 100%; }
    header, .tech-bar { -webkit-print-color-adjust: exact; }
    header { padding: 14px 24px; gap: 16px; }
    .profile-image, .profile-placeholder { width: 70px; height: 70px; }
    .header-content h1 { font-size: 1.4rem; }
    .contact-grid { font-size: 0.78rem; gap: 4px 14px; }
    .tech-bar { padding: 8px 24px; }
    .tech-tag { font-size: 0.7rem; padding: 3px 8px; margin: 0 4px 5px 0; }
    .content { padding: 20px 24px; }
    section { margin-bottom: 14px; }
    h2 { margin-bottom: 10px; font-size: 0.9rem; }
    .item { margin-bottom: 12px; padding-bottom: 6px; page-break-inside: auto; break-inside: auto; }
    .item-header { page-break-after: avoid; break-after: avoid; }
    .item-title { font-size: 0.98rem; }
    .company { margin-bottom: 5px; }
    ul { padding-left: 18px; margin-bottom: 6px; }
    li { margin-bottom: 2px; font-size: 0.85rem; page-break-inside: avoid; break-inside: avoid; }
    h2 { page-break-after: avoid; break-after: avoid; }
    .no-print { display: none; }
}

@media (max-width: 768px) {
    header { flex-direction: column; align-items: center; text-align: center; padding: 30px; }
    .header-content { flex-direction: column; gap: 15px; }
    .contact-grid { grid-template-columns: 1fr; justify-content: center; }
    .contact-grid span { justify-content: center; }
    .course-grid { grid-template-columns: 1fr; }
    .tech-bar { padding: 20px; }
}

/* --- LETTER SPECIFIC --- */
.letter-content {
    max-width: 750px;
}
.application-meta {
    font-size: 0.95rem;
    margin-bottom: 30px;
    color: var(--text-light);
    font-family: 'Roboto Mono', monospace;
    background: #f8f9fa;
    padding: 15px;
    border-left: 3px solid var(--siemens-petrol);
}
.application-meta strong {
    color: var(--text-main);
}
.letter {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}
.letter p {
    margin-bottom: 20px;
}
.sign-off {
    margin-top: 40px;
}

/* --- LANGUAGES --- */
.language-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.95rem;
}
.language-line .separator {
    color: var(--siemens-petrol);
    font-weight: bold;
}

/* --- PRINT: LETTER (must follow letter screen rules) --- */
@media print {
    .application-meta { margin-bottom: 10px; padding: 6px 12px; font-size: 0.85rem; }
    .letter { font-size: 0.84rem; line-height: 1.4; }
    .letter p { margin-bottom: 8px; }
    .sign-off { margin-top: 10px; }
}
