@charset "UTF-8";
/* CSS Document */

/* =========================================
   1. GRUNDLAYOUT / STANDARD > 2200px
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px !important;
}

html,
body {
    overflow-x: clip;
}

body {
    background-color: #dddddd;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    position: relative;          /* Bezugspunkt für den Hintergrund-Layer */
	display: flex;               /* NEU */
    flex-direction: column;      /* NEU */
}

/* Hintergrundbild als eigener Layer */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 165vh;
    background-image: url("img/bg2200.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

main.content {
    padding-top: calc(165vh + 76px);
    padding-bottom: 115px;
}

.site-header {
    position: absolute;
    top: 124px;
    left: 108px;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo {
    height: 47px;
    width: auto;
    display: block;
}

/* =========================================
   1a. HERO-TEXTE (graphics-label + tagline)
========================================= */
.graphics-label {
    position: absolute;
    top: 25vh;
    right: -3vw;
    color: #ffffff;
    -webkit-text-stroke: 2px #000000;
    text-stroke: 2px #000000;
    font-size: clamp(5rem, 10vw, 14rem);
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: right;
    line-height: 0.85;
    z-index: 4;
}

.hero-tagline {
    position: absolute;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-align: left;
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
    z-index: 3;
    white-space: nowrap;        /* Zeilenumbrüche nur via <br> */
    max-width: 92vw;             /* Sicherheitslimit */
}

/* =========================================
   2. HEADLINE – WORKS / KONTAKT
========================================= */
h1.headline {
    font-weight: 800;
    color: #000;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    font-size: 9.72rem;
    margin-top: 0;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    caret-color: transparent !important;
}

h1.headline:focus,
h1.headline:focus-visible,
h1.headline:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    caret-color: transparent !important;
}

h1.headline-kontakt {
    margin-top: 76px;               /* Galerie → KONTAKT */
    /* erbt font-size & Styling von h1.headline */
}

/* =========================================
   3. GALLERY – GRID (im Dokumentfluss)
========================================= */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    width: calc(100% - 54px);      /* 2 × 54px Seitenabstand */
    margin: 76px auto 0 auto;      /* WORKS → Galerie */
    max-width: 100%;
}

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

.gallery-item {
    position: relative;
    display: block;
    margin: 0;
	aspect-ratio: 3 / 4;      /* euer Kachel-Format */
    overflow: hidden;
	background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;           /* ganzes Motiv, unverzerrt, zentriert */
	object-position: center middle;   /* ← links zentriert, oben angeschlagen */
    display: block;
    transition: filter 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: rgba(34, 34, 34, 0.4);
}

@media (hover: hover) and (pointer: fine) {
    .gallery-link:hover .gallery-item img {
        filter: brightness(0.4);
    }

    .gallery-link:hover .gallery-overlay {
        opacity: 1;
    }
}

/* =========================================
   3b. KONTAKT-DETAILS
========================================= */
.contact-details {
    text-align: center;
    font-size: 2.3rem;
    line-height: 1.4;
	margin-top: 7.5px;
	margin-bottom: 30px;
    color: #000;
}

.contact-details p {
    margin: 0;
}

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

.contact-details a:hover {
    opacity: 0.7;
}

/* =========================================
   3c. FOOTER
========================================= */
.site-footer {
    height: 161px;                  /* > 2200px: 151px ÷ 0.936 ≈ 161 */
}
#footer-mount {
    margin-top: auto;             /* NEU */
}

/* =========================================
   4. BREAKPOINT ≤ 1800px (Standard)
========================================= */
@media (max-width: 1800px) {
    body::before {
		background-image: url("img/bg1800.webp");
        height: 100vh;
    }
    .site-header {
        top: 115px;
        left: 100px;
    }
    .logo {
        height: 44px;
    }
    h1.headline {
        font-size: 9.03rem;
    }
    main.content {
        padding-top: calc(100vh + 80px);
        padding-bottom: 105px;
    }
    .gallery-container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
        width: calc(100% - 50px);
        margin-top: 80px;
    }
    h1.headline-kontakt {
        margin-top: 80px;
    }
	.contact-details {
        font-size: 2.15rem;
		line-height: 1.4;
		margin-top: 7px;
    }
	.site-footer { height: 151px; } 
}

/* =========================================
   5. BREAKPOINT ≤ 1500px
========================================= */
@media (max-width: 1500px) {
    body::before {
		background-image: url("img/bg1500.webp");
        height: 115vh;
    }
    .site-header {
        top: 107px;
        left: 93px;
    }
    .logo {
        height: 41px;
    }
    h1.headline {
        font-size: 8.46rem;
    }
    main.content {
        padding-top: calc(115vh + 73px);
        padding-bottom: 90px;
    }
    .gallery-container {
        width: calc(100% - 46.5px);
        margin-top: 73px;
    }
    h1.headline-kontakt {
        margin-top: 73px;
    }
	.contact-details {
        font-size: 2rem;
		line-height: 1.4;
		margin-top: 6.5px;
    }
	.site-footer { height: 141px; } 
}

/* =========================================
   6. BREAKPOINT ≤ 1024px (4→2 Spalten)
========================================= */
@media (max-width: 1024px) {
    body::before {
		background-image: url("img/bg1024.webp");
        height: 100vh;
    }
    .site-header {
        top: 90px;
        left: 79px;
    }
    .logo {
        height: 35px;
    }
    h1.headline {
        font-size: 7.10rem;
    }
    main.content {
        padding-top: calc(100vh + 54px);
        padding-bottom: 70px;
    }
    .gallery-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 39.5px);
        margin-top: 56px;
    }
    h1.headline-kontakt {
        margin-top: 56px;
    }
	.contact-details {
        font-size: 1.71rem;
		line-height: 1.4;
		margin-top: 5.5px;
    }
	.site-footer { height: 120px; } 
}

/* =========================================
   7. BREAKPOINT ≤ 800px
========================================= */
@media (max-width: 800px) {
    body::before {
        background-image: url("img/bg800.webp");
        height: 100vh;
    }
    .site-header {
        top: 80px;
        left: 70px;
    }
    .logo {
        height: 31px;
    }
    h1.headline {
        font-size: 6.35rem;
    }
    main.content {
        padding-top: calc(100vh + 47px);
        padding-bottom: 60px;
    }
    .gallery-container {
        width: calc(100% - 35px);
        margin-top: 48px;
    }
    h1.headline-kontakt {
        margin-top: 48px;
    }
    .hero-tagline {
        top: 19vh;
    }
	.contact-details {
        font-size: 1.52rem;
		line-height: 1.4;
		margin-top: 5px;
    }
	.site-footer { height: 106px; } 
}

/* =========================================
   8. BREAKPOINT ≤ 600px (2→1 Spalte)
========================================= */
@media (max-width: 600px) {
    body::before {
		background-image: url("img/bg600.webp");
        height: 100vh;
    }
    .site-header {
        top: 70px;
        left: 61px;
    }
    .logo {
        height: 27px;
    }
    h1.headline {
        font-size: 5.49rem;
    }
    main.content {
        padding-top: calc(100vh + 40px);
        padding-bottom: 50px;
    }
    .gallery-container {
		grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 30.5px);
        margin-top: 40px;
    }
    h1.headline-kontakt {
        margin-top: 40px;
    }
    .hero-tagline {
        top: 16.5vh;
    }
	.contact-details {
        font-size: 1.32rem;
		line-height: 1.4;
		margin-top: 4.5px;
    }
	.site-footer { height: 93px; } 
}

/* =========================================
   9. BREAKPOINT ≤ 400px
========================================= */
@media (max-width: 400px) {
    body::before {
		background-image: url("img/bg400.webp");
        height: 70vh;
    }
    .site-header {
        top: 59px;
        left: 51px;
    }
    .logo {
        height: 22px;
    }
	.graphics-label {
        top: 22vh;
        font-size: clamp(3.5rem, 10vw, 9.8rem);      /* -30% */
        -webkit-text-stroke: 1.5px #000000;
    }
    .hero-tagline {
        top: 14.5vh;
        font-size: clamp(0.85rem, 1.8vw, 1.4rem);    /* -30% */
    }
    h1.headline {
        font-size: 4.18rem;             /* -10%: war 4.64rem */
    }
    main.content {
        padding-top: calc(70vh + 28.8px);  /* -10%: war 32px */
        padding-bottom: 36px;               /* -10%: war 40px */
    }
    .gallery-container {
        width: calc(100% - 25.5px);
        margin-top: 28.8px;                /* -10%: war 32px */
        grid-template-columns: minmax(0, 1fr);
    }
    h1.headline-kontakt {
        margin-top: 28.8px;                /* -10%: war 32px */
    }
    .contact-details {
        font-size: 1.08rem;
        line-height: 1.4;
        margin-top: 3.5px;
    }
	.site-footer { height: 76px; } 
}