@import url('farbtafel.css');

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--surface-50);
    margin: 0;
    color: var(--ink-900);
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    background: var(--white);
    box-shadow: 0 4px 24px var(--shadow-navy);
    border-radius: 12px;
    overflow: hidden;
}

.header {
    display: flex;
    align-items: center;
    background: var(--inovell-navy);
    color: var(--white);
    padding: 32px 32px 24px 32px;
    border-bottom: 4px solid var(--blue-700);
}
.header-left {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profilfoto {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 2px 8px var(--shadow-navy-md);
    background: var(--line-200);
}
.header-right {
    margin-left: 32px;
}
.header h1 {
    font-size: 2.6rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: 1px;
}
.beruf {
    background: var(--white);
    color: var(--inovell-blue);
    display: inline-block;
    padding: 6px 28px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 4px;
    box-shadow: 0 2px 8px var(--shadow-blue);
}

.sidebar p {
    color: var(--slate-700);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.main-content a {
    color: var(--inovell-blue);
}

.main-content a:hover {
    color: var(--blue-700);
}

.content {
    display: flex;
    flex-direction: row;
    gap: 0;
}
.sidebar {
    background: var(--inovell-mist);
    padding: 32px 24px 32px 32px;
    width: 340px;
    min-width: 280px;
    border-right: 3px solid var(--inovell-blue);
    font-size: 1rem;
}
.sidebar h3 {
    color: var(--inovell-navy);
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--inovell-blue);
    padding-bottom: 2px;
}
.sidebar section:first-child h3 {
    margin-top: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}
.sidebar li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-700);
}
.sidebar i {
    color: var(--inovell-blue);
    min-width: 18px;
    font-size: 1.1em;
}
.blau {
    color: var(--inovell-blue);
    font-weight: 600;
}
.sidebar a {
    color: var(--inovell-blue);
    text-decoration: underline;
    word-break: break-all;
}

.main-content {
    flex: 1;
    padding: 32px 40px 32px 40px;
}
.main-content h2 {
    color: var(--inovell-navy);
    font-size: 1.3rem;
    border-bottom: 3px solid var(--inovell-blue);
    padding-bottom: 4px;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.job, .bildung-eintrag {
    margin-bottom: 28px;
}
.job-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.01em;
    color: var(--inovell-blue);
    font-weight: 500;
    margin-bottom: 2px;
}
.zeitraum {
    min-width: 140px;
    font-weight: 600;
    color: var(--inovell-navy);
}
.ort {
    text-align: right;
    font-size: 0.98em;
    color: var(--slate-700);
}
.job h4, .bildung-eintrag h4 {
    margin: 2px 0 6px 0;
    font-size: 1.08em;
    color: var(--inovell-navy);
    font-weight: 600;
}
.job ul {
    margin: 0 0 0 18px;
    padding: 0;
    list-style: disc;
}
.job li {
    margin-bottom: 3px;
    font-size: 0.98em;
    color: var(--slate-700);
}
.bildung-eintrag {
    margin-bottom: 0;
}
.bildung .bildung-eintrag,
.engagement .bildung-eintrag {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-200);
}
.bildung .bildung-eintrag:last-child,
.engagement .bildung-eintrag:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.engagement {
    margin-top: 28px;
}
.engagement-list {
    margin: 6px 0 0 18px;
    padding: 0;
    list-style: disc;
}
.engagement-list li {
    font-size: 0.98em;
    margin-bottom: 3px;
    color: var(--slate-700);
}
footer {
    text-align: right;
    color: var(--slate-500);
    font-size: 1em;
    margin-top: 32px;
    border-top: 1px solid var(--line-200);
    padding-top: 12px;
}

/* Timeline Styles */
.timeline {
    padding-left: 18px;
    border-left: 2px solid var(--line-200);
}
.timeline-item {
    position: relative;
    margin-bottom: 36px;
}
.timeline-marker {
    position: absolute;
    left: -12px;
    top: 7px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 3px solid var(--inovell-blue);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 2px 6px var(--shadow-blue);
}
.timeline-item:first-child .timeline-marker {
    border-color: var(--inovell-blue);
}
.timeline-content {
    background: var(--surface-50);
    border-radius: 6px;
    padding: 10px 14px 6px 14px;
    box-shadow: 0 2px 8px var(--shadow-navy);
    margin-left: 10px;
    font-size: 0.97em;
}

.job-title {
    flex: 1 1 100%;
    color: var(--inovell-navy);
    font-weight: 600;
}

.firma {
    flex: 1 1 100%;
    color: var(--slate-500);
    font-size: 0.95em;
    font-weight: 500;
}

.panel ul {
    margin: 6px 0 0 18px;
    padding: 0;
    list-style: disc;
}

.panel li {
    margin-bottom: 3px;
    font-size: 0.98em;
    color: var(--slate-700);
}

/* Accordion Styles */
.accordion {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    font-size: 1em;
    font-weight: 600;
    color: var(--inovell-navy);
    cursor: pointer;
    padding: 0;
    margin-bottom: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    transition: color 0.2s;
}
.accordion:hover {
    color: var(--inovell-blue);
}
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
    margin-bottom: 0;
    padding-bottom: 2px;
}
.panel.active {
    max-height: 900px;
    margin-bottom: 6px;
}

.badges {
    display: flex;
    gap: 4px;
    margin-left: 6px;
}
.badge {
    background: var(--blue-100);
    color: var(--inovell-navy);
    border-radius: 9px;
    padding: 1px 8px;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: none;
    margin-top: 0;
}

/* Responsive Timeline */
@media (max-width: 900px) {
    .container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    .content {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid var(--inovell-blue);
        padding: 24px 18px 18px 18px;
    }
    .main-content {
        padding: 24px 16px 24px 16px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 16px 16px 16px;
    }
    .header-right {
        margin-left: 0;
        margin-top: 16px;
    }
    .profilfoto {
        width: 110px;
        height: 110px;
    }
    .timeline {
        padding-left: 6px;
    }
    .timeline-content {
        padding: 7px 5px 4px 7px;
        font-size: 0.96em;
    }
}

/* Social Media Header */
.social-header {
    margin-top: 10px;
    display: flex;
    gap: 16px;
}
.social-header a {
    color: var(--white);
    font-size: 1.5em;
    transition: color 0.2s;
}
.social-header a:hover {
    color: var(--blue-300);
}
.oneliner {
    font-size: 1.05em;
    color: var(--blue-100);
    margin-top: 6px;
    font-style: italic;
}

/* Footer Social */
.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 0 0;
    flex-wrap: wrap;
}
.footer-social {
    display: flex;
    gap: 18px;
}
.footer-social a {
    color: var(--inovell-blue);
    font-size: 1.4em;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: var(--blue-700);
}
.footer-text {
    color: var(--slate-500);
    font-size: 1em;
    text-align: right;
}
.copyright {
    font-size: 0.95em;
    color: var(--slate-500);
}

/* Floating Action Button (FAB) */
.fab-contact {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    background: var(--inovell-blue);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 16px var(--shadow-blue-md);
    align-items: center;
    justify-content: center;
    font-size: 2em;
    transition: background 0.2s, color 0.2s;
}
.fab-contact:hover {
    background: var(--blue-700);
    color: var(--white);
}

@media (max-width: 900px) {
    .fab-contact {
        display: flex;
    }
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 12px var(--shadow-navy-md);
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .footer-text {
        text-align: left;
    }
}

/* Touch-Flächen für Accordion */
.accordion {
    min-height: 44px;
    padding-left: 4px;
    padding-right: 4px;
}

/* Profil-Sektion */
.profil {
    margin-bottom: 28px;
}
.profil p {
    font-size: 1.02em;
    line-height: 1.6;
    color: var(--slate-700);
    margin: 0;
    background: var(--surface-50);
    border-left: 4px solid var(--inovell-blue);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
}
.profil strong {
    color: var(--inovell-navy);
}

/* Verfügbarkeits-Hinweis */
.verfuegbar {
    background: var(--success-soft);
    color: var(--success);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.verfuegbar i { color: var(--success); }

/* Tag-Listen (Skills, Schwerpunkte) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}
.tag-list li {
    background: var(--surface-50);
    color: var(--slate-700);
    border: 1px solid var(--line-200);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.88em;
    font-weight: 500;
    display: inline-block;
}

/* Print-Button im Header */
.print-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.print-btn:hover { color: var(--blue-300); }

/* Druck- / PDF-Optimierung – gleiches Layout, kompakt auf ~2 Seiten */
@media print {
    @page {
        size: A4;
        margin: 8mm 9mm;
    }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    html, body {
        background: var(--white);
        font-size: 9.3pt;
        line-height: 1.32;
    }
    .container {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }
    .content { flex-direction: row !important; }
    .sidebar {
        width: 33% !important;
        min-width: 0 !important;
        padding: 12px 12px 12px 14px !important;
        border-bottom: none !important;
        font-size: 0.95em;
    }
    .main-content { padding: 12px 14px !important; }

    .social-header, .print-btn, .fab-contact, .footer-social { display: none !important; }

    .panel {
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        display: block !important;
    }
    .accordion { min-height: 0 !important; cursor: default; }

    .header { padding: 14px 16px !important; border-bottom-width: 4px; }
    .header h1 { font-size: 1.7rem; margin-bottom: 4px; }
    .header-left { flex: 0 0 92px; }
    .profilfoto { width: 84px; height: 84px; border-width: 3px; }
    .header-right { margin-left: 18px; }
    .beruf { font-size: 0.95rem; padding: 3px 16px; }
    .oneliner { font-size: 0.92em; margin-top: 4px; }

    .main-content h2 {
        font-size: 1.02rem;
        margin: 0 0 8px 0;
        padding-bottom: 2px;
        border-bottom-width: 2px;
    }
    .sidebar h3 {
        font-size: 0.92rem;
        margin-top: 12px;
        margin-bottom: 5px;
    }
    .profil { margin-bottom: 12px; }
    .profil p { padding: 8px 11px; line-height: 1.4; font-size: 0.97em; }

    .berufserfahrung { margin-bottom: 14px; }
    .timeline-item { margin-bottom: 9px; page-break-inside: avoid; }
    .timeline-content { padding: 6px 10px; box-shadow: none; }
    .accordion { gap: 3px 8px; margin-bottom: 1px; }
    .job ul, .panel ul { margin: 3px 0 0 16px; }
    .panel li { margin-bottom: 1px; line-height: 1.3; }

    .engagement { margin-top: 12px; }
    .bildung .bildung-eintrag,
    .engagement .bildung-eintrag {
        margin-bottom: 8px;
        padding-bottom: 7px;
    }
    .bildung-eintrag, .timeline-item, .profil { page-break-inside: avoid; }
    .berufserfahrung h2, .engagement h2, .bildung h2 { page-break-after: avoid; }

    .tag-list { gap: 4px; margin-bottom: 6px; }
    .tag-list li { padding: 2px 7px; font-size: 0.85em; }
    .verfuegbar { padding: 5px 9px; margin: 7px 0; }

    footer { margin-top: 12px; padding-top: 8px; }
    a { text-decoration: none; color: inherit; }
}
