:root {
    --primary-blue: #1E40AF;
    --accent-cyan: #06B6D4;
    --text-dark: #1F2937;
    --text-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-light: #F3F4F6;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background: var(--bg-white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo a {
    color: inherit;
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.lang-switch span {
    color: #D1D5DB;
    user-select: none;
}

.lang-switch a {
    color: #9CA3AF;
    transition: var(--transition);
}

.lang-switch a.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.lang-switch a:hover:not(.active) {
    color: var(--text-dark);
}

/* HERO SECTION */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #4B5563;
    margin-bottom: 30px;
}

/* Das Bild passt sich der Höhe des Textes an */
.hero-image {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
}

.hero-image img {
    height: 280px;
    /* Diese Höhe entspricht etwa dem Textblock */
    width: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
}

/* COMPETENCES */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.comp-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    text-align: center;
}

.comp-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

/* PROJECTS - NEUES LAYOUT */
.projects {
    background: var(--bg-light);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 30px;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-logo-container {
    height: 140px;
    /* Platz für große Logos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.project-logo-container img {
    max-height: 120px;
    max-width: 80%;
    object-fit: contain;
    border-radius: 20px;
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    min-height: 3.6rem;
    /* Platz für 2 Zeilen */
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card p {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tag {
    background: #E0F2FE;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

/* CONTACT */
.contact {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 2rem;
    margin-top: 30px;
}

.contact-links a {
    color: var(--primary-blue);
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #E5E7EB;
    font-size: 0.85rem;
    color: #9CA3AF;
}

footer a {
    color: #9CA3AF;
}

footer a:hover {
    color: var(--primary-blue);
}

/* SUBPAGES (Impressum, Datenschutz) */
.subpage-header {
    padding: 150px 0 60px;
    background: var(--bg-light);
    text-align: center;
}

.subpage-content {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.subpage-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.subpage-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.subpage-content p, .subpage-content ul {
    margin-bottom: 20px;
}

.subpage-content ul, .legal-content ul {
    list-style: disc inside;
    margin-left: 20px;
}

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

    .hero-image img {
        height: 200px;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }
}

/* PROJECT SUBPAGES */
.project-detail-hero {
    padding: 120px 0 60px;
    background-color: var(--project-bg, var(--bg-light));
    text-align: center;
}

.project-detail-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.project-detail-banner {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .project-detail-banner {
        height: 200px;
    }
}

.project-detail-logo {
    width: 120px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: white;
    padding: 10px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.project-detail-hero h1 {
    font-size: 2.5rem;
    color: var(--project-primary, var(--primary-blue));
    margin-bottom: 15px;
}

.project-detail-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.project-detail-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #4B5563;
}

.screenshot-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--project-primary, var(--primary-blue)) #E5E7EB;
}

.screenshot-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshot-carousel::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 4px;
}

.screenshot-carousel::-webkit-scrollbar-thumb {
    background-color: var(--project-primary, var(--primary-blue));
    border-radius: 4px;
}

.screenshot-placeholder {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 250px;
    scroll-snap-align: center;
    aspect-ratio: 9/16;
    background-color: #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 1.2rem;
    font-weight: 500;
    border: 2px dashed #D1D5DB;
    text-align: center;
    padding: 20px;
}

.project-action {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
}

.store-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.store-badge {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.project-btn {
    background-color: var(--project-primary, var(--primary-blue));
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}
