:root {
    --bg: #0a0d12;
    --bg-soft: #121722;
    --panel: rgba(18, 23, 34, 0.82);
    --panel-strong: rgba(24, 31, 47, 0.96);
    --text: #eef3ff;
    --muted: #aab4c8;
    --line: rgba(123,176,255,.32);
    --line-strong: rgba(255, 255, 255, 0.14);
    --accent: #7bb0ff;
    --accent-strong: #9d72ff;
    --pill-start: #edf4ff;
    --pill-mid: #c6dcff;
    --pill-end: #8eb6ff;
    --pill-text: #08111f;
    --pill-border: rgba(208, 224, 255, 0.88);
    --pill-shadow: 0 14px 32px rgba(62, 98, 158, 0.34), inset 0 1px 0 rgba(255,255,255,.72);
    --shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
    --btn-text: #eaf2ff;
    --radius: 24px;
    --radius-sm: 18px;
    --radius-xs: 14px;
    --container: 1280px;
    --header-height: 60px;
    --header-height-compact: 46px;
    --header-avatar-compact: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
    overflow-x: clip;
}

body {
    max-width: 100%;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background-color: #0a0d12;
    background-image:
        url("webstr/bg-topographic.svg"),
        radial-gradient(circle at top left, rgba(123, 176, 255, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(157, 114, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #090c12 0%, #0b1018 45%, #0a0d12 100%);
    background-repeat: repeat-y, no-repeat, no-repeat, no-repeat;
    background-size: 2200px auto, auto, auto, auto;
    background-position: center top, top left, top right, center top;
    line-height: 1.68;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(18px);
    background: rgb(27 32 45);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: rgba(10, 13, 18, 0.65);
}

.header-row {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-inline: 12px;
    transition: min-height .25s ease, gap .25s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    transition: gap .25s ease;
}

.brand__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    transition:
        width .25s ease,
        height .25s ease,
        transform .25s ease,
        opacity .25s ease,
        border-width .25s ease,
        margin-right .25s ease;
}

.brand__text { min-width: 0; }

.brand__name {
    margin: -4px 0 0;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
    transition: font-size .25s ease, letter-spacing .25s ease;
}

.brand__role {
    margin: -3px 0 0;
    font-size: .77rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 24px;
    transition:
        opacity .25s ease,
        max-height .25s ease,
        margin .25s ease,
        transform .25s ease;
}

.main-nav a,
.nav-toggle,
.btn,
.play-badge,
.corner-label,
.site-badge,
.contact-list a,
.scroll-top,
.modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        filter .2s ease;
}

.main-nav a,
.nav-toggle,
.scroll-top,
.modal__close {
    border-radius: 15px;
    border: 1px solid rgba(123, 176, 255, 0.34);
    background: linear-gradient(180deg, rgba(32, 41, 60, 0.95) 0%, rgba(20, 28, 43, 0.98) 54%, rgba(13, 18, 28, 1) 100%);
    color: #eaf2ff;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255,255,255,.06),
        inset 0 -1px 0 rgba(77, 119, 186, .10);
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
}

.btn,
.contact-list a {
    border-radius: 15px;
    border: 1px solid rgba(108, 173, 255, 0.8);
    background: linear-gradient(180deg, rgba(42, 66, 106, 1) 0%, rgba(27, 45, 77, 1) 56%, rgba(18, 31, 55, 1) 100%);
    color: #f3f7ff;
    box-shadow:
        0 14px 28px rgba(4, 14, 34, 0.34),
        0 0 22px rgba(61, 142, 255, 0.16),
        inset 0 1px 0 rgba(255,255,255,.10),
        inset 0 -1px 0 rgba(90, 140, 212, .14);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.play-badge,
.corner-label,
.site-badge {
    border-radius: 15px;
    border: 1px solid rgba(126, 184, 255, 0.44);
    background: linear-gradient(180deg, rgba(58, 71, 98, 0.96) 0%, rgba(45, 56, 79, 0.98) 55%, rgba(35, 45, 65, 1) 100%);
    color: #f2f6ff;
    box-shadow:
        0 10px 22px rgba(2, 8, 18, 0.28),
        inset 0 1px 0 rgba(255,255,255,.10),
        inset 0 -1px 0 rgba(92, 132, 198, .12);
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible,
.scroll-top:hover,
.scroll-top:focus-visible,
.modal__close:hover,
.modal__close:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(123, 176, 255, 0.52);
    background: linear-gradient(180deg, rgba(24, 33, 50, 0.96) 0%, rgba(17, 24, 38, 1) 100%);
    box-shadow:
        0 12px 22px rgba(7, 20, 42, 0.22),
        0 0 14px rgba(70, 145, 255, 0.08),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.btn:hover,
.btn:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(132, 188, 255, 0.95);
    background: linear-gradient(180deg, rgba(39, 63, 102, 1) 0%, rgba(21, 37, 68, 1) 100%);
    box-shadow:
        0 18px 34px rgba(4, 17, 39, 0.4),
        0 0 28px rgba(67, 150, 255, 0.22),
        inset 0 1px 0 rgba(255,255,255,.12);
    filter: brightness(1.03);
}

.media-link:hover .play-badge,
.media-link:hover .site-badge,
.media-link:hover .corner-label,
.media-link:focus-visible .play-badge,
.media-link:focus-visible .site-badge,
.media-link:focus-visible .corner-label {
    transform: translateY(-1px);
    border-color: rgba(146, 197, 255, 0.62);
    background: linear-gradient(180deg, rgba(56, 70, 98, 0.96) 0%, rgba(42, 53, 76, 1) 100%);
    box-shadow:
        0 14px 26px rgba(4, 12, 28, 0.34),
        0 0 18px rgba(80, 155, 255, 0.14),
        inset 0 1px 0 rgba(255,255,255,.1);
}

.nav-toggle {
    display: none;
    min-width: 0;
    min-height: 40px;
    padding: 0 18px;
    font-size: .95rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    transition: gap .25s ease;
}

.main-nav a {
    min-height: 38px;
    padding: 0 18px 2px;
    margin-top: 3px;
    font-size: .95rem;
    position: relative;
    transition:
        min-height .25s ease,
        padding .25s ease,
        color .25s ease,
        opacity .25s ease,
        letter-spacing .25s ease,
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1.5px;
    border-radius: 999px;
    background: rgba(150, 197, 255, 0.92);
    opacity: 0;
    transform: scaleX(.35);
    transform-origin: center;
    transition: opacity .25s ease, transform .25s ease;
}

.hero { padding: 26px 0 10px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
    gap: 28px;
    align-items: stretch;
}

section[id] { scroll-margin-top: 40px; }

.hero-copy,
.hero-side,
.section-card,
.work-card,
.model-card,
.contact-card,
.value-card,
.profile-card,
.side-note,
.spotlight-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: clamp(23px, 4vw, 40px);
    position: relative;
    overflow: hidden;
}

.hero-copy::before,
.hero-side::before,
.section-card::before,
.contact-card::before,
.profile-card::before,
.side-note::before,
.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%);
    opacity: .75;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d7e5ff;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.value-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(133, 181, 255, .2);
    background: linear-gradient(180deg, rgba(133, 181, 255, .15), rgba(133, 181, 255, .07));
    color: #dce8ff;
    font-weight: 800;
}

.hero h1, .legal-page h1 {
    margin: 20px 0 18px;
    font-size: clamp(1.35rem, 3.1vw, 2.5rem);
    line-height: 1.32;
    letter-spacing: -0.04em;
}

.hero p.lead {
    margin: 0 0 20px;
    /*max-width: 62ch;*/
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.08rem);
}
.hero p.lead strong {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 1.06em;
    font-weight: 800;
    color: #d7e5ff;
}

.skill-list,
.meta-tags,
.stat-list,
.contact-list,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row-reverse;
}
.skill-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px 16px;
}
.skill-list span,
.meta-tags > span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.04);
    color: #dce5f7;
    font-size: .9rem;
}
.skill-list span {
    flex: 1 1 auto;
    width: auto;
    min-width: max-content;
    justify-content: center;
    white-space: nowrap;
}
.skill-list::after {
    content: "";
    flex: 999 1 0;
    min-width: 0;
}
.meta-tags > span {
    padding: 3px 8px 3px 2px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 45px 0 30px 0;
    justify-content: flex-end;
}

.btn {
    min-height: 44px;
    padding: 0 24px;
    font-size: .98rem;
}

.stat-list {
    margin-top: 26px;
    gap: 14px;
}

.stat-item {
    flex: 1 1 155px;
    padding: 5px 18px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}

.stat-item strong {
    display: block;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.stat-item span {
    color: var(--muted);
    font-size: .92rem;
}

.hero-side {
    position: relative;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-side::before { display: none; }

.profile-card,
.side-note,
.spotlight-card {
    position: relative;
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
    will-change: transform;
}

.profile-card:hover,
.profile-card:focus-within,
.side-note:hover,
.side-note:focus-within,
.spotlight-card:hover,
.spotlight-card:focus-within {
    border-color: rgba(123,176,255,.32);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(123,176,255,.12) inset;
}

.profile-card,
.side-note { padding: 20px 20px 22px; }

.profile-head {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    align-items: center;
}
.profile-head span {
    color: #86a7ff;
}
.profile-photo {
    width: 132px;
    aspect-ratio: 1 / 1.25;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--line);
}

.profile-card .profile-title {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.profile-card .profile-subtitle {
    margin: 8px 0 0;
    color: #d7def0;
    font-size: 1rem;
    line-height: 1.62;
}

.profile-copy {
    margin: 18px 0 0;
    color: #e8edf9;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; overflow-wrap: normal; word-break: normal;
}

.profile-card .meta-tags,
.spotlight-card .meta-tags { gap: 10px; }
.meta-tags { margin-top: 18px; }

.side-note strong {
    display: block;
    margin: 0 0 10px;
    font-size: 1.18rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.side-note p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.74;
}

.spotlight-card { padding: 0; }
.spotlight-link { display: block; color: inherit; }

.spotlight-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--line);
    background: #090d15;
}

.spotlight-media video,
.spotlight-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .55s ease, filter .35s ease;
    object-position: center 30%;
}

.spotlight-card:hover .spotlight-media video,
.spotlight-card:hover .spotlight-media img,
.spotlight-card:focus-within .spotlight-media video,
.spotlight-card:focus-within .spotlight-media img {
    transform: scale(1.04);
}

.spotlight-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.22) 100%);
    pointer-events: none;
}

.spotlight-body { padding: 18px 20px 22px; }

.spotlight-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.spotlight-body p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.72;
}

.spotlight-body .meta-tags { margin-top: 16px; }
.profile-title { margin: 0; font-size: 1.5rem; line-height: 1.1; }
.profile-subtitle { margin: 8px 0 0; color: var(--muted); }

.section { padding: 22px 0; }

.section-card {
    --section-pad: clamp(24px, 3vw, 34px);
    position: relative;
    padding: var(--section-pad);
    overflow: hidden;
}

.section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.section-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    margin: calc(var(--section-pad) * -1) calc(var(--section-pad) * -1) 18px;
    background: linear-gradient(135deg, rgba(123, 176, 255, 0.12), rgba(123, 176, 255, 0.08));
    border-bottom: 1px solid rgba(123, 176, 255, 0.18);
}

.section-topbar .eyebrow {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #d7e5ff;
}

.section-topbar--single { justify-content: flex-start; }

.contact-card__title {
    margin: 0 0 14px;
    color: #d7e5ff;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
}

.section-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.section-tools span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-size: .82rem;
    white-space: nowrap;
}

.section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    align-items: end;
    gap: 18px 24px;
}

.section h2, .page h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2.9vw, 2.3rem);
    line-height: 1.28;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.section-head p {
    margin: 10px 0 20px;
    color: var(--muted);
    max-width: 73ch;
    line-height: 1.74;
}

.grid { display: grid; gap: 20px; }
.hero-value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 45px 0; }

.video-grid,
.web-grid,
.print-grid,
.value-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.video-grid > *,
.web-grid > *,
.print-grid > * {
    grid-column: span 6;
}

/* Desktop: vertikale A4-Printkarten in 3 Spalten */
.print-grid .print-card--tall {
    grid-column: span 4;
}

.value-grid > * {
    grid-column: span 4;
}

.three-d-grid { grid-template-columns: 1fr; align-items: start; }
.three-d-side { display: grid; gap: 20px; }
.model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.work-card,
.contact-card,
.value-card {
    position: relative;
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
    will-change: transform;
}

.model-card {
    position: relative;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
/*,
.value-card:hover*/
.work-card:hover,
.work-card:focus-within,
.contact-card:hover {
    border-color: rgba(123,176,255,.32);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(123,176,255,.12) inset;
}

@media (hover: hover) and (pointer: fine) {
    .model-card:hover,
    .model-card:focus-within {
        border-color: rgba(123,176,255,.32);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(123,176,255,.12) inset;
    }
}

.media-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.media-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.print-card.print-card--wide .media-frame { aspect-ratio: 297 / 210; }
.ratio-3x4 { aspect-ratio: 210 / 297; }
.ratio-4x3 { aspect-ratio: 297 / 210; }

.media-frame img,
.media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease, filter .35s ease;
}

/**/
@media (hover: hover) and (pointer: fine) {
    .model-card:hover model-viewer,
    .model-card:focus-within model-viewer {
        transform: scale(1.04);
    }
}

.media-link:hover .media-frame img,
.media-link:focus-visible .media-frame img {
    transform: scale(1.04);
}
/* Stable animated preview on the same image */
.js-open-video .media-frame img[data-frames] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    opacity: 1;
    transition:
        transform .55s ease,
        filter .35s ease,
        opacity .42s cubic-bezier(.22, .61, .36, 1);
}
.js-open-video:hover .media-frame img[data-frames],
.js-open-video:focus-visible .media-frame img[data-frames],
.work-card:focus-within .js-open-video .media-frame img[data-frames] {
    transform: translateZ(0) scale(1.04);
}
/* One-time in-view pulse for print + web + video previews */
.print-card .media-frame img,
.web-card .media-frame img,
.js-open-video .media-frame img[data-frames] {
    transform: translateZ(0) scale(1);
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
}

.print-card .media-frame img.is-inview-pulse,
.web-card .media-frame img.is-inview-pulse,
.js-open-video .media-frame img[data-frames].is-inview-pulse {
    animation: previewInViewPulse 1200ms cubic-bezier(.22, .61, .36, 1) 1;
}

@keyframes previewInViewPulse {
    0%   { transform: translateZ(0) scale(1); }
    38%  { transform: translateZ(0) scale(1.045); }
    100% { transform: translateZ(0) scale(1); }
}

.media-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.38) 100%);
    opacity: .85;
    pointer-events: none;
}

.play-badge,
.corner-label,
.site-badge {
    position: absolute;
    z-index: 2;
    font-size: .84rem;
    line-height: 1;
}

.play-badge::before {
    content: "▶";
    font-size: .78rem;
}

.play-badge,
.corner-label {
    left: 16px;
    bottom: 16px;
    padding: 9px 16px 10px 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 22px;
}

.card-body h3,
.model-card h3,
.value-card h3,
.contact-card h2 {
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    /*hyphens: auto;*/
}

.lead,
.profile-subtitle,
.card-body p,
.model-card p,
.value-card p,
.contact-card p,
.model-copy p {
    line-height: 1.5;
}

.card-body h3 { font-size: 1.15rem; font-weight: normal; }

.card-body p,
.model-card p,
.value-card p,
.contact-card p,
.model-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .98rem;
}

.work-card--feature .card-body h3 { font-size: 1.28rem; }
.feature-card { min-height: 100%; }
.feature-card .card-body { padding: 22px 22px 24px; }
.feature-card .media-link::after { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.5) 100%); }

.model-grid .model-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px;
    background: var(--panel-strong);
}

model-viewer {
    width: 100%;
    height: 280px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top, rgba(123,176,255,.22), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    transition: transform .35s ease;
}

/* Firefox fix: Verhindert rechteckige Artefakte bei model-viewer/WebGL */
@-moz-document url-prefix() {
    model-viewer {
        background: #111827;
    }
}

.model-copy { display: grid; gap: 10px; padding-top: 18px; }
.value-card,
.contact-card { padding: 22px; }
.value-card h3 { font-size: 1.08rem; }
.hero-value-grid .value-card {
    display: flex;
    flex-direction: column;
}

.hero-value-grid .value-card p {
    margin-top: auto;
    padding-top: 10px;
}
.print-card .card-body { padding: 18px 18px 20px; }
.web-card .media-link::after { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.44) 100%); }
.site-badge {
    left: 16px;
    bottom: 16px;
    padding: 10px 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.contact-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.contact-wrap > .contact-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-column {
    display: grid;
    grid-template-rows: 1fr;
    gap: 18px;
    align-content: start;
    height: 100%;
}

.contact-column > .contact-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.contact-list { margin-top: 18px; }
.contact-list a { min-height: 46px; padding: 0 18px; }
.contact-intro { margin-top: 16px !important; }
.footer-note { color: var(--muted); font-size: .92rem; }

.contact-meta {
    display: grid;
    gap: 6px;
}

.contact-meta__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    align-items: center;
    color: var(--muted);
    font-size: .92rem;
    justify-content: space-between;
}
.contact-meta__legal span {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.4;
}

.contact-meta__nav {
    display: grid;
    gap: 0 8px;
    align-items: center;
    justify-content: start;
    grid-auto-flow: column;
}

.contact-meta__nav a,
.footer-row a {
    color: #d9e5fa;
    font-size: .92rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

.contact-meta__nav a:hover,
.contact-meta__nav a:focus-visible,
.footer-row a:hover {
    color: #ffffff;
    opacity: 1;
    outline: none;
    text-decoration: underline;
}

.reveal {
    opacity: .96;
    transform: none;
    transition: opacity .2s ease;
    will-change: opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 40px;
    width: 54px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, filter .2s ease, box-shadow .2s ease;
    z-index: 55;
    color:rgba(123, 176, 255, 0.62);
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 8, 14, 0.82);
    backdrop-filter: blur(14px);
}

.modal.is-open { display: flex; }

.modal__dialog {
    width: min(1100px, 100%);
    background: rgba(10, 13, 18, 0.96);
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal__media {
    position: relative;
    background: #05070b;
}

.modal__media video {
    width: 100%;
    max-height: min(78vh, 800px);
    display: block;
    background: #000;
}

.modal__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px 8px 20px;
}

.modal__title { margin: 0; font-size: 1rem; }
.modal__close { width: 40px; height: 40px; padding: 0; }

@media (min-width: 861px) {
    .brand {
        gap: 12px;
        overflow: visible;
    }

    .brand__name { margin: -1px 0 0; }

    .brand__avatar {
        width: 42px;
        height: 42px;
        opacity: 1;
        border-width: 1px;
        transform: scale(1);
        margin: 2px 0 0;
    }

    .site-header.is-scrolled .header-row {
        min-height: 40px;
        gap: 16px;
    }

    .site-header.is-scrolled .brand__avatar {
        width: 28px;
        height: 28px;
        opacity: 1;
        border-width: 1px;
        transform: scale(1);
        margin-right: 0;
    }

    .site-header.is-scrolled .brand__name {
        font-size: 1rem;
        letter-spacing: 0.01em;
    }

    .site-header.is-scrolled .brand__role {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        transform: translateY(-4px);
    }

    .site-header.is-scrolled .main-nav { gap: 16px; }

    .site-header.is-scrolled .main-nav a {
        min-height: 22px;
        padding: 0 2px;
        margin-top: 0;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 10px;
        color: #dfe8fb;
        opacity: .9;
        letter-spacing: 0.02em;
    }

    .site-header.is-scrolled .main-nav a::after { bottom: -1px; }

    .site-header.is-scrolled .main-nav a.is-current {
        color: #ffffff;
        opacity: 1;
    }

    .site-header.is-scrolled .main-nav a.is-current::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .site-header.is-scrolled .main-nav a:hover,
    .site-header.is-scrolled .main-nav a:focus-visible {
        transform: none;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        color: #ffffff;
        opacity: 1;
    }
}

@media (max-width: 1120px) {
    .hero-grid,
    .contact-wrap,
    .section-head--split {
        grid-template-columns: 1fr;
    }

    .header-row { padding-inline: 5px; }
    .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .video-grid > *,
    .print-grid .print-card--wide,
    .print-grid .print-card--tall,
    .web-grid > *,
    .value-grid > * {
        grid-column: span 6;
    }
}

@media (max-width: 860px) {
    :root { --header-height: 70px; }

    .nav-toggle { display: inline-flex; }
    .header-row { padding-inline: 7px; }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        padding: 12px;
        border-radius: 22px;
        border: 1px solid var(--line);
        background: rgba(10, 13, 18, 0.95);
        box-shadow: var(--shadow);
        display: none;
        gap: 8px;
    }

    .main-nav.is-open { display: flex; }
    .main-nav a { width: 100%; }

    .section-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }

    .section-topbar .eyebrow {
        white-space: normal;
        line-height: 1.15;
        padding-top: 10px;
    }

    .section-tools {
        width: 100%;
        justify-content: flex-start;
        gap: 7px;
    }

    .section-tools span {
        min-height: 30px;
        padding: 0 11px;
        font-size: .78rem;
        border-radius: 10px;
    }

    .video-grid > *,
    .print-grid .print-card--wide,
    .print-grid .print-card--tall,
    .web-grid > *,
    .value-grid > * {
        grid-column: span 12;
    }

    .model-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .contact-column { order: 2; }
    .contact-wrap > .contact-card { order: 1; height: auto; }
    model-viewer { height: 300px; }
    .value-grid { grid-template-columns: 1fr; }
    .value-grid > * { grid-column: auto; }
    .contact-meta__legal {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column-reverse;
    }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 5px), var(--container)); }
    .hero { padding-top: 28px; }
    .hero-copy,
    .value-card,
    .contact-card { padding: 15px; }
    .hero-side { padding: 0; }

    .section-card {
        --section-pad: 10px;
        padding: 0 var(--section-pad) var(--section-pad);
    }

    .profile-card .profile-subtitle { font-size: .98rem; }
    .spotlight-body { padding: 18px 18px 20px; }
    .hero h1 { max-width: none; }

    .hero-actions,
    .contact-list,
    .skill-list,
    .meta-tags,
    .stat-list,
    .card-tags {
        gap: 8px;
    }

    .stat-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        flex-direction: initial;
    }

    .stat-item {
        flex: unset;
        min-width: 0;
    }

    .btn { width: 100%; }
    .modal { padding: 10px; }
    .modal__body { align-items: start; }
    .scroll-top { right: 12px; bottom: 12px; }
    .hero-value-grid { grid-template-columns: 1fr; gap: 14px; }
    
        .hero h1 {
        font-size: clamp(1.55rem, 7vw, 1.9rem);
        line-height: 1.12;
        margin-bottom: 14px !important;
    }

    .hero-copy h2 {
        max-width: 100% !important;
        font-size: clamp(1.42rem, 6.4vw, 1.78rem);
        line-height: 1.34;
        letter-spacing: -0.035em;
        margin: 18px 0 26px;
    }
    
    .hero .section-card > h2 {
        max-width: 100% !important;
        font-size: clamp(1.18rem, 5.2vw, 1.46rem) !important;
        line-height: 1.36;
        letter-spacing: -0.025em;
        margin: 16px 0 22px !important;
    }

    .hero p.lead {
        font-size: 1rem;
        line-height: 1.58;
    }

    .hero p.lead strong {
        font-size: 1.02em;
        line-height: 1.28;
        margin-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Legal pages */

.legal-page .btn,
.legal-page .footer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 15px;
    border: 1px solid rgba(108, 173, 255, 0.8);
    background: linear-gradient(180deg, rgba(42, 66, 106, 1) 0%, rgba(27, 45, 77, 1) 56%, rgba(18, 31, 55, 1) 100%);
    color: #f3f7ff;
    box-shadow:
        0 14px 28px rgba(4, 14, 34, 0.34),
        0 0 22px rgba(61, 142, 255, 0.16),
        inset 0 1px 0 rgba(255,255,255,.10),
        inset 0 -1px 0 rgba(90, 140, 212, .14);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}

.legal-page .btn:hover,
.legal-page .btn:focus-visible,
.legal-page .footer-nav a:hover,
.legal-page .footer-nav a:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(132, 188, 255, 0.95);
    box-shadow:
        0 18px 34px rgba(4, 17, 39, 0.4),
        0 0 28px rgba(67, 150, 255, 0.22),
        inset 0 1px 0 rgba(255,255,255,.12);
    filter: brightness(1.03);
}

.legal-page .page { padding: 34px 0 40px; }

.legal-page .card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 38px);
}

.legal-page .card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%);
    opacity: .75;
}

.legal-page .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #d7e5ff;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-page .lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 73ch;
}

.legal-page .grid {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.legal-page .legal-grid--privacy {
    grid-template-columns: minmax(240px, 0.68fr) minmax(460px, 1.32fr);
    align-items: start;
}

.legal-page .legal-grid--privacy > .info-box {
    grid-column: 1 / -1;
}

.legal-page .legal-grid--privacy > .info-box--narrow {
    grid-column: 1;
    min-height: 100%;
}

.legal-page .legal-grid--privacy > .info-box--wide {
    grid-column: 2;
    min-height: 100%;
}

.legal-page .info-box {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px 18px 20px;
}

.legal-page .info-box h2 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.legal-page .info-box h3 {
    margin: 22px 0 10px;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.legal-page .info-box p,
.legal-page .info-box li,
.legal-page .info-box address {
    margin: 0;
    color: #e7edf9;
    font-style: normal;
}

.legal-page .info-box ul {
    margin: 10px 0 0 18px;
    padding: 0;
    display: grid;
    gap: 6px;
}

.legal-page .stack {
    display: grid;
    gap: 8px;
}

p.muted { color: var(--muted); margin: 0 0 -15px;}
.legal-page .full { grid-column: 1 / -1; }

.footer {
    padding: 0 0 10px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 16px; */
    flex-wrap: wrap;
    font-size: .94rem;
    color: var(--muted);
}
.legal-page .footer-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-page .footer-nav a {
    min-height: 40px;
    padding: 0 16px;
}

.legal-page .text-block {
    display: grid;
    gap: 14px;
}

.legal-page .text-block > * {
    max-width: 75ch;
    min-width: 0;
}

.legal-page .text-block.split-2 {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    align-items: start;
}

.legal-page .text-block.split-2::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 14%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.08) 86%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-50%) scaleY(1);
    transform-origin: center;
    filter: blur(0.15px);
}

.legal-page .text-block.split-2 > * {
    max-width: none;
    min-width: 0;
}

.legal-page .text-block.split-2 > .split-2__col {
    display: grid;
    gap: 14px;
    align-content: start;
}
.legal-page .text-block.split-2 > .split-2__col:first-child {
    padding-right: 15px;
}

.legal-page .text-block.split-2 > .split-2__col:last-child {
    padding-left: 15px;
}
.legal-page .info-box--narrow .muted {
    display: block;
    margin-top: 14px;
}

.legal-page .info-box.text-heavy .text-block {
    gap: 18px;
}

.legal-page .info-box.full .text-block:not(.split-2) > * {
    max-width: 80ch;
}

@media (max-width: 980px) {
    .legal-page .legal-grid--privacy {
        grid-template-columns: 1fr;
    }

    .legal-page .legal-grid--privacy > .info-box,
    .legal-page .legal-grid--privacy > .info-box--narrow,
    .legal-page .legal-grid--privacy > .info-box--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .legal-page .text-block.split-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    p.muted {margin: 0 0 0px 5px;}
    .legal-page .text-block.split-2::before {
        display: none;
    }
    .legal-page .text-block.split-2 > .split-2__col:first-child,
    .legal-page .text-block.split-2 > .split-2__col:last-child {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 760px) {
    .btn,
    .footer-nav a {
        width: 100%;
    }
    .footer-row {
        align-items: flex-start;
        flex-direction: column-reverse;
        margin-left: 10px;
    }
}
.legal-page .legal-grid--impressum {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.legal-page .legal-grid--impressum > .info-box {
    min-height: 100%;
}

.legal-page .legal-grid--impressum > .info-box .text-block > * {
    max-width: none;
}

@media (max-width: 980px) {
    .legal-page .legal-grid--impressum {
        grid-template-columns: 1fr;
    }
}


/* Accessibility additions */

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(132, 188, 255, 0.95);
    background: #0b1018;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(4, 14, 34, 0.34);
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

#main-content:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible,
model-viewer:focus-visible {
    outline: 3px solid #ffffff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 4px rgba(123, 176, 255, 0.38) !important;
}

.contact-noscript {
    margin: 0;
    width: 100%;
}

.contact-noscript-inline {
    display: inline;
}

.contact-link:focus-visible,
.footer-row a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    border-radius: 10px;
}

@media (forced-colors: active) {
    .skip-link,
    a,
    button,
    input,
    textarea,
    select,
    [role="button"],
    [tabindex],
    summary {
        forced-color-adjust: auto;
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible,
    [role="button"]:focus-visible,
    [tabindex]:focus-visible,
    summary:focus-visible {
        outline: 2px solid CanvasText !important;
        outline-offset: 2px !important;
        box-shadow: none !important;
    }
}
/* Только верхние заголовки print-карточек */
#print .print-card .section-topbar {
    margin: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(24, 33, 50, 0.96) 0%, rgba(17, 24, 38, 0.98) 100%);
    border-bottom: 1px solid rgba(123, 176, 255, 0.22);
    flex-direction: row;
}

#print .print-card .section-topbar .eyebrow {
    padding: 0;
    font-size: .82rem;
    letter-spacing: .06em;
    line-height: 1.15;
    margin: 0 0 0 5px;
}
.benefit-icon-svg {
    width: 21px;
    height: 21px;
    flex: 0 0 26px;
    overflow: visible;
}


.about-card {
    position: relative;
    overflow: hidden;
}

.about-card > * {
    position: relative;
    z-index: 2;
}

.about-card::before {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 60%;
    height: 58%;
    z-index: 1;
    pointer-events: none;

    background:
        radial-gradient(circle at 50% 72%,
            rgba(255, 130, 35, .20),
            rgba(255, 80, 20, .09) 30%,
            transparent 70%),
        url("webstr/embers.webp");

    background-size: 100% 100%, contain;
    background-position: center bottom, center bottom;
    background-repeat: no-repeat, no-repeat;

    opacity: 0;
    filter: blur(.35px);

    transform: translateY(-22%);
    animation: emberReveal 2.6s ease-out forwards;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 16%,
        #000 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 16%,
        #000 82%,
        transparent 100%
    );
}

@keyframes emberReveal {
    0% {
        opacity: 0;
        transform: translateY(-28%);
    }

    18% {
        opacity: .54;
    }

    62% {
        opacity: .30;
    }

    100% {
        opacity: 0;
        transform: translateY(18%);
    }
}

.about-card .about-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    flex-direction: initial;
}

.about-card .about-benefits > span {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    white-space: normal;
    line-height: 1.15;
}

@media (max-width: 640px) {
    .about-card .about-benefits {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        margin-top: 22px;
        flex-direction: initial;
    }

    .about-card .about-benefits > span {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 8px 10px;
        white-space: normal;
        line-height: 1.18;
    }

    .about-card .about-benefits .benefit-text {
        display: inline-block;
        max-width: 105px;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font-size: inherit;
        line-height: 1.18;
        white-space: normal;
    }

    .about-card .about-benefits .benefit-icon-svg {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }
}