/* --- SCHRIFTEN (lokal gehostet, keine Verbindung zu Google) --- */
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/syne-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/syne-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/syne-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/syne-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* --- VARIABLEN & RESET --- */
:root {
    --color-bg-dark: #121413; 
    --color-bg-light: #FAFAFA;
    
    /* Farben */
    --color-accent-blue: #1D4ED8; 
    --color-accent-blue-bright: #3B82F6; 
    --color-accent-green: #10B981; 
    --color-accent-green-bright: #34D399; 
    
    --color-card-blue: #1D4ED8;
    --color-card-dark: #2D3748; 
    --color-card-slate: #334155; 
    
    --color-text-dark: #151716;
    --color-text-light: #FFFFFF; 
    --color-text-muted: #333333; 
    --color-border: #E0DCD3;
    
    --font-heading: 'Syne', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .section-title {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.1;
    text-wrap: balance; 
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.8rem); 
    margin-bottom: 0.5rem; 
    color: var(--color-text-light);
    letter-spacing: -1px;
    margin-top: 1rem; 
}

h2.subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 400;
    color: #9CA3AF;
    margin-bottom: 1.5rem; 
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-wrap: pretty;
}

.section-title {
    font-size: 1.8rem; 
    position: relative;
    margin-bottom: 0; 
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--color-card-blue); 
    margin-top: 0.8rem;
    border-radius: 2px;
}

/* --- LAYOUT --- */
.container {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 850px; 
}

.section {
    padding: 2.5rem 0; 
}

.bg-light {
    background-color: #ffffff;
}

/* --- KURZPROFIL & ALLGEMEINE ABSÄTZE --- */
.kurzprofil-text {
    max-width: 800px; 
}

.profile-paragraph, .details-section p {
    font-size: 1.15rem; 
    font-weight: 300;
    line-height: 1.8; 
    margin-bottom: 1.8rem; 
    color: var(--color-text-muted);
    text-wrap: pretty; 
}

.lead-paragraph {
    margin-top: 2rem; 
    font-weight: 400; 
    color: var(--color-text-dark);
}

.profile-paragraph strong {
    font-weight: 500;
    color: var(--color-text-dark);
}

.profile-paragraph:last-child, .details-section p:last-child {
    margin-bottom: 0;
}

/* --- HEADER FÜR KOMPETENZEN (Startseite) --- */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto; 
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: end;
    width: 100%;
}

.header-btn-wrapper {
    display: flex;
    justify-content: flex-end;
}

.header-btn-wrapper .btn-outline {
    background-color: var(--color-card-blue); 
    color: #ffffff;
    border: 2px solid var(--color-card-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem; 
    padding: 0.9rem 1.5rem; 
    font-size: 0.95rem; 
    font-weight: 600;
    letter-spacing: 0.5px; 
    text-align: center;
    white-space: nowrap; 
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.header-btn-wrapper .btn-outline svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.header-btn-wrapper .btn-outline:hover {
    background-color: transparent; 
    color: var(--color-card-blue);
    animation: none;
}

.header-btn-wrapper .btn-outline:hover svg {
    transform: translateX(4px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(29, 78, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    min-height: 100vh; 
    min-height: 100dvh; 
    display: flex;
    align-items: center;
    padding: 2rem 0; 
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 4rem; 
    align-items: center;
    width: 100%;
}

.facts {
    list-style: none;
    margin-bottom: 2.5rem; 
}

.facts li {
    display: flex;
    align-items: flex-start;
    gap: 1rem; 
    margin-bottom: 1.5rem; 
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); 
    color: #C5C9C4; 
    font-weight: 300;
    line-height: 1.5;
    text-wrap: pretty; 
}

.facts li .check-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent-green); 
    flex-shrink: 0;
    margin-top: 2px; 
}

.facts li .fact-text strong {
    color: var(--color-text-light);
    font-weight: 500;
    display: block; 
    margin-bottom: 0; 
}

.contact-scan {
    margin-bottom: 3rem; 
    padding-top: 2rem; 
    border-top: 1px solid #2A2D2C;
    font-size: 1.05rem;
    color: #9CA3AF;
}

.contact-scan a {
    color: var(--color-accent-blue-bright); 
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-scan a:hover {
    color: #93C5FD; 
    border-bottom: 1px solid #93C5FD;
}

.contact-separator {
    margin: 0 15px;
    color: #4B5563;
}

.hero-image-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 100%;
}

.hero-image-container img.portrait {
    width: 100%;
    max-height: 55vh; 
    max-width: 450px; 
    object-fit: contain; 
    display: block;
    filter: drop-shadow(0px 15px 30px rgba(0, 0, 0, 0.9));
}

.action-area {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--color-accent-green); 
    color: #ffffff;
    padding: 1rem 1.8rem;
    border: 2px solid var(--color-accent-green);
    border-radius: 4px; 
    font-size: 1rem; 
    text-transform: uppercase;
    letter-spacing: 1.2px; 
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); 
}

.scroll-btn:hover {
    background-color: transparent;
    color: var(--color-accent-green);
    box-shadow: none;
}

.scroll-btn svg {
    width: 20px; 
    height: 20px;
    stroke: currentColor; 
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-btn:hover svg {
    stroke-width: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(4px); }
    60% { transform: translateY(2px); }
}

/* --- Zweiter Button im Hero (CV-Download) --- */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--color-accent-green);
    border: 2px solid var(--color-accent-green);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background: var(--color-accent-green);
    color: #ffffff;
}

.download-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* --- CARDS (Startseite) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 2.5rem 2rem; 
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
}

.card-blue, .card-dark, .card-slate { 
    border-top: 6px solid var(--color-card-blue); 
}

.card h4 {
    font-family: var(--font-sans);
    margin-bottom: 1.2rem; 
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.card ul {
    list-style: none;
}

.card ul li {
    padding: 0.8rem 0; 
    border-bottom: 1px solid #F3F4F6;
    font-size: 1rem; 
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.card ul li strong {
    color: var(--color-text-dark);
    font-weight: 600;
}

.card ul li .sub-text {
    font-size: 0.9rem; 
    color: #666; 
}

.card ul li:last-child {
    border-bottom: none;
}

.mt-item {
    margin-top: 0.8rem;
    border-top: 1px dashed #E5E7EB !important;
    padding-top: 0.8rem !important;
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-bg-dark);
    color: #9CA3AF; 
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-top: 1px solid #2A2D2C;
}

footer a:hover {
    color: #ffffff !important;
}

/* --- SUBPAGE / PROFILSEITE --- */
.subpage-header { background-color: var(--color-bg-dark); padding: 1.5rem 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.back-link { color: var(--color-accent-blue-bright); font-family: var(--font-sans); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.content-padding { padding-top: 6rem; padding-bottom: 6rem; }
.details-section { margin-bottom: 5rem; }
.details-section .section-title { margin-bottom: 2.5rem; }
.case-study { background: #ffffff; padding: 3rem; border: 1px solid var(--color-border); border-left: 6px solid var(--color-card-blue); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.case-study .section-title { font-size: 1.6rem; color: var(--color-card-blue); margin-bottom: 2rem; }
.case-study .section-title::after { display: none; }
.case-study p { font-size: 1.1rem; margin-bottom: 1.5rem; text-wrap: pretty; }
.case-study p:last-child { margin-bottom: 0; }
.timeline-item { margin-bottom: 4.5rem; padding-left: 2rem; border-left: 2px solid var(--color-border); position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; background-color: var(--color-accent-blue); }
.timeline-item h3 { font-family: var(--font-sans); font-size: 1.3rem; margin-bottom: 0.3rem; font-weight: 600; color: var(--color-text-dark); }
.timeline-item .meta { font-size: 1rem; color: #555; font-weight: 400; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.timeline-item .meta .company { color: var(--color-accent-blue); font-weight: 600; }
.timeline-item ul { list-style-type: none; padding-left: 0; color: var(--color-text-muted); font-weight: 300; }
.timeline-item ul li { margin-bottom: 1.2rem; padding-left: 1.2rem; position: relative; font-size: 1.1rem; line-height: 1.6; text-wrap: pretty; }
.timeline-item ul li::before { content: '-'; position: absolute; left: 0; color: var(--color-accent-blue); font-weight: bold; }
.sub-detail { display: block; font-size: 0.95rem; color: #555; margin-top: 0.4rem; line-height: 1.5; }
.tools-line { margin-top: 1.5rem; padding-top: 0.8rem; border-top: 1px dashed #E5E7EB; color: #555; font-size: 1rem; }
.tools-line::before { display: none; }
.education-list { list-style: none; }
.education-list li { margin-bottom: 1.5rem; font-size: 1.1rem; font-weight: 300; line-height: 1.6; text-wrap: pretty; }
.education-list strong { font-weight: 500; color: var(--color-text-dark); }

/* --- ZITAT-DESIGN --- */
.quote-box {
    position: relative;
    background-color: #F8FAFC;
    padding: 2rem 2.5rem 2rem 3.5rem; 
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-accent-blue); 
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-box:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.quote-middle {
    border-left-color: var(--color-card-slate) !important; 
}

.quote-box::before {
    content: '„';
    position: absolute;
    top: -5px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(29, 78, 216, 0.15); 
    line-height: 1;
    z-index: 0;
}

.quote-text {
    position: relative;
    z-index: 1;
    font-family: var(--font-sans); 
    font-size: 1.05rem;
    font-style: normal; 
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem !important;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #E2E8F0;
    padding-top: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-card-blue);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.quote-middle .author-avatar {
    background-color: var(--color-card-slate);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.quote-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.quote-job {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.small {
    font-size: 0.95rem; 
    color: #555; 
    display: block;
    margin-top: 0.4rem;
}

/* --- PULSIERENDER BUTTON FÜR KONTAKT --- */
.pulse-btn {
    animation: pulseContact 2s infinite;
}

@keyframes pulseContact {
    0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(29, 78, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

/* --- DEZENTER LINKEDIN-BUTTON --- */
.btn-linkedin-subtle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #555;
    border: 1px solid #ccc;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-linkedin-subtle:hover {
    background-color: #f0f0f0;
    color: var(--color-card-blue);
    border-color: var(--color-card-blue);
}

.btn-linkedin-subtle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- "Auf einen Blick" Box (Profilseite) --- */
.facts-box {
    background: #F8FAFC;
    border-left: 4px solid var(--color-accent-blue);
    border-radius: 0 8px 8px 0;
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.facts-box h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 2-Spalten-Grid für die Fakten-Box */
.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwingt alles in 2 exakte Spalten */
    gap: 1.5rem 2rem;
    align-items: start; /* Richtet die Elemente oben bündig aus */
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    font-weight: 600;
}
.fact-value {
    font-size: 1rem;
    color: var(--color-text-dark);
    font-weight: 500;
    line-height: 1.5;
    text-wrap: pretty;
}
.facts-box-cta {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-accent-blue);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-download:hover {
    background: transparent;
    color: var(--color-accent-blue);
    box-shadow: inset 0 0 0 2px var(--color-accent-blue);
}
.btn-download svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (min-width: 901px) and (max-width: 1250px) {
    .hero { padding: 1rem 0; }
    .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 2rem; }
    .hero-text h1 { font-size: 2.8rem; margin-top: 0.5rem; }
    h2.subtitle { font-size: 0.95rem; margin-bottom: 1rem; }
    .facts { margin-bottom: 1rem; }
    .facts li { margin-bottom: 0.8rem; font-size: 0.95rem; gap: 0.8rem; }
    .facts li .check-icon { width: 20px; height: 20px; }
    .contact-scan { margin-bottom: 1.5rem; padding-top: 1rem; font-size: 0.95rem; }
    .hero-image-container img.portrait { max-height: 45vh; }
    .scroll-btn { font-size: 0.9rem; padding: 0.8rem 1.5rem; }
}

@media (max-width: 900px) {
    .hero { padding: 3rem 0; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-image-container { order: -1; }
    .hero-image-container img.portrait { max-height: 35vh; }
    .section-header { grid-template-columns: 1fr; gap: 1rem; }
    .header-btn-wrapper { justify-content: flex-start; }
    .header-btn-wrapper .btn-outline { width: 100%; }
    .scroll-btn { width: 100%; justify-content: center; }
    
    .download-btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; margin-top: 0; }
    h2.subtitle { font-size: 0.95rem; }
    .container { padding: 0 1.5rem; }
    .section { padding: 3rem 0; } 
    .action-area { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .case-study { padding: 2rem 1.5rem; border-left-width: 4px; }
    .details-section .section-title { margin-bottom: 1.5rem; }
    .details-section p { margin-bottom: 1.2rem; line-height: 1.6; }
    .timeline-item { margin-bottom: 3rem; }
    .quote-box { padding: 1.5rem 1.5rem 1.5rem 3rem; }
    
    /* Responsive Anpassung für Profil-Fakten */
    .facts-box { padding: 1.5rem; }
    .facts-grid { grid-template-columns: 1fr; gap: 1rem; }
    .btn-download { width: 100%; justify-content: center; }
}
/* --- BEWEGUNG REDUZIEREN (Barrierefreiheit) --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal-blur, .scan-reveal, .anim-element, .image-wrapper,
    .scan-reveal .card-icon, .glow-ring, .glow-core {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
    .glow-ring, .glow-core { transform: translate(-50%, -50%) !important; }
    .name-container::after { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; }
}
