/*  ===============================
    Body
=================================*/

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===============================
   HERO
================================ */

.hero {
    position: relative;
    height: 65vh;
    min-height: 520px;
    overflow: hidden;
}

.hero-wrapper {
    position: relative;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtiles dunkles Overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.65) 100%
    );
}

/* Hero Text */
.hero-caption {
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    padding: 0 2rem;
    color: #fff;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-caption strong {
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    font-weight: 500;
}

.hero-caption br + * {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===============================
   Navigation
================================ */

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar {
    padding-top: 0.5rem;
    padding-right: 0;
    padding-bottom: 0.5rem;
    padding-left: 0;
}

.nav-link {
    padding-left: 0;
    padding-right: 0;
}
/* ===============================
   Footer
================================ */

.site-footer {

    margin-top: 180px;
    padding: 40px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;

}

/* Layout */

.footer-inner {

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

}

.footer-copyright {

    color: #666;

}

/* Links */

.footer-links {

    display: inline-block;

}

.footer-links a {

    text-decoration: none;
    color: #666;

}

.footer-links a:not(:last-child)::after {

    content: "|";
    margin: 0  14px;

}

.footer-links a:hover {

    text-decoration: underline;

}

/* ===============================
   Projects / Works Gallery
================================ */

.projects-grid,
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* einzelne Werke */

.project-item,
.work-item {
    overflow: hidden;
}

.work-item {
    max-width: 420px;
}

/* Bilder */

.project-item img,
.work-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .35s ease;
}

.work-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Hover Effekt */

.project-item:hover img,
.work-item:hover img {
    transform: scale(1.05);
}

/* Portfolio Grid Links */

.work-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-item:hover {
    text-decoration: none;
    color: inherit;
}

.work-item:visited {
    color: inherit;
}

/* Titel / Metadaten */

.project-item h3 {
    margin-top: 1rem;
    font-weight: 400;
    font-size: 1rem;
}

.meta {
    margin-top: 0.6rem;
    margin-bottom: 3rem;    /* größerer Abstand */
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: #333;
}

.project-header {
    margin-top: 60px;    /* Abstand zum Header */
    margin-bottom: 3rem;
}

.project-header h1 {

    font-size: 2.0rem;   /* entspricht ungefähr h2 */
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;

}

.project-header p {
    max-width: 520px;
    color: #444;
}

/* ####################
      Artwork Detail  
   #################### */

.artwork-image img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.artwork-meta {
    padding-left: 2rem;
}

.artwork-meta h1 {
    margin-bottom: 1.5rem;
}

.artwork-meta p {
    margin-bottom: 1rem;
}

.artwork-navigation {
    display: flex;
    gap: 2rem;    /* Abstand zwischen Links */
    align-items: center;
    
    margin-top: 3rem;

    font-size: 0.85rem;
    letter-spacing: 0.05em;

    color: #666;
}

.nav-position {

    min-width: 60px;
    text-align: center;

}

.nav-prev a,
.nav-next a {

    text-decoration: none;
    color: #666;

}

.nav-prev a:hover,
.nav-next a:hover {

    text-decoration: underline;

}

.artwork-navigation a {
    text-decoration: none;
    color: #666;
}

.artwork-navigation a:hover {
    text-decoration: underline;
}

/* Zurück-Link */

.back-link {
    display: block;
    margin-top: 1.2rem;

    text-decoration: none;
    font-size: 0.85rem;
    color: #666;
}

.back-link a {
    text-decoration: none;
    font-size: 0.85rem;
    color: #666;

}

.back-link:hover {
    text-decoration: underline;
}

/* ===============================
   Projekt Blöcke
================================ */

.project-title {

    font-weight: 400;
    letter-spacing: 0.02em;

    }

.project-years {

    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
    }

.project-teaser {

    max-width: 520px;
    margin-bottom: 0.4rem;

    }

.project-more {

    margin-top: 0.6rem;    /* näher an den Teaser */
    margin-bottom: 2rem;    /* Abstand zum Grid */

    }

.project-more a {

    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #666;

    }

.project-more a:hover {

    text-decoration: underline;

}

.project-block {

    margin-top: 120px;
    margin-bottom: 40px;
    padding-top: 80px;
    border-top: 1px solid #eee;

    }

.project-block:first-of-type {

    margin-top: 60px;
    padding-top: 0;
    border-top: none;

    }
/* ==================
    Kontakt Seite
   ================== */

.page-20 {

    max-width: 420px;
    margin-top: 60px;
    line-height: 1.7;

}

.page-20 a,
.page-20 a:visited {

    color: #666;
    text-decoration: none;
}

.page-20 a:hover {

    text-decoration: underline;
}

.page-20 p {

    margin-bottom: 1.6rem;
    color: #666;
}

/* ===============================
   Responsive Anpassungen
================================ */

@media (max-width: 900px) {

    .projects-grid,
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

}

@media (max-width: 700px) {

    .footer-inner {
        flex-direction: column;
        gap: 10px;
    }
 
    .footer-copyright {
        position: static;
        margin-top: 10px;
    }

}

@media (max-width: 600px) {

    .projects-grid,
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .work-item {
        max-width: 100%;
    }
}
