/* thinkkreativ – Blaupause. Tokens zuerst, dann Gerüst, dann Seiten. */

:root {
    --paper: #23272b;
    --paper-deep: #181b1e;
    --paper-lift: #2d3237;
    --line: #dadfe3;
    --line-soft: #a4abb1;
    --hair: rgba(218, 223, 227, 0.22);
    --text: #eef1f3;
    --signal: #6fe3c1;
    --signal-ink: #23272b;
    --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
    --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --accent: var(--signal);
    --accent-2: #fff;
    --border: var(--hair);
    --radius: 4px;
    --bar-h: 64px;
    --pad: clamp(1.25rem, 4vw, 3.5rem);
    --gutter: max(var(--pad), calc((100vw - 1180px) / 2));
}

/* Bootstrap-Altlasten (Kontakt, Blog, Rechtliches) an die Palette binden */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--text);
    --bs-border-color: var(--hair);
    --bs-secondary-color: var(--line-soft);
    --bs-tertiary-bg: var(--paper-deep);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.65;
    padding: var(--bar-h) 0 0;
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
}

.site a { color: var(--signal); text-underline-offset: 0.2em; }
.site a:hover { color: #fff; }
.site main a:not([class]) {
    color: inherit; text-decoration: none; padding-bottom: .1em;
    background: linear-gradient(var(--signal), var(--signal)) left bottom / 0 1px no-repeat,
                linear-gradient(var(--line-soft), var(--line-soft)) left bottom / 100% 1px no-repeat;
    transition: background-size .3s ease, color .2s;
}
.site main a:not([class]):hover { color: var(--signal); background-size: 100% 1px, 100% 1px; }
.site :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--signal-ink); padding: .6rem 1rem; z-index: 2000; }
.skip:focus { left: 0; }

/* Alt-Klassen der Bestandsseiten dürfen nichts mehr verstecken */
.site .fade-in-on-entry { opacity: 1; transform: none; transition: none; }

/* ---------- Kopfzeile ---------- */
.topbar {
    position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 1500;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
}
.brand i, .sitefoot__brand i { font-style: normal; color: var(--signal); }
.brand {
    font-family: var(--display); font-weight: 900; font-size: 1.9rem; letter-spacing: .01em;
    color: var(--text) !important; text-decoration: none; line-height: 1;
}
.nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.nav a {
    font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em;
    color: var(--line) !important; text-decoration: none; padding: .35rem 0;
    border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff !important; border-bottom-color: var(--hair); }
.nav a[aria-current="page"] { color: #fff !important; border-bottom-color: var(--signal); }
.nav-toggle {
    display: none; font-family: var(--display); font-weight: 700; font-size: 1.3rem;
    background: none; color: var(--text); border: 1px solid var(--hair); padding: .25rem .9rem; border-radius: 2px;
}
@media (max-width: 767.98px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: var(--bar-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--hair);
        padding: .5rem var(--pad) 1rem;
        transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s;
    }
    .nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
    .nav a { font-size: 1.7rem; padding: .6rem 0; border-bottom: 1px solid var(--hair); }
}

/* ---------- Typografie ---------- */
.display, .exp h1, .exp h2, .exp h3 { font-family: var(--display); font-weight: 900; line-height: 1.1; letter-spacing: 0; color: #fff; margin: 0; }
.exp h1 { font-size: clamp(3.4rem, 11vw, 9.5rem); }
.exp h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.exp h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 34em; color: var(--text); }
.prose { max-width: 38em; }
.muted { color: var(--line-soft); }

.btn-sig, .btn-line {
    display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .03em;
    padding: .7rem 1.6rem; border-radius: 2px; text-decoration: none; line-height: 1.1; cursor: pointer;
}
.site .btn-sig { background: var(--signal); color: var(--signal-ink); border: 2px solid var(--signal); }
.site .btn-sig:hover { background: #fff; border-color: #fff; color: var(--signal-ink); }
.site .btn-line { background: transparent; color: var(--text); border: 2px solid var(--line-soft); }
.site .btn-line:hover { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 9vh, 6rem) var(--gutter) clamp(3rem, 8vh, 5rem); min-height: calc(86svh - var(--bar-h)); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 9.5rem); line-height: 1; margin-bottom: 1.75rem; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.hero .lede { margin: 0 0 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.live-chip {
    display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1rem .45rem .8rem;
    border: 1px solid var(--hair); border-radius: 999px; color: var(--line) !important; text-decoration: none; font-size: 1rem;
}
.live-chip b { color: #fff; font-variant-numeric: tabular-nums; }
.live-chip:hover { border-color: var(--signal); }
.live-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(111, 227, 193, .6); animation: live-dot 2.4s ease-out infinite; }
@keyframes live-dot { to { box-shadow: 0 0 0 10px rgba(111, 227, 193, 0); } }
@media (prefers-reduced-motion: reduce) { .live-chip__dot { animation: none; } }

/* ---------- Laufband ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 1.1rem 0; }
.marquee__track { display: flex; width: max-content; }
.marquee ul { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: .02em; color: var(--line-soft); padding-right: 2.5rem; white-space: nowrap; }
.marquee li::after { content: "/"; margin-left: 2.5rem; color: var(--signal); }

/* ---------- Story, Säulen, Zahlen ---------- */
.story-sec { padding-bottom: clamp(2rem, 5vw, 4rem); }
.story { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.15; color: #fff; max-width: 24em; margin: 0; }
.pillars { border-top: 1px solid var(--hair); margin: 0 var(--gutter); }
.pillar { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem; padding: 2.25rem 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.pillar__n { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--signal); }
.exp .pillar h3 { font-size: clamp(2rem, 4vw, 3.2rem); }
.pillar p { margin: 0 0 1rem; max-width: 36em; }
.pillar ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .03em; color: var(--line); }
.pillar li { padding-right: 1.25rem; border-right: 1px solid var(--hair); }
.pillar li:last-child { border-right: 0; }
@media (max-width: 767.98px) { .pillar { grid-template-columns: 1fr; gap: .5rem; } }
.stats { padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0; }
.stats dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; margin: 0; }
.stats dt { order: 2; color: var(--line-soft); font-size: 1rem; }
.stats dd { order: 1; margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column; gap: .35rem; }
.stats [data-live-pv] dd { color: var(--signal); }
.stats small { order: 3; color: var(--line-soft); }
.stats small b { color: var(--text); font-weight: 600; }

/* ---------- Bereiche auf der Startseite ---------- */
.cats-sec { padding-top: clamp(3.5rem, 9vw, 7rem); }
.cats-sec .section__head { padding: 0 var(--gutter); }
.cats { border-top: 1px solid var(--hair); }
.cat { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--hair); color: var(--text) !important; text-decoration: none; }
.cat__wipe { position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .55s cubic-bezier(.77, 0, .18, 1); }
.cat__inner { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; padding: clamp(.6rem, 2vw, 1.4rem) var(--gutter); }
.cat__word {
    font-family: var(--display); font-weight: 900; font-size: clamp(3.6rem, 13vw, 11.5rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 2px var(--line-soft); white-space: nowrap;
    transition: color .3s .1s, -webkit-text-stroke-color .3s .1s;
}
.cat__meta { max-width: 17rem; font-size: 1rem; line-height: 1.4; color: var(--line-soft); transition: color .3s .1s; }
.cat__meta b { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: #fff; margin-right: .15rem; transition: color .3s .1s; }
.cat:hover .cat__wipe, .cat:focus-visible .cat__wipe, .cat.is-active .cat__wipe { transform: scaleX(1); transform-origin: left; }
.cat:hover .cat__word, .cat:focus-visible .cat__word, .cat.is-active .cat__word { color: var(--signal-ink); -webkit-text-stroke-color: var(--signal-ink); }
.cat:hover .cat__meta, .cat:focus-visible .cat__meta, .cat.is-active .cat__meta,
.cat:hover .cat__meta b, .cat:focus-visible .cat__meta b, .cat.is-active .cat__meta b { color: var(--signal-ink); }
.site .cat:focus-visible { outline-offset: -4px; }
@media (max-width: 767.98px) { .cat__meta { max-width: none; } .cat__word { -webkit-text-stroke-width: 1.5px; } }
@media (prefers-reduced-motion: reduce) { .cat__wipe, .cat__word, .cat__meta, .cat__meta b { transition: none; } }

/* ---------- Planverzeichnis ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.index { border-top: 2px solid var(--line); }
.index__row, .pitem > summary {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 1.5rem; align-items: baseline; padding: 1.1rem .75rem; border-bottom: 1px solid var(--hair);
    text-decoration: none; color: var(--text) !important; position: relative; list-style: none; cursor: pointer;
}
.pitem > summary::-webkit-details-marker { display: none; }
.index__row:hover, .pitem > summary:hover, .pitem[open] > summary { background: var(--paper-lift); }
.index__row:hover::before, .pitem > summary:hover::before, .pitem[open] > summary::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--signal);
}
.row__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1; color: #fff; }
.row__stack { color: var(--line); font-size: 1rem; }
.row__note { color: var(--line-soft); font-size: 1rem; text-align: right; }
.row__thumb { display: none; }
@media (max-width: 767.98px) {
    .index__row, .pitem > summary { grid-template-columns: 1fr; gap: .25rem; }
    .row__note { text-align: left; }
}
.index-preview {
    position: fixed; left: 0; top: 0; width: 280px; height: 180px; pointer-events: none; z-index: 1200;
    background: var(--paper-deep) center / cover no-repeat; border: 2px solid var(--signal);
    opacity: 0; transform: translate3d(0, 0, 0) scale(.92); transition: opacity .15s;
}
.index-preview.is-on { opacity: 1; }
@media (hover: none), (max-width: 767.98px) { .index-preview { display: none; } }

.pgroup { margin-bottom: clamp(3rem, 7vw, 5rem); }
.pgroup__intro { margin: .75rem 0 1.5rem; color: var(--line-soft); max-width: 40em; }
.pitem__body {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem;
    padding: 1.5rem .75rem 2rem 1.25rem; background: var(--paper-lift); border-bottom: 1px solid var(--hair); overflow: hidden;
}
.pitem__body dl { margin: 0; display: grid; gap: 1rem; }
.pitem__body dt { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--signal); }
.pitem__body dd { margin: 0; max-width: 38em; }
.pitem__body img { width: 100%; height: auto; max-height: 260px; object-fit: cover; object-position: top; border: 1px solid var(--hair); }
.pitem__links { margin-top: 1.25rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
@media (max-width: 767.98px) { .pitem__body { grid-template-columns: 1fr; } }

/* ---------- Über mich ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--pad); align-items: end; padding: clamp(2rem, 6vw, 5rem) var(--gutter) 3rem; }
.about-top img { width: 100%; max-width: 420px; justify-self: end; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line-soft); }
@media (max-width: 767.98px) { .about-top { grid-template-columns: 1fr; } .about-top img { justify-self: start; max-width: 260px; } }
.timeline { position: relative; padding-left: clamp(1.5rem, 4vw, 3rem); max-width: 54rem; }
.timeline__rail { position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 2px; background: var(--hair); }
.timeline__rail i { position: absolute; inset: 0; background: var(--signal); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.tl { position: relative; padding-bottom: 2.75rem; }
.tl::before { content: ""; position: absolute; left: calc(-1 * clamp(1.5rem, 4vw, 3rem) - 6px); top: .55rem; width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--signal); }
.tl__date { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--signal); }
.tl h3 { margin: .15rem 0 .1rem; }
.tl__org { color: var(--line-soft); margin-bottom: .75rem; }
.tl ul { padding-left: 1.1rem; margin: 0; max-width: 40em; }
.tl li { margin-bottom: .4rem; }
.parts { border-top: 2px solid var(--line); }
.parts div { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: 1.5rem; padding: 1rem .75rem; border-bottom: 1px solid var(--hair); }
.parts dt { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #fff; line-height: 1.1; }
.parts dd { margin: 0; }
.parts { margin: 0; }
@media (max-width: 767.98px) { .parts div { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- Schlussblock und Schriftfeld ---------- */
.closing { padding: clamp(4rem, 10vw, 8rem) var(--gutter); border-top: 1px solid var(--hair); }
.closing h2 { max-width: 12ch; margin-bottom: 1.5rem; }
/* ---------- Bestandsseiten (Kontakt, Blog, Rechtliches) ---------- */
.legacy { padding-top: 3rem; padding-bottom: 3rem; }
.legacy h1, .legacy h2, .legacy h3, .legacy h4 { color: #fff; font-family: var(--display); font-weight: 800; line-height: 1.15; }
.legacy h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.legacy .blog-title { font-size: 1.6rem; }



/* ---------- Über mich: Überschrift, Rahmen, Last an der Schiene ---------- */
.about-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.about-top h1 { font-size: clamp(3rem, 7vw, 6.4rem); overflow-wrap: anywhere; }
.frame { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 400px; padding: 14px; }
.frame::before, .frame::after { content: ""; position: absolute; width: 56px; height: 56px; pointer-events: none; }
.frame::before { left: 0; top: 0; border-left: 3px solid var(--signal); border-top: 3px solid var(--signal); }
.frame::after { right: 0; bottom: 0; border-right: 3px solid var(--signal); border-bottom: 3px solid var(--signal); }
.frame img { display: block; width: 100%; max-width: none; justify-self: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 0; }
.frame figcaption { margin-top: .6rem; font-size: .9rem; color: var(--line-soft); display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 767.98px) { .frame { justify-self: start; max-width: 280px; } .about-top { grid-template-columns: 1fr; } }
.timeline__load {
    position: absolute; left: -6px; top: 0; width: 14px; height: 14px; background: var(--signal);
    transform: translateY(-50%);
}
.parts div { transition: background-color .2s; position: relative; }
.parts div:hover { background: var(--paper-lift); }
.parts div:hover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--signal); }
.parts div:hover dt { color: var(--signal); }

/* ---------- Projekte: Planmappe ---------- */
.sheets { overflow: hidden; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper-deep); }
.sheets__pin { padding: 2.5rem 0 2.5rem; min-height: 80svh; display: flex; align-items: center; }
.sheets__track { display: flex; gap: 2rem; padding: 0 var(--gutter); will-change: transform; }
.sheet {
    flex: 0 0 min(82vw, 600px); height: min(68svh, 540px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
    border: 2px solid var(--line); background: var(--paper);
}
.sheet__head { padding: 1rem 1.25rem .5rem; border-bottom: 1px solid var(--hair); }
.sheet__head h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.sheet__art {
    background-color: var(--paper-lift); background-size: cover; background-position: top center;
    background-image: repeating-linear-gradient(45deg, transparent 0 9px, rgba(218,223,227,.14) 9px 10px);
    border-bottom: 1px solid var(--hair);
}
.sheet__text { margin: 0; padding: .9rem 1.25rem; font-size: 1rem; line-height: 1.5; color: var(--text); }
.sheet__foot { display: grid; grid-template-columns: 1.4fr 1fr auto; border-top: 1px solid var(--hair); font-size: .9rem; }
.sheet__foot > div { padding: .55rem 1rem; border-right: 1px solid var(--hair); }
.sheet__foot > div:last-child { border-right: 0; display: flex; align-items: center; }
.sheet__foot small { display: block; color: var(--line-soft); font-size: .78rem; line-height: 1.2; }
@media (max-width: 899.98px) {
    .sheets__pin { display: block; min-height: 0; padding: 2rem 0; }
    .sheets__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
    .sheet { scroll-snap-align: start; }
}

/* ---------- Projekte: Filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
    font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; line-height: 1;
    padding: .5rem .95rem; background: transparent; color: var(--line); border: 1px solid var(--hair); border-radius: 2px; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--line); color: #fff; }
.chip.is-on { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.filters__count { margin: 0 0 2.5rem; font-size: .95rem; min-height: 1.5em; }
.pgroup[hidden], .pitem[hidden] { display: none; }

/* ---------- Projekte: Liste und Detail ---------- */
.pm { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.pm__section[hidden], .pm__item[hidden] { display: none; }
.pm__heading { font-size: 1.5rem !important; font-weight: 800; color: var(--line-soft) !important; margin: 2rem 0 .5rem !important; line-height: 1.2 !important; }
.pm__section:first-child .pm__heading { margin-top: 0 !important; }
.pm__item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: .1rem; width: 100%;
    text-align: left; padding: .8rem .75rem; background: none; border: 0; border-top: 1px solid var(--hair);
    color: var(--text); cursor: pointer; position: relative; font: inherit;
}
.pm__item:last-child { border-bottom: 1px solid var(--hair); }
.pm__title { font-family: var(--display); font-weight: 800; font-size: 1.65rem; line-height: 1.15; color: #fff; }
.pm__note { font-size: .9rem; color: var(--line-soft); align-self: center; text-align: right; }
.pm__stack { grid-column: 1 / -1; font-size: .95rem; color: var(--line); }
.pm__item:hover { background: var(--paper-lift); }
.pm__item[aria-current="true"] { background: var(--paper-lift); }
.pm__item[aria-current="true"]::before, .pm__item:hover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--signal); }
.pm__item:not([aria-current="true"]):hover::before { background: var(--line-soft); }
.pm__stage { position: sticky; top: calc(var(--bar-h) + 1.5rem); border: 2px solid var(--line); background: var(--paper-deep); max-height: calc(100svh - var(--bar-h) - 3rem); overflow: auto; }
.pm__detail[hidden] { display: none; }
.pm__art {
    aspect-ratio: 16 / 8; background-color: var(--paper-lift); background-size: cover; background-position: top center;
    background-image: repeating-linear-gradient(45deg, transparent 0 9px, rgba(218,223,227,.14) 9px 10px);
    border-bottom: 1px solid var(--hair);
}
.pm__info { padding: 1.5rem 1.5rem 1.75rem; }
.pm__info h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 .25rem; }
.pm__tech { color: var(--line-soft); margin: 0 0 1.25rem; }
.pm__info dl { margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.pm__info dt { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--signal); }
.pm__info dd { margin: 0; }
.filters .chip { margin: 0; }
@media (max-width: 899.98px) {
    .pm { grid-template-columns: 1fr; }
    .pm__stage { display: none; }
    .pm__detail { border: 2px solid var(--line); background: var(--paper-deep); margin: .5rem 0 1rem; }
}

/* ---------- Lebenslauf ---------- */
.cv { padding: clamp(2rem, 5vw, 4rem) var(--gutter) 4rem; }
.cv__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.75rem; }
.cv__head h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.cv__role { margin: .5rem 0 0; font-size: 1.3rem; color: var(--line); }
.cv__contact { list-style: none; margin: 0; padding: 0; font-size: 1rem; line-height: 1.6; }
.cv__contact li { display: grid; grid-template-columns: 5.5rem auto; gap: 1rem; justify-content: start; }
.cv__contact .k { color: var(--line-soft); }
.cv__actions { margin: 0 0 1.5rem; }
.cv__sec { display: grid; grid-template-columns: 13rem 9.5rem minmax(0, 1fr); column-gap: 1.5rem; border-top: 2px solid var(--line); padding: 1.75rem 0; }
.cv__sec h2 { font-size: 1.9rem; margin: 0; }
.cv__body { grid-column: 2 / -1; display: grid; grid-template-columns: subgrid; row-gap: 1.75rem; }
.cv__body--text { grid-column: 3; display: block; }
.cv__body--text p { margin: 0; max-width: 46em; }
.cv__entry { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; break-inside: avoid; }
.cv__date { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .03em; color: var(--signal); line-height: 1.4; }
.cv__entry h3 { font-size: 1.7rem; margin: 0; }
.cv__org { color: var(--line-soft); margin: .15rem 0 .75rem !important; }
.cv__entry ul, .cv__list { margin: 0; padding-left: 1.1rem; max-width: 46em; }
.cv__entry li, .cv__list li { margin-bottom: .4rem; }
.cv__entry li::marker, .cv__list li::marker { color: var(--signal); }
.cv__entry p:not(.cv__org) { margin: 0; max-width: 46em; }
.cv__skills { margin: 0; row-gap: .7rem; }
.cv__skills div { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.cv__skills dt { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; line-height: 1.4; }
.cv__skills dd { margin: 0; }
.cv__more { margin-top: 1rem !important; color: var(--line-soft); }
@media screen and (max-width: 899.98px) {
    .cv__sec { grid-template-columns: 1fr; row-gap: .75rem; }
    .cv__body, .cv__body--text { grid-column: 1; grid-template-columns: 1fr; }
    .cv__entry, .cv__skills div { grid-template-columns: 1fr; row-gap: .15rem; }
}
@media print {
    @page { size: A4; margin: 14mm; background: #fff; }
    html, body.site { background: #fff !important; color: #111 !important; font-size: 10pt; padding: 0 !important; }
    .topbar, .sitefoot, .skip, .no-print, .index-preview { display: none !important; }
    .cv { padding: 0; }
    .site a { color: #111 !important; text-decoration: none; background: none !important; }
    .cv__contact a[data-url]::after { content: " (" attr(data-url) ")"; }
    .cv__contact li { grid-template-columns: 22mm auto; gap: 4pt; }
    .cv__contact .k { color: #444; }
    .exp h1, .exp h2, .exp h3, .cv__skills dt { color: #111 !important; }
    .cv__role, .cv__org, .cv__more { color: #444 !important; }
    .cv__entry li::marker, .cv__list li::marker { color: #111; }
    .cv__date { color: #1d6b58 !important; }
    .cv__sec { border-top: 1.5px solid #111; padding: 7pt 0; column-gap: 8pt; grid-template-columns: 34mm 28mm minmax(0, 1fr); }
    .cv__head h1 { font-size: 30pt; }
    .cv__sec h2 { font-size: 13pt; }
    .cv__entry h3 { font-size: 11.5pt; }
    body.site { line-height: 1.45; }
    .cv__body { row-gap: 9pt; }
    .cv__entry li, .cv__list li { margin-bottom: 2pt; }
    .cv__skills { row-gap: 3pt; }
    .cv__skills dt, .cv__date { font-size: 11pt; }
    .cv__sec > h2 { break-after: avoid; }
    .cv__entry, .cv__skills div, .cv__list li { break-inside: avoid; }
}

.pm__art:not([style]) { aspect-ratio: auto; height: 48px; }

/* ---------- Lebenslauf: Kopf mit Foto ---------- */
.cv__head { display: grid; grid-template-columns: minmax(0, 1fr) auto 128px; align-items: end; gap: 2rem; }
.cv__photo { width: 128px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 1px solid var(--line-soft); display: block; }
@media screen and (max-width: 767.98px) {
    .cv__head { grid-template-columns: 1fr 96px; }
    .cv__head .cv__contact { grid-column: 1 / -1; grid-row: 2; }
    .cv__photo { width: 96px; grid-column: 2; grid-row: 1; }
}
@media print {
    .cv__head { grid-template-columns: minmax(0, 1fr) 28mm; gap: 4mm 10mm; padding-bottom: 8pt; }
    .cv__head .cv__contact { grid-column: 1 / -1; grid-row: 2; }
    .cv__photo { grid-column: 2; grid-row: 1; }
    .cv__photo { width: 28mm; border-color: #111; }
}

/* ---------- Fußbereich ---------- */
.sitefoot { margin-top: 2rem; padding: 3rem var(--gutter) 1.75rem; border-top: 2px solid var(--line); }
.sitefoot__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.sitefoot__brand { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1.1; color: #fff !important; text-decoration: none; }
.sitefoot__line { margin: .25rem 0 0; color: var(--line-soft); font-size: 1rem; }
.sitefoot__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; }
.sitefoot__nav a, .sitefoot__legal a {
    font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em;
    color: var(--line) !important; text-decoration: none; border-bottom: 2px solid transparent; padding: .15rem 0;
}
.sitefoot__nav a:hover, .sitefoot__legal a:hover { color: #fff !important; border-bottom-color: var(--signal); }
.sitefoot__bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid var(--hair); color: var(--line-soft); font-size: .95rem; }
.sitefoot__legal { display: flex; gap: 1.5rem; }
.sitefoot__legal a { font-size: 1.1rem; color: var(--line-soft) !important; }

/* ---------- GitHub-Aktivität ---------- */
.gh__scroll { overflow-x: auto; padding-bottom: .5rem; }
.gh__months, .gh__grid { display: grid; grid-template-columns: repeat(var(--weeks), minmax(11px, 1fr)); gap: 4px; }
@media (max-width: 899.98px) { .gh__months, .gh__grid { min-width: 720px; } }
.gh__months { margin-bottom: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; color: var(--line-soft); }
.gh__months span { grid-row: 1; white-space: nowrap; }
.gh__grid { grid-template-rows: repeat(7, 1fr); }
.gh__cell { display: block; aspect-ratio: 1; border-radius: 2px; background: rgba(218, 223, 227, .08); }
.gh__cell[data-level="1"] { background: rgba(111, 227, 193, .28); }
.gh__cell[data-level="2"] { background: rgba(111, 227, 193, .5); }
.gh__cell[data-level="3"] { background: rgba(111, 227, 193, .78); }
.gh__cell[data-level="4"] { background: #6fe3c1; }
.gh__cell:hover { outline: 2px solid #fff; outline-offset: 1px; }
