/* =======================================
   RESET & BASE
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: hsl(217, 91%, 8%);
    color: hsl(0, 0%, 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =======================================
   PAGE STRUCTURE
======================================= */
.page-container {
    min-height: 100vh;
    background: url('../assets/starry-background-new.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.overlay-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,
        hsla(217, 91%, 8%, 0.8) 0%,
        hsla(217, 91%, 8%, 0.9) 50%,
        hsla(217, 91%, 8%, 0.8) 100%);
}

.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

/* =======================================
   LOGO
======================================= */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-in;
}

.logo {
    height: clamp(6rem, 8vw, 8rem); /* vorher min 4rem → jetzt min 6rem */
}

/* =======================================
   PROJECT GRID
======================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.project-card-wrapper {
    animation: fadeIn 0.6s ease-in;
}

.project-card-wrapper:nth-child(1) { animation-delay: 0ms; }
.project-card-wrapper:nth-child(2) { animation-delay: 100ms; }
.project-card-wrapper:nth-child(3) { animation-delay: 200ms; }
.project-card-wrapper:nth-child(4) { animation-delay: 300ms; }

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    will-change: transform;
}

.project-card:hover {
    transform: translateY(-8px);
}

/* =======================================
   PROJECT CONTENT
======================================= */
.logo-box {
    background: hsla(0, 0%, 100%, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.3s ease;
}

.project-card:hover .logo-box {
    background: hsla(0, 0%, 100%, 0.1);
    border-color: hsla(0, 0%, 100%, 0.2);
}

.project-logo {
    width: 100%;
    height: auto;
}

.poster-box {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    background: hsl(217, 80%, 12%);
    transition: all 0.3s ease;
}

.project-card:hover .poster-box {
    border-color: hsla(0, 0%, 100%, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.project-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
        hsla(217, 91%, 8%, 0.95) 0%,
        hsla(217, 91%, 8%, 0.8) 50%,
        transparent 100%);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top,
        hsla(217, 91%, 8%, 1) 0%,
        hsla(217, 91%, 8%, 0.9) 60%,
        transparent 100%);
}

.project-info {
    text-align: left;
}

.project-title {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: hsl(0, 0%, 100%);
}

.project-location {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: hsla(0, 0%, 100%, 0.9);
}

.project-dates {
    font-size: clamp(1rem, 1.3vw, 1.1rem); /* größer */
    font-weight: 500;
    color: hsla(0, 0%, 100%, 0.9); /* heller, besser lesbar */
    background: hsla(0, 0%, 100%, 0.1); /* feiner, halbtransparenter Hintergrund */
    padding: 0.35rem 0.75rem;
    border-radius: 0.4rem;
    display: inline-block; /* sorgt für schöne "Badge"-Optik */
    margin-top: 0.4rem;
}

/* =======================================
   FOOTER
======================================= */
.footer {
    background: hsla(217, 80%, 12%, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid hsla(217, 40%, 25%, 1);
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    color: hsl(210, 20%, 70%);
    text-align: center;
    flex-wrap: wrap;
}

.footer-link {
    color: hsl(210, 20%, 70%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: hsl(0, 0%, 100%);
}

/* =======================================
   IMPRESSUM
======================================= */
.impressum-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

.impressum-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-in;
}

.impressum-logo {
    height: clamp(5rem, 10vw, 7rem); /* vorher min 4rem → jetzt min 5rem */
}

.back-button-container {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: hsla(0, 0%, 100%, 0.1);
    color: hsl(0, 0%, 100%);
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: hsla(0, 0%, 100%, 0.2);
    transform: translateX(-4px);
}

.impressum-card {
    background: hsla(0, 0%, 100%, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    animation: fadeIn 0.6s ease-in 0.2s backwards;
}

.impressum-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: hsl(0, 0%, 100%);
}

.impressum-section {
    margin-bottom: 2rem;
}

.impressum-section h2 {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(0, 0%, 100%);
}

.impressum-section p {
    line-height: 1.6;
    color: hsla(0, 0%, 100%, 0.8);
}

.impressum-link {
    color: hsl(210, 80%, 50%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-link:hover {
    color: hsl(210, 80%, 60%);
    text-decoration: underline;
}

/* =======================================
   ANIMATIONS
======================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================================
   RESPONSIVE DESIGN
======================================= */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .logo-container {
        margin-bottom: 3rem;
    }

    .projects-grid {
        gap: 1.25rem;
    }

    .impressum-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.2rem;
    }

    .impressum-title {
        font-size: 1.8rem;
    }

    .project-overlay {
        padding: 1rem;
    }

    .logo-box {
        padding: 1rem;
        min-height: 90px;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}
