/* ooertle.ch — prototype stylesheet (Phase 1, round 2). Mobile-first, one file, no framework.
   Brand (docs/brand.md): Ink Black #161616, Signal Yellow #FFCC00 (accents/CTA/active only), White.
   Fonts: Manrope (headings, nav, buttons), Work Sans (body, labels).
   Project pages follow the look of the AI portfolio (legacy/ai-portfolio): soft cards, gold eyebrows, line icons. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Metric-matched fallbacks: until the web fonts arrive, text is set in Arial scaled to the real font's average width,
   so the swap does not re-wrap headings/paragraphs (layout shift). Measured on the site's own copy. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101%;
}
@font-face {
  font-family: "Work Sans Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 110.7%;
}

:root {
  --bg: #161616;
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --mut: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.52);
  --gold: #ffcc00;
  --gold-soft: rgba(255, 204, 0, 0.09);
  --gold-line: rgba(255, 204, 0, 0.35);
  --gold-ink: #161616;
  --good: #7fd69b;
  --head: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Work Sans", "Work Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 15px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; font: 700 0.9rem var(--head); border-radius: 6px; }
.skip-link:focus { top: 8px; color: var(--gold-ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 30px; max-width: 760px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--mut); margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.muted { color: var(--mut); }
.eyebrow { font: 600 0.76rem/1.4 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0; }
.eyebrow--mut { color: var(--faint); }

/* ---------- header (logo master file, cropped to its clear space via CSS only) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(22, 22, 22, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { --w: 112px; display: block; flex: none; width: var(--w); height: calc(var(--w) * 52 / 112.5); overflow: hidden; }
.logo img { width: calc(var(--w) * 220 / 112.5); max-width: none; height: auto; margin: calc(var(--w) * -32.1 / 112.5) 0 0 calc(var(--w) * -54.6 / 112.5); }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); color: var(--ink); font: 600 0.85rem/1 var(--head); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { width: 16px; height: 2px; background: currentColor; display: block; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: grid; gap: 2px; }
.site-nav a { display: block; padding: 12px 4px; font: 600 1rem/1.2 var(--head); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .btn { margin-top: 14px; border-bottom: 0; text-align: center; }
.no-js .site-nav { display: block; position: static; border: 0; padding: 0 0 12px; }
.no-js .nav-toggle { display: none; }
@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; }
  .site-nav a { padding: 6px 0; border: 0; font-size: 0.95rem; }
  .site-nav .btn { margin: 0 0 0 4px; padding: 10px 16px; min-height: 42px; }
  .logo { --w: 124px; }
}

/* language switch: segmented control DE | EN (current = span, other = link) */
.lang-switch { display: inline-flex; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; flex: none; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 38px; padding: 0 10px; font: 700 0.8rem/1 var(--head); letter-spacing: 0.04em; text-decoration: none; color: var(--mut); }
.lang-switch a + span, .lang-switch span + a { border-left: 1px solid var(--line-strong); }
.lang-switch a:hover { color: var(--ink); background: var(--card-2); }
.lang-switch a:focus-visible { outline-offset: -3px; }
.lang-switch [aria-current] { color: var(--gold); background: var(--gold-soft); }
@media (min-width: 920px) {
  .site-nav { margin-left: auto; }
  .lang-switch { margin-left: 0; }
  .lang-switch a, .lang-switch span { min-height: 34px; min-width: 36px; }
}

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 700 0.98rem/1.1 var(--head); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn--primary { background: var(--gold); color: var(--gold-ink); }
.btn--primary:hover { background: #ffd83d; color: var(--gold-ink); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold-line); color: var(--gold); background: var(--gold-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font: 600 0.72rem/1.4 var(--body); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--mut); white-space: nowrap; }
.badge--live { color: var(--good); border-color: rgba(127, 214, 155, 0.4); }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(127, 214, 155, 0.18); }
.badge--agency { color: var(--ink); border-color: rgba(255, 255, 255, 0.32); }
.badge--gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; }

/* ---------- cards (AI-portfolio style) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; }
.icon { width: 52px; height: 52px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- home: hero ---------- */
.hero {
  position: relative; padding: 40px 0 56px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: 1.12rem; color: var(--mut); max-width: 38rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.hero-photo { position: relative; width: min(100%, 300px); margin: 0 auto; order: -1; }
.hero-photo img { width: 100%; aspect-ratio: 1000 / 984; object-fit: cover; border-radius: 22px; border: 1px solid var(--line-strong); }
.hero-photo::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: -10px; height: 6px; border-radius: 3px; background: var(--gold); }
.hero-tag { position: absolute; left: -10px; bottom: 24px; background: rgba(22, 22, 22, 0.92); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; font-size: 0.82rem; color: var(--mut); }
.hero-tag strong { font: 800 1.35rem/1 var(--head); color: var(--ink); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.25fr 0.9fr; gap: 64px; }
  .hero-photo { order: 0; width: 100%; max-width: 440px; }
  .hero-tag { left: -28px; bottom: 40px; }
}

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-width: 0; }
.kpi-value { font: 800 clamp(1.8rem, 7vw, 2.6rem)/1 var(--head); letter-spacing: -0.03em; color: var(--gold); }
.kpi-text { font-size: 0.9rem; line-height: 1.4; color: var(--mut); }
.kpi-src { font-size: 0.75rem; color: var(--faint); }
@media (min-width: 700px) { .kpis--3 { grid-template-columns: repeat(3, 1fr); } .kpis--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .kpis--6 { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .kpis--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 699px) { .kpis--3 .kpi:last-child { grid-column: 1 / -1; } }

/* ---------- services: three equal cards, highlight on hover and keyboard focus ---------- */
.services { display: grid; gap: 14px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service { position: relative; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, background-color .2s, transform .2s; }
.service:hover, .service:focus-within { border-color: var(--gold-line); background: var(--gold-soft); transform: translateY(-3px); }
.service h3 { font-size: 1.3rem; margin: 0; }
.service > p { margin: 0; color: var(--mut); }
.service-list { list-style: none; display: grid; align-content: start; gap: 7px; font-size: 0.95rem; }
.service-list li { padding-left: 20px; position: relative; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 2px; background: var(--gold); }
.service-for { font-size: 0.88rem; color: var(--faint); margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.service-for b { color: var(--mut); font-weight: 600; }
.service-link { margin-top: auto; font: 700 0.95rem/1.2 var(--head); text-decoration: none; color: var(--gold); }
.service-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-link:focus-visible { outline: none; }
.service:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }

/* process stepper (a real sequence, so numbered) */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; margin-top: 8px; }
.step { position: relative; padding: 0 0 26px 58px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold); font: 800 1rem/38px var(--head); text-align: center; }
.step::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 1px; background: var(--gold-line); }
.step:last-child::after { display: none; }
.step h3 { margin: 6px 0 4px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--mut); font-size: 0.95rem; }
.step--opt::before { border-style: dashed; }
.step-box { border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px 16px 16px; height: 100%; box-sizing: border-box; }
.step--opt .step-box { border-style: dashed; }
.step-box .badge { margin-bottom: 4px; }
.step-box h3 { margin-top: 4px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
  .step { padding: 58px 0 0; }
  .step::after { left: 48px; right: -16px; top: 20px; bottom: auto; width: auto; height: 1px; }
}
.formats { display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 800px) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.format { display: grid; gap: 8px; align-content: start; }
.format h3 { margin: 0; }
.format p { margin: 0; color: var(--mut); font-size: 0.95rem; }
.format dl { margin: 6px 0 0; display: grid; gap: 6px; font-size: 0.9rem; }
.format dt { color: var(--faint); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.format dd { margin: 0 0 4px; color: var(--ink); }

/* ---------- project cards (AI-portfolio style) ---------- */
.pcards { display: grid; gap: 16px; }
@media (min-width: 680px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .pcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, background-color .2s, transform .2s; min-width: 0; }
.pcard:hover, .pcard:focus-within { border-color: var(--gold-line); background: var(--gold-soft); transform: translateY(-3px); }
.pcard:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.pcard-cover { aspect-ratio: 16 / 10; overflow: hidden; background: #0f0f0f; border-bottom: 1px solid var(--line); }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-cover img { transform: scale(1.03); }
.pcard-cover--contain img { object-fit: contain; }
.pcard-cover--icon { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, rgba(255, 204, 0, 0.12), transparent 60%), #121212; }
.pcard-cover--icon .icon { width: 72px; height: 72px; }
.pcard-body { padding: 18px; display: grid; gap: 10px; flex: 1; align-content: start; }
.pcard-n { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; }
.pcard h3 { margin: 0; font-size: 1.2rem; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard h3 a:focus-visible { outline: none; }
.pcard p { margin: 0; color: var(--mut); font-size: 0.93rem; }
.pcard-kpis { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--mut); }
.pcard-kpis b { color: var(--gold); font: 800 1.1rem/1.2 var(--head); margin-right: 5px; }
.pcard-more { margin-top: auto; padding: 0 18px 18px; font: 700 0.9rem/1 var(--head); color: var(--gold); }
.pcard-more::after { content: " →"; }

/* ---------- brands marquee (as on the current site) ---------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; list-style: none; animation: marquee 80s linear infinite; } /* 4 copies of the set; -50% = 2 identical halves, so the loop has no gap */
.brand { flex: none; margin-right: 16px; width: 190px; height: 104px; display: flex; align-items: center; justify-content: center; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, background-color .3s; }
.brand:hover { border-color: var(--gold-line); background: var(--card-2); }
.brand img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%) invert(100%) brightness(0.78) contrast(1.08); opacity: 0.9; transition: filter .3s, opacity .3s; }
.brand:hover img { filter: none; opacity: 1; }
.brand--omoda img, .brand--omoda:hover img { filter: grayscale(100%) invert(100%) brightness(1); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { display: grid; gap: 28px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; } }
.usp { display: grid; gap: 12px; list-style: none; }
.usp li { display: grid; gap: 2px; }
.usp strong { font-family: var(--head); font-size: 1.05rem; }
.usp span { color: var(--mut); font-size: 0.95rem; }
.industries { margin-top: 20px; color: var(--faint); font-size: 0.9rem; }

/* ---------- CTA + contact ---------- */
.cta-band { display: grid; gap: 14px; padding: 24px; border-radius: 15px; border-color: rgba(255, 204, 0, 0.3); background: linear-gradient(135deg, rgba(255, 204, 0, 0.09), transparent 60%), rgba(255, 255, 255, 0.03); }
.cta-band h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.cta-band p { margin: 6px 0 0; color: var(--mut); font-size: 0.9rem; line-height: 1.5; }
.cta-band .btn { padding: 12px 20px; font-size: 0.95rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.contact-list a { font: 600 1.05rem var(--head); text-decoration: none; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 0.9rem/1.3 var(--head); }
.field .opt { font: 400 0.78rem var(--body); color: var(--faint); margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #111; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--mut); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status--error { border-color: #e5484d; color: #ff8a8e; }
.form-note { font-size: 0.8rem; color: var(--faint); margin: 0; }
.form-status { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--gold-line); color: var(--gold); font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 24px; font-size: 0.92rem; color: var(--mut); }
.footer-grid { display: grid; gap: 26px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid .eyebrow { margin-bottom: 10px; }
.footer-logo { --w: 120px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }

/* ---------- portfolio hub ---------- */
.page-hero { padding: 48px 0 18px; text-align: center; }
.page-hero h1 { margin: 8px 0 12px; }
.page-hero p { color: var(--mut); max-width: 62ch; margin: 0 auto; }
.areas { display: grid; gap: 12px; margin: 30px auto 0; max-width: 820px; }
@media (min-width: 680px) { .areas { grid-template-columns: 1fr 1fr; } }
.area { display: grid; gap: 8px; text-align: left; width: 100%; padding: 18px 20px; border-radius: var(--radius); cursor: pointer; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: inherit; transition: border-color .2s, background-color .2s; }
.area:hover { border-color: var(--gold-line); }
.area[aria-pressed="true"] { border-color: var(--gold-line); background: var(--gold-soft); }
.area-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.area-name { font: 800 1.2rem/1.2 var(--head); }
.area-count { font: 800 1.6rem/1 var(--head); color: var(--faint); }
.area[aria-pressed="true"] .area-count, .area[aria-pressed="true"] .area-name { color: var(--gold); }
.area-desc { color: var(--mut); font-size: 0.9rem; }
.hub-area { padding: 40px 0 8px; }
.hub-area-head { display: grid; gap: 8px; margin-bottom: 22px; }
.hub-area-head h2 { margin: 0; }
.hub-area-head p { margin: 0; color: var(--mut); max-width: 70ch; }
.honesty { font-size: 0.85rem; color: var(--faint); margin-top: 18px; max-width: 760px; }

/* ---------- case pages ---------- */
.case-top { padding: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.back { font: 600 0.88rem var(--body); color: var(--mut); text-decoration: none; }
.back:hover { color: var(--gold); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 0.8rem; color: var(--faint); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--mut); }
.case-hero { padding: 26px 0 34px; display: grid; gap: 14px; }
.case-hero h1 { margin: 0; font-size: clamp(2rem, 5.5vw, 3.1rem); }
.case-hero .lead { font-size: 1.12rem; color: var(--mut); max-width: 48rem; margin: 0; }
.case-cover { margin: 6px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.case-cover img { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0; font: 600 0.98rem/1.35 var(--head); }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.case-section { padding: 44px 0; border-top: 1px solid var(--line); }
.tools-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.tools-block .case-section-head { margin-bottom: 14px; }
.tools-block .case-section-head h2 { font-size: 1.1rem; line-height: 1.2; }
.tools-block .chips { margin: 0; }
.case-section-head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 760px; }
.case-section-head h2 { margin: 0; }
.case-section-head p { margin: 0; color: var(--mut); }
.split { display: grid; gap: 22px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.done-list { list-style: none; display: grid; gap: 10px; }
.done-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px 13px 46px; position: relative; color: var(--mut); font-size: 0.95rem; }
.done-list li strong { display: block; color: var(--ink); font-family: var(--head); font-size: 1rem; margin-bottom: 2px; }
.done-list li::before { content: "✓"; position: absolute; left: 15px; top: 13px; width: 20px; height: 20px; border-radius: 6px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font: 700 0.75rem/18px var(--body); text-align: center; }
.source { font-size: 0.82rem; color: var(--faint); margin-top: 12px; }
.compare { display: grid; gap: 10px; }
.compare-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr auto; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--mut); }
.compare-row .tr { background: rgba(255, 255, 255, 0.06); border-radius: 6px; height: 14px; overflow: hidden; }
.compare-row .tr i { display: block; height: 100%; background: rgba(255, 255, 255, 0.35); border-radius: 6px; }
.compare-row--gold .tr i { background: var(--gold); }
.compare-row b { color: var(--ink); font-weight: 600; }

/* galleries + media */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0f0f0f; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption, .figure figcaption { font-size: 0.8rem; color: var(--faint); padding: 8px 12px; }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0f0f0f; }
.figure img { width: 100%; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.screens figure { margin: 0; }
.screens img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.screens figcaption { font-size: 0.8rem; color: var(--faint); margin-top: 6px; }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.videos--1 { grid-template-columns: minmax(0, 380px); }
.videos figure { margin: 0; }
.videos video { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #0f0f0f; }
.videos figcaption { font-size: 0.8rem; color: var(--faint); margin-top: 6px; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .marquee-track .brand { margin-right: 0; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* gallery: caption over the photo so all tiles stay aligned; odd count on 2 columns → first tile spans the row */
.gallery figure { position: relative; }
.gallery figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(22, 22, 22, 0.85); color: var(--mut); }
@media (max-width: 899px) { .gallery--odd figure:first-child { grid-column: 1 / -1; } .gallery--odd figure:first-child img { aspect-ratio: 1 / 1; } }

/* === [A] home tiles, hub groups, WhatsApp — owned by sub-session A === */
.tiles { gap: 20px; }
.tile .pcard-body { padding: 24px; gap: 12px; }
.tile .icon { width: 60px; height: 60px; }
.tile h3 { font-size: 1.4rem; }
.tile p { font-size: 1rem; }
.tile-list { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--mut); font-size: 0.9rem; }
.tile-list li { position: relative; padding-left: 18px; }
.tile-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 2px; background: var(--gold); }
.tile .pcard-more { padding: 0 24px 24px; }
/* hub area choice buttons */
.areas { max-width: 920px; gap: 16px; }
.area { gap: 12px; padding: 24px; align-content: start; }
.area .icon { width: 56px; height: 56px; }
.area:hover, .area:focus-visible { border-color: var(--gold-line); background: var(--gold-soft); }
.area:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.area-name { font-size: 1.35rem; }
.area-desc { font-size: 0.95rem; }
.area-more { font: 700 0.9rem/1 var(--head); color: var(--gold); margin-top: 4px; }
.area-more::after { content: " \2192"; }
a.area { text-decoration: none; color: inherit; }
a.area:hover .area-name, a.area:focus-visible .area-name { color: var(--gold); }
.wa-row { margin: 18px 0 0; }
/* WhatsApp floating button */
.wa-float { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #161616; color: #25d366; border: 2px solid #25d366; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); transition: transform .2s, background-color .2s, color .2s; }
.wa-float:hover { background: #25d366; color: #161616; transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
@media (max-width: 599px) { .site-footer { padding-bottom: 72px; } }
/* "So läuft es" inside each service card: 3 stages + example result */
.service-how { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.service-how-title { margin: 0; font: 600 0.72rem/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.service-how ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 0.9rem; color: var(--mut); }
.service-how ol b { color: var(--ink); font-weight: 600; }
.service-how-ex { margin: 0; font-size: 0.88rem; color: var(--mut); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 10px; padding: 8px 12px; }
.service-how-ex b { color: var(--gold); font-weight: 600; }
@media (min-width: 900px) {
  /* 9 shared rows: icon, title, intro, list, how (title, steps, example), for, link — subgrid keeps them level across the cards */
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(9, auto); column-gap: 14px; row-gap: 0; }
  .service { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 14px; }
  .service-how { grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; }
  .service-link { margin-top: 0; align-self: end; }
}
/* === end A === */

/* === [B] social media pages — owned by sub-session B === */
.pcard-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--gold-soft); }
.pcard-icon .icon { width: 34px; height: 34px; }
.pcard-body > .pcard-icon { justify-self: start; }
/* marketing portfolio cards: sharp, larger previews */
.mcard-cover { aspect-ratio: 1 / 1; }
.mcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.mcard-cover img { transition: transform .5s; }
/* SEO service cards: two screenshots at the same size and level inside the square (full width, top-aligned crop to one ratio) */
.mcard-cover--fit { display: flex; align-items: center; }
.mcard-cover--fit img { height: auto; aspect-ratio: 1248 / 747; object-fit: cover; object-position: 50% 0; margin: 0; padding: 0; max-width: none; border: 0; border-radius: 0; background: none; }
.mrow { display: grid; gap: 40px 20px; }
@media (min-width: 900px) {
  /* two rows (heading, card) shared by both groups so headings, images, text and KPI rows line up */
  .mrow { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; row-gap: 0; }
  .mrow > .mgroup { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
}
.mcard .pcard-body { grid-template-rows: auto auto 1fr auto; }
.mcard .pcard-kpis { align-self: end; }
.mgroup { display: flex; flex-direction: column; gap: 0; }
.mgroup .case-section-head { margin-bottom: 18px; }
.mgroup .mcard { flex: 1; }
.screens--sq { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.screens--sq img { aspect-ratio: 1 / 1; object-fit: cover; }
/* TMK Foto & Video: 2x2 grid left, square video right (desktop) */
.fv-split { display: grid; gap: 24px; align-items: start; }
.fv-split .screens--sq, .fv-split .videos--1 { max-width: none; width: 100%; }
.fv-split .videos--1 { grid-template-columns: minmax(0, 1fr); }
.fv-split .videos video { aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 900px) { .fv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; } }
/* === end B === */

/* === [C] Oertle Textil, magazine, Foto & Video — owned by sub-session C === */
.more-link { margin: 22px 0 0; font: 700 0.95rem/1.2 var(--head); }
.done-list--tight li { padding-left: 46px; }
/* "Was ich gemacht habe": linked overview items */
.done-list--links li { padding: 0; }
.done-list--links li:not(:has(a)) { padding: 13px 16px 13px 46px; }
.done-list--links li a { display: block; padding: 13px 16px 13px 46px; color: inherit; text-decoration: none; border-radius: 12px; transition: background .15s; }
.done-list--links li a:hover, .done-list--links li a:focus-visible { background: var(--gold-soft); }
.done-list--links .go { display: block; margin-top: 4px; font: 700 .85rem var(--head); color: var(--gold); }
/* brand book pages: 1 column on phones, 2x2 from 700px */
.bb-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .bb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.bb-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bb-grid img { width: 100%; height: auto; display: block; }
.bb-grid figcaption { padding: 10px 14px 12px; font-size: .85rem; color: var(--mut); }
/* teaser: 3 photos in one row at every width */
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .pt-grid { gap: 14px; max-width: 1000px; } }
.pt-grid figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.pt-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
/* magazine pages (CSS only): cover + our article page, same displayed height */
.mag { display: grid; gap: 28px; justify-content: center; grid-template-columns: minmax(0, 420px); }
@media (min-width: 600px) { .mag { grid-template-columns: repeat(2, minmax(0, 340px)); gap: 40px; } }
.mag figure { margin: 0; aspect-ratio: 1080 / 1524; }
.mag-credit { margin: 10px 0 0; font-size: 0.8rem; color: var(--faint); }
.mag-credit--c { text-align: center; max-width: 720px; margin: 16px auto 0; }
.mag-link { text-align: center; margin: 18px 0 0; }
.mag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-cover { border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.mag-page { position: relative; border-radius: 4px 18px 18px 4px; overflow: hidden; box-shadow: 0 22px 46px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4); }
.mag-page::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; background: linear-gradient(to right, rgba(0,0,0,.38), rgba(0,0,0,.12) 45%, transparent); pointer-events: none; }
.mag-page::after { content: ""; position: absolute; right: 0; bottom: 0; width: 14%; aspect-ratio: 1; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.18) 50%, rgba(255,255,255,.16)); border-top-left-radius: 14px; pointer-events: none; }
/* product photography grid: feature + 6 tiles = full rows at every width (desktop: feature spans 2 cols x 3 rows) */
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-grid figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0f0f0f; position: relative; }
.pf-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pf-grid .pf-feature { grid-column: 1 / -1; }
.pf-grid .pf-feature img { aspect-ratio: 4 / 5; }
.pf-grid figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(22,22,22,.85); color: var(--mut); font-size: .8rem; }
@media (min-width: 900px) {
  .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .pf-grid .pf-feature { grid-column: 1 / span 2; grid-row: 1 / span 3; }
  .pf-grid .pf-feature img { aspect-ratio: auto; height: 100%; }
}
.mag-link + .part-title { margin-top: 36px; }
.part-title { font: 700 1.1rem/1.3 var(--head); color: var(--ink); margin: 0 0 12px; }
.seo-shot { margin: 28px auto 0; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.seo-shot img { width: 100%; height: auto; display: block; border-radius: 8px; }
.seo-shot figcaption { font-size: .85rem; color: var(--mut); padding: 12px 6px 4px; }
/* === end C === */

/* legal pages (Impressum, Datenschutz) */
.legal { max-width: 760px; padding: 0 0 56px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--mut); }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; list-style: disc; }
.legal a { text-decoration: underline; }

@media (max-width: 640px) { .videos { grid-template-columns: minmax(0, 1fr); } }

/* TMK: vertical Instagram preview left, wide VK player right, no surrounding panel */
.tmk-embeds { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 24px; align-items: center; width: 100%; max-width: none; }
.tmk-ig { margin: 0; width: 100%; max-width: 330px; justify-self: center; }
.tmk-vk { margin: 0; width: 100%; }
@media (max-width: 640px) { .tmk-embeds { grid-template-columns: minmax(0, 1fr); } .tmk-ig { max-width: 100%; } }

/* WhatsApp-first CTAs and contact */
.btn .wa-ico { flex: none; margin-right: 8px; }
.btn--wa { display: inline-flex; align-items: center; }
.wa-card { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 18px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.wa-card:hover, .wa-card:focus-visible { border-color: var(--gold); background: rgba(255, 204, 0, 0.08); }
.wa-card-ico { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #161616; }
.wa-card-ico svg { width: 30px; height: 30px; }
.wa-card strong { display: block; font: 700 1.1rem var(--head); }
.wa-card small { color: var(--mut); font-size: 0.85rem; }
.contact-list { margin-top: 16px; }
.field-channels { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.field-channels legend { font: 600 0.9rem/1.3 var(--head); padding: 0; margin-bottom: 4px; }
.channel-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.field[hidden] { display: none; }
.channel-hint { margin: 4px 0 0; font-size: 0.82rem; color: var(--faint); }
.check input[type=radio] { border-radius: 50%; }


.chat-cards { display: grid; gap: 12px; margin-top: 20px; }
.chat-cards .wa-card { margin-top: 0; }
.wa-card-ico.tg { background: #2aabee; color: #fff; }
.wa-card-ico.th { background: #3fe669; color: #161616; }
.wa-card small { line-height: 1.35; }
.field .req { color: var(--gold); }

.case-section:has(> .wrap > .tools-block:first-child) { border-top: 0; padding-top: 0; }
.case-section > .wrap > .tools-block:first-child { margin-top: 0; }

.wa-card small { white-space: nowrap; }
.wa-card > span:last-child { min-width: 0; }


/* ---- project cards: equal structure, rows aligned across cards (round 7) ---- */
.pcard-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.pcard-kpis span { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.pcard-kpis b { margin-right: 0; }
@media (min-width: 1020px) {
  .pcards--3 > .mcard { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .pcards--3 { row-gap: 0; }
  .pcards--3 > .mcard .pcard-body { display: contents; }
  .pcards--3 > .mcard .pcard-n { padding: 18px 18px 0; align-self: start; }
  .pcards--3 > .mcard h3 { padding: 10px 18px 0; }
  .pcards--3 > .mcard p { padding: 10px 18px 0; }
  .pcards--3 > .mcard .pcard-kpis { margin: 14px 18px 0; align-self: end; }
  .pcards--3 > .mcard .pcard-more { padding: 14px 18px 18px; margin-top: 0; }
}

/* ---- service pages: pain cards, route timeline, file chips ---- */
.pains { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 860px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pain { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pain-top { padding: 20px; display: grid; gap: 12px; align-content: start; }
.pain-top h3 { margin: 0; font-size: 1.25rem; color: var(--gold); }
.pain-bot { padding: 18px 20px; background: var(--gold-soft); border-top: 1px solid var(--gold-line); flex: 1; display: grid; gap: 8px; align-content: start; }
.pain-bot .lab { font: 700 0.7rem var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--good); display: flex; gap: 8px; align-items: center; }
.pain-bot p { margin: 0; font-size: 0.95rem; }
.ico-line { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.timeline { list-style: none; margin: 30px 0 0; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--gold-line); }
.rs { position: relative; padding-left: 60px; }
.rs-node { position: absolute; left: 0; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 800 1rem var(--head); z-index: 1; }
.rs--opt .rs-node { border-style: dashed; color: var(--mut); border-color: var(--gold-line); }
.rs--opt .rs-card { border-style: dashed; border-color: var(--gold-line); background: transparent; }
.rs-card { display: grid; gap: 16px; }
.rs-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.rs-head h3 { margin: 0; font-size: 1.25rem; }
.rs-lead { margin: 0; color: var(--mut); }
.badge--opt { color: var(--gold); border-style: dashed; border-color: var(--gold-line); }
.rs-cols { display: grid; gap: 12px; }
@media (min-width: 800px) { .rs-cols { grid-template-columns: 1fr 1fr; } }
.rs-col { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rs-col svg { flex: none; width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.rs-col h4, .rs-get h4 { font: 700 0.72rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 4px; }
.rs-col p { margin: 0; font-size: 0.94rem; }
.rs-get { border-top: 1px solid var(--line); padding-top: 14px; }
.rs-get h4 { color: var(--gold); }
.rs-get p { margin: 0 0 10px; font-size: 0.95rem; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: 600 0.8rem var(--body); }
.file svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.paths { display: grid; gap: 12px; }
@media (min-width: 800px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, 0.03); display: grid; gap: 8px; align-content: start; }
.path h4 { margin: 0; font: 700 1rem var(--head); color: var(--gold); }
.path p { margin: 0; font-size: 0.93rem; color: var(--mut); }
.path ul { list-style: none; display: grid; gap: 6px; font-size: 0.93rem; }
.path li { padding-left: 18px; position: relative; }
.path li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--gold); }
.svc-hero { padding: 56px 0 24px; }
.svc-hero .lead { font-size: 1.15rem; color: var(--mut); max-width: 44rem; }
.svc-hero .btn-row { margin-top: 22px; }

.kcard .pcard-body { grid-template-rows: auto auto 1fr auto; }
.kcard .pcard-kpis { align-self: end; }
.proof { display: grid; gap: 16px; }
@media (min-width: 860px) { .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; } }
.proof figure { margin: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proof figure img { width: 100%; height: auto; }
.proof figcaption { padding: 14px 18px; font-size: 0.88rem; color: var(--mut); }
.timeline { grid-template-columns: minmax(0, 1fr); }
.rs, .rs-card { min-width: 0; }
.rs-head .badge { white-space: normal; }

/* compact AI project cards on the service page: small icon left, text right */
.kcard { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; column-gap: 0; }
.kcard .pcard-cover--icon { grid-row: 1 / 3; grid-column: 1; aspect-ratio: auto; width: 52px; height: 52px; margin: 18px 0 0 18px; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-soft); }
.kcard .pcard-cover--icon .icon { width: 30px; height: 30px; }
.kcard .pcard-body { grid-column: 2; grid-row: 1; padding: 16px 18px 4px 0; gap: 6px; grid-template-rows: none; }
.kcard .pcard-more { grid-column: 2; grid-row: 2; padding: 6px 18px 16px 0; margin-top: 0; }
.kcard h3 { font-size: 1.1rem; }
.kcard .pcard-kpis { margin-top: 6px; padding-top: 8px; }
.pcards--one { grid-template-columns: minmax(0, 420px); }
.seo-shot { object-position: 50% 14%; }

/* ---- header: services dropdown (hover/focus on desktop, expanded in the mobile menu) ---- */
.site-nav .submenu { display: grid; gap: 0; margin: 0 0 4px; }
.site-nav .submenu a { padding: 10px 4px 10px 18px; font-weight: 500; font-size: 0.95rem; }
@media (min-width: 920px) {
  .site-nav .has-sub { position: relative; }
  .site-nav .has-sub::after { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 14px; }
  .site-nav .has-sub > a::after { content: "▾"; margin-left: 6px; font-size: 0.7em; color: var(--gold); }
  .site-nav .submenu { display: none; position: absolute; top: calc(100% + 10px); left: -16px; min-width: 250px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; z-index: 60; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
  .site-nav .has-sub:hover > .submenu, .site-nav .has-sub:focus-within > .submenu { display: grid; }
  .site-nav .submenu a { padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
  .site-nav .submenu a:hover { background: var(--gold-soft); color: var(--gold); }
}

/* ---- row alignment: boxes that sit side by side share their rows (subgrid), so labels, texts and links line up ---- */
@media (min-width: 860px) {
  .pains { row-gap: 0; }
  .pain { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  .pain-bot { align-content: start; }
}
@media (min-width: 900px) {
  .steps { grid-template-rows: auto 1fr; row-gap: 0; }
  .step { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .step h3, .step p { align-self: start; }
}
.facts { row-gap: 0; margin-bottom: -12px; }
.facts div { grid-row: span 2; grid-template-rows: subgrid; row-gap: 2px; align-content: start; margin-bottom: 12px; }
@media (min-width: 680px) {
  .pcards:has(> .kcard) { row-gap: 0; margin-bottom: -16px; }
  .pcards > .kcard { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 16px; }
  .kcard .pcard-body { display: contents; }
  .kcard .pcard-n { grid-column: 2; grid-row: 1; padding: 16px 18px 0 0; align-self: start; }
  .kcard h3 { grid-column: 2; grid-row: 2; padding: 6px 18px 0 0; align-self: start; }
  .kcard p { grid-column: 2; grid-row: 3; padding: 6px 18px 0 0; align-self: start; }
  .kcard .pcard-kpis { grid-column: 2; grid-row: 4; margin: 10px 18px 0 0; align-self: end; }
  .kcard .pcard-more { grid-column: 2; grid-row: 5; padding: 8px 18px 16px 0; align-self: start; }
  .kcard .pcard-cover--icon { grid-row: 1 / 4; }
}
.kpis { row-gap: 0; margin-bottom: -12px; }
.kpi { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; margin-bottom: 12px; }
