/* Richtung A „Stille": dunkel, editorial, das Bild trägt alles. */

:root {
    --grund: #1b1917;
    --tief: #100f0e;
    --text: #e8e4dd;
    --hell: #f2eee7;
    --leise: #8f8880;
    --gedaempft: #cfc8bf;
    --akzent: #c2a173;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Helvetica Neue", Helvetica, system-ui, sans-serif;

    --rand: clamp(20px, 6.6vw, 96px);
    --spalt: clamp(10px, 2vw, 28px);

    /* Zeilenhöhen des Rasters, skalieren mit dem Fenster */
    --h1: clamp(240px, 26vw, 470px);
    --h2: clamp(190px, 21vw, 390px);
    --h3: clamp(170px, 17vw, 310px);
    --h4: clamp(220px, 24vw, 430px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--akzent);
    text-decoration: none;
}

a:hover {
    color: #e0c79c;
}

.augenbraue {
    margin: 0;
    font-size: clamp(10px, 1.1vw, 11px);
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--akzent);
}

.leise {
    color: var(--leise);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
}

.hero-bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-schleier {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(27, 25, 23, .52) 0%,
            rgba(27, 25, 23, .10) 32%,
            rgba(27, 25, 23, .70) 80%,
            var(--grund) 100%);
}

.kopfleiste {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(18px, 3vw, 36px) var(--rand);
}

.monogramm {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .40em;
    text-transform: uppercase;
    color: var(--hell);
}

.kopfleiste ul {
    display: flex;
    gap: clamp(18px, 3vw, 40px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.kopfleiste a {
    /* 44px, damit der Daumen auf dem Telefon sicher trifft. */
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gedaempft);
}

.hero-text {
    position: absolute;
    left: var(--rand);
    bottom: clamp(76px, 12vh, 120px);
    max-width: 880px;
    /* Das Hero-Bild wechselt mit der Auswahl. Ein weicher Schatten hält die
       Schrift auch über einer hellen oder unruhigen Aufnahme lesbar. */
    text-shadow: 0 2px 28px rgba(0, 0, 0, .6);
}

.hero-text h1 {
    margin: clamp(16px, 2.4vw, 28px) 0 0;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(52px, 10.5vw, 118px);
    line-height: .93;
    letter-spacing: .006em;
    color: var(--hell);
}

.hero-hinweis {
    position: absolute;
    right: var(--rand);
    bottom: clamp(40px, 9vh, 100px);
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gedaempft);
}

@media (max-width: 700px) {
    .hero-hinweis {
        display: none;
    }
}

/* --- Raster -------------------------------------------------------------- */

.inhalt {
    padding: clamp(70px, 13vh, 130px) var(--rand) 0;
}

.abschnittskopf {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(30px, 5vw, 58px);
}

.zaehlung {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--leise);
}

.raster {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--spalt);
}

.kachel {
    position: relative;
    margin: 0;
    overflow: hidden;
    cursor: zoom-in;
    background-size: cover;
    background-position: center;
}

.kachel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .7s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.kachel img.da {
    opacity: 1;
}

.kachel:hover img.da {
    transform: scale(1.035);
}

/* Zwei Spalten im mittleren Bereich, eine auf dem Telefon. Das Muster mit den
   zwölf Spalten trägt bei schmalen Fenstern nicht mehr. */
@media (max-width: 1200px) {
    .raster {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kachel {
        grid-column: span 1 !important;
        height: clamp(200px, 34vw, 340px) !important;
    }
}

@media (max-width: 700px) {
    .raster {
        grid-template-columns: minmax(0, 1fr);
    }

    .kachel {
        height: clamp(240px, 62vw, 400px) !important;
    }
}

/* --- Fuß ----------------------------------------------------------------- */

.fuss {
    padding: clamp(70px, 14vh, 140px) var(--rand) clamp(40px, 6vh, 80px);
}

.fuss-linie {
    height: 1px;
    background: rgba(232, 228, 221, .14);
    margin-bottom: clamp(24px, 4vw, 46px);
}

.fuss-inhalt {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.fuss-name {
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 27px);
}

.fuss-inhalt ul {
    display: flex;
    gap: clamp(18px, 3vw, 38px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.fuss-inhalt a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--leise);
}

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--tief);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: auf .28s ease;
}

.lightbox[hidden] {
    display: none;
}

@keyframes auf {
    from {
        opacity: 0;
    }
}

.lb-buehne {
    margin: 0;
    max-width: calc(100vw - 2 * var(--rand));
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
}

.lb-buehne picture {
    display: block;
}

.lb-buehne img {
    max-width: 100%;
    max-height: 74svh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}

.lb-unterschrift {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

#lb-ort {
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 26px);
    color: var(--hell);
}

#lb-jahr {
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--leise);
}

.lb-schliessen,
.lb-pfeil {
    position: absolute;
    background: none;
    border: 0;
    color: var(--gedaempft);
    cursor: pointer;
    padding: 14px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-schliessen:hover,
.lb-pfeil:hover {
    color: var(--hell);
}

.lb-schliessen {
    top: 22px;
    right: 22px;
}

.lb-zaehler {
    position: absolute;
    top: 34px;
    left: var(--rand);
    display: flex;
    gap: 10px;
    font-size: 11px;
    letter-spacing: .28em;
    color: var(--leise);
}

.lb-zaehler span:first-child {
    color: var(--text);
}

.lb-zaehler i {
    font-style: normal;
    color: #55504a;
}

.lb-zurueck {
    left: 12px;
}

.lb-vor {
    right: 12px;
}

@media (max-width: 700px) {

    .lb-pfeil {
        display: none;
    }

    .lb-buehne {
        max-width: 100vw;
        padding: 0 16px;
    }
}

/* --- Noch nichts veröffentlicht ------------------------------------------ */

.noch-nichts {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--rand);
}

.noch-nichts h1 {
    margin: 24px 0 12px;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(52px, 10vw, 106px);
    line-height: .95;
    color: var(--hell);
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .kachel img,
    .lightbox {
        transition: none;
        animation: none;
    }

    .kachel:hover img.da {
        transform: none;
    }
}
