/* Linksjugend ['solid] Waldshut – Stylesheet
   Farben und Formen nach dem Corporate Design der Linksjugend ['solid].
   Alle Schriften liegen lokal, es werden keine externen Ressourcen geladen. */

@font-face {
  font-family: "Urbanist";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/urbanist-latin-900-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Urbanist";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/urbanist-latin-800-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/urbanist-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/hind-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/hind-latin-600-normal.woff2") format("woff2");
}

:root {
  --rot: #E2190C;
  --lila: #C9CEFF;
  --mint: #00FFC2;
  --schwarz: #252525;
  --weiss: #FFFFFF;

  --display: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --text: "Hind", "Helvetica Neue", Arial, sans-serif;

  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --schraeg: clamp(14px, 3.2vw, 48px);
  --abstand: clamp(3.5rem, 9vw, 7rem);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

p {
  margin: 0 0 1em;
  max-width: 38em;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
}

h2 {
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

h3 {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.1;
  margin-bottom: 0.4em;
}

:focus-visible {
  outline: 4px solid var(--mint);
  outline-offset: 3px;
}

.hero :focus-visible,
.machen :focus-visible,
.mitmachen :focus-visible,
.seite :focus-visible {
  outline-color: var(--schwarz);
}

.rahmen {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.sprunglink {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--mint);
  color: var(--schwarz);
  font-family: var(--display);
  font-weight: 700;
}

.sprunglink:focus {
  top: 1rem;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  background: var(--schwarz);
  color: var(--weiss);
}

.kopf .rahmen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.kopf__logo img {
  height: 2.75rem;
  width: auto;
}

.kopf__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}

.kopf__nav a {
  text-decoration: none;
  padding-block: 0.5rem;
}

.kopf__nav a:hover {
  color: var(--mint);
}

.kopf__nav .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.2em;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nur-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Schräge Bänder ---------- */

.band {
  position: relative;
  padding-block: calc(var(--abstand) + var(--schraeg)) calc(var(--abstand) + var(--schraeg));
  clip-path: polygon(0 var(--schraeg), 100% 0, 100% calc(100% - var(--schraeg)), 0 100%);
  margin-top: calc(var(--schraeg) * -0.55);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--lila);
  padding-block: clamp(2rem, 6vw, 4.5rem) calc(var(--abstand) + var(--schraeg));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--schraeg)), 0 100%);
}

.hero .rahmen {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

.hero h1 {
  max-width: 36rem;
}

.slogan {
  margin: clamp(0.75rem, 2.5vw, 1.25rem) 0 0;
  max-width: none;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.2rem, 5.4vw, 2.35rem);
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--lila);
  hyphens: auto;
}

.slogan__zeile {
  display: block;
  transform: rotate(-3.5deg);
  transform-origin: left center;
}

.slogan__zeile + .slogan__zeile {
  margin-left: clamp(0.75rem, 4vw, 2.5rem);
}

.slogan__zeile span {
  background: var(--rot);
  padding: 0.12em 0.45em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__text p {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 60rem) {
  .hero .rahmen {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero__text {
    padding-bottom: 1.5rem;
  }
}

/* Ein einziger Moment Bewegung: der Slogan wird beim Laden aufgeklebt. */
@media (prefers-reduced-motion: no-preference) {
  .slogan__zeile {
    animation: aufkleben 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
    animation-delay: 0.15s;
  }

  .slogan__zeile + .slogan__zeile {
    animation-delay: 0.32s;
  }

  @keyframes aufkleben {
    from {
      opacity: 0;
      transform: rotate(-11deg) scale(1.12);
    }
    to {
      opacity: 1;
      transform: rotate(-3.5deg);
    }
  }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.25em 0.8em;
  background: var(--rot);
  color: var(--weiss);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--schwarz);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.knopf:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--schwarz);
}

.knopf:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--schwarz);
}

.knopf--dunkel {
  background: var(--schwarz);
  box-shadow: 6px 6px 0 var(--rot);
}

.knopf--dunkel:hover {
  box-shadow: 8px 8px 0 var(--rot);
}

.knopf--dunkel:active {
  box-shadow: 2px 2px 0 var(--rot);
}

.knopf .icon {
  width: 1.25em;
  height: 1.25em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .knopf {
    transition: none;
  }
}

/* ---------- Wer wir sind ---------- */

.wer {
  background: var(--rot);
  color: var(--weiss);
}

.wer h2 {
  color: var(--lila);
}

.wer p {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.5;
}

.wer p:last-child {
  margin-bottom: 0;
}

/* ---------- Was wir machen ---------- */

.machen {
  padding-block: var(--abstand);
}

.machen h2 {
  color: var(--rot);
}

.machen__liste {
  display: grid;
  gap: 2.5rem clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.machen__liste li {
  border-top: 6px solid var(--schwarz);
  padding-top: 1.1rem;
}

.machen__liste p {
  margin: 0;
}

@media (min-width: 52rem) {
  .machen__liste {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Mitmachen ---------- */

.mitmachen {
  background: var(--lila);
}

.mitmachen h2 {
  color: var(--rot);
}

.schritte {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}

.schritte li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(1rem, 3vw, 2rem);
  counter-increment: schritt;
}

.schritte li::before {
  content: counter(schritt);
  grid-row: span 3;
  min-width: 1.1ch;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 0.8;
  color: var(--rot);
}

.schritte p {
  margin: 0;
}

.schritte .knopf {
  justify-self: start;
  margin-top: 1.25rem;
}

@media (min-width: 52rem) {
  .schritte {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .schritte li {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
  }

  .schritte li::before {
    grid-row: auto;
    margin-bottom: 0.35em;
  }
}

/* ---------- Fußzeile ---------- */

.fuss {
  margin-top: calc(var(--schraeg) * -0.55);
  padding-block: calc(var(--schraeg) + 3rem) 3rem;
  background: var(--schwarz);
  color: var(--weiss);
  clip-path: polygon(0 var(--schraeg), 100% 0, 100% 100%, 0 100%);
  font-size: 1rem;
}

.fuss .rahmen {
  display: grid;
  gap: 2rem 3rem;
}

.fuss__marke {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.fuss__marke img {
  height: 3.5rem;
  width: auto;
}

.fuss__marke p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.35;
}

.fuss h2 {
  margin-bottom: 0.5rem;
  font-family: var(--text);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lila);
}

.fuss ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss li + li {
  margin-top: 0.35rem;
}

.fuss a:hover {
  color: var(--mint);
}

@media (min-width: 52rem) {
  .fuss .rahmen {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

.seite-kopf {
  background: var(--lila);
  padding-block: clamp(2.5rem, 7vw, 4.5rem) calc(clamp(2rem, 5vw, 3.5rem) + var(--schraeg));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--schraeg)), 0 100%);
}

.seite-kopf h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--rot);
}

.seite {
  padding-block: clamp(2rem, 6vw, 4rem) var(--abstand);
}

.seite .rahmen > * {
  max-width: 42rem;
}

.seite h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin: 2em 0 0.5em;
  color: var(--rot);
}

.seite h3 {
  font-size: 1.3rem;
  margin: 1.5em 0 0.4em;
}

.seite ul {
  padding-left: 1.2em;
}

.seite li {
  margin-bottom: 0.4em;
}

.seite address {
  font-style: normal;
  margin-bottom: 1em;
}
