/* ==========================================================================
   Prinzipien · foryouandyourcustomers
   Monochrom. Das Prinzip ist der Kern – alles andere tritt zurück.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #4a4a4a;
  --muted: #858585;
  --faint: #b5b5b5;
  --line: #ececec;
  --soft: #f5f5f5;
  --pink: #db4479;   /* sattes Pink aus dem Kunstwerk (art.png) */

  --header: 72px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fab-space: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
svg { display: block; }

:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

#view { outline: none; padding-top: var(--header); }

/* Ruhige Textlinks mit wachsender Unterstreichung */
.ulink { position: relative; }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.ulink:hover::after, .ulink:focus-visible::after { transform: scaleX(1); }

.overline {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  background: transparent;
  transition: background .3s, box-shadow .3s;
  view-transition-name: topbar;
}
body.is-scrolled .topbar {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

/* Logo-Satz – das fette Wort ist zugleich der Bereichs-Umschalter */
.brand { font-size: 15px; line-height: 1.3; font-weight: 400; color: var(--ink); }
.domain { position: relative; display: inline-block; }
.domain-btn {
  display: inline-flex; align-items: center; gap: 3px;
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; line-height: inherit; color: inherit;
}
.domain-word {
  font-weight: 800;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.domain-word.is-swapping { animation: word-in .5s var(--ease); }
@keyframes word-in { from { opacity: 0; filter: blur(4px); } }
.domain-btn svg { width: 11px; height: 11px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), stroke .25s; }
.domain-btn:hover .domain-word, .domain.is-open .domain-word { background-size: 100% 1px; }
.domain-btn:hover svg { stroke: var(--ink); transform: translateY(1px); }
.domain.is-open svg { stroke: var(--ink); transform: rotate(180deg); }

.domain-menu {
  position: absolute; z-index: 30; top: calc(100% + 12px); left: -14px;
  min-width: 210px;
  margin: 0; padding: 6px; list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 36px -18px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.domain.is-open .domain-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
.domain-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 9px 10px; border-radius: 6px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color .2s, background .2s;
}
.domain-item > span:first-child { transition: transform .35s var(--ease); }
.domain-item:hover, .domain-item:focus-visible { color: var(--ink); background: var(--soft); outline: none; }
.domain-item:hover > span:first-child { transform: translateX(3px); }
.domain-item.is-active { color: var(--ink); font-weight: 800; }
.domain-langs { display: none; gap: 2px; }
@media (max-width: 640px) {
  .lang, .divider { display: none !important; }
  .domain-langs { display: flex; }
}
.domain-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.domain-item-small { font-size: 13px; padding: 7px 10px; }
.domain-meta { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }

.topbar-right { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }

.switch { position: relative; display: flex; gap: 22px; }
.switch-link {
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  border: 0; background: none; cursor: pointer;
  transition: color .25s;
}
.switch-link:hover { color: var(--ink); }
.switch-link[aria-current="page"] { color: var(--ink); }
.switch-bar {
  position: absolute; left: 0; bottom: 1px; height: 1.5px; width: 0;
  background: var(--ink);
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.switch-bar.is-hidden { opacity: 0; }

.divider { width: 1px; height: 16px; background: var(--muted); opacity: .5; }
body:not([data-domain="principles"]) .switch,
body:not([data-domain="principles"]) .divider { display: none; }

.lang { display: flex; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.lang a { color: var(--muted); padding: 6px 0; transition: color .25s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); }

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .topbar { gap: 8px; }
  .brand { font-size: 11.5px !important; }
  .switch { gap: 30px !important; }
  .switch-link { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .brand { font-size: 13.5px; max-width: 13em; position: relative; }
  .domain { position: static; }
  .domain-menu { left: -10px; top: calc(100% + 10px); }
  /* Mehr Abstand und größere Tippfläche (mind. 44 px hoch), ohne das Layout zu verschieben */
  .switch { gap: 34px; }
  .switch-link { padding: 13px 11px; margin: -13px -11px; }
  .switch-bar { bottom: -6px; }
  .topbar-right { gap: 18px; }
}

/* --------------------------------------------------------------------------
   Ein Prinzip
   -------------------------------------------------------------------------- */

/* Der Prinzip-Block ist immer vertikal zum ganzen Viewport zentriert:
   die Seite reicht hinter die Kopfzeile, oben und unten gleich viel Luft (--dpad),
   die Navigation liegt unten absolut und verschiebt die Mitte nicht. */
.view-detail {
  --dpad: clamp(110px, 15vh, 150px);
  position: relative;
  min-height: 100dvh;
  margin-top: calc(var(--header) * -1);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--dpad) var(--gutter);
}

.detail {
  width: 100%; max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
}

.detail-over {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: clamp(16px, 3vh, 32px);
}
.detail-id { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.detail-over .sep { width: 18px; height: 1px; background: var(--faint); }
.detail-group { color: var(--muted); transition: color .25s; }
.detail-group:hover { color: var(--ink); }

.detail-title {
  font-size: clamp(2.1rem, 4.9vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.022em;
  max-width: 17ch;
  hyphens: manual; -webkit-hyphens: manual;
  overflow-wrap: break-word;
  text-wrap: balance;
  margin-bottom: clamp(20px, 4vh, 40px);
}

.detail-text {
  font-size: clamp(1.12rem, 1.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
  hyphens: auto; -webkit-hyphens: auto;
}

@media (min-width: 1180px) {
  .detail {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 112px);
    align-items: last baseline;   /* letzte Textzeile rechts steht exakt auf der Grundlinie des Titels */
  }
  /* Overline + Titel bilden eine Einheit (fester Abstand); deren letzte Grundlinie = Titel-Grundlinie */
  .detail-title { margin-bottom: 0; }
}

/* Zufalls-Effekt */
.detail > * { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.detail.is-shuffling > * { opacity: .1; filter: blur(8px); }
.detail.is-leaving > * { opacity: 0; filter: blur(8px); transition-duration: .19s; }
.detail.is-arriving > * { animation: arrive .75s var(--ease) both; }
.detail.is-arriving > :nth-child(2) { animation-delay: .07s; }
.detail.is-arriving > :nth-child(3) { animation-delay: .15s; }
@keyframes arrive { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } }

/* Navigation am Fuß */
.detail-nav {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  width: auto; max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 24px;
  padding: 20px var(--fab-space) calc(26px + env(safe-area-inset-bottom)) 0;
  font-size: 14px; font-weight: 600;
}
.stepper { display: flex; gap: 26px; }
.navlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font-weight: 600;
  transition: color .25s;
}
.navlink:hover { color: var(--ink); }
.navlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.navlink[data-dir="prev"]:hover svg { transform: translateX(-3px); }
.navlink[data-dir="next"]:hover svg { transform: translateX(3px); }

.random { justify-self: end; }
.random svg { width: 17px; height: 17px; stroke-width: 1.3; transition: transform .6s var(--ease); }
.random .pip { fill: currentColor; stroke: none; }
.random:hover svg { transform: rotate(90deg); }
.random.is-rolling svg { transform: rotate(360deg); transition-duration: 1s; }

.dots { display: flex; align-items: center; gap: 10px; }
.dots-group { display: flex; }
.dot { position: relative; display: block; width: 11px; height: 20px; }
.dot::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--faint);
  transition: background .25s, transform .3s var(--ease);
}
.dot:hover::before { background: var(--ink-2); transform: scale(1.5); }
.dot.is-current::before { background: var(--ink); transform: scale(1.6); }
.dot.is-scan::before { background: var(--ink); transform: scale(1.6); transition-duration: .05s; }
.dots.is-scanning .dot.is-current:not(.is-scan)::before { background: var(--faint); transform: none; }

@media (max-width: 760px) {
  .view-detail { --dpad: 190px; }   /* Platz für Punkte, „Zufällig“ und Dialog-Button unten */
  .detail-nav {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 8px 0 calc(92px + env(safe-area-inset-bottom));
  }
  .stepper { display: none; }
  .dots { gap: 6px; justify-content: center; }
  .dot { width: 10px; }
  .random { justify-self: auto; }
}

/* Tooltips */
.navlink, .dot { position: relative; }
.tip {
  position: absolute; z-index: 5;
  bottom: calc(100% + 10px); left: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .2s, transform .3s var(--ease);
}
.tip-start { left: 0; transform: translate(0, 4px); }
.tip-end { left: auto; right: 0; transform: translate(0, 4px); }
.tip kbd {
  font: inherit; font-size: 11px;
  min-width: 18px; padding: 1px 5px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px;
  text-align: center;
}
.tip-id { color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.navlink:hover .tip, .navlink:focus-visible .tip, .dot:hover .tip, .dot:focus-visible .tip {
  opacity: 1; transform: translate(-50%, 0); transition-delay: .12s;
}
.navlink:hover .tip-start, .navlink:focus-visible .tip-start,
.navlink:hover .tip-end, .navlink:focus-visible .tip-end { transform: none; }
.dot:hover .tip, .dot:focus-visible .tip { transition-delay: 0s; }
@media (hover: none) { .tip { display: none; } }

/* Bereichswechsel: nur der Inhalt blendet unscharf über */
#view { transition: opacity .22s var(--ease), filter .22s var(--ease); }
#view.is-leaving { opacity: 0; filter: blur(8px); }
#view.is-arriving > * { animation: arrive .7s var(--ease) both; }

/* --------------------------------------------------------------------------
   Werte & Regeln (Landingpages)
   -------------------------------------------------------------------------- */

.view-landing {
  min-height: calc(100dvh - var(--header));
  display: grid;
  padding: 0 var(--gutter);
}
.landing {
  align-self: center;
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding: clamp(28px, 7vh, 88px) 0 clamp(80px, 12vh, 140px);
}
.landing-over { margin-bottom: clamp(16px, 3vh, 32px); }

.view-values .landing-over { color: var(--ink); }
.values {
  display: flex; flex-direction: column;
  font-size: clamp(2rem, 4.1vw, 4.1rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -.028em;
}
.value { display: block; animation: arrive .8s var(--ease) both; }
.value:nth-child(2) { animation-delay: .06s; }
.value:nth-child(3) { animation-delay: .12s; }
.value:nth-child(4) { animation-delay: .18s; }
.value:nth-child(5) { animation-delay: .32s; }
.value-synthesis { margin-top: .32em; font-weight: 800; }

.landing-title {
  font-size: clamp(2.6rem, 7vw, 7.25rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.028em;
  margin-bottom: clamp(20px, 4vh, 40px);
}
.landing-text {
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.6; color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: clamp(28px, 5vh, 48px);
}

/* IMS: die fünf Prozessbereiche, ruhig und typografisch */
.processes .overline { margin-bottom: 12px; }
.process-list {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  padding-top: 12px; border-top: 1px solid var(--line);
  max-width: 760px;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.process-n { font-size: .75em; font-weight: 700; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.landing-link { font-size: 15px; }
.landing-link svg { transition: transform .4s var(--ease); }
.landing-link:hover svg { transform: translateX(3px); }
.landing-link[data-placeholder] { cursor: default; }

/* --------------------------------------------------------------------------
   Kunstwerk als Hintergrund (Makro, geblurred) – auf allen Ebenen
   -------------------------------------------------------------------------- */

.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Name des Künstlers am Mauszeiger (Position, Schärfe, Deckkraft per JS) */
.art-label {
  position: fixed; left: 0; top: 0; z-index: 25;
  pointer-events: none;
  opacity: 0;
  color: var(--pink);
  font-size: 15px; font-weight: 800; letter-spacing: .01em;
  white-space: nowrap;
  will-change: transform, filter, opacity;
}
.art-label span { position: relative; }
.art-label span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
/* Ganz scharf: der Name wird zum Link (unterstrichen, Zeiger-Cursor) */
html.art-ready .art-label span::after { transform: scaleX(1); }
html.art-ready, html.art-ready body { cursor: pointer; }
@media (hover: none) { .art-label { display: none; } }
/* Fester Ort: Bildmittelpunkt nahe der Ecke rechts unten, sodass Weiß überwiegt.
   --dx/--dy = Hauch Parallaxe aus JS (Maus, Scroll). */
.ambient-drift {
  position: absolute; left: 50%; top: 50%;
  width: 72vmax;
  /* --ax/--ay/--ar = Ecke dieser Session (JS), --dx/--dy/--dr = Hauch Parallaxe */
  transform: translate(-50%, -50%) translate(var(--ax, 42vw), var(--ay, 36vh)) translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--ar, -6deg) + var(--dr, 0deg)));
  will-change: transform;
}
/* Schärfe, Deckkraft und Größe werden per JS weich nachgeführt (siehe app.js, ambientLoop) */
.ambient-state {
  opacity: 0;
  filter: blur(150px);
  transform: scale(.72);
  transform-origin: 50% 50%;
  will-change: filter, opacity, transform;
}
/* Atmen: sehr langsam weiten/zusammenziehen, dabei minimal schärfer und weicher */
#ambient-img {
  display: block; width: 100%; height: auto;
  mix-blend-mode: multiply;
  user-select: none;
  animation: breathe 16s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  will-change: transform, filter;
}
@keyframes breathe {
  0%   { transform: scale(1)    rotate(0deg);   filter: blur(0px); }
  100% { transform: scale(1.04) rotate(.8deg);  filter: blur(calc(var(--bb, 1) * 6px)); }
}
#view { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Kontext (Startseite der Prinzipien)
   -------------------------------------------------------------------------- */

.view-context {
  height: calc(100dvh - var(--header));
  padding: 0 var(--gutter);
  overflow: hidden;
}
.ctx {
  height: 100%;
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 120px);
}
.ctx-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 6vh, 72px) 0;
  min-height: 0;
}
.ctx-title {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  font-weight: 400; line-height: 1.22; letter-spacing: -.016em;
  text-wrap: balance;
}
.ctx-title strong { font-weight: 800; }
.ctx-title .hl-pink { color: var(--pink); }
.ctx-actions { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: clamp(24px, 4vh, 40px); }

.ctx-right { display: flex; flex-direction: column; min-height: 0; padding-top: clamp(24px, 6vh, 72px); }

.ctx-scroll {
  flex: 1; min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 48px), transparent);
  outline: none;
}
.ctx-scroll::-webkit-scrollbar { display: none; }
.q {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-start;
  /* --q-top richtet den Text oben bündig mit dem Titel links aus (per JS gemessen) */
  padding: var(--q-top, 16px) 0 clamp(36px, 7vh, 72px);
  margin-bottom: calc(var(--q-top, 16px) * -1);
  opacity: .22; filter: blur(1.5px);
  transition: opacity .6s var(--ease), filter .6s var(--ease);
}
.q.is-active { opacity: 1; filter: none; }
/* Die Blöcke überlappen sich (negativer Abstand). Damit der obere Leerraum des nächsten Blocks
   den Link darüber nicht verdeckt, reagieren nur Text und Link auf Klicks. */
.q { pointer-events: none; }
.q-text, .q-link { pointer-events: auto; }
.q:last-child { min-height: 100%; margin-bottom: 0; }
.q-text { font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.65; color: var(--ink-2); max-width: 50ch; }
.q-link { align-self: flex-start; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.q-link svg { transition: transform .4s var(--ease); }
.q-link:hover svg { transform: translateX(3px); }

/* Perspektiven-Leiste: vier Striche, Zähler und „Nächste Perspektive“ */
.ctx-pager {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0 calc(26px + env(safe-area-inset-bottom));
}
.pager-bars { display: flex; gap: 6px; }
.pager-bar {
  position: relative;
  width: 26px; height: 22px;
  border: 0; background: none; padding: 0; cursor: pointer;
}
.pager-bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: var(--faint); border-radius: 2px;
  transition: background .4s, transform .4s var(--ease);
  transform-origin: left;
}
.pager-bar.is-read::before { background: var(--ink-2); }
.pager-bar.is-active::before { background: var(--pink); }
.pager-bar:hover::before { background: var(--ink); transform: scaleY(1.6); }
.pager-bar:hover .tip, .pager-bar:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.pager-count { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager-count span { color: var(--ink); }
.pager-next { margin-left: auto; margin-right: var(--fab-space); font-size: 14px; color: var(--ink-2); }
.pager-next svg { animation: nudge 2.4s var(--ease) infinite; }
.pager-next.is-restart svg { transform: rotate(180deg); animation: none; }
.pager-next:hover svg { animation-play-state: paused; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (max-width: 900px) {
  .ctx { display: flex; flex-direction: column; gap: 0; }
  .ctx-left { padding: clamp(28px, 5vh, 44px) 0 0; flex: none; }
  .ctx-title { font-size: clamp(1.15rem, 4.6vw, 1.5rem); }
  .ctx-actions { margin: clamp(18px, 3vh, 28px) 0 0; gap: 12px 24px; }
  .ctx-actions .action { font-size: 15px; }
  .ctx-right { flex: 1; padding-top: clamp(20px, 3.5vh, 36px); margin-top: clamp(20px, 3.5vh, 32px); border-top: 1px solid var(--line); }
  .q { padding: 16px 0 40px; }
  .q-text { font-size: 1rem; }
  .ctx-pager { padding-bottom: calc(26px + env(safe-area-inset-bottom)); gap: 14px; }
  .pager-next .lbl { display: none; }
}

.action {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
/* Links auf der Kontext-Seite: ganz unterstrichen, beim Hover läuft Pink von links ein */
.action span, .q-link .lbl { position: relative; }
.action span::after, .action span::before,
.q-link .lbl::after, .q-link .lbl::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
}
.action span::after, .q-link .lbl::after { background: currentColor; }
.action span::before, .q-link .lbl::before {
  z-index: 1; background: var(--pink);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.q-link .lbl::after, .q-link .lbl::before { height: 1px; bottom: -3px; }
.action:hover span::before, .action:focus-visible span::before,
.q-link:hover .lbl::before, .q-link:focus-visible .lbl::before { transform: scaleX(1); }
.action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.action .pip { fill: currentColor; stroke: none; }
.action:hover svg { transform: translateX(4px); }
.action-random:hover svg { transform: rotate(90deg); }

/* PDF-Download unter der Liste */
.all-pdf { margin-top: clamp(40px, 7vh, 72px); padding-top: 22px; border-top: 1px solid var(--line); }
.all-pdf .navlink { font-size: 14px; }

/* --------------------------------------------------------------------------
   Impressum
   -------------------------------------------------------------------------- */

.view-imprint {
  max-width: calc(1360px + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) var(--gutter) 140px;
}
.imprint-head { margin-bottom: clamp(36px, 6vh, 64px); }
.imprint-head .overline { margin-bottom: 14px; }
.imprint-title { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.imprint-intro { color: var(--ink-2); max-width: 52ch; }
.imprint-country { padding: 28px 0; border-top: 1px solid var(--line); }
.imprint-label { margin-bottom: 18px; }
.imprint-note { font-size: 14px; color: var(--ink-2); margin: -8px 0 18px; }
.imprint-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px clamp(24px, 3vw, 48px); }
.company { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.company-name { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.sites { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.site-city { font-weight: 700; color: var(--ink); }
.imprint-more { padding-top: 28px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Alle
   -------------------------------------------------------------------------- */

.view-all {
  max-width: calc(1360px + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) var(--gutter) 140px;
}

.all-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 40px; flex-wrap: wrap;
  padding-bottom: clamp(28px, 5vh, 56px);
}
.pdf-link svg { transition: transform .4s var(--ease); }
.pdf-link:hover svg { transform: translateY(2px); }
.all-intro {
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  font-weight: 300; line-height: 1.35;
  color: var(--ink-2);
  max-width: 36ch;
  text-wrap: balance;
}
.all-intro strong { font-weight: 700; color: var(--ink); }

.pitem {
  display: grid; grid-template-columns: 2.4em auto; align-items: baseline;
  width: fit-content; max-width: 100%;   /* nur so breit wie der Text: Leerraum daneben gehört dem Kunstwerk */
  padding: 9px 0;
  font-size: clamp(1.02rem, 1.12vw, 1.12rem);
  line-height: 1.32;
}
.pitem-id {
  position: relative;
  font-size: .72em; font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.pitem-title {
  font-weight: 400;
  transition: transform .45s var(--ease);
  text-wrap: pretty;
}
.pitem-title::after {
  content: "→"; display: inline-block; margin-left: .35em;
  font-weight: 400; color: var(--muted);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s, transform .45s var(--ease);
}
.pitem:hover .pitem-id { color: var(--ink); }
.pitem:hover .pitem-title { transform: translateX(4px); }
.pitem:hover .pitem-title::after { opacity: 1; transform: none; }

/* Prinzip 1 – ohne Gruppe, als Auftakt etwas größer */
.plist-lead { margin-bottom: clamp(28px, 5vh, 52px); }


.groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px clamp(24px, 3vw, 48px);
}
.group { scroll-margin-top: calc(var(--header) + 24px); }
.group-label {
  display: block;
  padding-bottom: 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: color 1.4s var(--ease), border-color 1.4s var(--ease);   /* langsam zurück zu Grau */
}
/* Beim Sprung zu einer Gruppe: Linie kurz pink, dann zurück */
.group.is-flash .group-label { color: var(--pink); border-color: var(--pink); transition-duration: .5s; }

@media (max-width: 1100px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .groups { grid-template-columns: 1fr; gap: 36px; } }

/* --------------------------------------------------------------------------
   Dialog: Button + Drawer
   -------------------------------------------------------------------------- */

.fab {
  position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 30;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 6px 20px -10px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s, opacity .25s;
  view-transition-name: fab;
}
.fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.fab .fab-dots { stroke-width: 2.2; }
.fab:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0,0,0,.45); }
.fab-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(6px, -50%);
  font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.fab:hover .fab-tip, .fab:focus-visible .fab-tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .fab-tip { display: none; } }
body.drawer-open .fab { opacity: 0; pointer-events: none; transform: scale(.85); }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(255,255,255,.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -40px rgba(0,0,0,.3);
  transform: translateX(102%);
  transition: transform .5s var(--ease), visibility 0s .5s;
  visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }

.drawer-close { position: absolute; top: 16px; right: 16px; border: 0; background: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); transition: color .25s; }
.drawer-close:hover { color: var(--ink); }
.drawer-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; transition: transform .4s var(--ease); }
.drawer-close:hover svg { transform: rotate(90deg); }

.drawer-form { display: flex; flex-direction: column; gap: 22px; padding: 76px 32px 40px; }
.drawer-title { font-size: clamp(1.5rem, 2.6vw, 1.85rem); font-weight: 300; line-height: 1.3; letter-spacing: -.01em; }

.id-pick {
  position: relative; display: inline-flex; align-items: center; gap: 3px;
  font-weight: 800; font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--muted);
  line-height: 1.1;
  transition: border-color .25s;
}
.id-pick:hover { border-bottom-color: var(--ink); }
.id-pick[hidden], .drawer-ptitle[hidden] { display: none; }
.id-pick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.id-pick select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.id-pick:focus-within { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 3px; }

.drawer-ptitle { margin-top: -12px; font-weight: 700; color: var(--ink-2); }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
  border-radius: 0; background: transparent;
  transition: border-color .25s;
}
.field input { padding: 8px 0; border: 0; border-bottom: 1px solid var(--faint); }
.field textarea { padding: 12px; border: 1px solid var(--faint); border-radius: 4px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.is-invalid textarea { border-color: var(--ink); }

.btn-primary {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn-primary::after { content: "→"; transition: transform .35s var(--ease); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-primary:hover::after { transform: translateX(3px); }
.drawer-hint { font-size: 13px; color: var(--muted); margin-top: -10px; }
.drawer-sent { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--ink); padding: 4px 0 4px 12px; display: none; }
.drawer-sent.is-visible { display: block; }
.drawer-error { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--pink); padding: 4px 0 4px 12px; display: none; }
.drawer-error.is-visible { display: block; }
.drawer-fallback { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.field[hidden] { display: none; }
.field-error { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--pink); min-height: 0; }
.field-error:empty { display: none; }
.field.is-invalid input { border-color: var(--pink); }
.btn-primary:disabled { opacity: .55; cursor: progress; }
/* Fallenfeld für Spam-Bots: aus dem Sichtbereich geschoben, für Screenreader ausgeblendet */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .drawer {
    top: auto; left: 0; width: 100%; max-height: 92dvh;
    border-left: 0; border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    transform: translateY(102%);
  }
  .drawer-form { padding: 60px 22px calc(28px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   View transitions
   -------------------------------------------------------------------------- */

.vt-current { view-transition-name: current; }
html[data-nav="next"] .vt-current,
html[data-nav="prev"] .vt-current,
html[data-nav="fade"] .vt-current { view-transition-name: none; }

::view-transition-group(current) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: var(--ease); }

html[data-nav="zoom-in"]::view-transition-old(root)  { animation-name: vt-fade-out, vt-scale-up; }
html[data-nav="zoom-in"]::view-transition-new(root)  { animation-name: vt-fade-in, vt-scale-from-down; }
html[data-nav="zoom-out"]::view-transition-old(root) { animation-name: vt-fade-out, vt-scale-down; }
html[data-nav="zoom-out"]::view-transition-new(root) { animation-name: vt-fade-in, vt-scale-from-up; }
html[data-nav="next"]::view-transition-old(root)     { animation-name: vt-fade-out, vt-slide-to-left; }
html[data-nav="next"]::view-transition-new(root)     { animation-name: vt-fade-in, vt-slide-from-right; }
html[data-nav="prev"]::view-transition-old(root)     { animation-name: vt-fade-out, vt-slide-to-right; }
html[data-nav="prev"]::view-transition-new(root)     { animation-name: vt-fade-in, vt-slide-from-left; }

@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
@keyframes vt-scale-up { to { transform: scale(1.04); } }
@keyframes vt-scale-down { to { transform: scale(.96); } }
@keyframes vt-scale-from-down { from { transform: scale(.97); } }
@keyframes vt-scale-from-up { from { transform: scale(1.03); } }
@keyframes vt-slide-to-left { to { transform: translateX(-28px); } }
@keyframes vt-slide-from-right { from { transform: translateX(28px); } }
@keyframes vt-slide-to-right { to { transform: translateX(28px); } }
@keyframes vt-slide-from-left { from { transform: translateX(-28px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
