/* vlpl.ch — Entwurf Phase 3 */

/* ---------- Fonts ---------- */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(../fonts/inter-tight-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(../fonts/inter-tight-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(../fonts/inter-tight-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(../fonts/inter-tight-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(../fonts/inter-tight-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(../fonts/inter-tight-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-2: #5A5852;
  --line: #D9D7D0;
  --accent: #C8371D;
  --on-accent: #FFFFFF;
  --invert-bg: #141414;
  --invert-ink: #F4F3EF;
  --invert-ink-2: #A19E97;
  --invert-line: #33322F;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --max: 1280px;
  --gutter: 20px;
  --section: clamp(72px, 10vw, 144px);
  --radius: 2px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.meta { font: 400 12.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 12px; height: 12px; background: var(--accent); display: inline-block; }
.nav { display: none; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; }
.lang { display: flex; gap: 10px; font: 400 12.5px var(--mono); color: var(--ink-2); }
.lang a { text-decoration: none; }
.lang [aria-current] { color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 20px; }
@media (min-width: 960px) { .nav { display: flex; } .menu { display: none; } }

.menu summary { list-style: none; cursor: pointer; font: 400 12.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: block; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
.menu-panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 22px; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; font-size: 16px; border: 1px solid var(--ink); border-radius: var(--radius); transition: background .15s, border-color .15s, color .15s; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.ext::after { content: "↗"; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(48px, 7vw, 96px); }
.hero .meta { margin-bottom: 28px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -0.04em; line-height: 0.98; max-width: 14ch; }
.hero-lead { margin-top: 32px; font-size: clamp(18px, 1.7vw, 21px); max-width: 38ch; color: var(--ink-2); }
.hero-lead strong { color: var(--ink); font-weight: 500; }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.hero-grid { display: grid; gap: 48px; }
.hero-card { border: 1px solid var(--line); background: var(--surface); padding: 28px; display: grid; gap: 14px; align-content: start; max-width: 420px; }
.hero-card .link-arrow { justify-self: start; margin-top: 6px; }
.hero-card-price { font-size: 56px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.hero-card-price small { font: 400 13px var(--mono); letter-spacing: 0; color: var(--ink-2); margin-right: 8px; vertical-align: 0.9em; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: 1fr 340px; align-items: end; gap: 64px; } }
.facts { margin-top: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.facts .meta { margin: 0; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .facts li { flex-direction: column; justify-content: flex-start; gap: 6px; border-bottom: 0; padding: 18px 20px 18px 0; }
  .facts li + li { border-left: 1px solid var(--line); padding-left: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.sec-head { display: grid; gap: 20px; border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.035em; max-width: 18ch; }
.sec-head p { margin-top: 18px; color: var(--ink-2); max-width: 52ch; font-size: 18px; }
.sec-num { color: var(--ink); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 3fr 9fr; } }

.grid-9 { display: grid; }
@media (min-width: 900px) { .grid-9 { grid-template-columns: 3fr 9fr; } .grid-9 > :first-child { grid-column: 1; } .grid-9 > .span-9 { grid-column: 2; } }
.after-link { margin-top: 40px; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 48px 32px; }
@media (min-width: 700px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .projects.three { grid-template-columns: repeat(3, 1fr); } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 16px; }
.card:hover { color: var(--ink); }
.card:hover h3 { color: var(--accent); }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.card:hover .shot img { transform: scale(1.02); }
.shot.hatch { background: repeating-linear-gradient(-45deg, var(--surface) 0 10px, color-mix(in srgb, var(--line) 55%, var(--surface)) 10px 11px); display: grid; place-items: center; }
.shot.hatch span { font: 400 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--bg); padding: 6px 10px; border: 1px solid var(--line); }
.tag { position: absolute; left: 12px; top: 12px; font: 400 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--bg); color: var(--ink); padding: 5px 8px; border: 1px solid var(--line); }
.card h3 { font-size: 24px; transition: color .15s; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .meta { display: flex; gap: 10px; }

/* ---------- Services ---------- */
.services li { display: grid; gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { font-size: clamp(22px, 2.4vw, 28px); }
.services p { color: var(--ink-2); max-width: 54ch; }
.services .price { font: 400 14px var(--mono); white-space: nowrap; }
@media (min-width: 900px) {
  .services li { grid-template-columns: 3fr 4fr 4fr 2fr; align-items: baseline; }
  .services .price { text-align: right; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 16px; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 0; } .plan + .plan { border-left: 0; } }
.plan { border: 1px solid var(--line); background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan h3 { font-size: 22px; }
.plan .amount { font-size: clamp(40px, 4vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.plan .amount small { font: 400 14px var(--mono); letter-spacing: 0; color: var(--ink-2); margin-right: 6px; vertical-align: 0.6em; }
.plan .for { color: var(--ink-2); font-size: 15px; min-height: 3em; }
.plan ul { display: grid; gap: 10px; font-size: 15px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: currentColor; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.featured { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.plan.featured .for, .plan.featured .amount small { color: var(--invert-ink-2); }
.plan.featured ul { border-color: var(--invert-line); }
.plan.featured .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.plan.featured .btn:hover { background: var(--invert-ink); border-color: var(--invert-ink); color: var(--invert-bg); }
.badge-rec { position: absolute; top: -1px; right: -1px; background: var(--accent); color: var(--on-accent); font: 400 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; }
.price-notes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); }

/* ---------- Products ---------- */
.products li { display: grid; gap: 10px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.products li:last-child { border-bottom: 1px solid var(--line); }
.products h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.products p { color: var(--ink-2); max-width: 52ch; }
.products .side { display: flex; gap: 20px; align-items: baseline; justify-content: space-between; font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: pulse 2.4s infinite; }
.status.paused::before { background: var(--ink-2); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (min-width: 900px) {
  .products li { grid-template-columns: 3fr 6fr 3fr; align-items: baseline; }
  .products .side { flex-direction: column; align-items: flex-end; gap: 8px; }
}

/* ---------- Process ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.steps .meta { color: var(--accent); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } .steps li { padding-top: 24px; } }
.note { margin-top: 32px; font-size: 15px; color: var(--ink-2); max-width: 64ch; }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; }
.about .mono-mark { aspect-ratio: 1; max-width: 280px; background: var(--invert-bg); color: var(--invert-ink); display: grid; place-items: center; font-size: clamp(64px, 9vw, 120px); font-weight: 600; letter-spacing: -0.06em; position: relative; }
.about .mono-mark::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 14px; height: 14px; background: var(--accent); }
.about .text p + p { margin-top: 18px; }
.about .text p:first-child { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; line-height: 1.4; }
.kv { margin-top: 32px; display: grid; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (min-width: 900px) { .about { grid-template-columns: 3fr 9fr; } .about .text { max-width: 62ch; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--ink-2); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: 64px; } }
.contact h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.04em; }
.contact .lead { margin-top: 20px; color: var(--ink-2); font-size: 18px; max-width: 40ch; }
.channels { margin-top: 40px; border-top: 1px solid var(--line); }
.channels a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
.channels a .meta { align-self: center; }
form.form { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; }
.row { display: grid; gap: 20px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font: 400 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field label .opt { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form .fine { font-size: 13px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); margin-top: var(--section); padding: 48px 0 32px; font-size: 15px; }
.foot { display: grid; gap: 32px; }
.foot h4 { font: 400 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; }
@media (min-width: 760px) { .foot { grid-template-columns: 4fr 2fr 2fr 2fr; } }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-2); font-size: 13px; }
.foot-bottom a { text-decoration: none; }

/* ---------- Case study ---------- */
.crumbs { padding-top: 32px; }
.crumbs a { text-decoration: none; }
.case-hero { padding: 40px 0 56px; }
.case-hero h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.045em; line-height: 0.98; }
.case-hero .lead { margin-top: 28px; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; max-width: 46ch; color: var(--ink-2); }
.case-hero .lead strong { color: var(--ink); font-weight: 500; }
.case-hero .hero-cta { margin-top: 36px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 56px; }
.spec div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; }
@media (min-width: 900px) { .spec { grid-template-columns: repeat(4, 1fr); } .spec div + div { border-left: 1px solid var(--line); padding-left: 16px; } }
.case-visual { margin-top: 8px; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; }
.case-visual.hatch { background: repeating-linear-gradient(-45deg, var(--surface) 0 10px, color-mix(in srgb, var(--line) 55%, var(--surface)) 10px 11px); }
.case-visual .tile { background: var(--bg); border: 1px solid var(--line); padding: 10px 14px; font: 400 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.prose { max-width: 64ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 18px; }
.prose ul { display: grid; gap: 10px; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .74em; width: 10px; height: 1px; background: var(--ink); }
.prose strong { font-weight: 600; }
.prose .big { font-size: clamp(20px, 2vw, 24px); line-height: 1.42; letter-spacing: -0.01em; }
.feature-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-grid div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature-grid h3 { font-size: 20px; margin-bottom: 8px; }
.feature-grid p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.stack span { font: 400 12.5px var(--mono); border: 1px solid var(--line); padding: 6px 10px; }
.mini-pricing { display: grid; border: 1px solid var(--line); background: var(--surface); }
.mini-pricing div { padding: 24px; display: grid; gap: 8px; }
.mini-pricing div + div { border-top: 1px solid var(--line); }
.mini-pricing strong { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; }
@media (min-width: 760px) { .mini-pricing { grid-template-columns: repeat(3, 1fr); } .mini-pricing div + div { border-top: 0; border-left: 1px solid var(--line); } }
.cta-band { background: var(--invert-bg); color: var(--invert-ink); padding: clamp(48px, 7vw, 96px) 0; margin-top: var(--section); }
.cta-band h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.035em; max-width: 20ch; }
.cta-band p { margin-top: 18px; color: var(--invert-ink-2); max-width: 48ch; font-size: 18px; }
.cta-band .hero-cta .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cta-band .link-arrow:hover { color: var(--invert-ink); }
.next-case { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; margin-top: var(--section); }
.next-case strong { font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -0.03em; }

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

/* header CTA only on desktop */
.header-cta { display: none; }
@media (min-width: 960px) { .header-cta { display: inline-flex; } }

/* ---------- Astro build additions ---------- */
.logo { color: var(--ink); }
.logo-svg { display: block; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
ol.steps { list-style: none; margin: 0; padding: 0; }
.services h3 a { text-decoration: none; }

.page-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(24px, 4vw, 48px); }
.page-hero .meta { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(42px, 6.6vw, 84px); letter-spacing: -0.04em; line-height: 1; max-width: 16ch; }
.page-hero .hero-lead { margin-top: 28px; }
.jump { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { font: 400 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); padding: 8px 12px; }
.jump a:hover { border-color: var(--ink); color: var(--ink); }

.card-lg h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.card-price { color: var(--ink); }
.tag-status { left: auto; right: 12px; }
.tag-status .status { font-size: 11px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 16px 32px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 0; }
.filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter label { cursor: pointer; font: 400 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 10px 14px; display: inline-flex; gap: 8px; }
.filter label span { color: var(--ink-2); }
.filter input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter input:checked + label span { color: inherit; opacity: .7; }
.filter input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
body:has(#f-produkte:checked) .project-group:not([data-group="produkte"]),
body:has(#f-konzepte:checked) .project-group:not([data-group="konzepte"]),
body:has(#f-kunden:checked) .project-group:not([data-group="kunden"]) { display: none; }
.project-group:last-of-type { padding-bottom: 0; }

.case-kicker { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 24px; }
.concept-flag { color: var(--accent); }
.case-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.concept-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 80ch; }
.case-body { margin-top: var(--section); display: grid; }
.case-body > h2, .case-body section > h2 {
  border-top: 1px solid var(--ink); padding-top: 20px; margin: 0 0 32px;
  font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.035em;
}
.case-body > h2:not(:first-child), .case-body section { margin-top: clamp(56px, 7vw, 96px); }
.case-body > p, .case-body > ul { max-width: 64ch; }
.case-body > p + p, .case-body > p + ul, .case-body > ul + p { margin-top: 18px; }
.case-body > h2 + p { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; letter-spacing: -0.01em; }
.case-body > ul { display: grid; gap: 10px; margin-top: 18px; }
.case-body > ul li { padding-left: 22px; position: relative; }
.case-body > ul li::before { content: ""; position: absolute; left: 0; top: .74em; width: 10px; height: 1px; background: var(--ink); }
.case-body strong { font-weight: 600; }
.case-body .stack { margin-top: 0; }
@media (min-width: 900px) {
  .case-body { grid-template-columns: 3fr 9fr; column-gap: 0; }
  .case-body > *, .case-body section { grid-column: 2; }
  .case-body > h2, .case-body section > h2 { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 9fr; }
  .case-body > h2::before, .case-body section > h2::before { content: ""; }
  .case-body section { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 9fr; }
  .case-body section > h2 { grid-column: 1 / -1; }
  .case-body section > .stack, .case-body section > .case-gallery { grid-column: 2; }
}
.next-case + * { margin-top: 0; }
main:has(> .cta-band:last-child) + .site-footer { margin-top: 0; }

.prose h3 { font-size: 20px; margin: 32px 0 14px; }
.prose a:not(.btn) { color: var(--ink); }
.price-line { font: 400 14px var(--mono); padding-top: 16px; border-top: 1px solid var(--line); margin-top: 28px !important; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.kv-wide { grid-template-columns: 12rem 1fr !important; }
@media (max-width: 600px) { .kv div, .kv-wide { grid-template-columns: 1fr !important; gap: 4px !important; } }
.contact-title { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.04em; line-height: 1.04; }
.form-status:empty { display: none; }
.form-status { font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); }
.form-status[data-ok="1"] { border-color: var(--ink); }
.form-status[data-ok="0"] { border-color: var(--accent); color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.card .meta { flex-wrap: wrap; gap: 2px 8px; }

/* ---------- Hero 3D ---------- */
.hero-3d { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 42%, rgba(242, 107, 79, .16), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(255, 255, 255, .9), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 80px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 35%, transparent 85%);
          mask-image: radial-gradient(120% 90% at 70% 40%, #000 35%, transparent 85%);
  opacity: .9; }
.hero-3d .hero-grid { align-items: center; }
@media (min-width: 1100px) { .hero-3d .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; } }

.stage { --mx: 0; --my: 0; position: relative; height: clamp(320px, 52vw, 600px); perspective: 1800px; perspective-origin: 50% 30%; }
.stage-glow { position: absolute; left: 50%; top: 58%; width: 70%; height: 30%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(20, 20, 20, .22), transparent); filter: blur(20px); }
.hstack { position: absolute; left: 56%; top: 60%; width: min(78%, 520px); aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(calc(54deg + var(--my) * -6deg)) rotateZ(calc(-34deg + var(--mx) * 8deg)); }
.stack-base { position: absolute; inset: -6%; border: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px; opacity: .8; }
.layer { position: absolute; inset: 0; margin: 0; border-radius: 6px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 50px -20px rgba(20, 20, 20, .35), 0 0 0 1px rgba(20, 20, 20, .08);
  transform: translate3d(calc(var(--i) * -5%), calc(var(--i) * -7%), calc(var(--i) * 60px + 20px));
  animation: layer-in 1.1s cubic-bezier(.2, .8, .2, 1) both, layer-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 110ms + 150ms), calc(var(--i) * -1.1s); }
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.layer figcaption { position: absolute; left: 10px; bottom: 10px; font: 400 10px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(244, 243, 239, .92); color: var(--ink); padding: 4px 7px; border: 1px solid var(--line); }
@keyframes layer-in { from { opacity: 0; transform: translate3d(0, 30%, -140px); } }
@keyframes layer-float { 50% { transform: translate3d(calc(var(--i) * -5%), calc(var(--i) * -7%), calc(var(--i) * 60px + 34px)); } }
.layer:nth-child(2) { animation-name: layer-in, layer-float; }
.stage-badge { position: absolute; right: 2%; top: 6%; z-index: 2; display: grid; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; box-shadow: 0 18px 40px -18px rgba(20, 20, 20, .35);
  animation: badge-in .8s .9s cubic-bezier(.2, .8, .2, 1) both; }
.stage-badge strong { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.stage-badge::before { content: ""; position: absolute; left: -1px; top: -1px; width: 10px; height: 10px; background: var(--accent); }
@keyframes badge-in { from { opacity: 0; transform: translateY(12px); } }

.hero-3d h1 { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-3d .hero-lead { animation: rise .9s .12s cubic-bezier(.2, .8, .2, 1) both; }
.hero-3d .hero-cta { animation: rise .9s .22s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 1099px) { .stage { margin-top: 8px; } .hstack { width: min(82%, 460px); } }
@media (max-width: 600px) { .stage { height: 320px; } .hstack { width: 70%; left: 60%; } .layer { transform: translate3d(calc(var(--i) * -4%), calc(var(--i) * -6%), calc(var(--i) * 36px + 12px)); }
  @keyframes layer-float { 50% { transform: translate3d(calc(var(--i) * -4%), calc(var(--i) * -6%), calc(var(--i) * 36px + 20px)); } } .stage-badge { padding: 8px 12px; } .stage-badge strong { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .layer, .stage-badge, .hero-3d h1, .hero-3d .hero-lead, .hero-3d .hero-cta { animation: none !important; } }

.logo-svg { height: auto; }
.site-header .wrap { height: 68px; }
.menu-panel { top: 68px; }

/* ---------- Portrait ---------- */
.portrait { position: relative; margin: 0; max-width: 280px; aspect-ratio: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid var(--line); }
.portrait::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 64px; height: 64px; border-left: 5px solid var(--accent); border-bottom: 5px solid var(--accent); pointer-events: none; }
.portrait-mark { display: none; }
.portrait-lg::after { width: 88px; height: 88px; left: -16px; bottom: -16px; border-width: 6px; }
.about-hero { display: grid; gap: 48px; align-items: end; }
.portrait-lg { max-width: 400px; width: 100%; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1fr 400px; } }
@media (max-width: 600px) { .portrait { max-width: 72vw; } }

/* Hero passt in die erste Bildschirmhöhe (Buttons ohne Scrollen sichtbar) */
.hero-3d { padding: clamp(28px, 6vh, 88px) 0 clamp(40px, 6vh, 80px); }
.hero-3d .hero-grid { min-height: calc(100svh - 68px - clamp(28px, 6vh, 88px) - 24px); }
.hero-3d .meta { margin-bottom: clamp(14px, 2.4vh, 28px); }
.hero-3d h1 { font-size: clamp(40px, min(6.6vw, 9.6vh), 96px); }
.hero-3d .hero-lead { margin-top: clamp(16px, 2.8vh, 32px); font-size: clamp(17px, min(1.5vw, 2.2vh), 21px); }
.hero-3d .hero-cta { margin-top: clamp(20px, 3.4vh, 40px); }
.hero-3d .stage { height: min(600px, 68vh); }
.hero-3d .facts { margin-top: clamp(24px, 4vh, 56px); }
@media (max-width: 1099px) { .hero-3d .hero-grid { min-height: 0; } .hero-3d .stage { height: clamp(300px, 52vw, 520px); } }

/* Tabellen in Rechtstexten */
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0 8px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.prose td:last-child, .prose th:last-child { padding-right: 0; white-space: nowrap; }
.foot-bottom span:last-child { display: flex; flex-wrap: wrap; gap: 0 4px; }

/* Projektbild als Link zur Website bzw. Demo */
a.case-visual { display: block; position: relative; text-decoration: none; color: inherit; }
a.case-visual img { transition: transform .4s ease; }
a.case-visual:hover img { transform: scale(1.01); }
.case-open { position: absolute; right: 16px; bottom: 16px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: var(--radius); }
a.case-visual:hover .case-open { background: var(--accent); color: var(--on-accent); }

/* Logo «Terminal»: Cursor blinkt kurz beim Laden, dann ruhig */
@keyframes vlpl-blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
.site-header .logo-cursor { animation: vlpl-blink 1.1s steps(1) 0s 3; }
.logo:hover .logo-cursor { animation: vlpl-blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .logo-cursor { animation: none !important; } }

/* ---------- Eigene SaaS-Produkte (Produktkarten) ---------- */
.pcard { text-decoration: none; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.pcard:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.pcard .shot { border: 0; border-bottom: 1px solid var(--line); }
.pcard:hover .shot img { transform: scale(1.02); }
.pcard-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 22px; flex: 1; }
.pcard h3 { font-size: clamp(24px, 2.2vw, 28px); letter-spacing: -0.03em; }
.pcard p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.pcard-link { margin-top: auto; padding-top: 12px; font: 400 13px var(--mono); letter-spacing: .02em; color: var(--ink); }
.pcard-link.int::after { content: " →"; }
.pcard:hover .pcard-link { color: var(--accent); }
.tag-badge { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.pcard:hover .tag-badge { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover { transform: none; } }

/* ---------- Zwei Wege: VLPL Custom vs. VFlow Express ---------- */
.offers { display: grid; gap: 20px; }
@media (min-width: 900px) { .offers { grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; } }
.offer { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: var(--surface); }
.offer h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.035em; line-height: 1.05; }
.offer-price { font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-top: 8px; }
.offer-price span { font-size: .38em; letter-spacing: 0; font-weight: 400; color: var(--ink-2); margin-right: 4px; vertical-align: .55em; }
.offer-sub { font: 400 13px var(--mono); color: var(--ink-2); }
.offer-text { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 56ch; }
.offer ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.offer li { position: relative; padding-left: 22px; font-size: 16px; }
.offer li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer ul { margin-bottom: 12px; }
.offer-main { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.offer-main .meta, .offer-main .offer-sub, .offer-main .offer-text, .offer-main .offer-price span { color: var(--invert-ink-2); }
.offer-main ul { border-color: var(--invert-line); }
.offer-main .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.offer-main .btn:hover { background: var(--invert-ink); border-color: var(--invert-ink); color: var(--invert-bg); }
.offer-express li::before { background: var(--ink); }
.offer-kicker { letter-spacing: .06em; }
@media (max-width: 599px) { .offer .btn { align-self: stretch; justify-content: center; } }

/* ---------- Case Studies: breite Karte, Galerie, Badge ---------- */
.projects.one { grid-template-columns: 1fr; }
.pcard-meta { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
@media (min-width: 900px) {
  .pcard-wide { flex-direction: row; }
  .pcard-wide .shot { flex: 0 0 58%; border-bottom: 0; border-right: 1px solid var(--line); }
  .pcard-wide .pcard-body { padding: clamp(28px, 3.5vw, 48px); justify-content: center; }
  .pcard-wide h3 { font-size: clamp(30px, 3vw, 40px); }
}
.case-badge { background: var(--invert-bg); color: var(--invert-ink); padding: 3px 8px; }
.case-gallery { display: grid; gap: 24px; }
@media (min-width: 900px) { .case-gallery { grid-template-columns: 1fr 1fr; } }
.case-gallery figure { margin: 0; display: grid; gap: 10px; }
.case-gallery img { width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); }
.case-gallery figcaption { color: var(--ink-2); }
