/* ==========================================================================
   deizo.de/freiheit – Kampagnenseite „Was bedeutet für dich Souveränität?“
   Bildsprache der Plakate: Schwarz, Mint-Pille mit einseitiger Rundung,
   Versalien-Zitat in Source Code Pro. Gemeinsam für /freiheit/ und Branchenseiten.
   ========================================================================== */

/* Source Code Pro: dieselben Dateien wie die Website (/assets/fonts/,
   SIL OFL, selbst gehostet), aufgeteilt in Latin und Latin Extended. */
@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/fonts/source-code-pro-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/fonts/source-code-pro-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Namenszeile: Barlow Condensed Italic (SIL OFL, selbst gehostet), auf
   allen Geraeten gleich. */
@font-face {
  font-family: "Plakat Name";
  src: url("/freiheit/assets/fonts/BarlowCondensed-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --schwarz: #000;        /* Plakatgrund */
  --flaeche: #141414;     /* abgesetzte Flächen */
  --linie: #2A2A2A;
  --mint: #28EBC0;        /* DEiZO-Farbe */
  --weiss: #FFF;
  --grau: #A3A3A3;        /* Nebentext, 8:1 auf Schwarz */

  --font: "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
  --font-name: "Plakat Name", "Arial Narrow", sans-serif;

  --t-0: 1rem;
  --t-1: 1.25rem;
  --t-2: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  --t-3: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  --t-zitat: clamp(1.6rem, .9rem + 3vw, 3.4rem);

  --rand: clamp(1.25rem, 5vw, 4rem);                 /* Seitenabstand */
  --rundung: clamp(4rem, 3rem + 8vw, 12rem);         /* große Pillen-Rundung */
  --sektion: clamp(4rem, 10vw, 8rem);
  --breite: 76rem;
  --text: 38rem;

  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--schwarz); color: var(--weiss);
  font-family: var(--font); font-size: var(--t-0); line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }

.huelle { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.sprung {
  position: absolute; left: var(--rand); top: -4rem; z-index: 10;
  background: var(--mint); color: var(--schwarz); padding: .6rem 1.2rem;
  border-radius: 999px; font-weight: 700;
}
.sprung:focus { top: 1rem; }

/* ---------- Kopf: Wortmarke wie auf dem Plakat ---------- */
.kopf { padding-block: clamp(1.25rem, 4vw, 2.5rem); }
.kopf .huelle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wortmarke {
  font-size: clamp(1.05rem, .6rem + 2.4vw, 2.6rem);
  font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; line-height: 1;
}
.wortmarke .i { color: var(--mint); text-transform: lowercase; }
.kopf-link {
  flex-shrink: 0; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .55rem 1.1rem; border: 2px solid var(--mint); border-radius: 999px;
}
.kopf-link:hover { background: var(--mint); color: var(--schwarz); }

/* ---------- Frage ---------- */
.frage {
  margin: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3.5rem);
  font-size: var(--t-2); font-weight: 300; line-height: 1.2; color: var(--grau);
}

/* ---------- Stimme: Porträt + Mint-Pille ---------- */
.stimme { position: relative; margin: 0; }
.stimme + .stimme { margin-top: clamp(4rem, 10vw, 8rem); }

.stimme-bild { margin: 0; }
.stimme-bild img {
  width: 100%; aspect-ratio: 1080 / 910; object-fit: cover; background: var(--schwarz);
  /* weicher Auslauf unten, wie freigestellt auf dem Plakat */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.pille { position: relative; z-index: 1; container-type: inline-size; }
.zitat { margin: 0; }
.zitat p {
  /* Umbrüche nur per <br> wie auf dem Plakat; Schrift schrumpft, damit die längste Zeile (--zeichen) immer passt */
  margin: 0; font-size: min(var(--t-zitat), calc(100cqi / (var(--zeichen, 16) * .64))); font-weight: 700; line-height: 1.12;
  white-space: nowrap;
  text-transform: uppercase; letter-spacing: .03em;
  word-spacing: -.3em; /* engere Wortabstände wie auf dem Plakat */
}
/* Anführungszeichen wie auf den Plakaten */
.zitat p::before { content: "»"; }
.zitat p::after  { content: "«"; }
.person {
  margin: 0; font-family: var(--font-name); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2rem); line-height: 1.2; letter-spacing: 0;
}
.person-name, .person-festival { display: block; }

/* Handy: wie City Light – Bild oben, Pille von rechts, Name darunter auf Schwarz */
@media (max-width: 47.99rem) {
  .pille .zitat {
    background: var(--mint); color: var(--schwarz);
    margin: -3.5rem 0 0 var(--rand);
    padding: clamp(1.5rem, 4vw, 3rem) var(--rand) clamp(1.5rem, 4vw, 3rem) calc(var(--rundung) * .45);
    border-radius: var(--rundung) 0 0 var(--rundung);
    text-align: right;
  }
  .person { margin-top: 1.25rem; padding-inline: var(--rand); text-align: right; }
}

/* Desktop: wie City Board – Pille vom linken Rand, Name in der Pille */
@media (min-width: 48rem) {
  .stimme {
    display: grid; grid-template-columns: 6fr 1fr 6fr; align-items: center;
    max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto;
  }
  .stimme-bild { grid-column: 2 / 4; grid-row: 1; }
  .pille {
    grid-column: 1 / 3; grid-row: 1;
    background: var(--mint); color: var(--schwarz);
    padding: clamp(1.5rem, 4vw, 3rem) calc(var(--rundung) * .5) clamp(1.5rem, 4vw, 3rem) calc(var(--rand) + max(0px, (100vw - var(--breite) - 2 * var(--rand)) / 2));
    margin-left: calc(-1 * max(0px, (100vw - var(--breite) - 2 * var(--rand)) / 2));
    border-radius: 0 var(--rundung) var(--rundung) 0;
  }
  .pille .person { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
  .pille .person-name { text-transform: uppercase; font-size: clamp(1.5rem, .8rem + 2.2vw, 2.8rem); }
  .pille .person-festival { font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); margin-top: .2rem; }

  .stimme:nth-of-type(even) .stimme-bild { grid-column: 1 / 3; }
  .stimme:nth-of-type(even) .pille {
    grid-column: 2 / 4; text-align: right;
    border-radius: var(--rundung) 0 0 var(--rundung);
    margin-left: 0; padding-left: calc(var(--rundung) * .5);
    margin-right: calc(-1 * max(0px, (100vw - var(--breite) - 2 * var(--rand)) / 2));
    padding-right: calc(var(--rand) + max(0px, (100vw - var(--breite) - 2 * var(--rand)) / 2));
  }
}

/* ---------- Video ---------- */
.video { padding-top: 0; }
.video-rahmen {
  /* Interview im Format 4:3; Breite begrenzt, damit es auf dem Desktop nicht den ganzen Bildschirm füllt */
  display: block; width: 100%; max-width: 48rem; aspect-ratio: 4 / 3; margin-top: 2rem;
  border-radius: 2rem; overflow: hidden; background: var(--flaeche);
}
.video-platzhalter {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 1.5rem; text-align: center;
}
.video-platzhalter img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-platzhalter .video-play { opacity: .9; }
.video-hinweis {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  background: rgba(0, 0, 0, .75); color: var(--weiss); white-space: nowrap;
  padding: .45rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.video-play { z-index: 1; }
.video-play { position: relative; width: 5rem; height: 5rem; border-radius: 50%; background: var(--mint); }
.video-play::after {
  content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%);
  border-left: 1.4rem solid var(--schwarz); border-block: .85rem solid transparent;
}

/* ---------- Festival ---------- */
.festival { padding-block: var(--sektion); }
.festival-flaeche {
  background: var(--flaeche);
  border-radius: var(--rundung) 0 0 var(--rundung);
  margin-left: var(--rand);
  padding: clamp(2.5rem, 6vw, 5rem) var(--rand) clamp(2.5rem, 6vw, 5rem) calc(var(--rundung) * .55);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 48rem) {
  .festival-flaeche {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    margin-left: max(var(--rand), (100vw - var(--breite)) / 2);
  }
}
.festival-logo-link {
  justify-self: center; display: block; width: min(100%, 18rem);
  border-radius: 1.5rem; transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.festival-logo-link:hover { transform: scale(1.05) rotate(-1.5deg); }
.festival-logo { width: 100%; }
.festival h2 { margin: 0 0 .5rem; font-size: var(--t-2); font-weight: 800; line-height: 1.2; }
.festival-info { container-type: inline-size; min-width: 0; }
.zusammen { white-space: nowrap; }
/* Festivalname immer zusammen in eigener Zeile, wird bei Platzmangel kleiner statt umzubrechen */
.festival-name { display: block; white-space: nowrap; font-size: min(1em, calc(100cqi / 17.8)); }
.sponsor {
  display: inline-block; margin: 0 0 1.5rem; padding: .45rem 1.1rem;
  border: 2px solid var(--mint); border-radius: 999px;
  color: var(--mint); font-weight: 700; font-size: .95rem;
}
.festival-daten { margin: 0 0 1rem; font-size: var(--t-1); font-weight: 500; }
.festival-text { margin: 0 0 2rem; max-width: var(--text); color: var(--grau); }

.knopf {
  display: inline-block; font: inherit; font-weight: 800; font-size: var(--t-1);
  text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
  padding: 1.1rem 2.4rem; border-radius: 999px;
  background: var(--mint); color: var(--schwarz); border: 3px solid var(--mint);
  transition: background-color .15s, color .15s;
}
.knopf:hover { background: transparent; color: var(--mint); }
.knopf-hinweis { display: block; margin-top: .75rem; font-size: .85rem; color: var(--grau); }

/* ---------- Textsektionen ---------- */
.abschnitt { padding-block: var(--sektion); }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.abschnitt h2 {
  margin: 0 0 1.5rem; font-size: var(--t-3); font-weight: 300;
  line-height: 1.15; letter-spacing: -.02em; max-width: 22ch;
}
.fliesstext { max-width: var(--text); }
.fliesstext p { margin: 0 0 1.1rem; }
.ausblick { font-size: var(--t-1); font-weight: 600; line-height: 1.4; margin-top: 1.75rem !important; }
.einleitung { padding-top: 0; }
.einleitung .fliesstext p:first-child { font-size: var(--t-1); line-height: 1.45; }
.abschnitt + .video { border-top: 0; }
.buehne { padding-top: clamp(.5rem, 3vw, 2rem); }
.kampagne-titel {
  margin: 0 0 .75rem; font-size: var(--t-3); font-weight: 300;
  line-height: 1.15; letter-spacing: -.02em; max-width: 22ch;
}
.absender { margin: 0 0 2rem; color: var(--mint); font-weight: 600; font-size: var(--t-1); }
.einleitung { padding-top: clamp(2rem, 5vw, 4rem); }
.leise { color: var(--grau); }

.leistungen { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .leistungen { grid-template-columns: repeat(3, 1fr); } }
.leistungen li { background: var(--flaeche); border-radius: 1.75rem; padding: 1.5rem 1.75rem; }
.leistungen strong { display: block; font-size: var(--t-1); font-weight: 700; margin-bottom: .35rem; color: var(--mint); }
.leistungen span { color: var(--grau); font-size: .95rem; }

.wege { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.weg {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .9rem 1.6rem; border: 2px solid var(--mint); border-radius: 999px;
  transition: background-color .15s, color .15s;
}
.weg-voll { background: var(--mint); color: var(--schwarz); }
.weg:hover { background: var(--weiss); border-color: var(--weiss); color: var(--schwarz); }

/* ---------- Branchen (ab Januar) ---------- */
.branchen-liste { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .branchen-liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .branchen-liste { grid-template-columns: repeat(3, 1fr); } }
.branchen-liste a { display: block; height: 100%; background: var(--flaeche); border-radius: 1.75rem; padding: 1.5rem 1.75rem; text-decoration: none; }
.branchen-liste a:hover { background: var(--linie); }
.branchen-liste strong { display: block; font-size: var(--t-1); margin-bottom: .25rem; }

/* ---------- Fuß ---------- */
.fuss { padding-block: 3rem; border-top: 1px solid var(--linie); color: var(--grau); font-size: .9rem; }
.fuss .huelle { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss p { margin: 0; }
.fuss nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.fuss a:hover { color: var(--weiss); }

/* ---------- Ein Moment beim Laden: Pille fährt ein ---------- */
@media (prefers-reduced-motion: no-preference) {
  .stimme:first-of-type .pille { animation: einfahren .9s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes einfahren { from { transform: translateX(-12%); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) and (max-width: 47.99rem) {
  .stimme:first-of-type .pille { animation-name: einfahren-rechts; }
}
@keyframes einfahren-rechts { from { transform: translateX(12%); opacity: 0; } }
