/* ==========================================================================
   Tech against Violence – Onepager
   v2: Switzer, Navigation, Projekt-Kacheln, Footer
   ========================================================================== */

/* ---------- Schrift (self-hosted, Lizenz: assets/fonts/Switzer-LICENSE.txt) ---------- */
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-VariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --c-bg: #000;
  --c-text: #fff;
  --c-muted: #a3a3a3;
  --c-line: #2a2a2a;
  --c-card: #0d0d0d;
  --c-pink: #e6007e;
  --c-pink-dark: #c4006b;
  --c-pink-light: #ff3da8;   /* gleicher Farbton, heller: Kontrast 6.5:1 auf Schwarz (Menü) */

  --font: "Switzer", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: clamp(18px, 1.75vw, 26px);
  --fs-small: 15px;
  --fw-text: 300;
  --lh-text: 1.3;
  --ls-text: 0.01em;

  --content-width: 58%;
  --wide-width: min(94vw, 1400px);
  --section-gap: clamp(84px, 13vw, 200px);
  --header-h: 80px;   /* Desktop/Tablet: mehr Luft ums Logo (Mobile: 59 px, siehe unten) */
  --link-line: 1px;
}

@media (max-width: 991px) {
  :root {
    --content-width: 84%;
    --fs-base: clamp(18px, 2.5vw, 24px);
  }
}

@media (max-width: 479px) {
  :root { --content-width: 90%; }
}

/* ---------- Reset (minimal) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Fläche ausserhalb der Seite (iOS-Gummiband, Bereich hinter den Browserleisten) bleibt
     schwarz, passend zur schwarzen Menüleiste. Der body malt seinen Hintergrund selbst. */
  background: #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 3.2rem);   /* ohne JS: ca. 2× Abstand Titel → Inhalt */
}

/* Weiches Scrollen zu Abschnitten: siehe site.js (eigene Dauer und Ease-out) */

body,
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

img,
video,
svg { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

/* ---------- Base ---------- */
body {
  min-height: 100vh;   /* kurze Seiten: kein schwarzer Rest unter dem Footer */
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-text);
  line-height: var(--lh-text);
  letter-spacing: var(--ls-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

strong { font-weight: 600; }

a {
  color: inherit;
  text-decoration-line: underline;          /* Langform statt Kurzform: robuster in Safari */
  text-decoration-style: solid;
  text-decoration-color: var(--c-pink);
  -webkit-text-decoration-line: underline;
  -webkit-text-decoration-color: var(--c-pink);
  text-decoration-thickness: var(--link-line);
  text-underline-offset: .2em;
  text-decoration-skip-ink: auto;   /* Linie wird bei Unterlängen (g, p, y …) unterbrochen */
  transition: color .15s, border-color .15s, background-color .15s;
}

a:hover { color: var(--c-pink); }

/* Links ohne Unterstreichung (Navigation, Buttons, Icons, ganze Zeilen/Kacheln) */
.main-nav a,
.lang-toggle a,
.site-header__logo,
.skip-link,
.button,
.social-links a,
.site-footer a,
.project-card__link,
.download-list a { text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 4px;
  border-radius: 2px;
}

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

.skip-link {
  position: fixed;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .5em 1em;
  background: var(--c-pink);
  border: 0;
  font-size: var(--fs-small);
}
/* Sprungziele: Fokus für Screenreader, aber ohne Rahmen */
[tabindex="-1"]:focus { outline: none; }

.skip-link:focus { top: 1rem; color: var(--c-text); }

/* ==========================================================================
   Kopfzeile / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: clamp(16px, 3vw, 40px);
  font-size: var(--fs-small);
  letter-spacing: .04em;
  transition: background-color .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(0, 0, 0, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--c-line);
}

/* Kleines Logo erscheint, sobald das grosse Logo aus dem Bild ist */
.site-header__logo {
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.site-header__logo img { width: 128px; }
.site-header.show-logo .site-header__logo { opacity: 1; pointer-events: auto; }

.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover { color: var(--c-text); border-bottom-color: var(--c-pink); }
.main-nav a[aria-current="true"] { color: var(--c-pink-light); }

/* Sprachwahl D | F */
/* Sprachschalter D | F | E: Schiene mit Rand, pinker Knopf gleitet zur aktiven Sprache
   (--i = Position 0/1/2; JS lässt ihn beim Klick hinübergleiten, bevor die Seite wechselt) */
.lang-toggle {
  --seg: 30px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--seg);
  padding: 2px;
  background: #2b2b2b;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
}
.lang-toggle__thumb {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: var(--seg);
  border-radius: 999px;
  background: var(--c-pink);
  transform: translateX(calc(var(--i, 0) * var(--seg)));
  transition: transform .3s cubic-bezier(.25, 0, .5, 1);
}
.lang-toggle a,
.lang-toggle .is-disabled {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  transition: color .2s;
}
.lang-toggle a:hover { color: #fff; }
.lang-toggle a[aria-current="true"],
.lang-toggle a[aria-current="true"]:hover,
.main-nav .lang-toggle a[aria-current="true"] { color: #fff; background: none; }
.lang-toggle .is-disabled { color: rgba(255, 255, 255, .3); cursor: default; }

.menu-toggle {
  display: none;
  margin-left: auto;
  margin-right: 0;
  padding: 10px 0 10px 16px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Hamburger: drei Linien, wird beim Öffnen zum X */
.menu-toggle__icon {
  position: relative;
  display: block;
  width: 17px;
  height: 14px;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .25s, opacity .2s;
}

.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 6px; }
.menu-toggle__icon span:nth-child(3) { top: 12px; }

.menu-open .menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


@media (max-width: 767px) {
  /* Mobile: feste schwarze Leiste, Logo links, Hamburger rechts */
  :root { --header-h: 59px; }

  .site-header,
  .site-header.is-scrolled {
    gap: 0;
    padding-inline: 20px;
    background: #000;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header__logo {
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__logo img { width: 129px; }

  /* Reihenfolge im HTML: Logo – Navigation (aufklappbar, ohne Breite) – Sprachwahl – Hamburger */
  .site-header > .lang-toggle { margin-left: auto; }
  .site-header > .menu-toggle { margin-left: 12px; }

  .menu-toggle { display: block; }
  html:not(.js) .menu-toggle { display: none; }   /* ohne JavaScript kein Menü-Knopf */
  .main-nav { margin-left: 0; }

  .main-nav ul {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 0 20px 24px;
    background: #000;
    font-size: 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }

  /* Text rechtsbündig mit der Sprachwahl: Hamburger (17 px) + Polster (16 px) + Abstand (12 px) */
  .main-nav a {
    padding: 14px calc(17px + 16px + 12px) 14px 0;
    border-bottom: 1px solid var(--c-line);
    text-align: right;
  }



  .site-header.menu-open .main-nav ul { visibility: visible; opacity: 1; transform: none; }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.page {
  width: var(--content-width);
  margin-inline: auto;
}

.section + .section { margin-top: var(--section-gap); }

/* Bereiche, die breiter als die Textspalte laufen */
.wide {
  position: relative;
  left: 50%;
  width: var(--wide-width);
  transform: translateX(-50%);
}

/* ---------- Hero: 50:50, randlos ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* höchstens ~70 % des Fensters, damit der Einstieg in den Text sichtbar bleibt */
  height: clamp(420px, min(50vw, 70svh), 900px);
  margin-bottom: var(--section-gap);
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 5vw, 80px);   /* Logo sitzt auf der Mittelachse der Animation */
}

.hero__logo {
  margin: 0;
  width: min(90%, 468px);
  font-size: 1em;
}

/* Logo etwas kleiner, rechte Kante bleibt an derselben Stelle */
.hero__logo img { width: 82%; margin-left: auto; }

.hero__visual {
  position: relative;
  overflow: hidden;
  background: #000 center / contain no-repeat;
}

/* Standbild nur, solange die Animation noch nicht läuft (oder ohne JS) */
.hero__visual:has(.hero__canvas.is-ready) { background-image: none !important; }

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Variante «breit» (Tablet und grösser): Animation läuft über die ganze Breite,
   das Herz schlägt weiterhin rechts, das Logo liegt links darüber */
@media (min-width: 768px) {
  .hero--wide { position: relative; }

  .hero--wide .hero__visual {
    position: absolute;
    inset: 0;
    background-position: 75% center;   /* Standbild (ohne JS) dort, wo das Herz schlägt */
  }

  .hero--wide .hero__canvas { --heart-x: .75; }   /* Mitte der rechten Hälfte */

  .hero--wide .hero__brand {
    position: relative;
    z-index: 1;
  }

  /* Punkte direkt hinter dem Logo leicht abdunkeln, damit es lesbar bleibt */
  .hero--wide .hero__brand::before {
    content: "";
    position: absolute;
    inset: 15% 0;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  }
}

/* Mobile: Animation oben, Logo darunter */
@media (max-width: 767px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .hero__visual {
    order: -1;
    aspect-ratio: 1;
    margin-top: var(--header-h);
  }

  /* Grosses Logo auf Mobile ausgeblendet (steht schon in der Leiste),
     bleibt aber als Seitentitel für Screenreader erhalten */
  .hero__brand {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Typografie ---------- */
.lead {
  font-size: 1.6em;
  font-weight: 250;
  letter-spacing: -.005em;
  line-height: var(--lh-text);
}

.section-title {
  margin-top: 2.2em;
  font-size: calc(1em + 2px);
  font-weight: 300;
  line-height: var(--lh-text);
  color: var(--c-text);
}

.section > .section-title:first-child { margin-top: 0; }

/* Abstands-Stufen:
   1. zwischen Abschnitten (vor jedem H2): var(--section-gap)            – kommt vom Abschnitt
   2. vor jedem Untertitel (H3), auch direkt nach dem H2: halber Abschnittsabstand
   3. Titel → Inhalt: 1.6em (siehe unten) */
.section > .section-title:not(:first-child) { margin-top: calc(var(--section-gap) / 2); }

.section p { margin-top: 1em; }
.section ul:not([class]) { padding-left: 1.2em; }
.section ul:not([class]) li { margin-top: .6em; }

/* Einheitlicher Abstand zwischen Titel und Inhalt */
.section .section-title + * { margin-top: 1.6em; }
.section .section-title + .button { margin-top: 2em; } /* = 1.6em bei 0.8em Schrift */

/* ---------- Button ----------
   Pinke Pille, angelehnt an den Sprachschalter */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1.4em;
  padding: .6em 1.5em;
  background: var(--c-pink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: .8em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
  transition: background-color .3s;
}

.button:hover { color: #fff; background: var(--c-pink-dark); }

/* ==========================================================================
   Projekt-Kacheln
   ========================================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4 nebeneinander, 2×2 auf Tablet, untereinander auf Mobile */
  gap: clamp(10px, 1.2vw, 18px);
  margin: 2em 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1239px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}

/* Zwischengrössen (Tablet, kleines Desktop-Fenster): 2 × 2 schmalere Kacheln, deutlich mehr Abstand */
@media (min-width: 641px) and (max-width: 1239px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, min(38%, 360px)));
    justify-content: center;
    gap: clamp(40px, 6vw, 64px);
  }
}

@media (max-width: 640px) {
  /* schmaler und zentriert, damit sie als Kacheln erkennbar bleiben */
  .project-grid { grid-template-columns: minmax(0, min(84%, 340px)); justify-content: center; gap: 48px; }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 1.8vw, 30px);
  /* dunkles Grundschwarz mit leichtem pinkem Schimmer von oben rechts */
  background:
    radial-gradient(120% 85% at 100% 0%, rgba(230, 0, 126, .17) 0%, rgba(230, 0, 126, .05) 45%, transparent 75%),
    linear-gradient(160deg, #120a0f 0%, #0b0b0b 60%);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 6px;
  font-size: max(16px, .72em);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 0 40px -10px rgba(230, 0, 126, .35), inset 0 0 60px -20px rgba(230, 0, 126, .25);
}

@media (prefers-reduced-motion: no-preference) {
  .project-card:hover { transform: translateY(-3px); }
}

.project-card h3 {
  font-size: 1.45em;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
}

/* Schmale Kacheln: Trennung und ausgeglichener Zeilenfall
   Deutsch: nur an gesetzten weichen Trennstellen (&shy;, z. B. «Informations&shy;plattform»),
   weil die automatische Trennung Komposita oft unschön teilt («Informati-onsplattform»).
   Französisch: automatische Trennung (Regeln sind im Browser eingebaut). */
.project-card p {
  -webkit-hyphens: manual;
  hyphens: manual;
  text-wrap: pretty;               /* vermeidet einzelne Wörter auf der letzten Zeile */
}

:lang(fr) .project-card p {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 10 4 4;   /* nur Wörter ab 10 Zeichen, mind. 4 Zeichen pro Teil */
}

.project-card__tagline {
  margin-top: .5em !important;
  color: var(--c-pink);
  font-weight: 400;
}

.project-card__text { margin-top: 1em !important; }

.project-card__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;        /* wie die Sprachwahl in der Navigation */
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
}

.project-card__langs a,
.project-card__langs span {
  position: relative;      /* über dem Kachel-Link (::after), damit jede Sprache einzeln klickbar ist */
  z-index: 2;
  display: block;
  padding: 5px 9px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-muted);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.project-card__langs a:hover,
.project-card__langs a:focus-visible { color: var(--c-pink); border-color: var(--c-pink); }

.project-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.6em;
  border: 0;
  font-weight: inherit;
  font-size: inherit;
}

.project-card__link span {
  text-decoration-line: underline;          /* Langform statt Kurzform: robuster in Safari */
  text-decoration-style: solid;
  text-decoration-color: var(--c-pink);
  -webkit-text-decoration-line: underline;
  -webkit-text-decoration-color: var(--c-pink);
  text-decoration-thickness: var(--link-line);
  text-underline-offset: .2em;
  text-decoration-skip-ink: auto;
}

/* Ganze Kachel klickbar */
.project-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-card__link:hover { color: var(--c-text); }

/* Fusszeile der Kachel: Instagram-Icon links (wie beim Kontakt), Website-Link rechtsbündig.
   Die ganze Kachel bleibt Link zur Website (::after des Website-Links); das Icon liegt darüber. */
.project-card__foot {
  display: flex;
  align-items: center;
  gap: 1em;
  min-height: calc(clamp(26px, 2.16vw, 31px) + 1.6em);   /* gleiche Höhe mit und ohne Icon */
  margin-top: auto;
  padding-top: 1.6em;
}
.project-card__foot { column-gap: 14px; }
.project-card__foot .project-card__link { margin: 0 0 0 auto; padding: 0; text-align: right; }
.project-card__insta {
  position: relative;
  z-index: 2;
  flex: none;
  display: block;
  border: 0;
  line-height: 0;
  transition: opacity .25s;
}
.project-card__insta img {
  display: block;
  width: clamp(26px, 2.16vw, 31px);
  height: auto;
  filter: grayscale(1) brightness(1.6);   /* hellgrau, auch beim Kachel-Hover */
  opacity: .46;
  transition: filter .25s, opacity .25s;
  will-change: filter, opacity;
}
.project-card__insta:hover img,
.project-card__insta:focus-visible img { filter: none; opacity: 1; }   /* erst auf dem Icon selbst: pink */

/* Projektlogos statt Titel: grau, beim Hover in Originalfarben.
   Höhen einzeln abgestimmt, damit die Logos optisch gleich gross wirken. */
.project-card__logo { margin: 0 0 14px; line-height: 0; }   /* etwas Luft unter den Logos */
.pl-wrap { display: flex; align-items: center; height: 56px; color: #333; }
.pl {
  display: block;
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  transition: filter .4s;
  will-change: filter;   /* dauerhaft eigene Ebene: kein 1-px-Hüpfer beim Wechsel grau ↔ farbig */
}
.pl--withyou .pl { height: 27px; }
.pl--safe .pl    { height: 28px; }   /* inkl. Symbol (1.3×) rechts; Schrift wie vorher */
.pl--wayout .pl  { height: 36px; }
.pl--dvi .pl     { height: 58px; width: auto; aspect-ratio: 485 / 360; }
.project-card:hover .pl { filter: none; }
.project-card.is-playing .pl--withyou .pl { filter: none; }   /* Herz beim Scroll-Loop in Pink */
.project-card:hover .pl--withyou,
.project-card:hover .pl--safe { color: #111; }
.pl-wrap { transition: color .4s; }

/* #withyou: das «#» wechselt in einer Schleife zu Haus, Wolke und Herz
   (wie das Logo auf with-you.ch). 4 Bilder à 0.6 s.
   – Kachel erscheint im Bild: zwei Durchläufe (JS setzt .is-playing), endet auf «#»
   – Hover: Endlosschleife */
.pl--withyou .pl { overflow: visible; }   /* Icons sind breiter als das «#» */
.wy-frame { transform-box: fill-box; transform-origin: center; }
.wy-frame--heart, .wy-frame--cloud, .wy-frame--house { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .project-card.is-playing .wy-frame { animation: wy-cycle 2.4s cubic-bezier(.25, 0, .5, 1) 2 backwards; }
  .project-card.is-playing .wy-frame--hash { animation-iteration-count: 1.22; animation-fill-mode: both; }
  .project-card:hover .wy-frame { animation: wy-cycle 2.4s cubic-bezier(.25, 0, .5, 1) infinite backwards; }
  .project-card .wy-frame.wy-frame--house { animation-delay: 0s; }
  .project-card .wy-frame.wy-frame--cloud { animation-delay: .6s; }
  .project-card .wy-frame.wy-frame--heart { animation-delay: 1.2s; }
  .project-card .wy-frame.wy-frame--hash  { animation-delay: 1.8s; }
}
@keyframes wy-cycle {
  0%   { opacity: 0; transform: scale(.7); }
  5%   { opacity: 1; transform: scale(1); }
  22%  { opacity: 1; transform: scale(1); }
  26%  { opacity: 0; transform: scale(.85); }
  100% { opacity: 0; transform: scale(.85); }
}

/* Safe withyou: Schild (rechts vom Schriftzug) wächst beim Hover, vom Zentrum aus */
.sw-icon {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .45s cubic-bezier(.25, 0, .5, 1);
}
.project-card:hover .sw-icon { transform: scale(1.35); }
.pl--safe .pl { overflow: visible; }

/* way_out: beim Hover dehnt sich der Unterstrich, «out» gleitet 2/3 des Wegs zum rechten Innenrand.
   Inline-SVG (535 × 163): .wo__a «way», .wo__s Unterstrich (Breite 62.35), .wo__b «out».
   JS setzt --wo-shift (in SVG-Einheiten) und --wo-k (Dehnung des Unterstrichs). */
.pl--wayout .wo { display: block; height: 36px; width: auto; max-width: none; overflow: visible; }
.wo__s, .wo__b { transition: transform .7s cubic-bezier(.25, 0, .5, 1); }
.wo__s { transform-box: fill-box; transform-origin: left center; }
.project-card:hover .wo__s { transform: scaleX(var(--wo-k, 1)); }
.project-card:hover .wo__b { transform: translateX(var(--wo-shift, 0px)); }
/* beim Hineinfahren Überschwingen um ca. 50 %: «out» tippt kurz an den rechten Innenrand und federt
   zurück auf 2/3 (Weg = 2/3 der Strecke, 1.5 × 2/3 = ganze Strecke). Zurück ohne Federn. */
.project-card:hover .wo__s, .project-card:hover .wo__b { transition: transform 1.4s cubic-bezier(.25, 2.62, .5, 1); }
/* Gummiband: «out» schnellt bis an den Rand, schwingt aus und kommt auf 2/3 zur Ruhe
   (gedämpfte Feder, Dämpfung 0.215 → erster Ausschlag +50 %). Ältere Browser: obige Kurve. */
@supports (transition-timing-function: linear(0, 1)) {
  .project-card:hover .wo__s, .project-card:hover .wo__b { transition: transform 2.2s linear(0, 0.06, 0.221, 0.451, 0.712, 0.969, 1.194, 1.364, 1.467, 1.501, 1.471, 1.391, 1.276, 1.146, 1.017, 0.904, 0.819, 0.767, 0.749, 0.764, 0.804, 0.861, 0.926, 0.991, 1.047, 1.09, 1.117, 1.126, 1.119, 1.099, 1.07, 1.037, 1.005, 0.977, 0.955, 0.942, 0.937, 0.941, 0.95, 0.965, 0.981, 0.997, 1.012, 1.022, 1.029, 1.031, 1.03, 1.025, 1.018, 1.01, 1.001, 0.994, 0.989, 0.985, 0.984, 0.985, 0.988, 0.991, 0.995, 0.999, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .project-card:hover .wo__s, .project-card:hover .wo__b { transform: none; }
}

/* Digital Violence Info: beim Hover läuft hinter dem Logo die Kritzel-Animation
   (wie auf digital-violence.info), Lage auf das Logo abgestimmt, von der Kachel beschnitten.
   Läuft auch ca. 5 s, sobald die Kachel ins Bild kommt (JS setzt .is-scribbling).
   Datei wird erst dann bzw. beim ersten Hover geladen. */
.theme-light .project-card { overflow: hidden; }
.pl--dvi { position: relative; }
.pl--dvi .pl { position: relative; z-index: 1; }
.dvi-scribble {
  position: absolute;
  left: -31px;     /* GIF ist links/oben vorbeschnitten (dort nie sichtbar) */
  top: -30px;
  width: 135px;
  height: 135px;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.project-card:hover .dvi-scribble,
.project-card.is-scribbling .dvi-scribble { opacity: 1; }
.project-card.is-scribbling .pl--dvi .pl { filter: none; }   /* Logo farbig, solange der Kritzel läuft */
@media (prefers-reduced-motion: reduce) {
  .dvi-scribble { display: none; }
}

/* Pfeil ↗ (externe Seite), als SVG, weil Switzer keine Pfeilzeichen enthält */
.project-card__icon {
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-left: .3em;
  vertical-align: 0;
  transition: transform .3s cubic-bezier(.25, 0, .5, 1);
}
.project-card:hover .project-card__icon { transform: translate(1px, -1px); }

.project-note { margin-top: 1.4em !important; }

/* ---------- Downloads ---------- */
.download-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9em 2em;
  margin-bottom: 0;   /* Abstand oben kommt vom Titel (.section-title + *) */
  padding: 0;
  list-style: none;
}

/* Zweispaltig, sobald genug Platz ist */
@media (min-width: 640px) {
  .download-list { grid-template-columns: 1fr 1fr; }
}

.download-list li { margin: 0 !important; }

/* Kleines Titelbild links, Titel und Dateiinfo rechts übereinander */
.download-list a {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  border: 0;
}

.download-list img {
  flex: none;
  width: auto;
  height: 60px;     /* Vorschaubilder sind 85 × 120 px → scharf auf Retina */
  border-radius: 2px;
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
  transition: transform .2s, box-shadow .2s;
}

.download-list__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15em;
  line-height: 1.2;
}

.download-list .file-type { font-size: 12px; letter-spacing: .06em; }

.download-list__label {
  text-decoration-line: underline;          /* Langform statt Kurzform: robuster in Safari */
  text-decoration-style: solid;
  text-decoration-color: var(--c-pink);
  -webkit-text-decoration-line: underline;
  -webkit-text-decoration-color: var(--c-pink);
  text-decoration-thickness: var(--link-line);
  text-underline-offset: .2em;
  text-decoration-skip-ink: auto;
}

.download-list a:hover img { box-shadow: -3px 3px 0 rgba(0, 0, 0, .45); }   /* wie ein Heft, das einen Schatten wirft: unten links, hart */

@media (prefers-reduced-motion: no-preference) {
  .download-list a:hover img { transform: translateY(-4px) rotate(-3deg) scale(1.1); }
}

.theme-light .download-list img { outline-color: rgba(0, 0, 0, .1); }

.file-type {
  font-size: .65em;
  letter-spacing: .1em;
  color: var(--c-muted);
}

/* ---------- Team ---------- */
.team-figure {
  position: relative;
  margin: 2em 0 0;
  outline: none;
}

.team-photo {
  width: 100%;
  border-radius: 4px;
  transition: filter .5s;
}

/* Namen: als Textzeile unter dem Foto (Touch, schmale Screens) */
.team-figure figcaption {
  margin-top: .7em;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.team-tags {
  display: inline;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-tags li { display: inline; }
.team-tags li:not(:last-child)::after { content: ", "; }

/* Namen: beim Überfahren über den Köpfen (Maus, ab Tablet) */
@media (hover: hover) and (min-width: 640px) {
  .team-figure figcaption {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
  }

  .team-tags__intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .team-tags li {
    position: absolute;
    left: var(--x);
    bottom: var(--y, 82.5%);   /* mit etwas Abstand über dem jeweiligen Kopf */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 9px;
    background: rgba(0, 0, 0, .72);
    border-radius: 3px;
    color: var(--c-text);
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity .25s, transform .25s;
  }

  .team-tags li:not(:last-child)::after { content: none; }

  .team-figure:hover .team-photo,
  .team-figure:focus-visible .team-photo { filter: brightness(1.28) contrast(.9) saturate(1.05); }   /* leicht überbelichtet */

  .team-figure:hover .team-tags li,
  .team-figure:focus-visible .team-tags li {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .team-figure:hover .team-tags li:nth-child(2) { transition-delay: .04s; }
  .team-figure:hover .team-tags li:nth-child(3) { transition-delay: .08s; }
  .team-figure:hover .team-tags li:nth-child(4) { transition-delay: .12s; }

  .team-figure:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 4px; }
}

.team-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4em 2em;
  margin-top: 1.6em;
}

@media (max-width: 640px) {
  .team-groups { grid-template-columns: 1fr; }
}

.team-group h3 {
  font-size: .8em;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--c-muted);
}

.team-note { color: var(--c-muted); }

.team-members {
  margin: .2em 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- Partner ---------- */
.supporter-list {
  margin-bottom: 0;   /* Abstand oben kommt vom Titel (.section-title + *) */
  padding-left: 1.2em;
}

.supporter-list li { margin-top: .45em; }

/* Aufzählungen: kleine pinke Quadrate statt runder Punkte */
.supporter-list,
.section ul:not([class]) {
  list-style: none;
  padding-left: 1.2em;
}

.supporter-list li,
.section ul:not([class]) li { position: relative; }

.supporter-list li::before,
.section ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: calc(.65em - .16em);   /* mittig auf der x-Höhe der ersten Zeile */
  width: .32em;
  height: .32em;
  background: var(--c-pink);
}

.credits { margin-top: 1.6em; }
.credits div { margin: 0; }
.credits dt,
.credits dd { display: inline; }

/* ---------- Kontakt ---------- */
address { font-style: normal; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1em -10px 0;
  padding: 0;
  list-style: none;
}

.social-links a { display: block; padding: 10px; border: 0; transition: opacity .15s; } /* 10 px Polster = grössere Tippfläche */
.social-links a:hover { opacity: .7; }
.social-links img { width: clamp(26px, 2.16vw, 31px); }   /* +20 % */

/* ==========================================================================
   Rechtliche Seiten (Impressum, Datenschutz)
   ========================================================================== */
.legal {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px));
  font-size: .85em;
}

.legal h1 { font-size: calc(1.6em / .85); margin-bottom: 1.2em; }

.legal .section-title { margin-top: 2.4em; }
.legal .section-title + * { margin-top: 1em; }
.legal p { margin-top: .9em; }

.legal-intro {
  padding: 1em 1.2em;
  border-left: 3px solid var(--c-pink);
  background: var(--c-card);
}

.legal-stand {
  margin-top: 3em !important;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* Platzhalter, die der Verein noch ergänzen muss */
mark.todo {
  padding: 0 .25em;
  background: rgba(230, 0, 126, .22);
  color: var(--c-text);
  border-radius: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  letter-spacing: .03em;
  color: var(--c-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  width: var(--wide-width);
  margin-inline: auto;
  padding: 28px 0 36px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a { border: 0; }
.site-footer a:hover { color: var(--c-text); }
.site-footer p { margin: 0; }
.site-footer p, .site-footer ul { font-size: inherit; }   /* © und Links in derselben Grösse */

/* Schmale Bildschirme: © und Links zentriert untereinander */
@media (max-width: 640px) {
  .site-footer__inner { flex-direction: column; justify-content: center; text-align: center; }
  .site-footer ul { flex-direction: column; align-items: center; gap: 10px; }
}

/* ==========================================================================
   Variante «hell»: alles unterhalb des Headers invertiert
   (nur aktiv mit <body class="theme-light">)
   ========================================================================== */
.theme-light {
  --link-line: 2px;   /* auf Weiss wirkt 1 px zu dünn */
  --c-bg: #fff;
  --c-text: #000;
  --c-muted: #6b6b6b;
  --c-line: #e2e2e2;
  --c-card: #f7f3f5;   /* helle Fläche, z. B. Kurzfassung auf der Datenschutzseite */
  background: #fff;
  color: #000;
}

/* Header, Hero und Footer bleiben dunkel */
.theme-light .site-header,
.theme-light .hero,
.theme-light .site-footer {
  --c-text: #fff;
  --c-muted: #a3a3a3;
  --c-line: #2a2a2a;
  color: #fff;
}

.theme-light .hero,
.theme-light .site-footer { background: #000; }

/* Projekt-Kacheln hell, «Schimmer»: fast weiss mit einem Hauch Rosé oben rechts,
   darüber ein senkrechter weisser Lichtstreifen, der beim Hover langsam seitlich wandert.
   Hover sonst zurückhaltend: kein Anheben, Schatten nur minim tiefer. */
.theme-light .project-card {
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 60%) 80% 0 / 250% 100% no-repeat,
    radial-gradient(130% 90% at 100% 0%, #fdf4f8 0%, #fbf9fa 50%, #f9f9f9 100%);
  border-color: rgba(0, 0, 0, .06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -18px rgba(0, 0, 0, .22);
  transition: border-color .4s, box-shadow .6s, background-position 1.6s cubic-bezier(.25, 0, .5, 1);
}

/* Hover: Kachel selbst bleibt ruhig (kein wandernder Schimmer, kein Schatten-Wechsel) –
   die Bewegung machen die Logos */
.theme-light .project-card:hover {
  transform: none;
  border-color: rgba(0, 0, 0, .06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 28px -18px rgba(0, 0, 0, .22);
}

.theme-light .project-card__link:hover { color: var(--c-pink); }

/* Teamfoto: Namensschilder bleiben dunkel */
.theme-light .team-tags li { color: #fff; }
@media (hover: none), (max-width: 639px) {
  .theme-light .team-tags li { color: inherit; }
}

/* Button-Text bleibt weiss */
.theme-light .button,
.theme-light .button:hover { color: #fff; }

/* ==========================================================================
   Variante «Wechsel» (body.theme-light.theme-scroll):
   Header und Intro bleiben schwarz, ab «Unsere Projekte» ist die Seite hell.
   Der Introtext wird beim Scrollen von rosigem Dunkelgrau zu Weiss (site.js).
   ========================================================================== */
.theme-scroll main > .section:first-child {
  --c-text: #fff;
  --c-muted: #a3a3a3;
  color: #fff;                    /* ohne JavaScript: gleich weiss */
  background: #000;
  /* Schwarz randlos nach links und rechts ziehen */
  box-shadow: 0 0 0 100vmax #000;
  clip-path: inset(0 -100vmax);
  padding-bottom: var(--section-gap);   /* doppelt so viel Schwarz unter dem Text */
}

/* Abstand Header–Intro als Innenabstand, damit dazwischen kein Weiss entsteht */
.theme-scroll .hero { margin-bottom: 0; }
.theme-scroll main > .section:first-child { padding-top: var(--section-gap); }

.js .theme-scroll main > .section:first-child {
  color: var(--intro-color, rgb(92, 76, 85));   /* site.js hellt beim Scrollen auf */
}

.theme-scroll main > .section:first-child + .section {
  margin-top: var(--section-gap);       /* doppelt so viel Weiss bis «Unsere Projekte» */
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Jahresberichte als Pillen mit Aufklappliste (EN) ---------- */
.dl-menus {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .8em 1em;
}
.section .section-title + .dl-menus { margin-top: 1.6em; }
.dl-menu { position: relative; }
.dl-menu__toggle {
  margin-top: 0;
  gap: .7em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.dl-menu__toggle::-webkit-details-marker { display: none; }
.dl-menu__chev { width: 12px; height: 12px; flex: none; transition: transform .25s; }
.dl-menu[open] .dl-menu__chev { transform: rotate(180deg); }
.dl-menu[open] .dl-menu__toggle { background: var(--c-pink-dark); }

.dl-menu__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: .4em;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .06);
}
.dl-menu__list li { margin: 0 !important; }
.dl-menu__list a {
  display: flex;
  align-items: center;
  gap: .9em;
  padding: .35em .7em .35em .5em;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s;
}
.dl-menu__list a:hover,
.dl-menu__list a:focus-visible { background: rgba(230, 0, 126, .07); }
.dl-menu__list a:hover span { color: var(--c-pink); }
.dl-menu__list img {
  flex: none;
  width: auto;
  height: 40px;
  border-radius: 2px;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
  transition: transform .2s, box-shadow .2s;
}
.dl-menu__list a:hover img { box-shadow: -2px 2px 0 rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: no-preference) {
  .dl-menu[open] .dl-menu__list { animation: dl-in .2s ease-out; }
  .dl-menu__list a:hover img { transform: translateY(-2px) rotate(-3deg) scale(1.08); }
}
@keyframes dl-in { from { opacity: 0; transform: translateY(-6px); } }

/* Kurzer Hinweis unter einem Titel (z. B. Newsletter EN): Schriftgrösse wie Kacheltext */
.section-note { font-size: max(16px, .72em); }
