/* ============================================
   ROBERT DEECKE – style.css
   Mobile-first, Plain CSS
   Farben: #42C0F8 (primär), #A9E0FC (sekundär), #317AA9 (akzent/kontrast)
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-primary:   #42C0F8;
    --color-secondary: #A9E0FC;
    --color-accent:    #317AA9;
    --color-dark:      #1a2b3c;
    --color-text:      #2d3748;
    --color-muted:     #718096;
    --color-bg:        #ffffff;
    --color-bg-light:  #f4fafd;
    --font-main: system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
    --max-width: 1100px;
    --section-padding: 3rem 1.25rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.nav-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-accent);
    list-style: none;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.6rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.nav-links.open {
    display: flex;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    padding: 0.3rem 0;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    text-decoration: none;
}

.nav-links a.active {
    font-weight: 600;
}

.lang-toggle a {
    background: var(--color-primary);
    color: var(--color-dark) !important;
    padding: 0.25rem 0.7rem !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem !important;
    letter-spacing: 0.03em;
}

/* ============================================
   HERO / PROFIL
   ============================================ */

.hero {
    background: var(--color-bg-light);
    padding: 2.5rem 1.25rem;
    border-bottom: 3px solid var(--color-secondary);
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.hero-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 15%;
    border: 4px solid var(--color-primary);
    box-shadow: 0 4px 16px rgba(49, 122, 169, 0.25);
}

.hero-text h1 {
    font-size: 1.9rem;
    color: var(--color-dark);
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.hero-role {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.15rem;
}

.hero-focus {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.hero-bio {
    font-size: 1rem;
    color: var(--color-text);
    max-width: 520px;
    margin: 0 auto 1.75rem;
    line-height: 1.75;
}

.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
    background: var(--color-dark);
    color: white;
    text-decoration: none;
}

/* ============================================
   STÄRKEN
   ============================================ */

.strengths {
    padding: var(--section-padding);
    background: white;
}

.section-title {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 1.75rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.strength-card {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.strength-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.strength-card p {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.65;
}

/* ============================================
   STECKBRIEF / FACTS
   ============================================ */

.facts {
    background: var(--color-accent);
    padding: 2rem 1.25rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fact strong {
    color: var(--color-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.fact span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--color-dark);
    color: #8a9ab0;
    padding: 1.5rem 1.25rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.site-footer p {
    font-size: 0.82rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
}

.footer-nav a {
    color: #8a9ab0;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: white;
}

/* ============================================
   LEBENSLAUF – TIMELINE
   ============================================ */

.cv-page-header {
    background: var(--color-bg-light);
    padding: 2.5rem 1.25rem 2rem;
    border-bottom: 3px solid var(--color-secondary);
}

.cv-page-header .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cv-tagline {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: italic;
    letter-spacing: 0.02em;
}

.cv-page-header h1 {
    font-size: 1.9rem;
    color: var(--color-dark);
}

.cv-section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.cv-section + .cv-section {
    padding-top: 0;
}

.cv-section h2 {
    font-size: 1.3rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-secondary);
}

.timeline-entry {
    position: relative;
    padding: 0 0 2rem 1.75rem;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--color-primary);
    transform: translateX(50%);
}

.timeline-entry.current::before {
    background: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-entry.parallel {
    margin-left: 1.5rem;
    border-left: 2px dashed var(--color-secondary);
    padding-left: 1.5rem;
}

.timeline-entry.parallel::before {
    left: -1.5rem;
    background: var(--color-secondary);
    box-shadow: 0 0 0 2px var(--color-secondary);
}

.timeline-period {
    font-size: 0.82rem;
    color: var(--color-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-duration {
    font-size: 0.75rem;
    color: var(--color-secondary);
    background: var(--color-accent);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.timeline-note {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-top: 0.4rem;
    font-style: italic;
}

/* Ausbildung */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.education-entry {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.25rem;
    align-items: start;
}

.education-period {
    font-size: 0.82rem;
    color: var(--color-muted);
    white-space: nowrap;
    padding-top: 0.15rem;
}

.education-role {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.1rem;
}

.education-org {
    font-size: 0.88rem;
    color: var(--color-muted);
}

/* ============================================
   PROJEKTE – PROJEKTKARTEN
   ============================================ */

.projects-header {
    background: var(--color-bg-light);
    padding: 2.5rem 1.25rem 2rem;
    border-bottom: 3px solid var(--color-secondary);
}

.projects-header h1 {
    font-size: 1.9rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.projects-header p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.projects-section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.project-card {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    border-top: 3px solid var(--color-primary);
    position: relative;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.project-period {
    font-size: 0.78rem;
    color: var(--color-muted);
    font-weight: 500;
}

.project-agency {
    font-size: 0.78rem;
    color: var(--color-accent);
    font-weight: 600;
}

.project-client {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.3rem;
}

.project-activities {
    font-size: 0.88rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.project-goal {
    font-size: 0.82rem;
    color: var(--color-muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-secondary);
}

.project-goal strong {
    color: var(--color-accent);
}

.project-card.training {
    border-top-color: var(--color-accent);
    background: white;
}

/* ============================================
   SKILLS
   ============================================ */

.skills-header {
    background: var(--color-bg-light);
    padding: 2.5rem 1.25rem 2rem;
    border-bottom: 3px solid var(--color-secondary);
}

.skills-header h1 {
    font-size: 1.9rem;
    color: var(--color-dark);
}

.skills-section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.skills-section + .skills-section {
    padding-top: 0;
}

.skills-section h2 {
    font-size: 1.3rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
}

/* Kompetenz-Karten */
.competency-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.competency-card {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    padding: 1.1rem 1.4rem;
}

.competency-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.competency-card p {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.65;
}

/* Tool-Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: white;
    border: 1.5px solid var(--color-secondary);
    color: var(--color-dark);
    font-size: 0.83rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.skill-tag.highlight {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.skill-tag.soft {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-accent);
}

/* Sprachen */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--color-bg-light);
    border-radius: 6px;
}

.language-name {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.language-level {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* ============================================
   RESPONSIVE – TABLET (ab 640px)
   ============================================ */

@media (min-width: 640px) {
    .strengths-grid {
        grid-template-columns: 1fr 1fr;
    }

    .facts-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .competency-grid {
        grid-template-columns: 1fr 1fr;
    }

    .language-list {
        max-width: 480px;
    }
}

/* ============================================
   RESPONSIVE – DESKTOP (ab 768px)
   ============================================ */

@media (min-width: 768px) {

    /* Navigation */
    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        gap: 1.5rem;
        box-shadow: none;
        align-items: center;
    }

    /* Hero */
    .hero {
        padding: 4rem 1.25rem;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 3rem;
    }

    .hero-photo {
        flex-shrink: 0;
    }

    .hero-photo img {
        width: 190px;
        height: 190px;
    }

    .hero-bio {
        margin: 0 0 1.75rem;
    }

    /* Footer */
    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-photo img {
        width: 210px;
        height: 210px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }
}
