/* ═══════════════════════════════════════════════════════════
   history.css – öffentliche History-Seite
   Look der Startseite: Vollbild-Fotos, Syne/DM Sans, Haarlinien,
   Portfolio-Raster (.project-grid / .g-item aus style.css).
═══════════════════════════════════════════════════════════ */

.hi {
    --hi-pad: clamp(20px, 4vw, 48px);
    --hi-max: 1400px;
    --hi-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --hi-muted: #f3f4f7;
    font-family: var(--ff-body);
    color: var(--ink);
    padding-bottom: clamp(40px, 6vw, 80px);
}
.hi a { color: inherit; }
.hi-wrap { max-width: calc(var(--hi-max) + 2 * var(--hi-pad)); margin: 0 auto; padding: 0 var(--hi-pad); }
.hi-wrap--list { padding-top: clamp(24px, 3vw, 40px); }

/* ── Admin-Hinweis ── */
.hi-adminbar {
    position: fixed; left: 16px; bottom: 16px; z-index: 9500; padding: 8px 14px;
    font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
    background: var(--ink); color: #fff !important; text-decoration: none; box-shadow: 0 6px 20px rgba(2,21,63,.25);
}
.hi-draft {
    display: inline-block; vertical-align: middle; margin-left: 8px;
    padding: 2px 8px; border: 1px dashed var(--ink-40);
    font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-60);
}
.hi-draft--light { border-color: rgba(255,255,255,.6); color: rgba(255,255,255,.85); margin: 14px 0 0; }

/* ══════════════ HERO (wie Startseite) ══════════════ */
.hi-hero { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.hi-hero--img { height: 84vh; height: 84svh; min-height: 480px; background: #0a1430; }
.hi-hero--big { height: 100vh; height: 100svh; }
.hi-hero--type { min-height: 46vh; min-height: 46svh; background: var(--ink); padding-top: 96px; }
.hi-hero-media { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); animation: hiReveal 1.5s var(--ease-smooth) .15s forwards; }
.hi-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); filter: brightness(.62) contrast(1.05); animation: hiScale 5s var(--ease) .2s forwards; }
.hi-hero--img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,10,30,.72) 0%, rgba(2,10,30,.15) 45%, rgba(2,10,30,0) 70%); pointer-events: none; }
@keyframes hiReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes hiScale { to { transform: scale(1); } }
.hi-hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(36px, 8vh, 96px); }
.hi-hero .hi-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 22px; opacity: 0; animation: hiFade .8s ease .7s forwards; }
.hi-hero .hi-crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.hi-hero .hi-crumbs a:hover { color: #fff; }
.hi-hero .hi-crumbs [aria-current] { color: #fff; }
.hi-hero-eyebrow { font-weight: 300; font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 14px; opacity: 0; transform: translateX(-20px); animation: hiSlide .8s var(--ease) .8s forwards; }
.hi-hero-eyebrow a { color: rgba(255,255,255,.8); text-decoration: none; }
.hi-hero-eyebrow a:hover { color: #fff; }
.hi-hero-title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 6rem); line-height: .95; letter-spacing: -.025em; max-width: 14ch; opacity: 0; transform: translateY(30px); animation: hiUp 1s var(--ease) .9s forwards; }
.hi-hero--big .hi-hero-title { font-size: clamp(3rem, 11vw, 9rem); }
.hi-mono-title { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hi-hero-line { width: 0; height: 2px; background: #fff; margin-top: 24px; animation: hiLine 1.2s var(--ease) 1.2s forwards; }
.hi-hero-meta { margin-top: 16px; font-weight: 300; font-size: clamp(.82rem, 1.1vw, .95rem); color: rgba(255,255,255,.75); max-width: 640px; line-height: 1.6; opacity: 0; animation: hiFade .8s ease 1.4s forwards; }
.hi-hero-meta a { color: #fff; }
.hi-hero-logo { position: absolute; z-index: 2; right: var(--hi-pad, 32px); bottom: clamp(36px, 8vh, 96px); background: rgba(255,255,255,.94); padding: 12px 16px; display: flex; align-items: center; justify-content: center; opacity: 0; animation: hiFade .8s ease 1.5s forwards; }
.hi-hero-logo .hi-logo { display: block; max-width: 120px; max-height: 64px; width: auto; height: auto; }
.hi-hero-credit { position: absolute; z-index: 2; right: 14px; bottom: 10px; border: 0; background: none; padding: 4px; cursor: zoom-in; font-family: var(--ff-body); font-size: .55rem; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.hi-hero-credit:hover { color: #fff; }
@keyframes hiFade { to { opacity: 1; } }
@keyframes hiSlide { to { opacity: 1; transform: none; } }
@keyframes hiUp { to { opacity: 1; transform: none; } }
@keyframes hiLine { to { width: 64px; } }
@media (max-width: 640px) {
    .hi-hero-logo { position: static; display: inline-flex; margin: 0 var(--hi-pad) 28px; }
    .hi-hero--img .hi-hero-logo { position: absolute; top: 80px; bottom: auto; right: 16px; margin: 0; padding: 8px 10px; }
    .hi-hero-logo .hi-logo { max-width: 80px; max-height: 40px; }
}

/* ── Unter-Navigation + Suche ── */
.hi-subnav { border-bottom: 1px solid var(--ink-10); background: var(--bg); position: relative; z-index: 3; }
.hi-subnav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.hi-subnav-links { display: flex; gap: 6px 24px; flex-wrap: wrap; }
.hi-subnav-links a {
    font-family: var(--ff-display); font-weight: 600; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
    color: var(--ink-40); text-decoration: none; padding: 6px 0; position: relative; transition: color .3s ease;
}
.hi-subnav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.hi-subnav-links a:hover, .hi-subnav-links a.is-active { color: var(--ink); }
.hi-subnav-links a.is-active::after, .hi-subnav-links a:hover::after { width: 100%; }
.hi-search { display: flex; align-items: center; border-bottom: 1px solid var(--ink-20); min-width: min(300px, 100%); transition: border-color .3s ease; }
.hi-search:focus-within { border-color: var(--ink); }
.hi-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; outline: none; font-family: var(--ff-body); font-weight: 300; font-size: .82rem; color: var(--ink); }
.hi-search input::placeholder { color: var(--ink-40); }
.hi-search button { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); }
.hi-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@media (max-width: 640px) { .hi-subnav-links { gap: 4px 16px; } .hi-search { min-width: 100%; } }

/* ── Einleitung + Kennzahlen ── */
.hi-intro { max-width: 760px; font-size: 1.1rem; padding-top: clamp(40px, 6vw, 80px); }
.hi-intro p:first-child { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--ink); }
.hi-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--ink-10); }
.hi-stats > div { padding: 18px 16px 4px 0; }
.hi-stats > div + div { padding-left: 16px; border-left: 1px solid var(--ink-10); }
.hi-stats dt { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-40); }
.hi-stats dd { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.8rem); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hi-stats--sales { margin: 0 0 clamp(24px, 3vw, 36px); }
.hi-stats--sales dd { font-size: clamp(1.1rem, 2.4vw, 1.7rem); }
@media (max-width: 600px) {
    .hi-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hi-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .hi-stats > div:nth-child(n+3) { border-top: 1px solid var(--ink-10); }
}

/* ── Abschnitte ── */
.hi-sec { margin-top: clamp(56px, 8vw, 120px); }
.hi-sec-label { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.hi-sec-label span { font-family: var(--ff-display); font-weight: 600; font-size: .6rem; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-40); white-space: nowrap; }
.hi-sec-label .the-line { flex: 1; }

/* Text + Fakten */
.hi-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(28px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 6vw, 80px); }
.hi-col-side { position: sticky; top: 84px; }
@media (max-width: 900px) { .hi-cols { grid-template-columns: 1fr; } .hi-col-side { position: static; } }
.hi-lead { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.4; margin-bottom: 28px; max-width: 760px; }
.hi-rich { font-weight: 300; font-size: 1.02rem; line-height: 1.8; color: var(--ink-80); max-width: 720px; }
.hi-rich p + p, .hi-rich p + ul, .hi-rich ul + p, .hi-rich blockquote + p, .hi-rich p + blockquote { margin-top: 1.1em; }
.hi-rich h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 1.9em 0 .6em; letter-spacing: -.01em; }
.hi-rich strong { font-weight: 500; color: var(--ink); }
.hi-rich a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hi-rich ul { padding-left: 1.1em; }
.hi-rich li + li { margin-top: .35em; }
.hi-rich blockquote { border-left: 2px solid var(--ink); padding: 2px 0 2px 18px; font-family: var(--ff-display); font-size: 1.15rem; color: var(--ink); }
.hi-facts { border-top: 2px solid var(--ink); }
.hi-fact { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-10); }
.hi-fact dt { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); padding-top: 3px; }
.hi-fact dd { font-size: .92rem; color: var(--ink); word-break: break-word; }
.hi-fact dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ══════════════ Bildkacheln ══════════════ */
.hi-tiles { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.hi-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hi-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hi-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .hi-tiles--3, .hi-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hi-tiles--2, .hi-tiles--3 { grid-template-columns: 1fr; } .hi-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.hi-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); position: relative; }
.hi-tile-media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--hi-muted); }
.hi-tile--wide .hi-tile-media { aspect-ratio: 16 / 9; }
.hi-tile--story .hi-tile-media { aspect-ratio: 3 / 2; }
.hi-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s ease; }
.hi-tile:hover .hi-tile-media img { transform: scale(1.09); filter: brightness(.8); }
.hi-tile-media::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #fff; z-index: 3; transition: width .8s var(--ease); }
.hi-tile:hover .hi-tile-media::after { width: 100%; }
.hi-tile--type .hi-tile-media { background: var(--ink); }
.hi-tile-type { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.02em; color: rgba(255,255,255,.92); transition: transform 1s var(--ease); }
.hi-tile-type.is-mono { font-family: var(--hi-mono); font-weight: 500; font-size: clamp(1.05rem, 2.2vw, 1.7rem); letter-spacing: .02em; }
.hi-tile:hover .hi-tile-type { transform: scale(1.05); }
.hi-tile-logo { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.94); padding: 6px 9px; display: flex; }
.hi-tile-logo .hi-logo { display: block; max-width: 64px; max-height: 32px; width: auto; height: auto; }
.hi-tile-arrow { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateX(8px); transition: opacity .4s ease, transform .5s var(--ease); }
.hi-tile-arrow svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 1.5; fill: none; }
.hi-tile:hover .hi-tile-arrow { opacity: 1; transform: none; }
.hi-tile-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 0 16px; border-bottom: 1px solid var(--ink-10); flex: 1; }
.hi-tile-kicker { font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-40); }
.hi-tile-title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.25rem); letter-spacing: -.01em; line-height: 1.2; }
.hi-tile--wide .hi-tile-title { font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
.hi-tile-title.hi-mono { font-family: var(--hi-mono); font-weight: 500; letter-spacing: .02em; }
.hi-tile-meta { font-weight: 300; font-size: .82rem; color: var(--ink-60); line-height: 1.5; }
.hi-tile.in-view .hi-tile-media, .hi-tile .hi-tile-media { clip-path: none; }

/* Galerie: Portfolio-Raster (style.css .project-grid--b / .g-item) */
.hi-gal .g-item-media { display: block; width: 100%; padding: 0; border: 0; background: var(--hi-muted); cursor: zoom-in; }
.hi-gal .g-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-gal-item { margin: 0; }
.hi-gal-item figcaption { font-size: .62rem; letter-spacing: .06em; color: var(--ink-40); margin-top: 8px; line-height: 1.5; }
.hi-gal-item figcaption a { color: var(--ink-60); }

/* ── Varianten + Coachbuilder ── */
.hi-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.hi-part-h { font-family: var(--ff-display); font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.hi-parts-list { list-style: none; border-top: 2px solid var(--ink); }
.hi-parts-list li { padding: 16px 0; border-bottom: 1px solid var(--ink-10); }
.hi-part-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.hi-part-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; }
.hi-part-meta { font-size: .72rem; color: var(--ink-40); letter-spacing: .04em; }
.hi-part-note { font-weight: 300; font-size: .88rem; line-height: 1.6; color: var(--ink-60); margin-top: 6px; }
.hi-part-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.hi-part-facts div { display: flex; gap: 6px; font-size: .78rem; }
.hi-part-facts dt { color: var(--ink-40); }
.hi-part-facts dd { color: var(--ink); }

/* Lightbox */
.hi-lightbox { position: fixed; inset: 0; z-index: 10050; background: rgba(2, 10, 30, .95); display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; }
.hi-lightbox[hidden] { display: none; }
.hi-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.hi-lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; display: block; }
.hi-lightbox figcaption { color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .08em; margin-top: 14px; text-align: center; }
.hi-lb-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ── Kleinkram ── */
.hi-index-kind { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-40); }
.hi-more { display: inline-block; margin-top: 22px; font-family: var(--ff-display); font-weight: 600; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.hi-empty { font-weight: 300; color: var(--ink-60); padding: 40px 0; }
.hi-meta { font-weight: 300; font-size: .95rem; color: var(--ink-60); margin-bottom: 20px; }
.hi-note { margin-top: clamp(56px, 8vw, 110px); max-width: 680px; font-weight: 300; font-size: .85rem; line-height: 1.7; color: var(--ink-60); border-left: 2px solid var(--ink); padding-left: 16px; }
.hi-fine { font-size: .66rem; line-height: 1.6; color: var(--ink-40); margin-top: 12px; }
.hi-fine--top { margin: -8px 0 16px; }
.hi-sub { display: block; font-size: .72rem; color: var(--ink-40); margin-top: 2px; font-weight: 300; }
a.hi-sub-link { text-decoration: none; }
a.hi-sub-link:hover { color: var(--ink); }
.hi-mono { font-family: var(--hi-mono); font-size: .94em; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }

/* ── Tabellen ── */
.hi-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
.hi-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.hi-table th { text-align: left; font-size: .56rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--ink-10); white-space: nowrap; }
.hi-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--ink-10); vertical-align: middle; font-weight: 300; }
.hi-table td a { text-decoration: none; font-weight: 400; }
.hi-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hi-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hi-table th:last-child, .hi-table td:last-child { padding-right: 0; }
.hi-table tbody tr { transition: background .25s ease; }
.hi-table tbody tr:hover { background: var(--hi-muted); }
.hi-table tr[hidden] { display: none; }
.hi-table tr.is-hot { background: rgba(2, 21, 63, .06); }
.hi-thumb-cell { width: 92px; }
.hi-thumb { display: block; width: 80px; height: 54px; object-fit: cover; background: var(--hi-muted); }
.hi-thumb--empty { background: var(--ink); opacity: .9; }
@media (max-width: 600px) { .hi-thumb-cell { width: 64px; } .hi-thumb { width: 56px; height: 40px; } }

.hi-status, .hi-res { display: inline-block; font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--ink-20); white-space: nowrap; color: var(--ink-80); vertical-align: middle; }
.hi-status--existing { border-color: var(--ink); color: var(--ink); }
.hi-status--destroyed { text-decoration: line-through; color: var(--ink-60); }
.hi-status--unknown { border-style: dashed; }
.hi-status--light { border-color: rgba(255,255,255,.6); color: #fff; margin-left: 6px; }
.hi-res--sold, .hi-res--private { background: var(--ink); border-color: var(--ink); color: #fff; }
.hi-res--not_sold, .hi-res--withdrawn { border-style: dashed; color: var(--ink-60); }

/* ── Filter ── */
.hi-filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin-bottom: 22px; }
.hi-filters label { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.hi-filters label > span { font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); }
.hi-filters select, .hi-filters input {
    font-family: var(--ff-body); font-weight: 300; font-size: .85rem; color: var(--ink); background: transparent;
    border: 0; border-bottom: 1px solid var(--ink-20); padding: 8px 0; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none;
}
.hi-filters select { padding-right: 18px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 7px) 55%, calc(100% - 2px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.hi-filters select:focus, .hi-filters input:focus { border-color: var(--ink); }
.hi-filter-q { flex: 1; min-width: 200px !important; }
.hi-filter-count { font-size: .7rem; color: var(--ink-40); padding-bottom: 10px; margin-left: auto; font-variant-numeric: tabular-nums; }

/* ── Diagramm ── */
.hi-chart { margin: 0 0 clamp(24px, 3vw, 36px); }
.hi-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.hi-chart-title { font-family: var(--ff-display); font-weight: 600; font-size: .9rem; }
.hi-chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .66rem; color: var(--ink-60); }
.hi-lg { display: inline-flex; align-items: center; gap: 6px; }
.hi-lg[hidden] { display: none; }
.hi-lg::before { content: ''; width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; }
.hi-lg--sold::before { background: var(--ink); }
.hi-lg--ns::before { border: 2px solid var(--ink); background: #fff; }
.hi-lg--est::before { width: 2px; height: 12px; border-radius: 1px; background: var(--ink-20); }
.hi-lg--med::before { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed rgba(2,21,63,.45); }
.hi-chart-plot { position: relative; width: 100%; height: clamp(240px, 36vw, 400px); touch-action: pan-y; }
.hi-chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hi-chart-plot .ax text { font-family: var(--ff-body); font-size: 11px; fill: rgba(2,21,63,.5); font-variant-numeric: tabular-nums; }
.hi-chart-plot .grid line { stroke: rgba(2,21,63,.08); stroke-width: 1; }
.hi-chart-plot .base { stroke: rgba(2,21,63,.35); stroke-width: 1; }
.hi-chart-plot .est { stroke: rgba(2,21,63,.18); stroke-width: 2; stroke-linecap: round; }
.hi-chart-plot .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hi-chart-plot .ln-med { fill: none; stroke: rgba(2,21,63,.45); stroke-width: 2; stroke-dasharray: 4 4; }
.hi-chart-plot .pt { stroke: #fff; stroke-width: 2; cursor: pointer; }
.hi-chart-plot .pt--sold { fill: var(--ink); }
.hi-chart-plot .pt--ns { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.hi-chart-plot .pt.is-on { r: 7; }
.hi-chart-plot .cross { stroke: rgba(2,21,63,.25); stroke-width: 1; stroke-dasharray: 2 3; }
.hi-chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--ink-40); }
.hi-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 180px; max-width: 260px; background: #fff; border: 1px solid var(--ink-20); box-shadow: 0 8px 28px rgba(2,21,63,.12); padding: 10px 12px; font-size: .74rem; line-height: 1.45; color: var(--ink-80); transform: translate(-50%, calc(-100% - 14px)); }
.hi-tip strong { display: block; font-family: var(--ff-display); font-weight: 700; font-size: .95rem; color: var(--ink); }
.hi-tip .t-title { display: block; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.hi-tip .t-muted { color: var(--ink-40); }

/* ── Zeitleiste / Provenienz ── */
.hi-timeline { list-style: none; border-left: 1px solid var(--ink-20); margin-left: 6px; max-width: 900px; }
.hi-timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; padding: 0 0 28px 24px; position: relative; }
.hi-timeline li::before { content: ''; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.hi-tl-date { font-family: var(--ff-display); font-weight: 600; font-size: .8rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hi-tl-body h4 { font-family: var(--ff-display); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.hi-tl-body .hi-rich { font-size: .92rem; line-height: 1.65; }
@media (max-width: 560px) { .hi-timeline li { grid-template-columns: 1fr; gap: 4px; } }
.hi-owners { list-style: none; border-top: 2px solid var(--ink); max-width: 900px; }
.hi-owners li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ink-10); }
.hi-own-n { font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; color: var(--ink-20); font-variant-numeric: tabular-nums; line-height: 1; }
.hi-own-period { display: block; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 4px; }
.hi-own-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; }
.hi-own-country { font-family: var(--ff-body); font-weight: 300; color: var(--ink-60); }
.hi-own-note { font-weight: 300; font-size: .88rem; color: var(--ink-60); margin-top: 4px; line-height: 1.6; }

/* ── Externe Links (nicht freigegebene Bilder) ── */
.hi-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 28px; border-top: 1px solid var(--ink-10); }
.hi-links li { border-bottom: 1px solid var(--ink-10); }
.hi-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; text-decoration: none; }
.hi-link-kind { width: 34px; height: 34px; border: 1px solid var(--ink-20); display: flex; align-items: center; justify-content: center; transition: background .3s ease, color .3s ease; }
.hi-link-kind svg { width: 18px; height: 18px; }
.hi-link:hover .hi-link-kind { background: var(--ink); color: #fff; border-color: var(--ink); }
.hi-link-text { display: flex; flex-direction: column; min-width: 0; }
.hi-link-label { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.hi-link-src { font-size: .66rem; color: var(--ink-40); letter-spacing: .04em; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-link-arrow { font-size: .9rem; color: var(--ink-40); transition: transform .4s var(--ease), color .3s ease; }
.hi-link:hover .hi-link-arrow { transform: translate(2px, -2px); color: var(--ink); }
.hi-sources { padding-left: 1.4em; font-weight: 300; font-size: .86rem; line-height: 1.6; color: var(--ink-80); max-width: 900px; }
.hi-sources li + li { margin-top: 6px; }
.hi-sources a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-word; }

/* ── Gesuche ── */
.hi-wanted { list-style: none; border-top: 1px solid var(--ink-10); }
.hi-wanted li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--ink-10); }
.hi-wanted p { font-weight: 300; font-size: .95rem; line-height: 1.6; padding-top: 5px; }
.hi-wanted p a { font-weight: 500; text-decoration: none; }
.hi-wanted p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hi-wanted-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 700; font-size: .9rem; }
.hi-wanted--compact li { grid-template-columns: 34px minmax(0, 1fr); }
.hi-help { font-family: var(--ff-display); font-weight: 600; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 9px 14px; cursor: pointer; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.hi-help:hover { background: var(--ink); color: #fff; }
@media (max-width: 560px) { .hi-wanted li { grid-template-columns: 34px minmax(0, 1fr); } .hi-help { grid-column: 2; justify-self: start; } }
.hi-wanted-groups { display: grid; gap: clamp(32px, 4vw, 56px); }
.hi-wgroup { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.hi-wgroup-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.hi-wgroup-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.hi-wgroup-media:hover img { transform: scale(1.05); }
.hi-wgroup h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 4px 0 12px; }
.hi-wgroup h2 a { text-decoration: none; }
@media (max-width: 700px) { .hi-wgroup { grid-template-columns: 1fr; } }

.hi-article { max-width: 760px; padding-top: clamp(40px, 6vw, 80px); }

/* ── Formular ── */
.hi-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); }
@media (max-width: 860px) { .hi-form-wrap { grid-template-columns: 1fr; } }
.hi-form-intro h3 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.01em; margin-bottom: 14px; }
.hi-form-intro p { font-weight: 300; font-size: .92rem; line-height: 1.7; color: var(--ink-60); }
.hi-form-intro p + p { margin-top: 12px; }
.hi-form-ref strong { color: var(--ink); font-weight: 500; }
.hi-form-wanted { font-size: .85rem; line-height: 1.6; padding: 12px 14px; background: var(--hi-muted); border-left: 2px solid var(--ink); margin-bottom: 24px; }
.hi-select { cursor: pointer; }
.hi-textarea.form-textarea { min-height: 0; }
.hi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hi-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-weight: 300; font-size: .78rem; line-height: 1.55; color: var(--ink-60); margin: 4px 0 20px; cursor: pointer; }
.hi-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: #02153f; }
.hi-consent a { color: var(--ink); }
.hi-form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hi-form-status { font-size: .82rem; color: var(--ink-60); }
.hi-form-status.is-error { color: #b42318; }
.hi-form-status.is-ok { color: var(--ink); font-weight: 500; }
.hi-form.is-sent .form-group, .hi-form.is-sent .form-row, .hi-form.is-sent .hi-consent, .hi-form.is-sent .form-submit, .hi-form.is-sent .hi-form-wanted { display: none; }
.hi-sec--form { scroll-margin-top: 90px; }

/* ── Einblenden (main.js setzt .in-view) ── */
.hi [data-observe]:not(.the-line):not(.g-item) { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hi [data-observe].in-view:not(.the-line):not(.g-item) { opacity: 1; transform: none; }
.hi-sec-label[data-observe] { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .hi [data-observe]:not(.the-line) { opacity: 1 !important; transform: none !important; transition: none; }
    .hi-hero-media, .hi-hero-media img, .hi-hero-title, .hi-hero-eyebrow, .hi-hero-meta, .hi .hi-crumbs, .hi-hero-logo { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .hi-hero-line { width: 64px; animation: none; }
}
@media print {
    .hi-subnav, .hi-sec--form, .hi-help, .hi-adminbar, .nav, .mobile-menu, .footer { display: none !important; }
    .hi [data-observe] { opacity: 1 !important; transform: none !important; }
}
