/* ============================================================
   PAUL KAPISCHKA — Landingpage ("Branding & Event-Design")
   Standalone SEO one-pager. Deliberately separate from the main
   site chrome (main.css) so the two can evolve independently —
   only the design tokens (colors, type, spacing) from main.css
   are shared. All selectors below are namespaced .pkl-* and only
   ever load on page-templates/template-landing.php.
   ============================================================ */

.pkl-body { overflow-x: hidden; }

/* ---------- Header ---------- */
.pkl-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--pk-paper);
  border-bottom: 1px solid var(--pk-ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px; gap: 24px;
}
.admin-bar .pkl-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .pkl-header { top: 46px; } }

.pkl-header__brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--pk-ink); min-width: 0;
}
.pkl-header__logo { flex-shrink: 0; color: var(--pk-ink); }
.pkl-header__wordmark {
  font-family: var(--font-display); font-weight: 300;
  font-size: 20px; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Only "Kontakt" + the status pill remain, so the nav never needs to
   collapse behind a toggle — it comfortably fits down to ~320px wide. */
.pkl-nav { display: flex; align-items: center; gap: 20px; }
.pkl-nav__link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--pk-ink);
  white-space: nowrap; border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.pkl-nav__link:hover { color: var(--pk-spark); border-bottom-color: var(--pk-spark); }

.pkl-status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border: 1px solid var(--pk-spark); border-radius: 999px;
  text-decoration: none; flex-shrink: 0; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out);
}
a.pkl-status:hover { background: var(--pk-spark); }
a.pkl-status:hover .pkl-status__label { color: var(--pk-paper); }
a.pkl-status:hover .pkl-status__dot { background: var(--pk-paper); }
.pkl-status__dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--pk-spark); animation: pklPulse 1.8s var(--ease-in-out) infinite;
}
.pkl-status__label {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--pk-spark); white-space: nowrap;
}
@keyframes pklPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- Hero ---------- */
.pkl-hero { padding: 40px 48px 0; }
.pkl-hero__meta { display: flex; justify-content: space-between; align-items: baseline; }

.pkl-hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(64px, 9.6vw, 168px); line-height: 0.98; letter-spacing: -0.025em;
  margin: 28px 0 0; color: var(--pk-ink);
  overflow-wrap: break-word; hyphens: auto;
  animation: pklReveal 900ms var(--ease-out) both;
}
.pkl-hero__title em { font-style: italic; font-weight: 200; }
.pkl-hero__spark { display: inline-flex; color: var(--pk-spark); vertical-align: 0.02em; margin: 0 0.06em; }
.pkl-hero__spark svg { width: 0.62em; height: 0.62em; }
/* Top inset is -20% in both states (not 0) — at line-height:0.98 the serif
   caps/dots render slightly above the h1's own line box, and a top:0 inset
   would permanently clip them once the animation settles (fill-mode both).
   Only the bottom edge should actually wipe. */
@keyframes pklReveal {
  from { clip-path: inset(-20% 0 100% 0); transform: translateY(24px); }
  to   { clip-path: inset(-20% 0 -10% 0); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pkl-hero__title { animation: none; }
}

.pkl-hero__lead {
  font-family: var(--font-serif); font-size: 19px; line-height: 1.55;
  color: var(--fg-2); max-width: 62ch; margin: 32px 0 0;
}
.pkl-hero__lead em { font-style: italic; }

.pkl-hero__facts {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.pkl-hero__fact {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
}
.pkl-hero__fact--spark { color: var(--pk-spark); }

/* ---------- Section eyebrow (shared) ---------- */
/* Used on both <span> (metadata, e.g. hero eyebrow row) and <h2> (real
   section headings — Leistungen, Arbeiten, Über mich, Kontakt) — margin:0
   neutralizes the browser's default h2 spacing so both render identically. */
.pkl-eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
  margin: 0;
}

/* ---------- Leistungen ---------- */
.pkl-services {
  border-top: 1px solid var(--pk-ink); margin-top: 80px; padding: 72px 48px;
}
.pkl-services__head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 40px;
}
.pkl-services__lead {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: 21px; line-height: 1.4; color: var(--pk-ink); max-width: 46ch; margin: 0;
}
.pkl-services__row {
  display: grid; grid-template-columns: 64px 1fr 2fr; gap: 32px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.pkl-services__row:last-child { border-bottom: 1px solid var(--border); }
.pkl-services__num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.pkl-services__title {
  font-family: var(--font-display); font-weight: 400; font-size: 36px;
  line-height: 1.05; letter-spacing: -0.015em; margin: 0;
}
.pkl-services__title a {
  color: var(--pk-ink); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.pkl-services__title a:hover { color: var(--pk-spark); }
.pkl-services__desc {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.5;
  color: var(--fg-2); max-width: 52ch; margin: 0;
}

/* ---------- Arbeiten (bento grid) ---------- */
.pkl-work { margin-top: 24px; padding: 0 48px 96px; }
.pkl-work__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 20px; }
.pkl-work__all {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
  text-decoration: none;
}
.pkl-work__all:hover { color: var(--pk-spark); }

/* Deliberately NOT grid-auto-flow: dense — dense repacks tiles out of DOM
   order, which would desync each tile's fixed parallax-drift speed from
   its rendered position. These spans (in this DOM order) already tile the
   4-column grid without gaps under the default sparse algorithm. */
.pkl-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: var(--pkl-row-height, 190px); gap: var(--space-3);
}
.pkl-tile {
  position: relative; overflow: hidden; display: block; text-decoration: none;
  background: var(--pk-paper-2);
}
.pkl-tile--2x2 { grid-column: span 2; grid-row: span 2; }
.pkl-tile--1x3 { grid-column: span 1; grid-row: span 3; }
.pkl-tile--1x2 { grid-column: span 1; grid-row: span 2; }
.pkl-tile--2x1 { grid-column: span 2; grid-row: span 1; }
.pkl-tile__img {
  position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px);
  /* main.css sets a global `img { max-width: 100% }` reset (sitewide,
     sensible everywhere else) — without overriding it here, it silently
     clamps this element's width back down to exactly 100%, since
     max-width always wins over a larger computed width regardless of
     selector specificity. That quietly cancelled the right-hand half of
     the 20px overscan (height has no matching max-height rule, so it
     wasn't affected) — the tile's own paper background showed through
     on the right edge until :hover's `scale` grew the image just enough
     to cover the shortfall. */
  max-width: none;
  object-fit: cover; will-change: transform;
  /* `scale` is a standalone CSS property (not `transform`) specifically so
     this hover zoom can layer on top of the scroll-parallax drift the JS
     already drives via inline `transform: translate3d(...)` on this same
     element, without either one clobbering the other. */
  transition: scale var(--dur-base) var(--ease-out);
}
.pkl-tile:hover .pkl-tile__img { scale: 1.06; }
@media (prefers-reduced-motion: reduce) {
  .pkl-tile__img { transition: none; }
}

/* Scroll-in reveal — opt-out via Customizer (pk_landing_reveal_enabled);
   .pkl-grid only gets the .pkl-reveal class when it's on, so a tile is
   never left invisible if that setting is off or the script fails to load. */
.pkl-grid.pkl-reveal .pkl-tile {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.pkl-grid.pkl-reveal .pkl-tile.pkl-is-visible { opacity: 1; transform: translateY(0); }
.pkl-grid.pkl-reveal .pkl-tile:nth-child(1) { transition-delay: 0ms; }
.pkl-grid.pkl-reveal .pkl-tile:nth-child(2) { transition-delay: 60ms; }
.pkl-grid.pkl-reveal .pkl-tile:nth-child(3) { transition-delay: 120ms; }
.pkl-grid.pkl-reveal .pkl-tile:nth-child(4) { transition-delay: 60ms; }
.pkl-grid.pkl-reveal .pkl-tile:nth-child(5) { transition-delay: 180ms; }
.pkl-grid.pkl-reveal .pkl-tile:nth-child(6) { transition-delay: 120ms; }
.pkl-grid.pkl-reveal .pkl-tile:nth-child(7) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .pkl-grid.pkl-reveal .pkl-tile {
    opacity: 1; transform: none; transition: none;
  }
}
.pkl-tile__placeholder { position: absolute; inset: 0; }
/* Pinned top-left (not bottom, where the caption chip already sits) so the
   two labels never overlap. */
.pkl-tile__placeholder-label {
  position: absolute; top: 16px; left: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.7;
  /* Fixed light cream, not var(--pk-paper) — the placeholder swatch below
     is a hardcoded dark color in both light AND dark mode (see the PHP
     $pkl_placeholder_colors array), but --pk-paper flips to near-black in
     dark mode, which would make this label invisible on its own background. */
  color: #F2ECE0;
}
.pkl-tile__caption {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--pk-ink); color: var(--pk-paper); padding: 6px 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pkl-tile__caption span { color: var(--fg-4); }

/* ---------- Mehr zum Angebot (echter Editor-Inhalt, the_content()) ------ */
.pkl-editorial {
  border-top: 1px solid var(--border); margin-top: 24px; padding: 72px 48px;
  display: grid; grid-template-columns: 220px 1fr; gap: 48px;
}
.pkl-editorial__body { max-width: 88ch; }
.pkl-editorial__body > * + * { margin-top: 20px; }
.pkl-editorial__body p {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.6;
  color: var(--fg-2); margin: 0;
}
.pkl-editorial__body h2,
.pkl-editorial__body h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 26px;
  line-height: 1.15; letter-spacing: -0.015em; color: var(--pk-ink); margin: 0;
}
/* Must come after the h2/h3 rule above: both share the same specificity
   (class + type), so source order decides the winner for margin-top —
   these need to load later or the plain "margin: 0" reset silently wins
   and the extra heading spacing never appears. */
.pkl-editorial__body > * + h2,
.pkl-editorial__body > * + h3 { margin-top: 56px; }
.pkl-editorial__body > h2 + *,
.pkl-editorial__body > h3 + * { margin-top: 28px; }
.pkl-editorial__body ul,
.pkl-editorial__body ol { margin: 0; padding-left: 1.2em; color: var(--fg-2); }
.pkl-editorial__body li { font-family: var(--font-serif); font-size: 17px; line-height: 1.6; }
.pkl-editorial__body a { color: var(--pk-ink); }
.pkl-editorial__body a:hover { color: var(--pk-spark); }
.pkl-editorial__body strong { color: var(--pk-ink); font-weight: 600; }

/* ---------- Über mich ---------- */
.pkl-about {
  border-top: 1px solid var(--pk-ink); margin-top: 64px; padding: 96px 48px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
}
.pkl-about__lede {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: 28px; line-height: 1.35; color: var(--pk-ink); max-width: 30ch; margin: 0;
}
.pkl-about__body {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.5;
  color: var(--fg-2); max-width: 58ch; margin: 24px 0 0;
}
.pkl-about__body + .pkl-about__body { margin-top: 16px; }
.pkl-about__link {
  display: inline-block; margin-top: 32px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--pk-ink);
}
.pkl-about__link:hover { color: var(--pk-spark); }

/* ---------- Kontakt (footer) ---------- */
.pkl-contact {
  background: var(--pk-paper-2); border-top: 1px solid var(--pk-ink);
  /* Extra bottom padding (vs. the 64px the design calls for) so the
     colophon's right-aligned Impressum/Datenschutz links never sit under
     the fixed floating contact button once the page is scrolled to the
     bottom — both anchor to the same right edge. */
  padding: 96px 48px 140px;
}
.pkl-contact__cta {
  display: block; text-decoration: none; color: var(--pk-ink);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(48px, 6vw, 104px); line-height: 1.02; letter-spacing: -0.02em;
  margin-top: 24px; overflow-wrap: break-word;
}
.pkl-contact__cta em { font-style: italic; }
.pkl-contact__cta:hover { color: var(--pk-spark); }
.pkl-contact__colophon {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 88px; border-top: 1px solid var(--border); padding-top: 20px;
  gap: 24px; flex-wrap: wrap;
}
.pkl-contact__legal { display: flex; gap: 24px; }
.pkl-contact__legal a,
.pkl-contact__colophon > span,
.pkl-contact__colophon > a {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); text-decoration: none;
}
.pkl-contact__legal a:hover,
.pkl-contact__colophon > a:hover { color: var(--pk-spark); }

/* ---------- Floating contact button ---------- */
.pkl-float {
  position: fixed; right: 32px; bottom: 32px; z-index: 40;
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--pk-ink); color: var(--pk-paper);
  padding: 16px 16px 16px 24px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(21, 17, 14, 0.22);
  transition: background var(--dur-fast) var(--ease-out);
}
.pkl-float:hover { background: var(--pk-spark); color: var(--pk-paper); }
.pkl-float__label {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pkl-float__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pk-paper); color: var(--pk-ink); font-size: 15px; line-height: 1; flex-shrink: 0;
}

/* ---------- Focus ---------- */
.pkl-body :focus { outline: none; }
.pkl-body :focus-visible { outline: 2px solid var(--pk-spark); outline-offset: 3px; }

/* ─── Tablet (768–1099px) ─────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1099px) {
  .pkl-header { padding: 14px 32px; }
  .pkl-hero { padding: 32px 32px 0; }
  .pkl-hero__title { font-size: clamp(48px, 9vw, 120px); }
  .pkl-services { padding: 56px 32px; }
  .pkl-services__head { grid-template-columns: 1fr; gap: 16px; }
  .pkl-work { padding: 0 32px 72px; }
  .pkl-grid { grid-auto-rows: var(--pkl-row-height, 160px); }
  .pkl-editorial { padding: 56px 32px; grid-template-columns: 1fr; gap: 16px; }
  .pkl-about { padding: 72px 32px; grid-template-columns: 1fr; gap: 24px; }
  .pkl-contact { padding: 72px 32px 120px; }
  .pkl-float { right: 24px; bottom: 24px; }
}

/* ─── Mobile (≤767px) ─────────────────────────────────────── */
@media (max-width: 767px) {
  .pkl-header { padding: 14px 20px; }
  .pkl-nav { gap: 12px; }
  .pkl-header__wordmark { display: none; }
  .pkl-status { padding: 7px 12px; }
  .pkl-status__label { font-size: 10px; }

  .pkl-hero { padding: 24px 20px 0; }
  .pkl-hero__title { font-size: clamp(30px, 11vw, 48px); line-height: 1.08; }
  .pkl-hero__lead { font-size: 16px; margin-top: 20px; }
  .pkl-hero__facts { gap: 16px 24px; margin-top: 32px; padding-top: 16px; }

  .pkl-services { padding: 40px 20px; margin-top: 56px; }
  .pkl-services__head { grid-template-columns: 1fr; gap: 12px; padding-bottom: 24px; }
  .pkl-services__row { grid-template-columns: 32px 1fr; row-gap: 6px; padding: 20px 0; }
  .pkl-services__title { grid-column: 2; font-size: 24px; }
  .pkl-services__desc { grid-column: 2; max-width: none; }

  .pkl-work { padding: 0 20px 56px; }
  .pkl-grid {
    grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 8px;
  }
  .pkl-grid .pkl-tile { grid-column: span 1 !important; grid-row: auto !important; aspect-ratio: 4 / 5; }
  .pkl-tile__caption { font-size: 10px; padding: 5px 8px; }

  .pkl-editorial { padding: 40px 20px; margin-top: 12px; grid-template-columns: 1fr; gap: 12px; }
  .pkl-editorial__body { max-width: none; }
  .pkl-editorial__body h2,
  .pkl-editorial__body h3 { font-size: 21px; }
  .pkl-about { padding: 56px 20px; margin-top: 40px; grid-template-columns: 1fr; gap: 20px; }
  .pkl-about__lede { font-size: 21px; max-width: none; }
  .pkl-about__body { max-width: none; }

  .pkl-contact { padding: 56px 20px 96px; }
  .pkl-contact__cta { font-size: clamp(28px, 9vw, 44px); }
  .pkl-contact__colophon { margin-top: 48px; flex-direction: column; align-items: flex-start; gap: 10px; }

  .pkl-float { right: 16px; bottom: 16px; padding: 12px 12px 12px 18px; gap: 12px; }
  .pkl-float__label { font-size: 11px; }
}
