/* CSS Variables */
:root {
    --primary-dark: #333333;
    --dark-bg: #c4c4c4;
    --card-bg: #e0e0e0;
    --text-gray: #333333;
    --text-gray-soft: #757575;
    --text-gray-light: #ababab;
}

/* Base Styles */
body {
    font-family: 'Open sans';
    font-weight: 400;
    background-color: #ffffff;
    color: #333333;
    scroll-behavior: smooth;
}


/* Header Section */
.header {
    width:100%;
    height:auto;
    background: 
        url('images/bg-image.jpg'),
        linear-gradient(to bottom, #F6F7F7, #F5F4F4);  /* Gradient */
        
    background-position: 
        bottom center, /* Bild zentriert */
        0 0;          /* Gradient Position (volle Breite) */
    background-size: 
        1150px auto,  /* Bild: 1150px breit, 536px hoch */
        100% 100%;     /* Gradient über volle Breite & Höhe */
        
    background-repeat: 
        no-repeat,    
        no-repeat;   /* Gradient */
}
.header-section {
    max-width: 1200px;
    padding: 120px 40px;
    margin: 0 auto;
}

.logo {
    width: 38px;
    height: 38px;
    margin-bottom: 48px;
}

.greeting {
    font-family: 'Open sans';
    font-weight: 400;
    font-size: 20px;
    color: var(--text-gray-dark);
    margin-bottom: 8px;
}

h1, h2, h3, h4 {
    font-family: 'Spline sans';
    font-weight: 400;
}
h1 {
    font-size: 64px;
    margin-bottom: 20px;
}
.h1-title{margin-top: 3rem !important;}
h2 {
    font-size: 56px;
}
h3 {
    font-size: 40px;
}
h4 {
    font-size: 24px;
}
.title {
    font-size: 24px;
    line-height: 1.4em;
    color: var(--text-gray-soft);
}
 .text-center{text-align:left !important; }
p {font-size: 16px;}
p strong{font-weight: 700;}

.mt-5 {
    margin-top: 4rem !important;
}
.mt-6 {
    margin-top: 5rem !important;
}
section {margin-top: 60px;}
/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top:32px;
    margin-bottom: 24px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
.brand-img {
    width: 72px;
    height: 72px;
    border-radius: 16%;
    border:1px solid #e0e0e0;
    padding:4px;
}

.profile-info p {
    font-size: 16px;
    line-height: 1.6em;
    color: var(--text-gray-soft);
    margin: 2px 0 0 0;
}
p .head{
     color: var(--text-gray);
}
@keyframes brighten {
  0% {
    filter: brightness(1); /* Normal */
  }
  100% {
    filter: brightness(0.9); /* 50% heller */
  }
}
/* Contact Button */

.container-buttons{display: flex;flex-wrap: wrap;gap:16px;}
/* Icon */
.contact-button{
    width:auto;
    color: #ffffff;
    background-color: var(--primary-dark);
    padding: 14px 24px;
    border:none;
    border-radius: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.contact-button .material-symbols-outlined {
    font-size: 28px;
    color: #ffffff;
    border:none;
    font-variation-settings:
        'FILL' 1,
        'wght' 200,
        'GRAD' 0,
        'opsz' 40;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.contact-button:hover {
    background: #111111;
    transform: translateY(-1px);
}
.contact-button-outlined{
    width:auto;
    color: #333333;
    background-color: #ffffff;
    padding: 14px 24px;
    border: 1px solid #333333;
    border-radius: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.button-outlined-xs{
    width:auto;
    color: #333333;
    background-color: #ffffff;
    padding: 6px 16px;
    border: 1px solid #333333;
    margin-top:0;
    font-weight: 600;
    border-radius: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.contact-button-outlined .material-symbols-outlined {
    font-size: 28px;
    color: #333333;
    border:none;
    font-variation-settings:
        'FILL' 1,
        'wght' 200,
        'GRAD' 0,
        'opsz' 40;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.contact-button-outlined:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}
/* Contact Wrapper Footer */
.contact-wrapper{display:flex;gap:16px;padding:0;flex-wrap:wrap;}

/* Wrapper Footer */
.wrapper-footer{display:flex;gap:16px;padding:0;flex-wrap:wrap;justify-content: space-between;color:var(--text-gray-soft);}
.wrapper-footer p{font-size:14px;}
a.footer{color:var(--text-gray-soft);text-decoration:none;display:flex;gap:4px;line-height:1.8em}
a.footer:hover{color:var(--text-gray);}

/* Button Text */
.button-text {
    line-height: 1;
    font-size: 16px;
    font-weight: 600;
}
.container-back {
    width: 100%;
    margin: 0 auto;
    position: fixed;
    z-index: 1000;
   
    padding: 8px 0 8px 0;
}
.wrapper-back{
    max-width:1000px;
    margin:0 auto;
    padding:0 8px;
}
.button-back{
    border-radius: 50px;
    padding: 8px;
}
.wrapper-back a{
    display:inline-block;
    border-radius:50%;
    width:auto;
    /*background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    */
    text-decoration: inherit;
  
}
.wrapper-back a:hover{
    text-decoration: inherit;
    animation: brighten .3s forwards; /* 2 Sekunden, bleibt hell */
  
}
/* Projects Section */
.project-card {
    overflow: hidden;
    position: relative;
}
.project-card a{
    text-decoration: none;  /* Entfernt Unterstreichung */
    color: inherit;  /* Erbt Textfarbe vom Elternelement */
    display: block;  /* Macht den Link zum Block-Element */
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.project-card a:link,
.project-card a:visited,
.project-card a:hover,
.project-card a:active {
    color: inherit;
    text-decoration: inherit;
}

.project-card a:hover {
    color: #111111;
    text-decoration: inherit;
    animation: brighten .3s forwards; /* 2 Sekunden, bleibt hell */
}
.project-info {
    padding: 12px 0 24px 0;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--card-bg);
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 8px 0;
}

.project-subtitle {
    font-size: 16px;
    color: var(--text-gray-soft);
    margin: 0 0 20px 0;
    text-decoration: none;
}
.projects-subline {
    font-size: 16px;
    color: var(--text-gray-soft);
    margin: 0;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.project-grid-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.project-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Capabilities List */

ul{
    padding:0;
    margin:0;
    list-style-type: none;
}
.capabilities-list {
    margin:0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}
.standard{
    padding:0 12px;
    margin:0;
    list-style-type: none;
}
.standard-list {
    list-style-type: disc;
    margin:0 8px;
    padding: 4px 0;
}
.impact-list {
    list-style-type: none;
    margin:0;
    padding: 4px 0;
}
.list-container {
    overflow: hidden;
}

.icon-list {
    float: left;
    width: auto;  /* Jede Liste nimmt 50% Breite */
    list-style: none;
    padding: 0;
    margin: 0 60px 0 0;
    box-sizing: border-box; 
}
.list-text {
    font-size: 16px;
    color: #333;
    line-height: 1;
}

.capabilities-list .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings:
        'FILL' 1,
        'wght' 200,
        'GRAD' 0,
        'opsz' 40;
    line-height: 1;
}


/* Timeline Section */

.timeline-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.year{
    flex-shrink: 0;
} 
.timeline-line {
    margin-top: 10px;
    width: 1px;
    background-color: #c4c4c4;
    flex-grow: 1;
    margin-left: 20px;
}
.timeline-right {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
}
.timeline-right ul li{
    list-style: disc;
    padding:0;
    margin:0 0 16px 16px;
}
.timeline-right li{
    list-style: disc;
    padding:0;
}
.job-title{
font-size:18px;
font-weight:bold;
}
.company, .year, .subtitle{
    color:var(--text-gray-soft);
}

.cropped-image {
    margin:32px 0 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-subline{
    color: var(--text-gray-light);
    font-size:14px;
    margin:16px 0 80px 0;
}
/* Image Gallery */
.image-gallery {
    margin: 20px 0;
}

.image-gallery img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Container */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}
.container-custom-project {
    max-width: 820px;
    margin: 0 auto;
    padding: 100px 40px;
}


/* Navigation Container */
.navigation {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.nav-container {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Navigation Items */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 4px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 20px;
    min-width: 70px;
}
/* Hover State */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Active/Press State */
.nav-item:active {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Optional: Active/Current Page State */
.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
}

.nav-item.active .material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 200,
        'GRAD' 0,
        'opsz' 24;
}
/* Material Icons */
.material-symbols-outlined {
    font-size: 40px;
    color: #333;
    font-variation-settings:
        'FILL' 0,
        'wght' 200,
        'GRAD' 0,
        'opsz' 40;
}

/* Navigation Labels */
.nav-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 576px) {
    .nav-container {
        padding: 4px 15px;
        gap: 0;
    }
    
    .nav-item {
        padding: 4px 15px;
        min-width: 60px;
    }
    
    .material-symbols-outlined {
        font-size: 40px;
    }
    
    .nav-label {
        font-size: 12px;
    }
}
/* Stats Section */
.stats-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Logo Container */
.logo-container {
    flex-shrink: 0;
}

.logo {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 400;
}

.logo-highlight {
    background-color: #00D9D4;
    color: #000;
    padding: 2px 8px;
    display: inline-block;
}

.logo-text {
    color: #000;
}

/* Stats Container */
.stats-container {
    display: flex;
    gap: 56px;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Stat Item */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Material Icon */
.stat-icon {
    font-size: 24px;
    color: var(--text-gray-soft);;
    margin-bottom: 0;
}

/* Stat Number */
.stat-number {
    font-size: 28px;
    font-weight: 400;
    color: #000;
    line-height: 1;
}

/* Stat Label */
.stat-label {
    font-size: 16px;
    color: var(--text-gray);;
    font-weight: 400;
}
.logo-stat{margin-top:16px;}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
}

/* Header */
.gallery-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.gallery-title {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    color: #333;
}

.gallery-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

/* Horizontal Scrolling Container */
.gallery-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;  /* Smooth scrolling on iOS */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari */
.gallery-container::-webkit-scrollbar {
    display: none;
}

/* Gallery Scroll Wrapper */
.gallery-scroll {
    display: flex;
    gap: 16px;
    padding: 0;
    width: max-content;
}

/* Gallery Item */
.gallery-item {
    flex-shrink: 0;
    height: 358px;  /* Feste Höhe für alle Bilder */
}

.gallery-item img {
    width: auto;  /* Breite passt sich automatisch an */
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media (max-width: 1194px) {
    .header {
        width:100%;
        height:auto;
        background: 
            url('images/bg-image-md.jpg'),
            linear-gradient(to bottom, #F6F7F7, #F5F4F4);  /* Gradient */

        background-position: 
            bottom  right, /* Bild zentriert */
            0 0;          /* Gradient Position (volle Breite) */
        background-size: 
            1194px auto,  /* Bild: 1150px breit, 536px hoch */
            100% 100%;     /* Gradient über volle Breite & Höhe */

        background-repeat: 
            no-repeat,    
            no-repeat;   /* Gradient */
    }
}
@media (max-width: 834px) {
    .header {
        width:100%;
        height:678px;
        background: 
            url('images/bg-image-xs.jpg'),
            linear-gradient(to bottom, #F6F7F7, #F5F4F4);  /* Gradient */

        background-position: 
            bottom right, /* Bild zentriert */
            0 0;          /* Gradient Position (volle Breite) */
        background-size: 
            834px 678px,  /* Bild: 1150px breit, 536px hoch */
            100% 100%;     /* Gradient über volle Breite & Höhe */

        background-repeat: 
            no-repeat,    
            no-repeat;   /* Gradient */
    }
    .header-section {
        padding: 120px 24px;
    }
    .container-back {
        width: 100%;
        margin: 0 auto;
        position: fixed;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        padding: 8px 0 8px 0;
    }
}

@media (max-width: 684px) {
    h1 {
        font-size: 48px;
    }
    .h1-title{margin-top: 1rem !important;}
    h2 {
        font-size: 40px;
    }
    h3 {
        font-size: 32px;
    }
    .mt-5 {
        margin-top: 3rem !important;
    }
    .mt-6 {
        margin-top: 4rem !important;
    }
     .text-center{text-align:center !important;}
    .title{
        font-family: 'Open sans';
        font-size: 20px;
        font-weight:300;
        color: var(--text-gray-soft);
    }
    .header-section {
        padding: 80px 24px;
        margin: 0 auto;
    }
    .header {
        width:100%;
        height:auto;
        background: 
        linear-gradient(to bottom, #F6F7F7, #F5F4F4);
        background-position: 
            0 0;          /* Gradient Position (volle Breite) */
        background-size: 
            100% auto;   /* Gradient über volle Breite & Höhe */

        background-repeat: 
            no-repeat;   /* Gradient */
    }
    .container-custom {
        margin: 0 auto;
        padding: 40px 24px;
    }
    .container-custom-project {
        max-width: 820px;
        margin: 0 auto;
        padding: 80px 24px;
    }
    .container-back {
        margin: 0 auto;
        padding: 8px 0;
    }
    .contact-wrapper{display:flex;gap:16px;padding:0;flex-wrap:wrap;justify-content: center;}
    .wrapper-back {
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }
    .profile-img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }
    .container-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        align-content: flex-start;
    }
    .mobile{
        padding-top: 20px;
    }
    .icon-list {
    float: none;
        width:auto;
    }
    .gallery-title {
        font-size: 28px;
    }
    
    .gallery-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .gallery-item {
        height: 358px;
    }
    .stat-item {
        width:40%;
    }
    .stats-container {
        gap: 32px;
    }

    }

/* Responsive adjustments */
@media (max-width: 430px) {
    h1 {
        font-size: 40px;
    }
    .h1-title{margin-top: 1rem !important;}
    h2 {
        font-size: 32px;
    }
    h3 {
        font-size: 32px;
    }
    h4 {
        font-size: 24px;
    }
    .title{
        font-family: 'Open sans';
        font-size: 20px;
        font-weight:300;
        color: var(--text-gray-soft);
    }
   
    .header-section {
        padding: 80px 24px;
        margin: 0 auto;
    }
    .header {
        width:100%;
        height:auto;
        background: 
        linear-gradient(to bottom, #F6F7F7, #F5F4F4);
        background-position: 
            0 0;          /* Gradient Position (volle Breite) */
        background-size: 
            100% auto;   /* Gradient über volle Breite & Höhe */

        background-repeat: 
            no-repeat;   /* Gradient */
    }
    .container-custom {
        margin: 0 auto;
        padding: 30px 24px;
    }
    .container-custom-project {
        max-width: 820px;
        margin: 0 auto;
        padding: 80px 24px;
    }
    .container-back {
        margin: 0 auto;
        padding: 8px 0;
    }
    .wrapper-back {
        width: 100%;
        margin: 0 auto;
        padding: 0 8px;
    }

    .container-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        align-content: flex-start;
    }
    
    .mobile{
        padding-top: 20px;
    }
    .icon-list {
    float: none;
        width:auto;
    }
    .img-subline{
        color: var(--text-gray-light);
        font-size:14px;
        margin:8px 0 40px 0;
    }
    .gallery-title {
        font-size: 28px;
    }
    
    .gallery-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .gallery-item {
        height: 300px;
    }
    .stat-item {
        width:44%;
    }
    .stats-container {
        gap: 16px;
    }
}
/* Modal - Desktop Version */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;   /* ⬅️ DAS ist der Schlüssel */
    visibility: hidden;     /* ⬅️ extra Absicherung */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* Safari */
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;   /* ⬅️ jetzt klickbar */
    visibility: visible;
    transition: opacity 0.25s ease;
}

/* Overlay */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* =========================
   MODAL CONTENT – DESKTOP
   ========================= */

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    padding: 40px 32px 48px 32px;
    z-index: 1;

    transform: scale(0.96);
    transition: transform 0.25s ease;

    will-change: transform;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color:#333333;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* =========================
   CONTACT CONTENT
   ========================= */

.contact-info {
    text-align: center;
}

.contact-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.contact-title {
    margin-bottom: 24px;
    color: #666;
}

/* Buttons */
.contact-details {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}






/* Mobile: Bottom Sheet */
@media (max-width: 768px) {
     .modal {
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;

        border-radius: 24px 24px 0 0;
        padding: 30px 20px;

        transform: translateY(100%);
        transition: transform 0.3s ease;

        overflow-y: auto;
    }

    .modal.active .modal-content {
        transform: translateY(0);
    }

    /* Swipe Indicator */
    .modal-content::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #ddd;
        border-radius: 2px;
    }

    /* Close Button etwas größer */
    .modal-close {
        font-size: 32px;
    }

    .contact-photo {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 20px;
    }
}

