@media print {
    /* 1. SEITENRÄNDER */
    @page { margin: 1.5cm; }

    /* 2. AUSBLENDEN */
    #header, #contact, .loader, .fullWidth_header_img {
        display: none !important;
    }

    /* 3. NAME ALS BRIEFKOPF (Ganz oben auf Seite 1) */
	body::before {
	    content: "Moritz Maleck";
	    display: block;
	    font-size: 28pt !important;
	    font-weight: 600 !important;
	    color: #344154 !important; /* Dunkelblauer Ton aus deinem Logo */
		font-family: 'PT Sans', sans-serif;
	    line-height: 1 !important;
	    margin-bottom: 1.1em !important;
	    letter-spacing: -1px !important;
	}

    /* 4. LAYOUT-FIX */
    body {
        font-size: 10pt !important;
        line-height: 1.4 !important;
        background: #fff !important;
        padding-top: 0 !important;
    }

    .fullWidth, .mainDiv, .newsCenterDiv, .home_paragraph {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }
	
	#header, .fullWidth_header_img {
	    display: none !important;
	    height: 0 !important;
	    margin: 0 !important;
	    padding: 0 !important;
	}

    /* Abstand unter dem Namen/Header-Bereich erzwingen */
    .fullWidth.white:first-of-type {
        margin-top: 1.5em !important;
    }

    /* 5. PROFIL-LINKS (De-Webbify: Keine Buttons, nur Text) */
    .profile_links_div {
        display: block !important;
        margin: 1.5em 0 !important;
    }
    
    .profile_link {
        display: inline !important;
        border: none !important; /* Pillen-Rahmen weg */
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 10pt !important;
        color: #000 !important;
        text-decoration: underline !important; /* Klassischer Text-Link */
    }
    
    /* Etwaige Pfeil-Icons (SVG, IMG oder Pseudoelemente) gnadenlos ausblenden */
    .profile_link img, .profile_link svg, .profile_link::before, .profile_link span {
        display: none !important; 
        content: none !important;
    }
	
	.profile_link::after, 
    .profile_link::before, 
    .profile_link span,
    .profile_link img {
        display: none !important;
        content: "" !important;
    }
    
    /* Füllt die Lücken zwischen den Links mit einem klassischen " • " auf */
    .profile_link:not(:last-child)::after {
        content: " • " !important;
        color: #666 !important;
        text-decoration: none !important;
        display: inline-block !important;
        margin: 0 10px !important;
    }

    /* 6. INHALTSVERZEICHNIS (De-Webbify: Keine graue Box, keine dicken Ränder) */
    .toc_wrapper {
        display: block !important;
        background: transparent !important;
        border: none !important;
        border-top: 1px solid #000 !important;    /* Zwei edle, feine Linien */
        border-bottom: 1px solid #000 !important; /* wie in wissenschaftlichen Papers */
        padding: 0.5em 0 !important;
        margin: 1.5em 0 2em 0 !important;
        page-break-inside: avoid !important;
    }
    
    /* Alle Pfeile aus dem Inhaltsverzeichnis werfen */
    .toc_wrapper::before, .toc_list li::before, .toc_link::before, .toc_link::after {
        display: none !important;
        content: none !important;
    }
    
    .toc_wrapper h2 {
        display: inline !important; 
        font-size: 10pt !important;
        margin-right: 12px !important;
        font-weight: bold !important;
        border: none !important;
    }
    
    .toc_list {
        display: inline !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .toc_list li {
        display: inline !important;
        border: none !important; /* Entfernt den dicken linken Rahmen aus dem Screenshot */
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }
	
	.toc_secondary_header, .toc_secondary {
		display: none;
	}
    
    .toc_link {
		font-size: 10pt !important;
        display: inline !important;
        color: #000 !important;
        text-decoration: none !important;
        font-weight: normal !important;
    }
    
    /* Trennstrich " | " zwischen den Einträgen statt Zeilenumbrüchen */
    .toc_list li:not(:last-child)::after {
        content: " | " !important;
        color: #999 !important;
        margin: 0 8px !important;
    }

    /* 7. ÜBERSCHRIFTEN KOMPAKT HALTEN */
    h1, h2, h3, h4 {
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #000 !important;
    }
    
    .mainHeader { display: inline !important; font-size: 18pt !important; font-weight: bold !important; }
    
    h1 { font-size: 14pt !important; margin-top: 1.2em !important; margin-bottom: 0.3em !important; border-bottom: 1px solid #ddd !important; padding-bottom: 2px !important; }
    h1:first-of-type { border-bottom: none !important; margin-top: 0 !important; }
    
    h2 { font-size: 11pt !important; margin-top: 1em !important; margin-bottom: 0.2em !important; }
    h3 { font-size: 10pt !important; margin-top: 0.8em !important; }
    h4 { font-size: 10pt !important; margin-top: 0.4em !important; }

    /* 8. TEXTE & LISTEN (Umbrüche intelligent steuern) */
    p { margin: 0 0 0.6em 0 !important; page-break-inside: auto !important; }
    ul { margin: 0 0 0.6em 0 !important; padding-left: 1.5em !important; page-break-inside: auto !important; }
    li, .award_item { margin-bottom: 0.3em !important; page-break-inside: avoid !important; }
    
    /* Text-Links im Lebenslauf (DOIs) bleiben klickbar und erkennbar */
    p a { color: #000 !important; text-decoration: underline !important; }
}