/* =========================
   RESET & BASIS
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #2c3e50;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 70px;
}

a {
    color: #ff9800;
    text-decoration: none;
}

a:hover {
    color: #e68900;
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

section {
    padding: 60px 10%;
}

/* =========================
   HEADER / NAVIGATION
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #1a252f;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav {
    max-width: 1100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: white;
    font-weight: bold;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.nav-links a:hover {
    color: #ff9800;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.menu-icon {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 70vh;
    background: url("img/Profilbild.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    animation: fadeUp 1.2s ease-out forwards;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ff9800;
    margin-bottom: 12px;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: normal;
}

/* =========================
   GENERIC SECTIONS
========================= */
.about,
.experience,
.content,
.blog,
.systemanalyse,
.impressum,
.cv-section,
#downloads,
#bilder {
    background: linear-gradient(180deg, #34495E, #22313F);
    text-align: center;
}

.contact {
    background: linear-gradient(180deg, #4a90e2, #357ABD);
    text-align: center;
}

.about-container,
.cv-container,
.impressum-container,
.contact-container,
.content-container {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    text-align: left;
}

.about h2,
.cv-section h2,
.contact h2,
.impressum h2,
.content h2,
.blog h2,
.systemanalyse h2,
.experience h2 {
    color: #ff9800;
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

.about h3,
.content h3,
.blog h3,
.systemanalyse h3,
.experience h3 {
    color: #4a90e2;
    font-size: 1.4rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.about p,
.cv-section p,
.contact p,
.impressum p,
.content p,
.blog p,
.systemanalyse p,
.experience p {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.content ul,
.blog ul,
.systemanalyse ul,
.about ul,
.contact ul,
.impressum ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 18px;
}

.content ul li,
.blog ul li,
.systemanalyse ul li,
.about ul li,
.contact ul li,
.impressum ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.content ul li::before,
.blog ul li::before,
.systemanalyse ul li::before,
.about ul li::before,
.contact ul li::before,
.impressum ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #ff9800;
}

/* =========================
   BUTTONS / LINKS
========================= */
.blog-button,
.project-link,
.cv-button {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #ff9800;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.blog-button:hover,
.project-link:hover,
.cv-button:hover {
    background: #e68900;
    color: white;
    text-decoration: none;
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(255,152,0,0.35);
}

.button-container,
.button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 24px 0;
}

/* =========================
   PROJECT / BLOG CARDS
========================= */
.experience-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.experience-item,
.blog-card,
.blog-post {
    background: rgba(255,255,255,0.08);
    width: 320px;
    max-width: 100%;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card,
.blog-post {
    width: 100%;
    margin-bottom: 24px;
}

.experience-item:hover,
.blog-card:hover,
.blog-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(255,152,0,0.28);
}

.experience-item h3,
.blog-card h3,
.blog-post h3 {
    color: #ff9800;
    margin-bottom: 12px;
}

/* =========================
   CODE BLOCKS
========================= */
pre,
.blog-post pre {
    background: #1a252f;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* =========================
   GALLERIES / IMAGES
========================= */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
    position: relative;
}

.image-gallery img {
    width: 250px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ff9800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 16px rgba(255,152,0,0.35);
    filter: brightness(1.05);
}

.hidden-image {
    display: none;
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
}

.gallery-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(255,152,0,0.25);
}

.gallery-thumb {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid #ff9800;
    cursor: zoom-in;
}

.gallery-caption {
    padding: 16px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #f2f2f2;
    text-align: left;
}

.gallery-caption strong {
    color: #ff9800;
}

/* =========================
   CONTACT FORM
========================= */
.contact-container {
    max-width: 500px;
}

.contact input,
.contact textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin: 10px auto;
    display: block;
    border-radius: 5px;
    border: none;
    background: #ecf0f1;
    color: #333;
    font-size: 1rem;
}

.contact button {
    background-color: #ff9800;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1rem;
}

.contact button:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #1a252f;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .experience-item {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    section {
        padding: 45px 6%;
    }

    .nav {
        justify-content: flex-end;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #1a252f;
        position: absolute;
        top: 58px;
        right: 10px;
        width: 220px;
        padding: 14px;
        border-radius: 8px;
        box-shadow: 0 6px 14px rgba(0,0,0,0.3);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        display: block;
        text-align: center;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.15rem;
    }

    .about-container,
    .contact-container,
    .impressum-container,
    .content-container,
    .cv-container {
        padding: 22px;
    }

    .gallery-card {
        width: 100%;
        max-width: 420px;
    }

    .gallery-thumb {
        height: auto;
        max-height: 260px;
        object-fit: contain;
        background: #22313f;
    }
}

