/* =========================================================
   That's Design – Portfolio-Startseite
   Dunkles Portfolio (Farben aus dem v0-Entwurf) mit den
   Schriften der bisherigen Website (Anton, 5th Avenue,
   Gambetta, Inter). Keine Scroll- oder Einblend-Animationen.
   ========================================================= */

@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "5th Avenue"; src: url("../fonts/5th-avenue-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  /* Farben (Kontrast geprüft: Weiß/Mint auf #191919 > 14:1, Grau #a3a3a3 auf #191919 ≈ 7:1) */
  --bg: #191919;
  --surface: #232323;
  --mint: #b9edcb;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.14);
  --on-mint: #191919;

  --f-display: "Anton", Impact, sans-serif;
  --f-serif: "5th Avenue", Georgia, serif;
  --f-label: "Gambetta", Georgia, serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: 104px; } /* fokussierte Elemente verschwinden nicht unter der fixierten Kopfzeile */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Bausteine ---------- */
.label { font: italic 400 20px/1.2 var(--f-label); color: var(--muted); }
.display {
  font: 400 clamp(2.75rem, 7vw, 6.5rem)/0.98 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.display--md { font-size: clamp(2.5rem, 5.5vw, 5rem); }

.link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--mint);
  background: var(--mint); color: var(--on-mint);
  font: 600 17px/1 var(--f-sans); text-decoration: none;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--dark { background: var(--on-mint); border-color: var(--on-mint); color: #fff; }
.btn--dark:hover { background: #000; border-color: #000; }
.btn svg { width: 18px; height: 18px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  font: 600 14px/1.4 var(--f-sans); color: var(--text);
}

/* ---------- Barrierefreiheit ---------- */
/* Sprunglinks: erst beim Tastaturfokus sichtbar, immer an derselben Stelle */
.skip-links { position: absolute; top: 0; left: 0; z-index: 200; }
.skip-links a {
  position: absolute; top: 0; left: -9999px; white-space: nowrap;
  background: var(--mint); color: var(--on-mint);
  padding: 14px 22px; border-radius: 12px; font: 600 18px/1 var(--f-sans);
  text-decoration: underline; text-underline-offset: 4px;
}
.skip-links a:focus { left: 16px; top: 16px; outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--on-mint); }

/* Sprungziele werden per Skript/Link fokussiert, bekommen aber keinen Rahmen */
[tabindex="-1"]:focus { outline: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}
.on-mint a:focus-visible, .on-mint button:focus-visible,
.band a:focus-visible { outline-color: var(--on-mint); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .card__title a, .pill__links a { transition: background-color .15s, border-color .15s, color .15s; }
}

/* ---------- Kopfzeile (Pille) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px var(--gutter) 0; pointer-events: none; }
.pill {
  pointer-events: auto;
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 24px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(25, 25, 25, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pill__logo { display: block; flex: none; }
.pill__logo img { width: 76px; height: 32px; }
.pill__links { display: flex; gap: 8px; margin-inline: auto; }
.pill__links a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  font: 600 16px/1.2 var(--f-sans); text-decoration: none; color: var(--text);
}
.pill__links a:hover { background: var(--surface); color: var(--mint); }
.pill__toggle {
  display: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 600 16px/1 var(--f-sans); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 6px 16px 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font: 600 14px/1.4 var(--f-sans); color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

.hero__title {
  font: 400 clamp(3rem, 6.4vw, 6.75rem)/0.98 var(--f-display);
  text-transform: uppercase; letter-spacing: 0.005em;
}
.hero__title > span { display: block; }
.hero__title > .sel { width: fit-content; max-width: 100%; } /* Rahmen liegt eng ums Wort */

/* Statischer „Auswahlrahmen“ wie in Figma – rein dekorativ, ohne Bewegung */
.sel { position: relative; display: inline-block; margin: 0.06em 0; padding: 0 0.12em; color: var(--mint); }
.sel::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--mint); pointer-events: none; }
.sel__h { position: absolute; width: 11px; height: 11px; background: var(--bg); border: 2px solid var(--mint); transform: translate(-50%, -50%); }
.sel__h:nth-of-type(1) { left: 0; top: 0; }
.sel__h:nth-of-type(2) { left: 100%; top: 0; }
.sel__h:nth-of-type(3) { left: 0; top: 100%; }
.sel__h:nth-of-type(4) { left: 100%; top: 100%; }
.sel__chip {
  position: absolute; left: calc(100% + 18px); top: 50%; transform: translateY(-50%);
  padding: 4px 10px; border-radius: 6px; background: var(--mint); color: var(--on-mint);
  font: 600 13px/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; white-space: nowrap;
  display: none;
}
@media (min-width: 1360px) { .sel__chip { display: block; } }

.hero__sub { margin-top: 36px; max-width: 560px; font: 400 clamp(1.75rem, 2.6vw, 2.5rem)/1.2 var(--f-serif); color: var(--mint); }
.hero__text { margin-top: 24px; max-width: 600px; font-size: 19px; color: #e6e6e6; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }

.hero__media { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 5.2; }
.hero__media figure { margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media figure:first-child { grid-row: 1 / 3; }

@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: 1.2fr 1fr; gap: 72px; }
}

/* ---------- Kompetenzen-Band (statisch) ---------- */
.band { background: var(--mint); color: var(--on-mint); padding-block: 22px; }
.band ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.band li { font: 400 clamp(1.25rem, 2.2vw, 1.75rem)/1.4 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; }
.band li:not(:last-child)::after { content: "/"; margin-inline: 0.7em; opacity: 0.55; }

/* ---------- Projekte ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .label { display: block; margin-bottom: 16px; }

.cards { display: grid; gap: 24px; }
@media (min-width: 810px) { .cards { grid-template-columns: 1fr 1fr; gap: 32px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.card:hover { border-color: var(--mint); }
.card:focus-within { outline: 3px solid var(--mint); outline-offset: 3px; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #2d2d2d; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 16px; padding: 28px clamp(20px, 3vw, 36px) 32px; flex: 1; }
/* Platz für zwei Chip-Zeilen, damit Titel in nebeneinanderliegenden Karten bündig bleiben */
@media (min-width: 810px) { .card .chips { min-height: 70px; align-content: flex-start; } }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card__title { font: 600 clamp(1.75rem, 2.6vw, 2.25rem)/1.15 var(--f-sans); }
.card__desc { color: #d6d6d6; }
.card__meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.card__meta dt { font: italic 400 18px/1.2 var(--f-label); color: var(--muted); margin-bottom: 4px; }
.card__meta dd { font-weight: 600; }
.card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mint); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.card__link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.card__link:focus-visible { outline: none; } /* der Rahmen sitzt an der ganzen Karte (.card:focus-within) */
.card__link svg { width: 18px; height: 18px; flex: none; }

/* ---------- Service ---------- */
.service__grid { display: grid; gap: 56px; }
@media (min-width: 960px) {
  .service__grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .service__intro { position: sticky; top: 112px; }
}
.service__lead { margin-top: 24px; max-width: 30ch; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.3 var(--f-sans); }
.service__img { margin-top: 40px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.service__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top; }

.offer { display: grid; grid-template-columns: 72px 1fr; gap: 8px 24px; padding-block: 36px; border-top: 1px solid var(--line); }
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer__num { grid-row: 1 / 3; font: 400 56px/1 var(--f-display); color: var(--mint); }
.offer__title { font: 600 clamp(1.4rem, 2vw, 1.75rem)/1.25 var(--f-sans); }
.offer__text { color: #d6d6d6; max-width: 52ch; }
.offer .chips { grid-column: 2; margin-top: 12px; }

/* ---------- Zeitleiste (Über-mich-Seite) ---------- */
.timeline li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline strong { font-weight: 600; max-width: 32ch; }
.timeline .label { font-size: 22px; color: var(--mint); }
.timeline__head { margin-bottom: 16px; }

/* ---------- Kontakt ---------- */
.contact { padding-block: clamp(56px, 8vw, 104px); }
.contact__box {
  display: grid; gap: 32px; align-items: end;
  padding: clamp(32px, 6vw, 80px); border-radius: 32px;
  background: var(--mint); color: var(--on-mint);
}
.contact__box .label { color: #3a3a3a; }
.contact__box .display { margin-top: 16px; }
.contact__box p { max-width: 40ch; font-size: 20px; }
@media (min-width: 960px) { .contact__box { grid-template-columns: 1.4fr 1fr; } .contact__action { justify-self: end; } }

/* ---------- Footer ---------- */
.footer { padding-block: 72px 48px; border-top: 1px solid var(--line); }
.footer__claim { font: 400 clamp(4rem, 12vw, 9rem)/1 var(--f-serif); color: var(--mint); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 56px; }
.footer__nav a { display: inline-block; padding-block: 8px; font-weight: 600; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.footer__bottom a { color: var(--text); font-weight: 600; }

/* ---------- Mobil: Menü als Aufklapp-Liste ---------- */
@media (max-width: 809px) {
  body { font-size: 17px; }
  .site-header { padding-top: 12px; }
  .pill { flex-wrap: wrap; border-radius: 28px; padding: 8px 8px 8px 20px; gap: 12px; }
  .pill__logo { margin-right: auto; }
  .js .pill__toggle { display: inline-flex; align-items: center; }
  .pill > .btn { order: 2; }
  .pill__toggle { order: 3; }
  .pill__links { order: 4; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; padding: 4px 0 8px; }
  .js .pill__links { display: none; }
  .js .pill__links.is-open { display: flex; }
  .pill__links a { display: block; padding: 14px 12px; border-radius: 12px; font-size: 18px; }
  .offer { grid-template-columns: 1fr; }
  .offer__num { grid-row: auto; font-size: 44px; }
  .offer .chips { grid-column: 1; }
  .hero__sub { margin-top: 28px; }
  .band ul { justify-content: flex-start; }
}

/* =========================================================
   Unterseiten (Projekte, Case Studies, Angebot, Über mich,
   Kontakt, Impressum)
   ========================================================= */

.pill__links a[aria-current="page"],
.pill__links a[aria-current="true"] { background: var(--surface); color: var(--mint); }

/* ---------- Seitenkopf ---------- */
.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); }
.page-head .label { display: block; margin-bottom: 16px; }
.page-head__title { font: 400 clamp(3.5rem, 11vw, 9.5rem)/0.95 var(--f-display); text-transform: uppercase; letter-spacing: 0.005em; }
.page-head__lead { margin-top: 28px; max-width: 30ch; font: 600 clamp(1.5rem, 3vw, 2.5rem)/1.25 var(--f-sans); }
.crumb { display: inline-block; margin-bottom: 32px; padding-block: 8px; font-weight: 600; text-decoration: none; color: var(--muted); }
.crumb:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Projekt-Eckdaten ---------- */
.meta {
  display: grid; gap: 24px 48px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 40px; padding: 28px clamp(20px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.meta dt { margin-bottom: 6px; font: italic 400 18px/1.2 var(--f-label); color: var(--muted); }
.meta dd { font-weight: 600; font-size: 20px; line-height: 1.4; }
.meta .chips { margin-top: 4px; }
.meta .chips li { font-size: 15px; }

.shot { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; height: auto; }
.shot--wide img { aspect-ratio: 2 / 1; object-fit: cover; }
@media (max-width: 809px) { .shot--wide img { aspect-ratio: 4 / 3; } }
.page-head + .wrap { margin-top: 0; }

/* ---------- Kapitel (Case Study) ---------- */
.chapters { border-bottom: 1px solid var(--line); }
.chapter { display: grid; gap: 12px 48px; padding-block: 40px; border-top: 1px solid var(--line); }
.chapter__num { font: 400 56px/1 var(--f-display); color: var(--mint); }
.chapter__title { font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.25 var(--f-sans); }
.chapter__text { color: #d6d6d6; max-width: 62ch; }
@media (min-width: 810px) {
  .chapter { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
  .chapter__num { font-size: 64px; }
}

.pull { margin-top: clamp(40px, 6vw, 72px); padding: 8px 0 8px clamp(20px, 3vw, 36px); border-left: 4px solid var(--mint); }
.pull .label { display: block; margin-bottom: 12px; }
.pull p:last-child { max-width: 40ch; font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.35 var(--f-sans); }

.case-text { display: grid; gap: 32px; }
.case-text__title { font: 400 clamp(2.5rem, 5.5vw, 5rem)/1 var(--f-display); text-transform: uppercase; }
.case-text__body { display: grid; gap: 20px; max-width: 62ch; color: #d6d6d6; }
.case-text__body .lead { font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.35 var(--f-sans); color: var(--text); }
.case-text .chips { margin-top: 4px; }
@media (min-width: 960px) { .case-text { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; height: auto; }
@media (min-width: 810px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery figure:not(.is-full) { aspect-ratio: 4 / 3; }
  .gallery figure:not(.is-full) img { height: 100%; object-fit: cover; }
  .gallery .is-full { grid-column: 1 / -1; }
}

/* ---------- Nächstes Projekt ---------- */
.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none;
}
.next:hover { border-color: var(--mint); }
.next .label { display: block; margin-bottom: 8px; }
.next__title { font: 400 clamp(2.25rem, 5vw, 4rem)/1 var(--f-display); text-transform: uppercase; }
.next__arrow { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--on-mint); }
.next__arrow svg { width: 24px; height: 24px; }

/* ---------- Angebot ---------- */
.offer-cards { display: grid; gap: 24px; counter-reset: none; }
@media (min-width: 1000px) { .offer-cards { grid-template-columns: repeat(3, 1fr); } }
.offer-card {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.offer-card .chapter__num { font-size: 72px; }
.offer-card .chapter__title { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.offer-card .chips { margin-top: auto; padding-top: 16px; }

/* ---------- Über mich ---------- */
.about-page { display: grid; gap: 56px; }
@media (min-width: 960px) {
  .about-page { grid-template-columns: 6fr 5fr; gap: 88px; align-items: start; }
  .about-page__aside { position: sticky; top: 112px; }
}
.about-page__title { font: 400 clamp(2.5rem, 5.5vw, 5rem)/1 var(--f-display); text-transform: uppercase; }
.prose { display: grid; gap: 20px; margin-top: 32px; max-width: 60ch; font-size: 20px; line-height: 1.7; color: #d6d6d6; }
.prose strong { display: block; margin-top: 8px; color: var(--mint); font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.35 var(--f-sans); }

/* ---------- Kontakt ---------- */
.contact-page { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-page { grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; } }
.form {
  display: grid; gap: 24px; padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.form label { display: grid; gap: 8px; }
.form .label { font-size: 20px; }
.form input, .form textarea {
  width: 100%; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 12px;
  background: var(--bg); color: var(--text); font: 400 18px/1.4 var(--f-sans);
}
.form textarea { min-height: 160px; resize: vertical; }
.form ::placeholder { color: var(--muted); opacity: 1; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-color: var(--mint); }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn:disabled { opacity: 0.6; cursor: default; }
.form__hint { font-size: 16px; color: var(--muted); }
.form-status { min-height: 1.5em; font-size: 18px; color: var(--mint); }
.contact-page__direct { margin-top: 24px; color: #d6d6d6; }
.contact-page__direct a { font-weight: 600; color: var(--text); }
.contact-page .shot img { aspect-ratio: 1; object-fit: cover; }

/* ---------- Impressum ---------- */
.legal { display: grid; gap: 40px; }
@media (min-width: 960px) { .legal { grid-template-columns: 7fr 4fr; gap: 80px; align-items: start; } }
.legal__body { max-width: 68ch; color: #d6d6d6; font-size: 19px; line-height: 1.7; }
.legal__body h2 { margin: 40px 0 12px; font: 600 22px/1.3 var(--f-sans); color: var(--text); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body a { color: var(--mint); text-underline-offset: 4px; }
.legal__body a:hover { text-decoration-thickness: 3px; }
.legal .shot img { aspect-ratio: 4 / 3; object-fit: cover; }

/* =========================================================
   Hover-Mikroanimation: Klickflächen heben sich leicht an.
   Nur mit Maus (hover: hover) und nur, wenn keine reduzierte
   Bewegung gewünscht ist. Die Bewegung ist klein (2–6 px).
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .card, .btn, .next, .pill__links a, .pill__toggle, .next__arrow {
    transition: transform .2s ease, box-shadow .2s ease, background-color .15s, border-color .15s, color .15s;
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45); }
  .next:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
  .btn--dark:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }
  .pill__links a:hover, .pill__toggle:hover { transform: translateY(-2px); }
  .next:hover .next__arrow { transform: translateX(4px); }
}

/* Galerie, in der nebeneinanderliegende Bilder gleich hoch sind und nichts abgeschnitten wird
   (Verhältnis der Spalten = Verhältnis Quadrat : 4:3) */
@media (min-width: 810px) {
  .gallery--fit { grid-template-columns: 1fr 1.3333fr; }
  .gallery--fit figure:not(.is-full) { aspect-ratio: auto; }
  .gallery--fit figure:not(.is-full) img { height: auto; }
}

/* =========================================================
   Video (kein Autoplay): Poster mit sichtbarem Start-Button
   Ohne JavaScript bleiben die normalen Browser-Bedienelemente.
   ========================================================= */
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #222; }
.video__el { display: block; width: 100%; height: 100%; object-fit: contain; background: #222; }
.video__start { display: none; position: absolute; inset: 0; margin: auto; width: max-content; height: fit-content; min-height: 48px; padding: 0 26px 0 20px; font-size: 17px; } /* mittig auf dem Poster */
.video.is-armed .video__start { display: inline-flex; }
.video__start svg { width: 20px; height: 20px; flex: none; }
.video__text { margin-top: 16px; color: #d6d6d6; }
.video__text summary { display: inline-block; padding-block: 8px; font-weight: 600; color: var(--text); cursor: pointer;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; } /* unterstrichen: zeigt, dass man klicken kann */
.video__text summary:hover { text-decoration-thickness: 3px; }
.video__text p, .video__text ol { margin-top: 12px; max-width: 70ch; }
.video__text ol { padding-left: 1.4em; list-style: decimal; display: grid; gap: 8px; }
.video__text strong { color: var(--text); }
@media (max-width: 520px) { .video__start { min-height: 44px; padding: 0 20px 0 16px; font-size: 16px; } }

/* =========================================================
   Projektkarten: bis zu drei nebeneinander. Mit "subgrid"
   stehen Bild, Chips, Titel, Text, Leistungen und Link in allen
   Karten auf derselben Höhe, egal wie viele Zeilen ein Titel hat.
   ========================================================= */
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 810px) {
    .cards { row-gap: 0; column-gap: 32px; margin-bottom: -32px; }
    .card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 16px; margin-bottom: 32px; }
    .card__body { display: contents; }
    .card__body > * { margin-inline: clamp(20px, 3vw, 36px); }
    .card .chips { min-height: 0; padding-top: 12px; }
    .card__meta { margin-top: 0; }
    .card__more { padding-bottom: 32px; }
  }
}
