/* edda v28 · Über uns (Präfix ab-) */

@font-face {
  font-family: "Homemade Apple";
  src: url("../assets/fonts/homemade-apple-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Hero: vier Zahlen ---------- */
.ab-aside { display: flex; flex-direction: column; gap: 20px; }
.ab-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ab-facts li { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-width: 0; min-height: 168px; padding: 20px; background: var(--surface); }
.ab-facts li:first-child { background: var(--accent-800); color: #fff; }
.ab-facts strong { font-family: var(--serif); font-size: clamp(26px, 21cqw, 56px); line-height: 1; font-weight: 400; letter-spacing: -0.025em; white-space: nowrap; color: var(--ink); }
.ab-facts span { min-height: 2.8em; font-family: var(--mono); font-size: 12px; line-height: 1.4; letter-spacing: 0.02em; color: var(--text); }
.ab-facts li:first-child strong { color: #fff; }
.ab-facts li:first-child span { color: var(--accent-200); }
.ab-aside__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ab-aside__foot img { width: 120px; height: auto; }

/* ---------- 01 Satz und Brief ---------- */
.ab-statement { font-family: var(--serif); font-size: clamp(38px, 8.6vw, 132px); line-height: 1.02; font-weight: 400; letter-spacing: -0.028em; margin-bottom: 72px; }
.ab-letter { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px 64px; align-items: start; }
.ab-letter__meta { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border-2); position: sticky; top: calc(var(--nav-h) + 24px); }
.ab-letter__meta .label { padding-top: 12px; color: var(--accent-800); }
.ab-letter__img { display: block; width: 160px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--border); filter: sepia(.1) saturate(.94) brightness(1.03); margin: 12px 0 8px; }
.ab-letter__role { font-size: 13.5px; line-height: 1.45; color: var(--text); }
.ab-letter__body { display: flex; flex-direction: column; gap: 1.1em; max-width: 34em; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.ab-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 24px; padding: 8px 0 0; }
.ab-sign__name { display: block; max-width: 100%; font-family: "Homemade Apple", "Segoe Script", "Brush Script MT", cursive; font-size: 56px; line-height: 1.5; font-weight: 400; color: var(--accent-900); padding: 0.1em 0.3em 0.05em 0; transform: rotate(-3deg); transform-origin: left bottom; white-space: nowrap; }
.ab-sign::after { content: ""; order: 1; width: 14em; max-width: 100%; border-top: 1px solid var(--border-2); }
.ab-sign__role { order: 2; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text); }

/* ---------- 02 Der Name ---------- */

/* ---------- 03 Grundsätze ---------- */
.ab-steps { margin-top: 0; }

/* ---------- 04 Zeitleiste: waagerecht ab 960 px, darunter senkrecht ---------- */
.ab-ms { display: flex; flex-direction: column; }
.ab-ms__item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 36px 36px; }
.ab-ms__item:last-child { padding-bottom: 0; }
.ab-ms__item::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 1px; background: var(--border-2); }
.ab-ms__item:last-child::before { display: none; }
.ab-ms__mark { position: absolute; left: 0; top: 4px; width: 11px; height: 11px; background: var(--muted); }
.ab-ms__item--now .ab-ms__mark { background: var(--accent-800); }
.ab-ms__year { font-family: var(--mono); font-size: 12px; line-height: 1.6; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ab-ms__item--now .ab-ms__year { color: var(--accent-800); }
.ab-ms__text { max-width: 34em; font-size: 15.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
@media (min-width: 961px) {
  .ab-ms { flex-direction: row; gap: 28px; }
  .ab-ms__item { flex: 1 1 0; min-width: 0; padding: 40px 0 0; }
  .ab-ms__item:last-child { padding-top: 40px; }
  .ab-ms__item::before { left: 0; right: -28px; top: 5px; bottom: auto; width: auto; height: 1px; }
  .ab-ms__mark { top: 0; }
}

/* ---------- 01 Team: Karussell (.rail aus styles.css) ---------- */
.ab-team-head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr) auto; }
html:not(.js) .ab-team-head .rail-nav { display: none; }
.ab-team { align-items: stretch; }
.ab-person { width: 280px; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 16px 22px; background: var(--surface); border: 1px solid var(--border); }
.ab-person__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: sepia(.1) saturate(.94) brightness(1.03); }
.ab-person__fig { position: relative; margin-bottom: 14px; }
.ab-person__tab { position: absolute; top: 0; right: 0; display: flex; align-items: center; height: 26px; padding: 0 12px 0 34px; background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 11px; line-height: 1; text-transform: lowercase; clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%); }
.ab-person__name { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); text-wrap: balance; }
.ab-person__role { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; letter-spacing: 0.02em; color: var(--accent-800); text-wrap: pretty; }
.ab-person__text { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.ab-person--more { background: transparent; border: 1px dashed var(--border-2); align-items: flex-start; }
.ab-more__fig { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: 14px; background: var(--inset); border: 1px solid var(--border); }
.ab-more__n { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.ab-person--more .tlink { margin-top: 10px; }

/* ---------- 05 Partner ---------- */
.ab-partner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ab-partner__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.ab-partner__text .eyebrow { margin-bottom: 2px; }
.ab-partner__text .ref__kv { width: 100%; }
.ab-partner .quote { min-width: 0; }

/* ---------- 07 Karriere: .kv auf Dunkel ---------- */
.ab-career__btn { align-self: flex-start; margin-top: 6px; background: #fff; color: var(--accent-800); }
.ab-career__btn:focus-visible { box-shadow: 0 0 0 2px var(--accent-950); }
.ab-career__kv { border-top: 1px solid var(--on-dark-line); min-width: 0; }
.ab-career__kv > div { padding: 13px 0; border-bottom-color: var(--on-dark-line); font-size: 13px; }
.ab-career__kv dt { color: var(--accent-300); }
.ab-career__kv dd { color: #fff; }
.ab-career__kv a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) {
  .ab-career__btn:hover { background: var(--accent-50); }
  .ab-career__kv a:hover { text-decoration-thickness: 2px; }
}

/* ---------- 06 Der Name: Handschrift als Band, dieselbe Geschichte zweimal ---------- */
.ab-src { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 14px 9px 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-family: var(--mono); font-size: 11.5px; line-height: 1.4; }
.ab-src img { flex: none; width: 18px; height: 18px; }
.ab-src__t { display: flex; flex-direction: column; min-width: 0; }
.ab-src__t b { font-weight: 600; color: var(--ink); }
.ab-src__t span { color: var(--text-3); }
.ab-band { margin: 0 0 56px; }
.ab-band__frame { position: relative; margin-bottom: 20px; }
.ab-band__img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: 62% 50%; border: 1px solid var(--border); filter: sepia(.1) saturate(.94) brightness(1.03); }
.ab-band__src { position: absolute; left: 24px; bottom: -20px; }
.ab-band__credit { margin-top: 10px; text-align: right; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--text-3); }
.ab-band__credit a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ab-story { --ab-gap: 40px; display: grid; grid-template-columns: 160px repeat(3, minmax(0, 1fr)); column-gap: var(--ab-gap); row-gap: 16px; }
.ab-stages, .ab-stage { display: contents; }
.ab-story__k { padding-top: 24px; font-family: var(--mono); font-size: 11.5px; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ab-story__k b { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }
.ab-story__k--now b { color: var(--accent-800); }
.ab-story__k--then { grid-column: 1; grid-row: 2; }
.ab-story__k--now { grid-column: 1; grid-row: 3; color: var(--accent-800); }
.ab-stage__h { position: relative; display: flex; align-items: baseline; gap: 12px; grid-row: 1; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; line-height: 1.1; color: var(--ink); }
.ab-stage__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); }
.ab-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); font-size: 16.5px; line-height: 1.5; }
.ab-cell p { text-wrap: pretty; }
.ab-cell--then { grid-row: 2; }
.ab-cell--now { grid-row: 3; background: var(--accent-50); border-color: var(--accent-200, var(--border-2)); color: var(--ink); }
.ab-cell--faint { color: var(--text-3); }
.ab-cell__k { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ab-stage:nth-child(1) > * { grid-column: 2; }
.ab-stage:nth-child(2) > * { grid-column: 3; }
.ab-stage:nth-child(3) > * { grid-column: 4; }
.ab-arrow { position: absolute; top: 50%; left: calc(100% + 6px); width: calc(var(--ab-gap) - 12px); height: 1px; background: var(--text-3); transform-origin: left center; }
.ab-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--text-3); border-right: 1px solid var(--text-3); transform: rotate(45deg); transform-origin: 100% 0; translate: 0 3px; }
/* Ablauf, sobald das Skript läuft: erst Damals, dann Heute, jeweils von links nach rechts */
.ab-story[data-run] .ab-cell { transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); }
.ab-story[data-run] .ab-cell:not(.is-on) { opacity: 0; translate: 0 8px; }
.ab-story[data-run] .ab-arrow { transition: transform 0.5s var(--ease); }
.ab-story[data-run] .ab-arrow:not(.is-on) { transform: scaleX(0); }
.ab-story[data-run] .ab-arrow::after { transition: opacity 0.2s var(--ease) 0.35s; }
.ab-story[data-run] .ab-arrow:not(.is-on)::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ab-story[data-run] .ab-cell, .ab-story[data-run] .ab-arrow, .ab-story[data-run] .ab-arrow::after { transition: none; }
  .ab-story[data-run] .ab-cell:not(.is-on) { opacity: 1; translate: none; }
  .ab-story[data-run] .ab-arrow:not(.is-on) { transform: none; }
  .ab-story[data-run] .ab-arrow:not(.is-on)::after { opacity: 1; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .ab-band { margin-bottom: 48px; }
  .ab-band__frame { margin-bottom: 0; }
  .ab-band__img { height: 160px; }
  .ab-band__src { position: static; margin-top: -1px; box-shadow: none; display: flex; }
  .ab-story { display: block; }
  .ab-story__k { display: none; }
  .ab-stages { display: grid; gap: 48px; }
  .ab-stage { position: relative; display: grid; gap: 12px; }
  .ab-stage > * { grid-column: auto !important; grid-row: auto; }
  .ab-stage__h { position: static; margin-bottom: 4px; }
  .ab-cell { display: grid; gap: 8px; }
  .ab-cell__k { position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }
  .ab-cell--now .ab-cell__k { color: var(--accent-800); }
  .ab-cell--now .ab-src { margin-top: 8px; }
  .ab-stage:last-child .ab-arrow { display: none; }
  .ab-arrow { top: calc(100% + 14px); left: 50%; width: 1px; height: 20px; transform-origin: top center; }
  .ab-arrow::after { right: auto; left: -3px; top: auto; bottom: 0; transform: rotate(135deg); transform-origin: 50% 50%; translate: 0 -1px; }
  .ab-story[data-run] .ab-arrow:not(.is-on) { transform: scaleY(0); }
}
@media (max-width: 1100px) {
  .ab-partner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 40px; }
  .ab-letter { grid-template-columns: minmax(0, 1fr); }
  .ab-letter__meta { position: static; max-width: 34em; }
}
@media (max-width: 960px) {
  .ab-team-head { grid-template-columns: minmax(0, 1fr); }
  .ab-statement { margin-bottom: 48px; }
}
@media (max-width: 640px) {
  .ab-facts li { min-height: 132px; padding: 14px; }
  .ab-facts span { font-size: 11px; }
  .ab-sign__name { font-size: 44px; }
  .ab-person { width: 78vw; }
  .ab-career__btn { width: 100%; justify-content: center; align-self: stretch; white-space: nowrap; }
  .ab-career__kv > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ab-career__kv dd { text-align: left; }
}

@media (max-width: 640px) {
  .ab-letter__meta { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start; }
  .ab-letter__img { grid-row: 1 / span 3; width: 112px; margin: 12px 0 0; }
  .ab-letter__meta .label { padding-top: 12px; align-self: end; }
  .ab-letter__role { align-self: start; }
}

