
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A2A44;
    --primary-dark: #0F172A;
    --secondary: #1C5D6B;
    --dark: #333333;
    --light: #F5F5F5;
    --text: #374151;
    --text-light: #4A4A4A;
    --gradient: linear-gradient(135deg, #1A2A44 0%, #1C5D6B 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

/* Language-specific styling */
[lang="de"] .en {
    display: none !important;
}

[lang="en"] .de {
    display: none !important;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*.logo {*/
/*    font-size: 1.5rem;*/
/*    font-weight: 800;*/
/*    background: var(--gradient);*/
/*    -webkit-background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
/*}*/

/* Update the existing .logo style */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add new styles for the logo icon */
.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo icon styles */
.logo .node {
    fill: #1A2A44;
}

.logo .node-hidden {
    fill: #1C5D6B;
}

.logo .node-output {
    fill: #1A2A44;
}

.logo .connection {
    stroke: #1A2A44;
    stroke-width: 1;
    fill: none;
    opacity: 0.15;
}

.logo .connection-strong {
    stroke: #1A2A44;
    stroke-width: 1.5;
    fill: none;
    opacity: 0.25;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.language-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.language-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 42, 68, 0.3);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 2rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e7eb 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 42, 68, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 1s ease-out;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-text .subtitle {
    display: inline-block;
    background: rgba(26, 42, 68, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border: 1px solid rgba(26, 42, 68, 0.3);
    animation: slideInLeft 1s ease-out 0.3s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 42, 68, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 42, 68, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.qr-section img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: white;
    position: relative;
    z-index: 1;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.bio-column {
    /*padding-top: 0.5rem;*/
    padding-right: 2rem;
}

.bio-column p.de, .bio-column p.en {
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

.bio-title {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.bio-column p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.info-column {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.skills-section {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 42, 68, 0.2);
}

.publication-full-width {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #dee2e6;
}

.publication-full-width .subsection-title {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.publication-full-width .publication-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--secondary);
    max-width: 900px;
    margin: 0 auto;
}

.publication-full-width .publication-title {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.publication-full-width .publication-authors {
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.publication-full-width .publication-venue {
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

/* Projects Section - Kompaktes Grid mit Timeline-Elementen */
.projects {
    padding: 5rem 2rem;
    background: #f9fafb;
    position: relative;
    z-index: 1;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.project-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Client Info - Subtil unter dem Titel */
.client-info {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-style: italic;
    opacity: 0.7;
    line-height: 1.3;
}

/* Duration Wrapper mit visueller Linie */
.duration-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 10px;
}

.duration-text {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.duration-dates {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.duration-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.project-card:hover .duration-bar {
    height: 5px;
    box-shadow: 0 2px 8px rgba(26, 42, 68, 0.2);
}

.project-description {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;

    hyphens: auto;
    text-align: justify;
    word-break: break-word; /* This will break long words */
    overflow-wrap: break-word;
}

.project-tech {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-tag {
    background: rgba(26, 42, 68, 0.08);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 2rem;
    background: white;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 1.9rem;
    left: 1.0rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    font-family: Georgia, serif;
    /*transform: rotate(5deg);*/
}

.quote-mark.quote-close {
    display: inline;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 0;
    margin-left: -1.3rem; /* Negative margin to pull it closer */
    vertical-align: text-bottom;
    position: relative;
    top: 1.0rem;
    /*transform: rotate(15deg);*/
}

.testimonial-text {
    color: var(--text);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}


.testimonial-author {
    text-align: right;
}

.testimonial-author .company {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author .name {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: #f9fafb;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 42, 68, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(26, 42, 68, 0.1);
}

.contact-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon svg {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.contact-item h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-item p {
    color: var(--text-light);
}

.qr-code-container {
    text-align: center;
}


/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 6px solid var(--text-light);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: #f9fafb;
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .bio-column {
        padding-right: 0;
    }

    .bio-column p {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 2rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        gap: 6px; /* Reduce gap between icon and text */
    }

    .logo-icon {
        width: 24px; /* Smaller icon on mobile */
        height: 24px;
    }

    .logo-text {
        font-size: 1.25rem; /* Slightly smaller text */
    }

    .mobile-menu {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.125rem;
    }

    .client-info {
        font-size: 0.7rem;
    }

    .duration-text,
    .duration-dates {
        font-size: 0.7rem;
    }

    .project-description {
        font-size: 0.813rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    .duration-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .client-info {
        font-size: 0.813rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-column {
        padding: 1.5rem;
    }

    .skill-tag {
        font-size: 0.813rem;
        padding: 0.313rem 0.75rem;
    }

    /* Mehr Padding für den Nav-Container auf Mobile */
    .nav-container {
        padding: 1rem 1.5rem; /* Reduziert von 2rem */
        position: relative;
    }

    /* Language-Button mit flexibler Positionierung */
    .language-btn {
        margin-right: 3rem; /* Abstand zum Mobile-Menü */
        margin-left: auto; /* Automatisch nach rechts schieben */
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    /* Mobile-Menü bleibt ganz rechts */
    .mobile-menu {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Logo bleibt links */
    .logo {
        position: relative;
        z-index: 1;
    }
}

/* Für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 1rem;
    }

    .language-btn {
        margin-right: 2.5rem;
        padding: 0.35rem 0.7rem;
        font-size: 0.813rem;
    }

    .mobile-menu {
        right: 1rem;
    }
}