/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;
    color: #2E2E2E;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0);
}

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 10;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

/* Logo */
.logo {
    background: linear-gradient(135deg, #0A2342, #4A148C);
    color: white;
    border-radius: 12px;
    padding: 0.4rem 1.1rem;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
    margin-bottom: 0.5rem;
}

/* Nav */
nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    background: linear-gradient(135deg, #0A2342, #4A148C);
    color: white;
    border-radius: 12px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    user-select: none;
}

#request{
    padding: 0.4rem 3.3rem;
}

nav a:hover,
nav a:focus-visible {
    background: #FF9800;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.3);
    outline: none;
}

/* --- MAIN CONTENT --- */
main {
    flex-grow: 1;
    padding: 2rem 1rem 4rem 1rem;
    max-width: 100%;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Intro section */
.intro {
    text-align: center;
}

.intro h1 {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
    user-select: text;
    color: #0A2342;
}

.intro p.subtitle {
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    user-select: text;
    color: #4A148C;
}

.intro p.location {
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: #444;
}

.intro p.location .pin {
    color: #FF9800;
    font-weight: 700;
    font-size: 1.1rem;
    user-select: none;
    line-height: 1;
}

/* Buttons under intro */
.intro-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(135deg, #0A2342, #4A148C);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.btn:hover,
.btn:focus-visible {
    background: #FF9800;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.3);
    outline: none;
}

/* Circle navigation dots */
.slider-dots {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #4A148C;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover,
.dot:focus-visible {
    background-color: #FF9800;
    outline: none;
    transform: scale(1.1);
}

/* Projects grid */
.projects-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.project-card {
    border-radius: 0.875rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    box-sizing: border-box;
    flex: 0 0 30%;
}

@media (max-width: 768px) {
    .project-card {
        width: 100%; /* 1 Karte pro View */
    }
}

@media (max-width: 480px) {
    .project-card {
        width: 90%; /* kleiner machen für Mini-Screens */
        margin: 0 auto;
    }
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.project-content {
    padding: 0.9rem 1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.project-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0A2342;
}

.project-card:hover .project-description {
    display: block;
}

.project-card.expanded .project-description {
    display: block;
}

.project-description {
    display: none;
    font-weight: 300;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.4rem;
}

.project-tag {
    align-self: flex-start;
    background: linear-gradient(135deg, #FF9800, #ffb84d);
    border-radius: 24px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

/* Empty boxes row */
.empty-boxes-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
    max-width: 960px;
    margin: 3rem 0;
}

.empty-box {
    background-color: #fff;
    border: 2px solid #4A148C;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}

/* Review section */
.reviews {
    max-width: 960px;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 4rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #c2185b;
    background: #fff0f3;
    box-shadow: inset 4px 4px 0 #f48fb1;
    text-align: center;
}

/* Footer */
footer {
    background: #0A2342;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
}

footer a {
    color: #FF9800;
    font-weight: 600;
    transition: color 0.3s ease, box-shadow 0.3s ease;
}

footer a:hover,
footer a:focus-visible {
    color: #ffd27f;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    outline: none;
}

.social-links {
    margin: 10px 0;
}

/* ToTop Button */
#toTop {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: linear-gradient(135deg, #0A2342, #4A148C);
    color: #fff;
    border: none;
    padding: 14px 18px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
}

#toTop:hover {
    background: #FF9800;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.35);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 0.8rem 1rem;
    }

    .intro h1 {
        font-size: 2.1rem;
    }

    .intro p.subtitle {
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 0.6rem 0.8rem;
    }

    .logo {
        font-size: 1rem;
    }

    nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    .intro h1 {
        font-size: 1.8rem;
    }

    .intro p.subtitle {
        font-size: 1rem;
    }

    .reviews {
        font-size: 1rem;
    }
}
