/* Philipp Ludwig: Komponenten. Alle Werte kommen aus tokens.css (CSS-Variablen). */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }

/* Seite: .pl-site ist der Container, an dem sich Header, Footer und Raster ausrichten */
.pl-site { container: pl-site / inline-size; font-family: var(--font-sans); font-size: 17px; line-height: 26px; color: var(--ink); background: var(--mist); }
.pl-site :where(a) { color: inherit; }
.pl-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.pl-photo { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.pl-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Bildmarke: steht allein, Standard ink oder white */
.pl-mark { display: block; height: 32px; width: auto; fill: var(--ink); }
.pl-mark--white { fill: var(--white); }
.pl-mark--signal { fill: var(--signal); }
.pl-logo { display: inline-flex; align-items: center; text-decoration: none; }
.pl-logo .pl-mark { height: 40px; }

/* Stern: Ornament in zwei Formen */
.pl-star { display: block; width: 32px; height: 32px; flex: none; fill: var(--signal); }
.pl-star--white { fill: var(--white); }
.pl-star--ink { fill: var(--ink); }

/* Label in eckigen Klammern */
.pl-label { display: inline-block; font: 500 11px/14px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.pl-label::before { content: "[ "; }
.pl-label::after { content: " ]"; }

/* Button */
.pl-btn { display: inline-flex; align-items: center; gap: var(--space-3); height: 52px; padding: 0 6px 0 var(--space-5); border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: 500 16px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.pl-btn__disc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: var(--white); transition: transform .2s; }
.pl-btn:hover .pl-btn__disc { transform: rotate(45deg); }
.pl-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pl-btn--outline { background: transparent; color: var(--ink); }
.pl-btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.pl-btn--light:focus-visible, .pl-btn--on-ink:focus-visible { outline-color: var(--white); }
.pl-btn--on-ink { background: transparent; border-color: var(--paper); color: var(--paper); }
.pl-btn--plain { padding: 0 var(--space-5); }
.pl-btn--sm { height: 44px; padding-left: var(--space-4); font-size: 15px; }
.pl-btn--sm .pl-btn__disc { width: 32px; height: 32px; }
.pl-btn--sm.pl-btn--plain { padding: 0 var(--space-4); }

/* Tag */
.pl-tag { display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font: 500 11px/1 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pl-tag .pl-ico { width: 12px; height: 12px; }
.pl-tag--stone { background: var(--stone); }
.pl-tag--outline { background: transparent; border: 1px solid currentColor; color: inherit; }

/* Pfeil-Oval */
.pl-arrow { display: inline-grid; place-items: center; width: 56px; height: 30px; border: 1.5px solid currentColor; border-radius: var(--radius-pill); color: inherit; flex: none; }

/* Markierungs-Oval um ein Wort */
.pl-oval { position: relative; display: inline-block; margin: 0 0.1em; }
.pl-oval::after { content: ""; position: absolute; inset: -0.02em -0.16em -0.06em; border: 0.04em solid var(--signal); border-radius: 50%; transform: rotate(-3deg); pointer-events: none; }
.pl-oval--white::after { border-color: var(--white); }

/* Pillen-Stapel */
.pl-pills { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pl-pill { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.22em 0.7em 0.26em; border-radius: var(--radius-pill); background: var(--mist-soft); color: var(--ink); font-size: 44px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.pl-pill--white { background: var(--white); }
.pl-pill--signal { background: var(--signal); color: var(--white); }
.pl-pill--ink { background: var(--ink); color: var(--paper); }
.pl-pill--outline { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.pl-pill--serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Header */
.pl-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--header-h); max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-5); }
.pl-nav { display: flex; align-items: center; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-pill); background: var(--white); }
.pl-nav > a { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); font-size: 15px; line-height: 1; font-weight: 500; text-decoration: none; }
.pl-nav > a:hover { background: var(--mist-soft); }
.pl-nav > a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pl-nav > a:focus-visible, .pl-burger:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-nav__cta { display: none; }
.pl-burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; }
.pl-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .2s, top .2s; }
.pl-burger span:first-child { top: 18px; }
.pl-burger span:last-child { top: 25px; }
.pl-header.is-open .pl-burger span { top: 21px; }
.pl-header.is-open .pl-burger span:first-child { transform: rotate(45deg); }
.pl-header.is-open .pl-burger span:last-child { transform: rotate(-45deg); }

/* Sektionen */
.pl-main { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4) var(--space-4); display: grid; gap: var(--space-4); }
.pl-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-4); }
.pl-hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); min-height: 540px; padding: var(--space-7); border-radius: var(--radius-lg); background: var(--paper); }
.pl-hero__title { margin: var(--space-5) 0 0; font-size: 88px; line-height: 84px; font-weight: 500; letter-spacing: -0.035em; }
.pl-hero__lead { margin: 0 0 var(--space-6); max-width: 36ch; font-size: 20px; line-height: 28px; color: var(--ink-muted); }
.pl-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pl-hero__media { position: relative; min-height: 540px; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.pl-hero__media .pl-photo { position: absolute; inset: 0; }
.pl-hero__badge { position: absolute; left: var(--space-4); bottom: var(--space-4); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.pl-hero__badge .pl-pill { font-size: 28px; }
.pl-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.pl-service { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); min-height: 300px; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--paper); }
.pl-service--ink { background: var(--ink); color: var(--paper); }
.pl-service--stone { background: var(--stone); }
.pl-service__head { display: flex; align-items: center; justify-content: space-between; }
.pl-service__title { margin: 0 0 var(--space-3); font-size: 32px; line-height: 34px; font-weight: 500; letter-spacing: -0.02em; }
.pl-service__text { margin: 0; max-width: 30ch; font-size: 15px; line-height: 22px; }

/* Referenzkarte und Raster */
.pl-ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.pl-ref { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); text-decoration: none; }
.pl-ref:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pl-ref__shot { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--stone); display: grid; place-items: center; color: var(--ink-muted); }
.pl-ref__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pl-ref__body { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; padding: 0 var(--space-3); }
.pl-ref__name { margin: 0; font-size: 24px; line-height: 28px; font-weight: 500; letter-spacing: -0.02em; }
.pl-ref__branche { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 22px; color: var(--ink-muted); }
.pl-ref__foot { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-3) var(--space-3); }
.pl-ref:hover .pl-arrow { background: var(--ink); color: var(--paper); }

/* Footer */
.pl-footer { max-width: calc(var(--content-max) - 2 * var(--space-4)); margin: 0 auto; padding: var(--space-7); border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
.pl-footer a { text-decoration: none; }
.pl-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-footer a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.pl-footer .pl-btn:hover { text-decoration: none; }
.pl-footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid var(--line-on-ink); }
.pl-footer__claim { margin: 0; max-width: 11em; font-size: 64px; line-height: 64px; font-weight: 500; letter-spacing: -0.03em; }
.pl-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); padding: var(--space-7) 0; }
.pl-footer__cols h3 { margin: 0 0 var(--space-3); font: 500 11px/14px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-muted); }
.pl-footer__cols ul { margin: 0; padding: 0; list-style: none; }
.pl-footer__cols li, .pl-footer__cols address { font-size: 15px; line-height: 28px; font-style: normal; }
.pl-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: 13px; line-height: 20px; color: var(--on-ink-muted); }
.pl-footer__bottom .pl-mark { height: 28px; }

@container pl-site (max-width: 1000px) {
  .pl-ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-hero__title { font-size: 64px; line-height: 64px; }
}
@container pl-site (max-width: 760px) {
  .pl-header { padding: 0 var(--space-4); }
  .pl-header__cta { display: none; }
  .pl-burger { display: block; }
  .pl-nav { display: none; position: absolute; z-index: 10; top: calc(var(--header-h) + var(--space-1)); left: var(--space-4); right: var(--space-4); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-4) var(--space-5) var(--space-5); border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
  .pl-header.is-open .pl-nav { display: flex; }
  .pl-nav > a { height: auto; padding: var(--space-3) 0; border-radius: 0; border-bottom: 1px solid var(--line-on-ink); font-size: 32px; line-height: 38px; letter-spacing: -0.02em; }
  .pl-nav > a:hover { background: none; }
  .pl-nav > a[aria-current="page"] { background: none; color: var(--paper); font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
  .pl-nav > a:focus-visible { outline-color: var(--white); }
  .pl-nav__cta { display: block; padding-top: var(--space-5); }
  .pl-main { padding: 0 var(--space-3) var(--space-3); gap: var(--space-3); }
  .pl-hero, .pl-services, .pl-ref-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pl-hero__text { min-height: 0; gap: var(--space-7); padding: var(--space-5); }
  .pl-hero__title { font-size: 44px; line-height: 46px; letter-spacing: -0.025em; }
  .pl-hero__lead { font-size: 17px; line-height: 26px; }
  .pl-hero__media { min-height: 420px; }
  .pl-service { min-height: 0; gap: var(--space-7); padding: var(--space-5); }
  .pl-footer { margin: 0 var(--space-3); padding: var(--space-5); }
  .pl-footer__top { flex-direction: column; align-items: flex-start; padding-bottom: var(--space-6); }
  .pl-footer__claim { font-size: 44px; line-height: 46px; letter-spacing: -0.025em; }
  .pl-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-4); padding: var(--space-6) 0; }
  .pl-footer__cols > :first-child { grid-column: 1 / -1; }
  .pl-footer__cols li, .pl-footer__cols address { line-height: 36px; }
  .pl-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Social: alle Maße in cqw, die Vorlage skaliert von der Vorschau bis 1080px Breite */
.pl-post { position: relative; aspect-ratio: 4 / 5; container-type: inline-size; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
.pl-post--story { aspect-ratio: 9 / 16; }
.pl-post--round { border-radius: 7% / 5.6%; }
.pl-post--story.pl-post--round { border-radius: 8% / 4.5%; }
.pl-post--ink { background: var(--ink); color: var(--paper); }
.pl-post--signal { background: var(--signal); color: var(--white); }
.pl-post--mist { background: var(--mist-soft); }
.pl-post--stone { background: var(--stone); }
.pl-post__bg { position: absolute; inset: 0; }
.pl-post__bg--shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(24, 24, 23, 0.5), rgba(24, 24, 23, 0) 32%); }
.pl-post__frame { position: absolute; inset: 2.6cqw; border: 0.3cqw solid var(--white); border-radius: 5cqw; pointer-events: none; }
.pl-post__in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 4cqw; padding: 6.5cqw; }
.pl-post--story .pl-post__in { padding: 25cqw 7cqw; }
.pl-post__row { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.pl-post__row--top { align-items: flex-start; }
.pl-post__row--end { align-items: flex-end; }
.pl-post__row--left { justify-content: flex-start; }
.pl-post__label { display: inline-block; font-size: 1.9cqw; line-height: 1.25; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pl-post__label::before { content: "[ "; }
.pl-post__label::after { content: " ]"; }
.pl-post .pl-mark { height: 7cqw; }
.pl-post .pl-star { width: 8cqw; height: 8cqw; }
.pl-post__caps { margin: 0; font-size: 9.2cqw; line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; text-transform: uppercase; }
.pl-post__caps .pl-tag { vertical-align: 0.9em; margin-left: 1cqw; letter-spacing: 0.06em; }
.pl-post__big { margin: 0; font-size: 10cqw; line-height: 1.02; font-weight: 500; letter-spacing: -0.03em; }
.pl-post__huge { margin: 0; font-size: 21cqw; line-height: 0.92; font-weight: 500; letter-spacing: -0.045em; }
.pl-post__num { margin: 0; font-size: 50cqw; line-height: 0.8; font-weight: 500; letter-spacing: -0.05em; }
.pl-post__num em { font-style: normal; font-size: 0.42em; letter-spacing: 0; color: var(--signal); }
.pl-post__serif { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 9.4cqw; line-height: 1.06; }
.pl-post__serif--s { font-size: 6.4cqw; font-style: normal; }
.pl-post__note { margin: 0; max-width: 13em; font-family: var(--font-serif); font-style: italic; font-size: 3.6cqw; line-height: 1.12; }
.pl-post__text { margin: 0; font-size: 4.2cqw; line-height: 1.25; }
.pl-post__text b { font-weight: 500; color: var(--signal); }
.pl-post .pl-pills { gap: 2.4cqw; align-self: stretch; }
.pl-post .pl-pill { font-size: 8.2cqw; padding: 0.3em 0.8em 0.34em; }
.pl-post .pl-pill .pl-ico { width: 0.7em; height: 0.7em; }
.pl-post__pillrow { display: flex; align-items: center; gap: 2.4cqw; }
.pl-post__ring { display: grid; place-items: center; width: 13.6cqw; height: 13.6cqw; flex: none; border: 0.25cqw solid currentColor; border-radius: 50%; color: var(--signal); }
.pl-post .pl-post__ring .pl-ico { width: 5cqw; height: 5cqw; }
.pl-post .pl-tag { height: 6.4cqw; padding: 0 2.8cqw; gap: 1.6cqw; font-size: 2.1cqw; }
.pl-post .pl-ico { width: 3.2cqw; height: 3.2cqw; stroke-width: 1.3; }
.pl-post .pl-tag .pl-ico { width: 2.6cqw; height: 2.6cqw; }
.pl-post .pl-arrow { width: 11.5cqw; height: 6.2cqw; border-width: 0.32cqw; }
.pl-post .pl-arrow .pl-ico { width: 4.4cqw; height: 4.4cqw; }
.pl-post__arrow--signal { color: var(--signal); }
.pl-post__inner { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 4cqw; margin: 0 -1.6cqw; padding: 7cqw; border-radius: 5cqw; background: var(--white); color: var(--ink); }
.pl-post__slot { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; border-radius: 6cqw; overflow: hidden; background: var(--stone); color: var(--ink-muted); font-size: 2.1cqw; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.pl-post__slot--ink { background: var(--ink); color: var(--on-ink-muted); }
.pl-post__slot--white { background: var(--white); }
.pl-post__slot--sage { background: var(--sage); color: var(--ink); }
.pl-post__slot--bleed { margin: 0 -6.5cqw -6.5cqw; border-radius: 6cqw 6cqw 0 0; }
.pl-post--story .pl-post__slot--bleed { margin: 0 -7cqw -25cqw; }
.pl-post__slot .pl-photo { position: absolute; inset: 0; }
.pl-post__cols { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 2cqw; margin: 0 -6.5cqw -6.5cqw; }
.pl-post--story .pl-post__cols { margin: 0 -7cqw -25cqw; }
.pl-post__cols .pl-post__slot { border-radius: 9cqw 9cqw 0 0; height: 100%; flex: 1; align-content: start; padding-top: 6cqw; }
.pl-post__cols .pl-post__slot:nth-child(2) { height: 100%; }
.pl-post__cols .pl-post__slot:last-child { height: 62%; }
.pl-post__img { position: relative; align-self: center; width: 66%; aspect-ratio: 1; }
.pl-post__img > div { position: absolute; inset: 0; border-radius: 9cqw; overflow: hidden; }
.pl-post__img .pl-pill { position: absolute; right: -14cqw; bottom: 4cqw; font-size: 3.6cqw; padding: 1em 1.8em; }
.pl-post__field { display: flex; align-items: center; justify-content: space-between; height: 13cqw; padding: 0 1.6cqw 0 5.5cqw; border: 0.25cqw solid currentColor; border-radius: var(--radius-pill); font-size: 2.8cqw; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.pl-post__disc { display: grid; place-items: center; width: 9.6cqw; height: 9.6cqw; flex: none; border-radius: 50%; background: var(--signal); color: var(--white); }
.pl-post__name { display: flex; align-items: center; justify-content: center; height: 15cqw; border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: 8.4cqw; font-weight: 500; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }

/* Bühnen für die Vorschauen */
.pl-stage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-5); background: var(--mist); }
.pl-stage--paper { background: var(--paper); }
.pl-stage--ink { background: var(--ink); color: var(--paper); }
.pl-stage--signal { background: var(--signal); color: var(--white); }
.pl-phone { width: 390px; flex: none; border-radius: var(--radius-lg); overflow: hidden; }
