/* PRÄZISE FARBVARIABLEN */
:root {
    /* Modern Palette */
    --sidebar-bg: linear-gradient(180deg, #1a2a3a 0%, #16222e 100%);
    --sidebar-solid: #1a2a3a;
    --main-bg: #f8f9fa;
    /* Softer off-white */
    --outer-bg: #2D3944;

    /* Accent Colors */
    --red-accent: #e74c3c;
    --red-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --blue-accent: #3498db;

    /* Text Colors */
    --dark-text: #2c3e50;
    --light-text: #546e7a;
    --menu-default-text: #ecf0f1;
    --separator-color: #e0e6ed;

    /* Forms & Inputs */
    --form-bg: #ffffff;
    --input-bg: #fdfdfd;
    --input-border: #dce4ec;
    --input-focus-border: var(--red-accent);
    --placeholder-text: #95a5a6;

    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Custom Scrollbar moved to Mobile Media Query */

/* Globale Stile und Layout-Anpassung */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--outer-bg);
    color: var(--dark-text);
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Sidebar (Navigation) */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--menu-default-text);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100%;
    z-index: 10;
    transition: transform 0.3s ease-in-out;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 50px;
    font-size: 24px;
    font-weight: 300;
    /* Slimmer font */
    color: var(--menu-default-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    /* More spacing for elegance */
    padding: 10px 15px;
    display: block;
    position: relative;
    text-shadow: none;
    border: none;
}

.sidebar .logo::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--red-accent);
    /* Simple accent */
    margin: 15px auto 0;
    border-radius: 0;
}

.sidebar nav {
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar nav ul li a {
    display: block;
    padding: 12px 30px;
    color: var(--menu-default-text);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    background-color: transparent;
    border-left: 3px solid transparent;
    letter-spacing: 1px;
}

.sidebar nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--red-accent);
    padding-left: 35px;
    /* Subtle movement */
}

.sidebar nav ul li a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--red-accent);
    font-weight: 600;
}



/* Hauptinhalt: Positionierung und Größe (Desktop) */
.content-wrapper {
    margin-left: 250px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.main-content {
    background-color: var(--main-bg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0;
    flex-shrink: 0;
    overflow: visible;
    border-radius: 4px;
    /* Subtle rounding */
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background-color: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.menu-toggle:focus {
    outline: none;
    box-shadow: none;
}

.menu-toggle .material-symbols-outlined {
    font-size: 36px;
    color: var(--dark-text);
    display: none;
}

.menu-toggle .icon-menu {
    display: block;
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle.open .icon-menu {
    display: none;
}

.menu-toggle.open .icon-close {
    display: block;
    color: #ffffff;
}

/* Hero-Bereich (Desktop) */
.hero-section {
    display: flex;
    background-color: #ffffff;
    background-image: url('../assets/img/network-mesh.svg');
    background-size: 1600px auto;
    /* Fixed size to prevent scaling */
    background-position: left center;
    /* Anchor left to clip right side */
    background-repeat: no-repeat;
    position: relative;
    height: 450px;
    overflow: visible;
    /* Ensure shadow isn't clipped */
}

.hero-info {
    flex: 1;
    padding: 30px 50% 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    /* Ensure full height for vert. alignment context */
    z-index: 10;
    /* Higher z-index to stay above background */
    min-width: 50%;
    position: relative;
    /* Ensure z-index applies */
}

.hero-info .greeting {
    font-size: 1.1em;
    color: var(--red-accent);
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-info h1 {
    font-size: 4.5em;
    margin: 0;
    color: var(--dark-text);
    line-height: 1.1;
    position: relative;
    padding-bottom: 30px;
    font-weight: 300;
}

.hero-info h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--red-gradient);
    position: absolute;
    bottom: 10px;
    left: 0;
    border-radius: 3px;
}

.hero-info .title {
    font-size: 1.4em;
    color: var(--light-text);
    font-weight: 400;
    margin-top: 10px;
}

.mobile-break {
    display: none;
    /* Hide on desktop */
}

/* Hero Image Container (Desktop) */
.hero-image-container {
    flex: 1;
    background-color: transparent;
    overflow: visible;
    /* VITAL: Allow shadow to spill out */
    position: absolute;
    left: 75%;
    transform: translateX(-50%) translateY(-10px);
    top: -40px;
    /* Revert to original top */
    /* Breakout effect */
    bottom: 59px;
    /* height: calc(100% - 59px); Default behavior with top/bottom is sufficient, removing explicit height to avoid conflict */
    width: 350px;
    /* Increased width slightly to allow overlap */
    z-index: 3;
    /* Lower than hero-info (10) */
    line-height: 0;
}

.hero-image-container img {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    /* 3D Shadow Effect */
    filter: drop-shadow(15px 15px 25px rgba(0, 0, 0, 0.4));
    transform: translateZ(0);
    /* Hardware acceleration hint */
}

/* Aktionsbuttons (Desktop) */
.hero-actions {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    /* Slightly taller */
    z-index: 20;
}

.hero-actions .btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
}

.hero-actions .btn-download {
    background: var(--red-gradient);
}

.hero-actions .btn-download:hover {
    filter: brightness(1.1);
}

.hero-actions .btn-portfolio {
    background-color: var(--sidebar-solid);
}

.hero-actions .btn-portfolio:hover {
    background-color: #2c3e50;
}

.hero-actions .btn:focus {
    outline: none;
    box-shadow: none;
}

/* About Section (Desktop) */
/* About Section (Desktop) */
.about-section {
    padding: 50px 60px;
    background-color: var(--main-bg);
    border-top: 1px solid var(--separator-color);
}

.about-section.no-border {
    border-top: none;
}

.about-section h2 {
    font-size: 2.5em;
    font-weight: 300;
    color: var(--dark-text);
    margin: 0 0 15px 0;
    position: relative;
    letter-spacing: 1px;
}

.about-section .subtitle {
    font-size: 1.2em;
    color: var(--red-accent);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--light-text);
}

/* ======================================================= */
/* NEUES CSS FÜR DAS KONTAKTFORMULAR */
/* ======================================================= */

.contact-box {
    background-color: var(--form-bg);
    padding: 50px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow-soft);
}

.contact-header {
    text-align: center;
    margin-bottom: 20px;
}

.contact-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 1.1em;
    color: var(--light-text);
    margin: 0 auto;
    max-width: 600px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

/* Formular-Stile */
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--dark-text);
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    background: var(--red-gradient);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    font-size: 1.1em;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Kontaktinformationen Stile */
.contact-info-block h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--dark-text);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px;
    border-radius: 6px;
}

.contact-info-list a:hover {
    color: var(--red-accent);
    background-color: rgba(231, 76, 60, 0.05);
    transform: translateX(5px);
}

.contact-info-list a .material-symbols-outlined {
    font-size: 1.8em;
    color: var(--red-accent);
    /* Ensure icon centers within its line-height */
    display: flex;
    justify-content: center;
    width: 30px;
    /* Fixed width for alignment */
}

/* LinkedIn specific styles */
.linkedin-icon {
    font-size: 1.8em;
    color: #0077b5;
    /* Initial Blue */
    display: flex;
    justify-content: center;
    width: 30px;
    /* Match width of material icons */
    /* Minimal adjustment to align with material icons if needed */
    margin-left: 2px;
}

.linkedin-link:hover {
    color: #0077b5 !important;
    /* Blue text on hover */
    background-color: rgba(0, 119, 181, 0.05) !important;
    /* Blue tint bg */
}

.linkedin-link:hover .linkedin-icon {
    color: #0077b5;
    /* Keep icon blue */
}

/* Expertise Sektion: Liste formatieren */
#expertise ul {
    list-style: none;
    /* Custom bullets */
    padding-left: 0;
    margin-bottom: 30px;
}

#expertise ul li {
    margin-bottom: 15px;
    line-height: 1.6;
    padding-left: 30px;
    position: relative;
}

#expertise ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red-accent);
    font-weight: bold;
}

/* Philosophy Quote Blockquotes */
.philosophy-quote {
    font-style: italic;
    background-color: #f5f5f5;
    border-left: 4px solid var(--red-accent);
    padding: 20px 25px;
    margin: 25px 0;
    color: var(--light-text);
    line-height: 1.7;
    border-radius: 0 4px 4px 0;
}

/* BIO TIMELINE (CLEAN NAMESPACE) */
/* BIO TIMELINE (LEFT ALIGNED) */
.bio-timeline-container {
    display: flex;
    flex-direction: column;
}

.bio-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 30px;
    position: relative;
}

/* Visual Column (Line & Dot) */
.bio-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
    left: 50%;
    transform: translateX(-50%);
}

/* Hide line end for very last item if desired, but user wants gaps filled */
/* Last item line extends to full height (Future) */
/*.bio-row:last-child .visual-line {
    bottom: auto;
    height: 100%;
    background: linear-gradient(to bottom, #e0e0e0 20px, transparent 20px);
}*/

.visual-dot {
    position: absolute;
    top: 6px;
    /* Align with date text roughly */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--red-accent);
    border: 2px solid var(--main-bg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Content Column */
.bio-content-col {
    padding-bottom: 60px;
    /* Vertical gap between items content */
}

.bio-row:last-child .bio-content-col {
    padding-bottom: 0;
}

/* Typography */
.bio-date {
    display: block;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--red-accent);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-header {
    margin-bottom: 15px;
}

.bio-header h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.bio-subtitle {
    font-size: 0.95em;
    color: var(--light-text);
    margin: 0;
    font-weight: 400;
}

.bio-text-body p {
    font-size: 1em;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 15px;
}

.bio-text-body .philosophy-quote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 3px solid var(--red-accent);
    background-color: #f9f9f9;
    font-style: italic;
    color: var(--dark-text);
    font-size: 0.95em;
}

/* Tech Stack Styles for Bio Timeline */
.tech-stack-container {
    margin-top: 20px;
    background-color: #f8f9fa;
    border-left: 3px solid var(--red-accent);
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
    font-size: 0.95em;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-category {
    display: block;
    line-height: 1.5;
}

.tech-category-title {
    font-weight: 700;
    color: var(--dark-text);
    margin-right: 6px;
    display: inline-block;
}

.tech-items {
    color: var(--light-text);
    display: inline;
}

/* Über mich Grid Layout - Semantic Rows for Alignment */
.about-intro {
    max-width: 800px;
    margin-bottom: 40px;
}

.about-timeline-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Space between rows */
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Text takes space, timeline fixed width */
    gap: 60px;
    align-items: start;
}

.row-content {
    max-width: 800px;
    /* Keep text readable */
}

/* Timeline Item Styling within Row */
.row-timeline {
    position: relative;
    padding-top: 10px;
    /* Optical adjustment to align date with text top */
}

.row-timeline .timeline-item {
    position: relative;
    padding-left: 25px;
    border-left: 2px solid #e0e0e0;
    padding-bottom: 10px;
    /* Minimal padding */
}

/* Remove border for single items in row context if desired, 
   but keeping it suggests continuity */
.row-timeline .timeline-item {
    border-left: 2px solid #e0e0e0;
    height: 100%;
    /* Extend line to look connected if stacking rows close */
}

.row-timeline .timeline-date {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--red-accent);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-timeline .timeline-content h4 {
    font-size: 1em;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.row-timeline .timeline-content p {
    font-size: 0.9em;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

.row-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 13px;
    /* Align with date text roughly */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--red-accent);
    border: 2px solid var(--main-bg);
}

/* Removed obsolete .about-timeline styles */

/* ======================================================= */
/* MEDIA QUERY: Mobile View (max-width: 1200px) */
/* ======================================================= */

@media (max-width: 1200px) {

    /* Custom Scrollbar (White/Apple-like) for Mobile/Tablet */
    ::-webkit-scrollbar {
        width: 12px;
    }

    /* Custom Scrollbar (White/Apple-like) for Mobile/Tablet */
    html {
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 #ffffff;
    }

    ::-webkit-scrollbar,
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 12px;
        background-color: #ffffff;
    }

    ::-webkit-scrollbar-track,
    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track {
        background: #ffffff;
    }

    ::-webkit-scrollbar-thumb,
    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
        background-color: #c1c1c1;
        border-radius: 6px;
        border: 3px solid #ffffff;
    }

    body {
        display: block;
        overflow-x: hidden;
        /* width: 100vw; Removed to prevent scrollbar overflow issues */
        padding: 0;
        margin: 0;
    }

    .content-wrapper {
        margin-left: 0;
        padding-top: 0;
        padding-bottom: 0;
        min-height: auto;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar nav ul li a {
        font-size: 1.2em;
        padding: 20px 30px;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        margin: 0;
        padding: 0;
        overflow: visible;
        border-radius: 0;
    }

    .sidebar {
        width: 100%;
        height: 100vh;
        padding-top: 70px;
        transform: translateX(-100%);
        z-index: 90;
        justify-content: center;
        align-items: center;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        left: auto;
        z-index: 9001;
        width: 50px;
        height: 50px;
        padding: 10px;
        box-sizing: border-box;
        background-color: transparent;
        border: none;
    }

    .hero-section {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        height: auto;
        min-height: 280px;
        /* Ensure space for absolute image */
        padding-bottom: 0;
        background-position: left center;
        /* Start at 0px to cover full width (up to 1200px) / Anchor Left */
        background-size: 1300px auto;
        /* Slightly larger to ensure coverage > 1200px */
    }

    .hero-info {
        padding: 20px 40px 20px 40px;
        /* Symmetric padding: 40px left/right */
        min-width: 0;
        width: calc(100% - 250px);
        /* Fill remaining space next to image (250px reserved) */
        order: 1;
        text-align: left;
        margin-bottom: 20px;
        /* Push buttons down / Text up */
    }

    .hero-info .greeting {
        font-size: 1.4em;
    }

    .hero-info h1 {
        font-size: 2.2em;
        /* Reduced from 3em to fit side-by-side */
    }

    .hero-info .title {
        font-size: 1.2em;
        /* Smaller to make room */
    }

    .hero-image-container {
        position: absolute;
        width: 240px;
        /* +30% Larger */
        height: auto;
        right: -20px;
        /* Push further right (partially off-screen) */
        bottom: 46px;
        /* Micro overlap (4px) - almost flush */
        left: auto;
        top: auto;
        transform: none;
        background-color: transparent;
        z-index: 5;
    }

    .hero-actions {
        position: relative;
        width: 100%;
        order: 3;
        margin-top: 0;
        left: auto;
        bottom: auto;
        justify-content: center;
        padding-bottom: 0;
        z-index: 20;
        /* Ensure visibility */

        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: visible;
        margin-left: 0;
        margin-bottom: -1px;
        line-height: 0;
    }

    /* Force Button Visibility on Mobile */
    .hero-actions .btn {
        display: flex !important;
        width: 50% !important;
        height: 50px !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 1em !important;
    }

    .hero-actions .btn-download {
        background: var(--red-gradient) !important;
        color: #ffffff !important;
    }

    .hero-actions .btn-portfolio {
        background-color: var(--sidebar-solid) !important;
        color: #ffffff !important;
    }

    .mobile-break {
        display: inline;
        /* Show on mobile */
    }

    .hero-image-container img {
        width: 100%;
        max-height: 100%;
        height: 100%;
        position: static;
        object-fit: contain;
        object-position: bottom;
        display: block;
    }

    .hero-actions {
        position: relative;
        width: 100%;
        order: 3;
        bottom: auto;
        left: auto;
        right: auto;
        z-index: 5;
    }

    .about-section {
        padding: 40px 40px;
        /* Increased to 40px to compensate for scrollbar visual */
        padding-top: 90px;
    }

    .contact-box {
        padding: 30px 20px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .about-section h2,
    .contact-header h2 {
        font-size: 2em;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.half-width {
        grid-column: 1 / -1;
    }

    /* Stack BIO rows on mobile */
    /* Mobile Tweaks for Left-Aligned Timeline */
    .bio-timeline-container {
        gap: 0;
    }

    .bio-row {
        grid-template-columns: 30px 1fr;
        /* Narrow visual column */
        gap: 15px;
        /* Smaller gap */
    }



    .bio-content-col {
        padding-bottom: 40px;
        /* Reduced vertical spacing */
    }

    /* Adjust dots if needed, but centering should handle it */

    .bio-header h4 {
        font-size: 1.05em;
    }
}

/* MEDIA QUERY: Large Mobile / Tablet Specific (Fluid Scale Up) */
@media (min-width: 600px) and (max-width: 1200px) {
    .bio-content-col {
        padding-bottom: 50px;
    }

    .hero-info .greeting {
        font-size: 1.8em;
        /* Increased from 1.6em */
    }

    .hero-info h1 {
        font-size: 3.5em;
        /* Increased from 3em */
    }

    .hero-info .title {
        font-size: 1.7em;
        /* Increased from 1.5em */
    }

    .mobile-break {
        display: none;
        /* Hide line break on tablet */
    }

    .hero-image-container {
        /* Fluid Width: 240px -> 300px (Reduced) over 392px range (0.15 factor) */
        width: calc(240px + (100vw - 600px) * 0.15);

        /* Fluid Right: -20px -> 40px over 392px range (0.15 factor) */
        right: calc(-20px + (100vw - 600px) * 0.15);
    }

    .hero-info {
        /* Fluid Width reduction: Exclusion zone grows from 250px to 340px (0.23 factor) */
        width: calc(100% - (250px + (100vw - 600px) * 0.23));
    }
}

/* MEDIA QUERY: Tablet/Klein-Desktop */
@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr 1fr;
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }
}

/* MEDIA QUERY: Desktop/Large Layout */
@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 2fr 1fr;
    }

    .contact-box {
        padding: 60px;
    }
}

/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--sidebar-solid);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    box-sizing: border-box;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.cookie-content h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 700;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #bdc3c7;
}

.btn-cookie {
    background: var(--red-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-cookie:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .cookie-content p {
        margin-right: 20px;
    }

    .btn-cookie {
        white-space: nowrap;
    }
}

/* Contact Form Messages */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.95em;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}





.checkbox-group label {
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.5;
    color: var(--light-text);
    text-transform: none;
    cursor: pointer;
}

/* PDF/Image Modal Styles */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Darker background for images */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    /* Padding for mobile */
    box-sizing: border-box;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    /* Removed fixed white box for images */
    background-color: transparent;
    box-shadow: none;
    /* No shadow on container, maybe on image */
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Specific style if we still want white box for PDF, but now we are image only */
.image-modal {
    background: transparent;
    box-shadow: none;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    /* Larger */
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: transform 0.2s;
    z-index: 2001;
}

.modal-close:hover {
    transform: scale(1.1);
    color: var(--red-accent);
}

#cert-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    /* Shadow on the image itself */
    background-color: #fff;
    /* In case of transparency */
}

/* Remove iframe styles */



/* Footer Styles */
.main-footer {
    border-top: 1px solid var(--separator-color);
    background-color: #f1f2f6;
    /* Basic light grey */
    padding: 30px 60px;
    /* Match .about-section padding (60px) */
    font-size: 0.9em;
    color: var(--light-text);
    margin-top: 40px;
    border-radius: 0 0 4px 4px;
    /* Match main-content radius */
}

.footer-left span {
    color: var(--light-text);
    /* Ensure explicit match */
    opacity: 0.8;
    /* Slight matching tweak if needed, but color should suffice */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left span {
    font-weight: 500;
}

.footer-center a {
    text-decoration: none;
    color: #0077b5;
    /* LinkedIn Blue */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-center a:hover {
    color: #004182;
}

.footer-center i {
    font-size: 1.2em;
}

.footer-right a {
    text-decoration: none;
    color: var(--light-text);
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--red-accent);
}

.footer-right .separator {
    margin: 0 10px;
    color: #ccc;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .main-footer {
        padding: 30px 40px;
        /* Match mobile .about-section padding */
        width: 100%;
    }
}

/* Service Modal Close Button */