/* ==========================================================================
   KESCHANZ — Kunstduo Ravensburg
   Design-System: Papier, Tusche, Stempelrot
   ========================================================================== */

:root {
    --papier:       #f4efe6;
    --papier-tief:  #ece5d8;
    --tusche:       #1b1712;
    --grau:         #6e6659;
    --linie:        #d6ccbb;
    --stempelrot:   #b3261e;
    --stempelrot-h: #8f1d17;

    --schrift-display: "Fraunces", "Georgia", serif;
    --schrift-text:    "Archivo", "Helvetica Neue", sans-serif;

    --breite: 1140px;
    --raster: 1.5rem;
}

/* --- Basis ------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--papier);
    background-image: radial-gradient(rgba(27, 23, 18, 0.035) 1px, transparent 0);
    background-size: 5px 5px;
    color: var(--tusche);
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--schrift-display);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 1rem;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p {
    margin: 0 0 1.1em;
    max-width: 64ch;
}

a {
    color: inherit;
    text-decoration-color: var(--stempelrot);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--stempelrot);
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--stempelrot);
    color: var(--papier);
}

.inhalt {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* --- Etikett (Archivnummern, Kicker) ------------------------------------ */

.etikett {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grau);
}

.etikett--rot {
    color: var(--stempelrot);
}

.archivnr {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--grau);
    border: 1px solid var(--linie);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    white-space: nowrap;
}

/* --- Kopf / Navigation --------------------------------------------------- */

.kopf {
    border-bottom: 1px solid var(--linie);
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--papier) 92%, transparent);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.kopf__zeile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
    max-width: var(--breite);
    margin: 0 auto;
}

.wortmarke {
    font-family: var(--schrift-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-decoration: none;
}

.wortmarke em {
    font-style: normal;
    color: var(--stempelrot);
}

.navigation {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.2rem);
    flex-wrap: wrap;
}

.navigation a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
    border-bottom-color: var(--stempelrot);
    color: var(--tusche);
}

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

.hero {
    padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    max-width: 17ch;
}

.hero h1 .rot {
    color: var(--stempelrot);
}

.hero__unterzeile {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--grau);
    max-width: 46ch;
}

.hero__stempel {
    position: absolute;
    right: clamp(-3rem, 2vw, 4rem);
    top: clamp(2rem, 6vw, 5rem);
    width: clamp(150px, 22vw, 250px);
    transform: rotate(8deg);
    opacity: 0.9;
    pointer-events: none;
}

@media (max-width: 720px) {
    .hero__stempel {
        position: static;
        transform: rotate(-4deg);
        margin: 2rem 0 0;
        width: 160px;
    }
}

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

.werkliste {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2rem);
    margin: 2.5rem 0 4rem;
}

.werk {
    grid-column: span 6;
}

.werk:nth-child(4n + 1) { grid-column: 1 / span 6; }
.werk:nth-child(4n + 2) { grid-column: 8 / span 5; margin-top: clamp(1.5rem, 5vw, 4.5rem); }
.werk:nth-child(4n + 3) { grid-column: 2 / span 5; }
.werk:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: clamp(1rem, 3vw, 3rem); }

@media (max-width: 860px) {
    .werk,
    .werk:nth-child(n) {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

.werk__bild {
    margin: 0 0 0.9rem;
    position: relative;
    background:
        repeating-linear-gradient(45deg,
            transparent 0 9px,
            rgba(27, 23, 18, 0.045) 9px 10px),
        var(--papier-tief);
    border: 1px solid var(--linie);
    overflow: hidden;
}

.werk__bild--hoch    { aspect-ratio: 4 / 5; }
.werk__bild--quer    { aspect-ratio: 3 / 2; }
.werk__bild--quadrat { aspect-ratio: 1 / 1; }

.werk__bild img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.werk:hover .werk__bild img {
    transform: scale(1.025);
}

.werk__platzhalter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    font-family: var(--schrift-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--grau);
}

.werk__bild img {
    z-index: 1;
}

.werk__zeile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.werk__titel {
    font-family: var(--schrift-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
}

.werk__meta {
    font-size: 0.85rem;
    color: var(--grau);
    margin: 0.15rem 0 0.4rem;
}

.werk__text {
    font-size: 0.95rem;
    color: var(--tusche);
    max-width: 52ch;
    margin: 0;
}

/* --- Serien --------------------------------------------------------------- */

.serie {
    padding: clamp(2.5rem, 6vw, 5rem) 0 0;
    border-top: 1px solid var(--linie);
    margin-top: clamp(2.5rem, 6vw, 5rem);
}

.serie:first-of-type {
    border-top: 0;
    margin-top: 0;
}

.serie__kopf {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem 3rem;
    align-items: end;
    margin-bottom: 1rem;
}

@media (max-width: 720px) {
    .serie__kopf {
        grid-template-columns: 1fr;
    }
}

.serie__beschreibung {
    color: var(--grau);
    font-size: 0.98rem;
}

/* --- Abschnitte ------------------------------------------------------------ */

.abschnitt {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.abschnitt--linie {
    border-top: 1px solid var(--linie);
}

.zweispaltig {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 4rem;
}

@media (max-width: 780px) {
    .zweispaltig {
        grid-template-columns: 1fr;
    }
}

.zitat {
    font-family: var(--schrift-display);
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-style: italic;
    line-height: 1.35;
    border-left: 3px solid var(--stempelrot);
    padding-left: 1.25rem;
    margin: 2rem 0;
    max-width: 32ch;
}

.vita dt {
    font-weight: 600;
    margin-top: 1rem;
}

.vita dd {
    margin: 0.15rem 0 0;
    color: var(--grau);
    font-size: 0.95rem;
}

/* --- Buttons ---------------------------------------------------------------- */

.knopf {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--papier);
    background: var(--tusche);
    padding: 0.85rem 1.6rem;
    border-radius: 2px;
    transition: background 0.15s ease;
}

.knopf:hover {
    background: var(--stempelrot);
    color: var(--papier);
}

.knopf--kontur {
    background: transparent;
    color: var(--tusche);
    border: 1px solid var(--tusche);
}

.knopf--kontur:hover {
    background: transparent;
    border-color: var(--stempelrot);
    color: var(--stempelrot);
}

/* --- Kontakt ------------------------------------------------------------------ */

.kontaktkarte {
    border: 1px solid var(--linie);
    background: var(--papier-tief);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    border-radius: 2px;
}

.kontaktkarte h3 {
    margin-top: 0;
}

.kontaktkarte a.gross {
    font-family: var(--schrift-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

/* --- Rechtstexte ----------------------------------------------------------------- */

.rechtstext h2 {
    font-size: 1.4rem;
    margin-top: 2.2rem;
}

.rechtstext p,
.rechtstext li {
    max-width: 72ch;
    font-size: 0.98rem;
}

.hinweisbox {
    border: 1px dashed var(--stempelrot);
    color: var(--stempelrot-h);
    background: rgba(179, 38, 30, 0.05);
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 2px;
    max-width: 72ch;
}

/* --- Werkverzeichnis-Tabelle ---------------------------------------------------------- */

.verzeichnis {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1.5rem 0 0;
}

.verzeichnis th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grau);
    border-bottom: 2px solid var(--tusche);
    padding: 0.5rem 0.75rem 0.5rem 0;
}

.verzeichnis td {
    border-bottom: 1px solid var(--linie);
    padding: 0.55rem 0.75rem 0.55rem 0;
    vertical-align: top;
}

.verzeichnis td:first-child {
    white-space: nowrap;
    color: var(--grau);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.verzeichnis .status {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.verzeichnis .status--frei { color: var(--stempelrot); }

@media (max-width: 640px) {
    .verzeichnis .spalte-technik { display: none; }
}

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

.fuss {
    border-top: 1px solid var(--linie);
    margin-top: clamp(3rem, 7vw, 6rem);
    padding: 2.2rem 0 2.8rem;
    font-size: 0.88rem;
    color: var(--grau);
}

.fuss__zeile {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    align-items: baseline;
}

.fuss nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.fuss a {
    text-decoration: none;
}

.fuss a:hover {
    text-decoration: underline;
    text-decoration-color: var(--stempelrot);
}

/* --- Einblend-Animation (dezent) ----------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .einblenden {
        animation: einblenden 0.7s ease both;
    }

    .einblenden:nth-child(2) { animation-delay: 0.08s; }
    .einblenden:nth-child(3) { animation-delay: 0.16s; }
    .einblenden:nth-child(4) { animation-delay: 0.24s; }

    @keyframes einblenden {
        from {
            opacity: 0;
            transform: translateY(14px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
}
