/* Startseite «raumwechsel Basel» - Plakat im Swiss Style.
   Farben wie der Baselstab: Weiss und Schwarz. Blau ist die einzige Signalfarbe und heisst «gehört uns allen».
   Oben lässt sich auf Schwarz umschalten (farbe.js setzt data-farbe auf <html>).
   Raster, Grotesk, linksbündig, grosse Zahl, keine Rahmen, keine Schatten. */
:root {
  --grund: #ffffff;
  --text: #000000;
  --blau: #2f45ff;
  --flaeche: #f2f2f2;
  --linie: #d6d6d6;
  --fuss: #000000;
  --weiss: #ffffff;
  --schwarz: #000000;
  --oeffentlich: #2f45ff;
  --hell: #f2f2f2;
  --grau: #6b6b6b;
  --schrift: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --schrift-basel: "HelveticaNeue-CondensedBlack", "Helvetica Neue Condensed Black", "Arial Narrow Bold", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(20px, 4vw, 56px);
}
html[data-farbe="schwarz"] { --grund: #000000; --text: #ffffff; --flaeche: #141414; --linie: #333333; --fuss: #141414; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-snap-type: y mandatory; }
/* Jeder Abschnitt ist eine Bildschirmseite und rastet beim Scrollen ein */
.plakat, main > section { scroll-snap-align: start; min-height: 100svh; }
main > section { display: grid; align-content: center; }
.fuss { scroll-snap-align: end; }
body {
  margin: 0; font-family: var(--schrift); color: var(--text); background: var(--grund);
  font-size: clamp(16px, 1.15vw, 19px); line-height: 1.4; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
em { font-style: normal; }
h2 { margin: 0; }

/* ---------- Plakat ---------- */
.plakat { position: relative; isolation: isolate; background: var(--grund); color: var(--text); min-height: 100svh; display: flex; flex-direction: column; padding: 0 var(--rand) var(--rand); }
.leiste { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; min-height: 78px; font-weight: 700; box-sizing: border-box; }
.marke em { color: var(--blau); }
.leiste-rechts { display: flex; gap: 8px; align-items: center; }
.farbe-knopf { font: inherit; font-weight: 700; border: 0; cursor: pointer; background: transparent; color: var(--text); padding: 10px 12px; display: inline-flex; gap: 8px; align-items: center; }
.farbe-knopf i { width: 14px; height: 14px; display: inline-block; background: var(--text); }
.farbe-knopf:hover { background: var(--flaeche); }
.leiste-los { text-decoration: none; background: var(--text); color: var(--grund); padding: 10px 16px; }
.leiste-los:hover { background: var(--blau); color: var(--weiss); }

.plakat-raster {
  flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 28px; align-content: end;
  border-top: 3px solid var(--text); padding-top: 20px;
}
.titel { grid-column: 1 / -1; margin: 0; font-weight: 700; line-height: .82; }
.titel .klein { display: block; font-size: clamp(1.6rem, 4vw, 3.4rem); letter-spacing: -.02em; margin-bottom: .25em; }
.titel .basel {
  display: block; font-family: var(--schrift-basel); font-weight: 900; color: var(--text);
  font-size: clamp(5.5rem, min(21vw, 34svh), 26rem); letter-spacing: -.045em; text-transform: uppercase; margin-left: -.04em;
}
/* Der Punkt: ein Quadrat so gross wie der untere Balken des L (0.155 em), mit etwas Abstand */
.titel .basel em { display: inline-block; width: .155em; height: .155em; margin-left: .09em; background: var(--blau); overflow: hidden; text-indent: 1em; white-space: nowrap; vertical-align: baseline; }
.lead { grid-column: 1 / 8; margin: 0; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.knoepfe { grid-column: 8 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-self: end; justify-content: flex-end; }
.suche { grid-column: 8 / -1; margin: -12px 0 0; text-align: right; font-weight: 700; font-size: 1.05rem; }
.suche a { color: inherit; margin-left: 12px; text-underline-offset: 4px; }
.suche a:hover { color: var(--blau); }
.suche + .suche { margin-top: -22px; } /* zwei Zeilen, ein Block */

.knopf { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 700; font-size: 1.05rem; padding: 16px 22px; transition: background .15s, color .15s; }
.knopf-text { background: var(--text); color: var(--grund); }
.knopf-text:hover, .knopf-blau:hover { background: var(--flaeche); color: var(--text); }
.knopf-blau { background: var(--blau); color: var(--weiss); }
.knopf-dunkel { background: var(--schwarz); color: var(--weiss); }
.knopf-dunkel:hover { background: var(--weiss); color: var(--schwarz); }
.knopf-hell { background: var(--hell); color: var(--schwarz); }
.knopf-hell:hover { background: var(--schwarz); color: var(--weiss); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

/* ---------- Abschnitte ---------- */
main > section { padding: clamp(56px, 9vw, 140px) var(--rand); }
.zahl-block { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: end; background: var(--text); color: var(--grund); }
.riesig { grid-column: 1 / 8; margin: 0; }
.riesig b { display: block; font-family: var(--schrift-basel); font-weight: 900; color: var(--grund); font-size: clamp(6rem, 24vw, 24rem); line-height: .8; letter-spacing: -.04em; }
.zahl-text { grid-column: 8 / -1; margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 700; line-height: 1.25; }
.quelle { display: block; margin-top: 14px; font-size: .78rem; font-weight: 400; color: var(--grau); line-height: 1.4; }

.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.drei article { border-top: 3px solid var(--text); padding-top: 14px; }
.nr { color: var(--blau); font-size: .9rem; }
.drei h2 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); letter-spacing: -.035em; line-height: 1; margin: 10px 0 16px; }
.drei p { margin: 0; max-width: 34ch; }

.warum { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 20px; background: var(--flaeche); }
.warum h2, .versprechen h2, .mitmachen h2 { grid-column: 1 / 4; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
/* Gleiche Flucht oben: die Oberkante des kleinen Titels liegt auf der Höhe der Grossbuchstaben daneben.
   Werte aus den Schriftmassen: Grossbuchstaben beginnen 0.216 (grosse Zeile) bzw. 0.392 (Titel) Schriftgrössen unter der Zeilenkante. */
.warum, .mitmachen { --g: clamp(1.6rem, 3.2vw, 3rem); }
.warum h2, .mitmachen h2 { align-self: start; margin-top: calc(.216 * var(--g) - .392rem); }
.versprechen h2 { align-self: start; margin-top: calc(17px + .358 * clamp(1.05rem, 1.4vw, 1.3rem) - .392rem); }
.gross { margin: 0; font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.warum .gross { grid-column: 4 / -1; }
.warum p:not(.gross) { grid-column: 4 / 10; margin: 0; }

.versprechen { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
.versprechen ul { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; }
.versprechen li { padding: 16px 0; border-top: 1px solid var(--linie); font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.versprechen li b { display: inline-block; min-width: 13ch; }

.mitmachen { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 28px; background: var(--oeffentlich); color: var(--weiss); }
.mitmachen .gross { grid-column: 4 / -1; }
.mitmachen .gross + .gross { margin-top: -0.4em; } /* zwei Sätze, ein Block */
.mitmachen .knoepfe { grid-column: 4 / -1; justify-content: flex-start; }

.fuss { padding: 40px var(--rand) 56px; background: var(--fuss); color: #bdbdbd; font-size: .85rem; display: grid; gap: 6px; }
.fuss p { margin: 0; max-width: 80ch; }
.fuss b { color: var(--weiss); }
.fuss .leise { color: #7a7a7a; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .plakat-raster, .zahl-block, .warum, .versprechen, .mitmachen { grid-template-columns: 1fr; }
  .plakat-raster > *, .zahl-block > *, .warum > *, .versprechen > *, .mitmachen > * { grid-column: 1 / -1 !important; }
  .knoepfe { justify-content: flex-start; }
  .warum h2, .mitmachen h2, .versprechen h2 { margin-top: 0; }
  .suche { text-align: left; }
  .suche a { display: inline-block; margin: 0 14px 0 0; padding: 12px 0; line-height: 20px; } /* 44 px zum Tippen */
  .knopf { flex: 1 1 auto; justify-content: center; }
  .leiste-los { display: none; }
  .farbe-knopf { padding: 10px 0; }
  .drei { grid-template-columns: 1fr; gap: 36px; }
  .zahl-text { margin-top: 18px; }
  .versprechen li b { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Auf dem Handy sind manche Abschnitte länger als der Bildschirm: dort nur sanft einrasten, damit man alles lesen kann */
@media (max-width: 760px) { html { scroll-snap-type: y proximity; } main > section { min-height: auto; } }

/* Die eine Zahl schon im ersten Bild: rechts neben BASEL., gleiche Schrift */
.titel { grid-row: 1; }
.hero-zahl { grid-column: 9 / -1; grid-row: 1; align-self: end; justify-self: end; margin: 0 0 .4rem; text-align: right; }
.hero-zahl b { display: block; font-family: var(--schrift-basel); font-weight: 900; font-size: clamp(3rem, 10vw, 10rem); line-height: .8; letter-spacing: -.04em; }
.hero-zahl span { display: block; margin-top: 10px; font-weight: 700; font-size: .9rem; line-height: 1.3; }
@media (max-width: 760px) {
  .titel, .hero-zahl { grid-row: auto; }
  .hero-zahl { justify-self: start; text-align: left; }
  .hero-zahl b { font-size: 4.5rem; }
}

/* Name nie umbrechen */
.titel .klein, .marke { white-space: nowrap; }

/* Der Spruch zum Namen: eigene Zeile, etwas grösser */
.lead .spruch { display: block; font-size: 1.35em; line-height: 1.05; letter-spacing: -.02em; margin-bottom: .35em; }

/* Sprache: DE EN FR, die gewählte schwarz hinterlegt */
.sprache-wahl { display: inline-flex; }
.sprache-wahl button { font: inherit; font-weight: 700; font-size: .85rem; border: 0; background: transparent; color: var(--text); padding: 10px 7px; cursor: pointer; }
.sprache-wahl button[aria-pressed="true"] { background: var(--text); color: var(--grund); }
.sprache-wahl button:hover:not([aria-pressed="true"]) { background: var(--flaeche); }
@media (max-width: 760px) { .sprache-wahl button { padding: 12px 8px; } }

/* Sprachwechsel ohne Springen: Knöpfe oben gleich breit in allen Sprachen, Sprachwahl ganz rechts */
.farbe-knopf span { display: inline-block; min-width: 4.2em; text-align: left; }
@media (min-width: 761px) { .leiste-los { display: inline-block; min-width: 10.2em; text-align: center; box-sizing: border-box; } }
/* Einleitung: immer gleich hoch (so viel wie der längste Text, Deutsch), damit «BASEL.» beim Sprachwechsel stehen bleibt */
@media (min-width: 761px) { .lead { min-height: 6.7em; } }
/* Handy: Plakat oben ausrichten, dann bleibt «BASEL.» stehen, auch wenn der Text in einer Sprache eine Zeile kürzer ist */
@media (max-width: 760px) { .plakat-raster { align-content: start; } }
