/* Variant D3a: D2 with a self-check list in the hero instead of the invented window. */
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f5f7f7;
  --white: #fff;
  --ink: #0f1e26;
  --muted: #56666e;
  --line: #dfe5e7;
  --brand: #1f6f6b;
  --brand-deep: #164f4c;
  --shadow: 0 1px 2px rgba(15, 30, 38, .06), 0 12px 32px -8px rgba(15, 30, 38, .18), 0 40px 80px -24px rgba(15, 30, 38, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 60rem) { .wrap { padding: 0 2.5rem; } }

/* Header */
/* Links are 44px tall touch targets; the padding shrinks so the bar keeps its height. */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.mark { display: flex; align-items: center; min-height: 44px; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.mark .door { width: 1.15rem; height: auto; color: var(--brand); }
.bar nav { display: flex; align-items: center; gap: 1.75rem; font-size: 1rem; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--brand); }
@media (max-width: 40rem) { .bar nav a.hide-s { display: none; } }

/* Hero */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; padding: 3rem 0 4rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 5fr 6fr; gap: 4rem; padding: 5rem 0 6rem; } }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(2.2rem, 3.9vw, 3.3rem); line-height: 1.07; letter-spacing: -.03em; }
.hero .sub { margin: 1.5rem 0 0; font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2.25rem; }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.35rem; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: background-color .15s; }
.btn:hover { background: var(--brand-deep); }
.btn svg { width: 1.05rem; height: 1.05rem; }
.link { color: var(--ink); font-weight: 500; }

/* The hero shows only the old window: the visitor recognises his own situation. */
.solo .vfp { width: min(36rem, 100%); font-size: 15px; box-shadow: var(--shadow); }
@media (min-width: 60rem) { .solo .vfp { margin-left: auto; } }
@media (max-width: 30rem) { .solo .vfp { font-size: 12px; } }

/* Browser frame around real screenshots */
.browser { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(15, 30, 38, .08); }
.browser .chrome { display: flex; align-items: center; gap: .4rem; height: 2rem; padding: 0 .75rem; background: #eef1f2; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.browser .chrome i { width: .6rem; height: .6rem; border-radius: 50%; background: #d3dadc; }
.browser .chrome .url { flex: 1; max-width: 18rem; margin: 0 auto; padding: .1rem .6rem; border-radius: 5px; background: #fff; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Logo band: one ink colour, optically balanced heights, quiet grid with hairlines */
.logos { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.logos-head { display: grid; gap: .5rem 4rem; margin-bottom: 2.25rem; }
@media (min-width: 60rem) { .logos-head { grid-template-columns: 5fr 6fr; align-items: baseline; } }
.logos-head h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.logos-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.logos ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 48rem) { .logos ul { grid-template-columns: repeat(3, 1fr); } }
.logos li { display: grid; place-items: center; min-height: 8.5rem; padding: 1.5rem 1.75rem; background: var(--white); }
.logos img { width: auto; max-width: 100%; object-fit: contain; opacity: .78; transition: opacity .2s; }
.logos li:hover img { opacity: 1; }
@media (max-width: 30rem) { .logos li { min-height: 6.5rem; padding: 1rem; } .logos img { transform: scale(.85); } }

/* Sections */
section.block { padding: 5rem 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.split { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 5fr 6fr; } }
h2 { margin: 0; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.025em; }
.split p { margin: 0 0 1rem; }
.split ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.split li { position: relative; padding: .7rem 0 .7rem 1.6rem; border-top: 1px solid var(--line); }
.split li:last-child { border-bottom: 1px solid var(--line); }
.split li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .55rem; height: .55rem; border-radius: 2px; background: var(--brand); }
.intro { font-size: 1.3rem; line-height: 1.5; }

/* Work gallery */
.work-head { display: grid; gap: 1rem 4rem; margin-bottom: 3rem; }
@media (min-width: 60rem) { .work-head { grid-template-columns: 5fr 6fr; align-items: end; } }
.work-head p { margin: 0; color: var(--muted); }
.gallery { display: grid; gap: 2.5rem 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 44rem) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: .9rem; font-size: 1rem; }
.gallery figcaption span { display: block; color: var(--muted); font-size: .9rem; }

/* Projects: three short before/after stories */
.stories { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 60rem) { .stories { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.stories h3 { margin: 0 0 .75rem; font-size: 1.15rem; font-weight: 600; }
.stories p { margin: 0 0 .75rem; }
.stories .was { color: var(--muted); }
@media (min-width: 60rem) { .stories--zwei { grid-template-columns: repeat(2, 1fr); } }

/* The lead case: the facts on the left, the new application large on the right. */
.case { display: grid; gap: 2.5rem 4rem; align-items: center; margin-top: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 60rem) { .case { grid-template-columns: 5fr 6fr; } }
.case h3 { margin: 0 0 .75rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; }
.case p { margin: 0 0 1rem; }
.case .was { color: var(--muted); }
.vh { width: 100%; max-width: 34rem; margin: 1.5rem 0; border-collapse: collapse; font-size: 1.05rem; }
.vh th, .vh td { padding: .75rem .5rem .75rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vh thead th { padding-top: 0; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.vh thead th:last-child { color: var(--brand); }
.vh tbody th { font-weight: 400; color: var(--muted); width: 34%; }
.vh tbody td:first-of-type { color: var(--muted); }
.vh tbody td:last-child { font-weight: 600; }
@media (max-width: 30rem) { .vh { font-size: .95rem; } .vh tbody th { width: auto; } .vh th, .vh td { hyphens: manual; } .vh tbody td:first-of-type { white-space: nowrap; } }
.beleg { padding: .9rem 1rem; border-left: 3px solid var(--brand); background: var(--bg); }
.beleg strong { color: var(--brand-deep); }
.case-bild { margin: 0; }
.case-bild figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.stories--zwei { margin-top: 3rem; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* IT band */
.band { background: var(--brand); color: #fff; padding: 4rem 0; }
.band .split p { color: #dcebea; font-size: 1.15rem; }
.band h2 { color: #fff; }
.band a { color: #fff; font-weight: 500; }

/* Contact */
.contact { padding: 5rem 0 4rem; }
.contact .phone { display: inline-block; margin: 1.25rem 0 .5rem; font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.contact .phone:hover { color: var(--brand); }
.contact .meta { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; font-size: .95rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
footer a { color: inherit; }
footer a + a { margin-left: 1.25rem; }

/* Services page */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.page-head h1 { margin: 0; font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; }
.page-head p { margin: 1rem 0 0; color: var(--muted); font-size: 1.2rem; max-width: 34rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; font-weight: 500; }
.toc a { color: var(--ink); }
.figure-inline { margin: 2rem 0 0; }
.figure-inline figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }

/* Portrait placeholder until a real photo exists */
.portrait { margin: 2rem 0 0; max-width: 15rem; }
.portrait .ph { aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: 10px; background: repeating-linear-gradient(135deg, #eef1f2 0 12px, #e6eaec 12px 24px); border: 1px dashed #b9c3c7; color: var(--muted); font-size: .95rem; }
.portrait figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 59.99rem) { .portrait { max-width: 11rem; margin-bottom: 1rem; } }

/* Hero self-check: the visitor recognises his situation in plain sentences. */
.check { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem 1.75rem 1.5rem; box-shadow: var(--shadow); max-width: 34rem; }
@media (min-width: 60rem) { .check { margin-left: auto; padding: 2.25rem 2.25rem 2rem; } }
.check-h { font-size: 1.35rem; letter-spacing: -.015em; margin: 0 0 1.25rem; }
.check ul { margin: 0; padding: 0; list-style: none; }
.check li { border-top: 1px solid var(--line); }
.check label { display: flex; gap: .85rem; align-items: flex-start; padding: .75rem 0; line-height: 1.45; cursor: pointer; }
.check input { appearance: none; flex: none; width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; border: 2px solid #9fb3b6; border-radius: 4px; background: var(--white) center / .85rem no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check label:hover input { border-color: var(--brand); }
.check input:checked { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* The closing line answers once two boxes are ticked. */
.check-fuss { margin: .5rem 0 0; padding: .9rem 1rem; border-radius: 8px; font-weight: 600; color: var(--brand-deep); background: transparent; transition: background-color .25s, color .25s; }
/* :has() cannot nest, so "any two of four" is spelled out as the six pairs. */
.check:has(li:nth-child(1) :checked):has(li:nth-child(2) :checked) .check-fuss,
.check:has(li:nth-child(1) :checked):has(li:nth-child(3) :checked) .check-fuss,
.check:has(li:nth-child(1) :checked):has(li:nth-child(4) :checked) .check-fuss,
.check:has(li:nth-child(2) :checked):has(li:nth-child(3) :checked) .check-fuss,
.check:has(li:nth-child(2) :checked):has(li:nth-child(4) :checked) .check-fuss,
.check:has(li:nth-child(3) :checked):has(li:nth-child(4) :checked) .check-fuss { background: var(--brand); color: #fff; }
@media (prefers-reduced-motion: reduce) { .check input, .check-fuss { transition: none; } }

/* The old window sits under the question: "does yours look like this?" */
.check .vfp { width: 100%; margin: 0 0 1rem; font-size: 13px; box-shadow: 0 1px 2px rgba(15, 30, 38, .08), 0 8px 20px -10px rgba(15, 30, 38, .25); }
@media (max-width: 30rem) { .check .vfp { font-size: 11px; } }
.check .vfp-title { gap: .5em; }
.check .vfp-title > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check .vfp-ctl { flex-shrink: 0; }

/* Header polish: two-tone wordmark with a descriptor, underline for hover and the current page. */
.mark { display: grid; grid-template-columns: auto auto; column-gap: .7rem; align-items: center; line-height: 1.1; }
.mark .door { grid-row: 1 / span 2; width: 1.6rem; }
.mark .wm { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
.mark .wm span { color: var(--brand); }
.mark .claim { font-size: .78rem; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.bar nav a { position: relative; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.bar nav a:hover::after, .bar nav a[aria-current]::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .bar nav a::after { transition: none; } }
@media (max-width: 40rem) { .bar nav { gap: 1.1rem; } .mark { column-gap: .55rem; } .mark .door { width: 1.35rem; } .mark .wm { font-size: 1.05rem; } .mark .claim { font-size: .7rem; } }
@media (max-width: 30rem) { .mark .claim { display: none; } .mark .door { grid-row: auto; } }

/* Hero balance: equal columns so the headline sets in four lines, not five. */
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: clamp(2.2rem, 3.4vw, 2.9rem); text-wrap: balance; }
.hero .bar { padding-top: 1.5rem; }

/* Left column: the three paths stand out, and the call gets a face. */
.hero .sub strong { color: var(--ink); font-weight: 500; }
.person { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 33rem; }
.person-bild { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
.person p { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.person strong { color: var(--ink); font-weight: 600; }

/* Client band: an open row, each logo with one line on what we do there. */
.logos { padding: 3.5rem 0 4rem; }
.logos-head { display: block; margin-bottom: 2rem; }
.logos-head h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.logos-head p { margin: .35rem 0 0; font-size: 1.05rem; }
.logos ul { grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; background: none; border: 0; border-radius: 0; overflow: visible; }
@media (min-width: 40rem) { .logos ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .logos ul { grid-template-columns: repeat(5, 1fr); gap: 0 2rem; } }
.logos li { display: block; min-height: 0; padding: 1.5rem 0 0; background: none; border-top: 1px solid var(--line); }
@media (max-width: 71.99rem) { .logos li { padding-bottom: 1.75rem; } }
.logos .logo { display: flex; align-items: center; height: 4rem; }
.logos img { max-height: 3.4rem; opacity: .85; }
.logos li p { margin: 1rem 0 0; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.logos li strong { display: block; font-weight: 600; color: var(--ink); }
@media (max-width: 30rem) { .logos li { padding: 1.25rem 0 1.5rem; } .logos img { transform: none; max-height: 2.8rem; } .logos li p { font-size: .85rem; } }
/* Centred, because several logo files carry their own transparent margin. */
.logos li { text-align: center; }
.logos .logo { justify-content: center; }

/* Building blocks for the two new offer pages (KI, Home Assistant), on top of d3a.css. */

/* Page hero with a short lead, same rhythm as the services page */
.page-head .kicker { display: inline-block; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.page-head h1 { max-width: 46rem; text-wrap: balance; }
.page-head p { max-width: 40rem; }
.page-head .actions { margin-top: 2rem; }

/* Three data paths: equal cards, the local one marked as the strictest */
.wege { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .wege { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.wege li { padding: 1.5rem 1.5rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.wege li.streng { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.wege .stufe { display: flex; gap: .3rem; margin-bottom: 1rem; }
.wege .stufe i { width: 1.6rem; height: .35rem; border-radius: 2px; background: var(--line); }
.wege .stufe i.an { background: var(--brand); }
.wege h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.wege p { margin: 0; font-size: 1rem; color: var(--muted); }
.wege-fuss { margin: 1.5rem 0 0; color: var(--muted); }

/* Project rows: text left, picture right, alternating on wide screens */
.zeigen { display: grid; gap: 4rem; margin-top: 3rem; }
.zeile { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 60rem) {
  .zeile { grid-template-columns: 5fr 6fr; }
  .zeile:nth-child(even) .zeile-text { order: 2; }
}
.zeile h3 { margin: 0 0 .6rem; font-size: 1.4rem; font-weight: 600; letter-spacing: -.015em; }
.zeile p { margin: 0 0 1rem; }
.zeile .wo { display: inline-block; margin-bottom: .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.zeile figure { margin: 0; }
.zeile figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }

/* Placeholder for pictures that need sample data or a client's release first */
.platzhalter { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 1.5rem; border-radius: 10px; border: 1px dashed #b9c3c7; background: repeating-linear-gradient(135deg, #f1f4f5 0 12px, #eaeef0 12px 24px); color: var(--muted); font-size: .95rem; text-align: center; }

/* Phones: a dark rounded frame, two or three side by side */
.handys { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.75rem, 3vw, 2rem); margin: 3rem 0 0; padding: 0; list-style: none; }
.handys li { flex: 0 1 15rem; }
.handys li:nth-child(2) { transform: translateY(-1.5rem); }
.handy { padding: .55rem; border-radius: 2rem; background: #0d0f10; box-shadow: var(--shadow); }
.handy img { border-radius: 1.5rem; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top; }
.handys p { margin: .9rem 0 0; text-align: center; font-size: .95rem; color: var(--muted); }
@media (max-width: 36rem) { .handys li:nth-child(3) { display: none; } .handys li:nth-child(2) { transform: none; } }

/* Showcase band under the hero: the dashboard row wide, three phones below */
.schaufenster { background: var(--bg); border-bottom: 1px solid var(--line); padding: 3.5rem 0 4.5rem; }
figure.breit { margin: 0; }
figure.breit img { width: 100%; }
figure.breit figcaption, figure.karte figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.schaufenster figure.breit img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fafafa; }

/* Single dashboard cards: framed lightly, they already carry their own borders */
figure.karte { margin: 0; }
figure.karte img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fafafa; box-shadow: 0 1px 2px rgba(15, 30, 38, .05), 0 12px 28px -14px rgba(15, 30, 38, .22); }
.block figure.breit.karte { margin-bottom: 1rem; }
.paar { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 30rem) { .paar { grid-template-columns: 1fr; } }

/* Start page: two tiles that lead to the new pages */
.kacheln { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .kacheln { grid-template-columns: 1fr 1fr; } }
.kachel { display: grid; grid-template-rows: auto 1fr auto; gap: .6rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.kachel:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.kachel h3 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; }
.kachel p { margin: 0; color: var(--muted); }
.kachel span { font-weight: 500; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .kachel { transition: none; } }

.entwurf-hinweis { margin: 0; padding: .6rem 1.25rem; background: #fdf0cf; color: #7a5300; font-size: .9rem; text-align: center; }

/* Start page: second lead case with the picture on the left, the foyer screen below it */
@media (min-width: 60rem) { .case--gedreht { grid-template-columns: 6fr 5fr; } .case--gedreht .case-text { order: 2; } }
.foyer { margin: 2rem 0 0; max-width: 44rem; }
@media (min-width: 60rem) { .foyer { margin-left: auto; } }
.foyer img { width: 100%; border-radius: 10px; border: 10px solid #15191c; box-shadow: var(--shadow); }
.foyer figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 30rem) { .case--gedreht .vh tbody td:first-of-type { white-space: normal; } }
.case--gedreht { border-bottom: 0; padding-bottom: 0; }
.case--gedreht + .foyer { padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); max-width: none; }
.case--gedreht + .foyer img { max-width: 44rem; margin-left: auto; }
.case--gedreht + .foyer figcaption { max-width: 44rem; margin-left: auto; }

/* Start page hero: "three documents, three paths" motion graphic (ki-film.js) */
.ki-film { margin: 0; padding: 1.6rem 1.6rem 1.25rem; background: var(--white); border-radius: 14px; border: 1px solid rgba(15, 30, 38, .06); box-shadow: var(--shadow); }
.ki-film-kopf { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.ki-film svg { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; }
.ki-film-text { min-height: 3.2em; margin-top: .9rem; font-size: 1rem; line-height: 1.5; color: var(--muted); transition: opacity .4s; }
.ki-film.aus .ki-film-text { opacity: 0; }
.kf-blatt { fill: #fff; stroke: var(--line); }
.kf-art { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--brand); }
.kf-linie { stroke: var(--line); }
.kf-zeile { font-size: 13px; fill: var(--ink); }
.kf-tag { font-size: 11px; fill: var(--muted); }
.kf-treffer { fill: #fde7b0; opacity: 0; transition: opacity .4s; }
.kf-schwarz { fill: var(--ink); transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform .45s ease-out; }
.kf-scan { fill: rgba(31, 111, 107, .13); opacity: 0; }
.kf-pfad { fill: none; stroke: #cfd8db; stroke-width: 1.5; stroke-dasharray: 3 5; }
.kf-pfad-an { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .8s ease-in-out, opacity .4s; }
.kf-pfad-an.an { stroke-dashoffset: 0 !important; }
.kf-box { fill: #fff; stroke: var(--line); transition: fill .4s, stroke .4s; }
.kf-knoten.an .kf-box { fill: #eaf4f3; stroke: var(--brand); }
.kf-stufe { fill: var(--line); }
.kf-stufe.an { fill: var(--brand); }
.kf-titel { font-size: 14px; font-weight: 600; fill: var(--ink); }
.kf-sub { font-size: 12px; fill: var(--muted); }
.kf-doc, .kf-chip { opacity: 0; transition: opacity .4s; }
.kf-chip rect { fill: var(--brand); }
.kf-chip text { font-size: 13px; font-weight: 500; fill: #fff; }
.ki-film.da .kf-doc { opacity: 1; }
.ki-film.scan .kf-scan { opacity: 1; transform: translateY(var(--kf-hub)); transition: transform 1.2s linear, opacity .2s; }
.ki-film.markiert .kf-scan { opacity: 0; }
.ki-film.markiert .kf-treffer { opacity: 1; }
.ki-film.markiert .kf-schwarz { transform: scaleX(1); }
.ki-film.fertig .kf-chip { opacity: 1; }
.ki-film.aus .kf-doc, .ki-film.aus .kf-chip, .ki-film.aus .kf-pfad-an { opacity: 0; }
.ki-film.still * { transition: none !important; }

/* Variant E: one page. Only additions on top of d3a.css and seiten.css. */

/* Anchored sections keep some air above the heading. */
section[id] { scroll-margin-top: 1.5rem; }
h2 { text-wrap: balance; }

/* Project pictures: always in the wide column, all main pictures in one format. */
@media (min-width: 60rem) { .zeile:nth-child(even) { grid-template-columns: 6fr 5fr; } }
.zeile .browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* A second picture lies on top of the main one as a smaller layer and hangs over its lower edge. */
.lagen { display: grid; }
.lagen .lage { position: relative; width: 60%; margin-top: -17%; }
.lagen--rechts .lage { justify-self: end; }
.lagen--links .lage { width: 54%; margin-top: -11%; }
.lagen .browser.lage { box-shadow: 0 0 0 4px var(--white), var(--shadow); }
@media (min-width: 60rem) { .lagen--links .lage { margin-left: -1.25rem; } .lagen--rechts .lage { margin-right: -1.25rem; } }
.lagen .bildschirm { height: auto; border-radius: 10px; border: 7px solid #15191c; box-shadow: 0 0 0 4px var(--white), var(--shadow); }
.lagen + figcaption { margin-top: 1rem; }

/* Before/after table inside a project row */
.zeile .vh { margin: 1.25rem 0 1.5rem; }
.zeile .beleg { margin-bottom: 1.25rem; }
.zeile > * { min-width: 0; }
@media (max-width: 30rem) { .zeile .vh tbody td:first-of-type { white-space: normal; } }

/* Legacy band: the list sits on brand green, so lines and markers turn light. */
.band .split li { border-color: rgba(255, 255, 255, .28); color: #fff; }
.band .split li::before { background: #fff; }
.band .split p:last-child { margin-bottom: 0; }

/* Energy section: a short showcase, phones kept small. */
.energie { background: var(--bg); }
.energie .work-head { margin-bottom: 2.5rem; }
.energie .handys { margin-top: 3rem; }
.energie .handys li { flex-basis: 11rem; }

.contact .split p { max-width: 38rem; }

/* Project row: "article wizard" motion graphic (wizard-film.js) */
.wiz-film-karte { padding: 1.4rem 1.4rem 1.1rem; background: var(--white); border-radius: 14px; border: 1px solid rgba(15, 30, 38, .06); box-shadow: var(--shadow); }
.wiz-film .wiz-film-kopf { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.wiz-film svg { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; }
.wiz-film .wiz-film-text { min-height: 3.2em; margin: .9rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--muted); transition: opacity .2s; }
.wiz-film .wiz-film-text.weg { opacity: 0; }
.wf-box, .wf-karte { fill: #fff; stroke: var(--line); }
.wf-box { transition: fill .4s, stroke .4s; }
.wf-ein.an .wf-box { fill: #eaf4f3; stroke: var(--brand); }
.wf-titel { font-size: 14px; font-weight: 600; fill: var(--ink); }
.wf-titel--klein { font-size: 13px; }
.wf-sub { font-size: 12px; fill: var(--muted); }
.wf-icon { fill: none; stroke: #9aa8ae; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.wf-icon-f { fill: #9aa8ae; stroke: none; transition: fill .4s; }
.wf-ein.an .wf-icon { stroke: var(--brand); }
.wf-ein.an .wf-icon-f { fill: var(--brand); }
.wf-pfad { fill: none; stroke: #cfd8db; stroke-width: 1.5; stroke-dasharray: 3 5; }
.wf-pfad-an { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .65s ease-in-out; }
.wf-pfad-an.an { stroke-dashoffset: 0 !important; }
.wf-art { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--brand); }
.wf-linie { stroke: var(--line); }
.wf-label { font-size: 11px; fill: var(--muted); }
.wf-leer { fill: var(--line); transition: opacity .3s; }
.wf-wert { font-size: 14px; font-weight: 500; fill: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s ease-out; }
.wf-punkt { fill: #fff; stroke: #cfd8db; stroke-width: 1.5; transition: fill .35s, stroke .35s; }
.wf-hell { fill: #fde7b0; opacity: 0; transition: opacity .4s; }
.wf-chip { opacity: 0; transition: opacity .35s .12s; }
.wf-chip rect { fill: #eaf4f3; transition: fill .35s; }
.wf-chip text { font-size: 11px; font-weight: 600; fill: var(--brand-deep); transition: fill .35s; }
.wf-feld.an .wf-leer { opacity: 0; }
.wf-feld.an .wf-wert { opacity: 1; transform: none; }
.wf-feld.an .wf-chip { opacity: 1; }
.wf-feld.sicher .wf-punkt { fill: var(--brand); stroke: var(--brand); }
.wf-feld.pruefen .wf-punkt { fill: #e3a008; stroke: #e3a008; }
.wf-feld.pruefen .wf-hell { opacity: .5; }
.wf-feld.pruefen .wf-chip rect { fill: #fff; }
.wf-feld.pruefen .wf-chip text { fill: #6b4a00; }
.wf-taste, .wf-fertig { opacity: 0; transition: opacity .4s; }
.wf-taste rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.wf-taste text { font-size: 13px; font-weight: 600; fill: var(--ink); }
.wf-fertig rect { fill: var(--brand); }
.wf-fertig text { font-size: 13px; font-weight: 500; fill: #fff; }
.wiz-film.taste .wf-taste { opacity: 1; }
.wiz-film.fertig .wf-taste { opacity: 0; }
.wiz-film.fertig .wf-fertig { opacity: 1; }
.wiz-film.still * { transition: none !important; }

/* Project row: "product name" motion graphic (name-film.js); the card comes from .wiz-film above. */
.nf-label { font-size: 11px; fill: var(--muted); }
.nf-feld { fill: #fff; stroke: var(--brand); stroke-width: 1.5; }
.nf-name { font-weight: 500; fill: var(--ink); transition: opacity .3s; }
.nf-caret { stroke: var(--ink); stroke-width: 1.5; animation: nf-blink 1s steps(1) infinite; }
@keyframes nf-blink { 50% { opacity: 0; } }
.nf-marke { fill: var(--brand); opacity: 0; transition: opacity .3s; }
.nf-marke.an { opacity: 1; }
.nf-flug { opacity: 0; transition: transform .45s cubic-bezier(.3, .7, .2, 1), opacity .18s; }
.nf-flug.los { opacity: 1; }
.nf-flug.weg { opacity: 0; }
.nf-flug rect { fill: var(--brand); }
.nf-flug text { font-weight: 500; fill: #fff; }
.nf-box { fill: #fff; stroke: var(--line); transition: fill .35s, stroke .35s; }
.nf-leer { fill: #9aa8ae; transition: opacity .25s; }
.nf-wert { font-weight: 600; fill: var(--ink); opacity: 0; transition: opacity .3s; }
.nf-pfeil { fill: none; stroke: #9aa8ae; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nf-hinweis { font-size: 11px; font-weight: 600; fill: #6b4a00; opacity: 0; transition: opacity .3s; }
.nf-liste.an .nf-box { fill: #eaf4f3; stroke: var(--brand); }
.nf-liste.an .nf-leer { opacity: 0; }
.nf-liste.an .nf-wert { opacity: 1; }
.nf-liste.offen .nf-box { fill: #fff6dc; stroke: #e3a008; }
.nf-liste.offen .nf-hinweis { opacity: 1; }
.name-film.aus .nf-name, .name-film.aus .nf-marke { opacity: 0; }
.name-film.ruhe .nf-caret { display: none; }


/* Live site only: legal pages and the 404 page. */
.page-head .bar { padding-top: .5rem; margin-bottom: 2.5rem; }
.recht { max-width: 48rem; }
.recht h2 { margin: 2.75rem 0 .75rem; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.015em; text-wrap: pretty; }
.recht h2:first-child { margin-top: 0; }
.recht p, .recht ul { margin: 0 0 1rem; }
.recht ul { padding-left: 1.25rem; }
.recht li { margin-bottom: .25rem; }
