/* ============================================
   DCA | Donnerhack Czempiel Architekten
   Global Stylesheet
   ============================================ */

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

html {
    font-size: 62.5%;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover { opacity: 1; }

img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

/* ============================================
   SITE HEADER — zentriert oben
   ============================================ */

#site-header {
    text-align: center;
    padding: 1.5rem 3rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
}

#site-header h1,
#site-header .subtitle {
    color: #000;
}

#site-header.scrolled {
    background: transparent;
}

#site-header.scrolled h1,
#site-header.scrolled .subtitle {
    color: #000;
}

#site-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 0.3rem;
}

#site-header .subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
}

/* ============================================
   BOTTOM NAV — fixiert unten, schwarz
   ============================================ */

#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000;
    padding: 1.4rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

#bottom-nav a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 1.8rem;
}

#bottom-nav a:hover {
    opacity: 0.6;
}

#bottom-nav .sep {
    color: rgba(255,255,255,0.5);
    font-size: 1.3rem;
}

/* ============================================
   MAIN CONTENT — Abstand von Bottom-Nav
   ============================================ */

main {
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================
   STARTSEITE — Hero Bild
   ============================================ */

.hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
   STARTSEITE — Masonry Grid (4 Spalten)
   ============================================ */

.projects-grid {
    columns: 4;
    column-gap: 2rem;
    padding: 0 3rem 3rem;
}

.projects-grid .thumb {
    display: block;
    break-inside: avoid;
    margin-bottom: 3rem;
    text-decoration: none;
    color: #000;
}

.projects-grid .thumb img {
    width: 100%;
    height: auto;
    display: block;
    outline: 1px solid rgba(0,0,0,0.1);
    outline-offset: -1px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.projects-grid .thumb:hover img {
    filter: grayscale(0%);
}

/* Placeholder wenn kein Bild vorhanden */
.projects-grid .thumb .thumb-placeholder {
    width: 100%;
    background: #e8e8e8;
    display: block;
}

.projects-grid .thumb .title {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(0,0,0,0.85);
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

/* ============================================
   PROJEKTSEITE
   ============================================ */

.project-page {
    padding: 9rem 3rem 0;
    text-align: center;
}

.project-page .project-image-wrap {
    max-width: 55%;
    margin: 0 auto 3rem;
}

.project-page .project-image-wrap img {
    width: 100%;
    height: auto;
    outline: 1px solid rgba(0,0,0,0.08);
    outline-offset: -1px;
}

.project-page .image-gallery {
    max-width: 75%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.project-page .image-gallery img {
    width: 100%;
    height: auto;
    outline: 1px solid rgba(0,0,0,0.08);
    outline-offset: -1px;
}

.project-info {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
    padding-bottom: 10rem;
}

.project-info h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: #000;
}

.project-info .project-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2.5rem;
}

.project-info small {
    display: block;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 0.3rem;
}

.project-info small a {
    color: #000;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

.project-info .block {
    margin-top: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .projects-grid { columns: 3; }
    .project-page .image-gallery,
    .project-page .project-image-wrap { max-width: 70%; }
}

@media (max-width: 750px) {
    .projects-grid { columns: 2; padding: 0 2rem 6rem; }
    .project-page .image-gallery,
    .project-page .project-image-wrap { max-width: 95%; }
}

@media (max-width: 600px) {
    /* Header */
    #site-header {
        padding: 1.8rem 1.5rem 1rem;
    }
    #site-header h1 {
        font-size: 2.2rem;
        letter-spacing: 0.08em;
    }
    #site-header .subtitle {
        font-size: 1.3rem;
    }

    /* Hero */
    .hero {
        height: 50vw;
        min-height: 180px;
    }

    /* Grid — 2 Spalten auf Mobile */
    .projects-grid {
        columns: 2;
        column-gap: 1rem;
        padding: 1rem 1.2rem 7rem;
    }
    .projects-grid .thumb {
        margin-bottom: 1.5rem;
    }
    .projects-grid .thumb .title {
        font-size: 1.3rem;
        margin-top: 0.6rem;
    }

    /* Projektseite */
    .project-page {
        padding: 0 1.5rem;
    }
    .project-page .image-gallery {
        max-width: 100%;
    }
    .project-info h2 {
        font-size: 1.4rem;
    }
    .project-info .project-subtitle {
        font-size: 1.0rem;
    }
    .project-info small {
        font-size: 1.0rem;
    }

    /* Bottom Nav */
    #bottom-nav {
        padding: 1.2rem 0.5rem;
    }
    #bottom-nav a {
        font-size: 1.3rem;
        padding: 0 0.7rem;
        letter-spacing: 0.05em;
    }
    #bottom-nav .sep {
        font-size: 1.3rem;
    }
}

/* ============================================
   BILDSCHUTZ — Overlay auf Grid-Bilder
   ============================================ */

.projects-grid .thumb {
    position: relative;
}

.projects-grid .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
