:root {
    --bg: #ffffff;
    --ink: #111111;
    --muted: #6e6e6e;
    --line: #e2e2e2;
    --panel: #f1f1f1;
    --current: #1a8f4c;
    --current-bg: #e6f4ec;
    --archive: #8a8a8a;
    --archive-bg: #f0f0f0;
    --sans: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
    --mono: "Cutive Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --ink: #f2f2f2;
        --muted: #9a9a9a;
        --line: #2c2c2c;
        --panel: #1b1b1b;
        --current: #4cc982;
        --current-bg: rgba(76, 201, 130, .12);
        --archive: #8f8f8f;
        --archive-bg: #222222;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(48px, 9vh, 104px) 24px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Kopf */
.intro { margin-bottom: clamp(24px, 4vh, 40px); }

.eyebrow {
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.wordmark {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(44px, 7vw, 84px);
    line-height: .9;
    letter-spacing: -.01em;
    text-transform: uppercase;
    margin-left: -.035em; /* optischer Ausgleich: Vorbreite des fetten M */
}

.lede {
    margin: 24px 0 0;
    max-width: 44ch;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 600;
    line-height: 1.35;
}

.lede span {
    display: block;
    margin-top: 6px;
    font-size: .78em;
    font-weight: 300;
    color: var(--muted);
}

/* Kacheln */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 36px);
}

.tile {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.tile__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--panel);
}

.tile__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease, transform 6s ease-out, filter .6s ease;
}

.tile__slide.is-active { opacity: 1; transform: scale(1); }

.tile:hover .tile__slide.is-active,
.tile:focus-visible .tile__slide.is-active {
    transform: scale(1.03);
    transition: opacity 1.4s ease, transform 1.2s ease, filter .6s ease;
}

/* Archiv: schwarz-weiss, Farbe bei Hover */
.tile--archiv .tile__slide { filter: grayscale(1) contrast(1.05); }
.tile--archiv:hover .tile__slide,
.tile--archiv:focus-visible .tile__slide { filter: grayscale(.15); }

.tile__monogram {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(120px, 16vw, 220px);
    color: var(--line);
    transition: color .5s ease;
}
.tile:hover .tile__monogram { color: var(--muted); }

.tile__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 18px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
    position: relative;
}

.tile__body::before {
    content: "";
    position: absolute;
    left: 0; top: -1px;
    height: 2px; width: 0;
    background: var(--ink);
    transition: width .5s ease;
}
.tile:hover .tile__body::before, .tile:focus-visible .tile__body::before { width: 100%; }

.tile__kicker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px 3px 9px;
    border-radius: 999px;
    font-family: var(--sans);
    font-style: normal;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .12em;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.badge--current { color: var(--current); background: var(--current-bg); }
.badge--current::before { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s ease-out infinite; }
.badge--archive { color: var(--archive); background: var(--archive-bg); }
.badge--archive::before { background: transparent; border: 1.5px solid currentColor; width: 6px; height: 6px; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
    70%  { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.tile__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(22px, 2vw, 27px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .005em;
}

.tile__arrow {
    font-family: var(--sans);
    font-weight: 300;
    font-size: .9em;
    transition: transform .35s ease;
}
.tile:hover .tile__arrow, .tile:focus-visible .tile__arrow { transform: translateX(6px); }

.tile--archiv .tile__title { color: var(--muted); }
.tile--archiv:hover .tile__title { color: var(--ink); }

.tile__text { color: var(--muted); font-size: 16px; font-weight: 300; }

.tile__url {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    word-break: break-all;
}

.foot {
    margin-top: auto;
    padding-top: 72px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 900px) {
    /* Gestapelt: Text klebt am eigenen Bild, Trennlinie unter jeder Karte */
    .tiles { grid-template-columns: 1fr; gap: 0; }
    .tile { padding-block: 32px 36px; border-bottom: 1px solid var(--line); }
    .tile:first-child { padding-top: 0; }
    .tile:last-child { border-bottom: 0; padding-bottom: 0; }
    .tile__media { aspect-ratio: 3 / 2; }
    .tile__body { margin-top: 14px; padding-top: 0; border-top: 0; }
    .tile__body::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Signet Joachim Mantel (MJ) unten rechts im Fotografie-Slider */
.tile__signet {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    width: auto;
    height: 34px;
    opacity: .9;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35));
    pointer-events: none;
    transition: opacity .4s ease;
}
.tile:hover .tile__signet { opacity: 1; }

@media (max-width: 900px) {
    .tile__signet { height: 28px; right: 12px; bottom: 12px; }
}

/* Porträts im Kopfbereich */
.intro--people {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px 48px;
}

.people {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 180px;
}

.person__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.03);
    transition: filter .5s ease;
}
.person:hover .person__photo { filter: grayscale(0); }

.person__name {
    margin-top: 14px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.2;
}

.person__role {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.35;
    color: var(--muted);
}

.person__site {
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .35s ease;
}
.person__site:hover, .person__site:focus-visible { background-size: 100% 1px; outline: none; }

@media (max-width: 900px) {
    .intro--people { grid-template-columns: 1fr; }
    .people { gap: 20px; }
    .person { width: auto; flex: 1 1 0; min-width: 0; }
    .person__site { font-size: 12px; }
    .person__photo { width: 88px; height: 88px; }
}
