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

body {
    background-color: #222;
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    color: #ffffff;
}

/* ========================================
   STARTSEITE (body.home)
   ======================================== */

body.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem 0;
}

body.home .page-header {
    padding: 0;
    margin: 0;
    text-align: center;
    width: auto;
}

body.home .page-title {
    font-size: 15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    text-align: center;
}

body.home .start-content {
    padding: 0;
    margin: 0;
    text-align: center;
    width: auto;
    margin-top: 0.5rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   PROJEKT-SEITEN (Login) (body.pass-page)
   ======================================== */

body.pass-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.pass-container {
    width: 100%;
    max-width: 360px;
    padding: 2rem;
    text-align: center;
}

.pass-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.pass-input {
    width: 95%;
    padding: 0.8rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.pass-input:focus {
    border-color: #ffffff;
}

.pass-input::placeholder {
    color: #666;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.8;
}

.btn-locked::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* ========================================
   HEADER (allgemein)
   ======================================== */

.page-header {
    padding: 3.8rem 5rem 3rem;
    text-align: left;
}

body:not(.project-detail):not(.home) .page-header {
    background-image: url('img/hao-wang-pVq6YhmDPtk-unsplash.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #333;
    padding: 3.8rem 5rem 26rem;
    margin-bottom: 2rem;
}

body.overview .page-header {
    background-color: #333;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-left: 0;
    margin-top: -0.35rem;
}

.page-title .slash {
    margin-left: -0.2rem;
    margin-right: -0.5rem;
    font-style: italic;
    font-weight: 400;
    opacity: 1;
    color: #aaa;
}

.page-title .subtitle {
    font-style: italic;
    font-weight: 400;
    opacity: 1;
    color: #aaa;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 100%;
    margin: 0;
    font-style: italic;
    color: #aaa;
}

/* ========================================
   PROJEKT-DETAIL-SEITE
   ======================================== */

.project-breadcrumb {
    font-size: 2.1rem;
    font-weight: 600;
    margin-bottom: 1.7rem;
    margin-top: 0;
    display: inline-block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-breadcrumb .slash {
    margin-left: -0.1rem;
    margin-right: -0.3rem;
    font-style: italic;
    font-weight: 400;
    opacity: 1;
    color: #aaa;
}

.project-breadcrumb .subtitle {
    font-weight: 400;
    font-size: 1em;
    opacity: 1;
    color: #aaa;
    font-style: italic;
}

.breadcrumb-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: inline;
}

.breadcrumb-link:hover {
    opacity: 0.8;
}

.project-name {
    font-size: 3.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.project-subtitle {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 400;
    font-style: normal;
    color: #FFFFFF;
    opacity: 1;
    max-width: 88%;
    margin-left: 0;
}

.project-subtitle p {
    margin: 0;
}

.project-description {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 1;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: 88%;
    margin-left: 0;
    font-style: italic;
}

/* ========================================
   STATUS-HINWEIS (im Aufbau)
   ======================================== */

.overview-status {
    padding: 0 5rem;
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 400;
    font-style: normal;
    color: #aaa;
    opacity: 1;
}

.overview-status p {
    margin: 0;
}

/* ========================================
   GALERIE (GRID)
   ======================================== */

.gallery-container,
body.project-detail .gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    padding: 0 3rem 4rem 3rem;
    max-width: 100%;
    width: 100%;
}

.gallery-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-link:hover .gallery-item:not(.no-cover) img {
    filter: brightness(0.4) !important;
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 85.5%;
    transform: translate(-50%, -50%);
    background: rgba(34, 34, 34, 0.7);
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-link:hover .gallery-item:not(.no-cover) .gallery-overlay {
    opacity: 1;
}

.gallery-item.no-cover .gallery-overlay {
    opacity: 1;
}

.overlay-title {
    font-size: 1.5rem;
    font-style: normal;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: #fff;
    text-align: left;
    line-height: 1;
    position: relative;
    top: 60%;
    width: 100%;
    margin-bottom: 0;
}

.overlay-info-inline {
    display: block;
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 0.05em;
    color: #aaa;
    margin-top: 0.5rem;
    line-height: 1.25;
}

/* ========================================
   ÜBERSICHTS-TEXT
   ======================================== */

.overview-intro {
    padding: 0 5rem;
    margin-top: 4.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.45;
    font-weight: 400;
    font-style: normal;
    color: #FFFFFF;
    opacity: 1;
    max-width: 95%;
    margin-left: 0;
}

.overview-intro p {
    margin: 0;
}

/* ========================================
   TAGS / SERVICES
   ======================================== */

.overview-tags {
    padding: 0 5rem;
    margin-bottom: 4rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 400;
    font-style: italic;
    color: #aaa;
    opacity: 1;
    max-width: 88%;
    margin-left: 0;
}

.overview-tags p {
    margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 5rem 3.5rem 5rem;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.4;
    font-family: inherit;
    opacity: 1;
    width: 100%;
    max-width: 100%;
    margin-top: 3rem;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.footer-slogan {
    flex: 0 0 auto;
    text-align: left;
    min-width: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    font-style: italic;
    color: #fff;
    font-weight: 400;
    margin-bottom: 0;
}

.footer-slogan p {
    margin: 0;
}

.footer-contact {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.footer-contact p {
    margin: 0.1rem 0;
}

.footer-contact strong {
    font-weight: 400;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

.footer-contact a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.footer-contact p:last-child {
    margin-bottom: 0;
}

.footer-legal {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #aaa;
    opacity: 1;
    border-top: 1px solid #333;
    padding-top: 1.3rem;
    width: 100%;
    text-align: center;
}

.footer-legal p {
    max-width: 66%;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    margin-top: 0rem;
    line-height: 1.4;
    font-weight: 400;
    font-style: normal;
    opacity: 1;
    border-top: none;
    padding-top: 0;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

/* ========================================
   RESPONSIVE: TABLET (≤ 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .gallery-container,
    body.project-detail .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer {
        padding: 3.5rem 5rem 3.5rem 5rem;
    }

    .footer-contact,
    .footer-legal {
        width: 100%;
    }

    .footer-legal {
        font-size: 0.75rem;
    }

    .footer-legal p {
        max-width: none;
    }
}

/* ========================================
   RESPONSIVE: KLEINES TABLET (≤ 700px)
   ======================================== */

@media (max-width: 700px) {
    .gallery-container,
    body.project-detail .gallery-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 4rem 1.5rem;
    }

    .footer-layout {
        flex-direction: column;
        gap: 1.8rem;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
    }

    .footer-slogan {
        order: 1;
        text-align: center;
        width: 100%;
        margin-left: 0;
    }

    .footer-contact {
        order: 2;
        text-align: center;
        width: 100%;
        margin-left: 0;
    }

    .site-footer {
        padding: 3rem 2.5rem 3rem 2.5rem !important;
        font-size: 0.84rem;
        line-height: 1.5;
        gap: 0.5rem;
    }
}

/* ========================================
   RESPONSIVE: MOBIL (≤ 600px)
   ======================================== */

@media (max-width: 600px) {

    /* --- HOME-SEITE --- */
    body.home {
    justify-content: center;    /* flex-start → center: Zentriert vertikal */
    padding-top: 0;             /* 2rem → 0 */
    min-height: 100vh;          /* auto → 100vh: Nimmt volle Höhe */
}

    body.home .page-header {
        padding: 0;
        margin: 0;
        text-align: center;
    }

    body.home .page-title {
        font-size: 10rem;
        margin-bottom: 1.5rem !important;
        line-height: 1;
        text-align: center;
    }

    body.home .start-content {
        margin-top: 0 !important;
        margin-bottom: 2rem;
        text-align: center;
    }

    body.home .button-group {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    body.home .btn {
        width: auto;
        min-width: 124px;
        justify-content: center;
        padding: 0.35rem 0.8rem;
    }

    /* --- ANDERE SEITEN --- */

    body:not(.project-detail):not(.home) .page-header {
        padding: 2.7rem 2.5rem 20rem !important;
    }

    body.project-detail .page-header {
        padding: 2.7rem 2.5rem 2.3rem !important;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .overview-intro {
        padding: 0 2.5rem;
        font-size: 1.26rem;
        line-height: 1.4;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
        max-width: 95%;
    }

    .overview-tags {
        padding: 0 2.5rem;
        margin-bottom: 2.2rem;
        font-size: 0.84rem;
        line-height: 1.5;
        font-style: italic;
        color: #aaa;
        max-width: 95%;
    }

    .overview-status {
        padding: 0 2.5rem;
        margin-bottom: 0.7rem;
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .gallery-container,
    body.project-detail .gallery-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 4rem 1.5rem;
    }

    .project-breadcrumb {
        font-size: 1.47rem;
        margin-bottom: 1.19rem;
        margin-top: 0;
    }

    .project-breadcrumb .slash,
    .project-breadcrumb .subtitle {
        font-style: italic;
    }

    .project-name {
        font-size: 2.66rem;
        margin-bottom: 0.84rem;
    }

    .project-subtitle {
        margin-bottom: 0.84rem;
        font-size: 0.84rem;
        line-height: 1.5;
        font-style: normal;
        color: #FFFFFF;
        max-width: 95%;
    }

    .project-description {
        font-size: 0.84rem;
        max-width: 95%;
        margin-bottom: 1.4rem;
        line-height: 1.5;
        font-style: italic;
    }

    .site-footer {
        padding: 3rem 2.5rem 3rem 2.5rem !important;
        font-size: 1rem;
        line-height: 1.3;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-layout {
        flex-direction: column;
        align-items: center;
    }

    .footer-slogan {
        order: 1;
        text-align: center;
        font-size: 1rem;
        line-height: 1.3;
    }

    .footer-contact {
        order: 2;
        text-align: center;
        font-size: 1rem;
        line-height: 1.3;
        margin-top: 0.7rem;
    }

    .footer-legal {
        font-size: 0.7rem;
        line-height: 1.5;
        margin-top: 2rem;
        text-align: center;
    }

    .footer-legal p {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-copyright {
        font-size: 0.7rem;
        line-height: 1.5;
        margin-top: 2rem;
    }
}