/* Layout-Idee: Die sechs Quadrate des Logos sind die sechs Bereiche der Seite.
   Jeder Bereich trägt eine Logofarbe als Marker; dasdigihaus bekommt die Bühne. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4f3;
  --ink: #1d1d1b;
  --muted: #4c585b;
  --line: #d5dedd;
  /* Markenfarben, siehe docs/06-gestaltung.md. Je Paar: hell (oben im Logo), dunkel (unten). */
  --pink: #e61964;
  --weinrot: #691e37;
  --hellgruen: #9bff05;
  --dunkelgruen: #3c730f;
  --tuerkis: #14f5f0;
  --petrol: #197373;
  --link: var(--petrol);
  --cta-bg: var(--weinrot);
  --cta-ink: #ffffff;
  --focus: #1d1d1b;
  --display: "Ubuntu", "Segoe UI", system-ui, sans-serif;
  --body: "Ubuntu", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
  --r-lg: 28px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(20, 40, 40, .06), 0 10px 30px rgba(20, 40, 40, .08);
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

/* Manche Inhalte warten vor dem Einblenden ein Stück seitlich versetzt.
   Das darf die Seite nicht breiter machen als den Bildschirm. */
main {
  overflow-x: clip;
}

a {
  color: var(--link);
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}

a:hover {
  text-decoration-thickness: .16em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible,
section:focus,
main:focus {
  outline: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.005em;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.08rem;
  font-weight: 600;
}

p {
  margin: 0;
  max-width: 65ch;
}

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

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

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

/* Kleine Helfer, die an mehreren Stellen gebraucht werden */
.muted {
  color: var(--muted);
}

.wide {
  max-width: none;
}

.stack {
  display: grid;
  gap: 1.3rem;
}

/* Akzentfarbe eines Elements: eine der sechs Logofarben. Was damit gefärbt wird
   (Punkt, Rand, Fläche), entscheidet das CSS des jeweiligen Bauteils. */
.c-pink { --c: var(--pink); }
.c-weinrot { --c: var(--weinrot); }
.c-hellgruen { --c: var(--hellgruen); }
.c-dunkelgruen { --c: var(--dunkelgruen); }
.c-tuerkis { --c: var(--tuerkis); }
.c-petrol { --c: var(--petrol); }

/* Platz in der Reihe: Die Kinder eines Elements mit der Klasse „stagger“ kennen
   ihren Platz, beginnend bei 0. Animationen rechnen damit aus, wie viel später ein
   Element einsetzt als sein Vorgänger. Reicht für 26 Kinder. */
.stagger > :nth-child(1) { --nr: 0; }
.stagger > :nth-child(2) { --nr: 1; }
.stagger > :nth-child(3) { --nr: 2; }
.stagger > :nth-child(4) { --nr: 3; }
.stagger > :nth-child(5) { --nr: 4; }
.stagger > :nth-child(6) { --nr: 5; }
.stagger > :nth-child(7) { --nr: 6; }
.stagger > :nth-child(8) { --nr: 7; }
.stagger > :nth-child(9) { --nr: 8; }
.stagger > :nth-child(10) { --nr: 9; }
.stagger > :nth-child(11) { --nr: 10; }
.stagger > :nth-child(12) { --nr: 11; }
.stagger > :nth-child(13) { --nr: 12; }
.stagger > :nth-child(14) { --nr: 13; }
.stagger > :nth-child(15) { --nr: 14; }
.stagger > :nth-child(16) { --nr: 15; }
.stagger > :nth-child(17) { --nr: 16; }
.stagger > :nth-child(18) { --nr: 17; }
.stagger > :nth-child(19) { --nr: 18; }
.stagger > :nth-child(20) { --nr: 19; }
.stagger > :nth-child(21) { --nr: 20; }
.stagger > :nth-child(22) { --nr: 21; }
.stagger > :nth-child(23) { --nr: 22; }
.stagger > :nth-child(24) { --nr: 23; }
.stagger > :nth-child(25) { --nr: 24; }
.stagger > :nth-child(26) { --nr: 25; }

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--ink);
  color: var(--bg);
  padding: .8rem 1.1rem;
  border-radius: 10px;
  z-index: 100;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

/* Kopf */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: .45rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-right: auto;
  min-width: 0;
}

.brand small {
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
  padding-bottom: 4px;
}

.six {
  display: grid;
  grid-template-columns: repeat(3, 11px);
  gap: 3px;
}

.six i {
  width: 11px;
  height: 11px;
  border-radius: 3.5px;
  display: block;
}

.six i:nth-child(1) {
  background: var(--pink);
}

.six i:nth-child(2) {
  background: var(--hellgruen);
}

.six i:nth-child(3) {
  background: var(--tuerkis);
}

.six i:nth-child(4) {
  background: var(--weinrot);
}

.six i:nth-child(5) {
  background: var(--dunkelgruen);
}

.six i:nth-child(6) {
  background: var(--petrol);
}

.nav ul {
  display: flex;
  gap: .2rem;
  align-items: center;
}

.nav a {
  display: block;
  padding: .6rem .7rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: .98rem;
}

.nav a:hover {
  background: var(--surface-2);
}

.nav a[aria-current="true"] {
  box-shadow: inset 0 -3px 0 var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-cta {
  background: var(--cta-bg);
  color: var(--cta-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-small {
  min-height: 44px;
  padding: .45rem 1rem;
  font-size: .94rem;
}

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 0 .7rem;
  font: 400 .9rem var(--body);
}

.menu-btn {
  display: none;
}

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: .6rem 1.25rem 1.2rem;
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    padding: .85rem .6rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 1.5rem);
  }

  .head-in {
    gap: .4rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand small,
  .menu-btn span {
    display: none;
  }

  .menu-btn {
    padding: 0;
  }

  .head-in .btn-small {
    padding: .45rem .8rem;
  }
}

/* Hero */
.hero {
  padding: clamp(2rem, 5vw, 4.2rem) 0 2.4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  font-weight: 700;
  color: var(--weinrot);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--pink);
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 52ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.hero-art {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 0;
}

.hero-art img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1087/598;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.px {
  position: absolute;
  border-radius: 22%;
  z-index: 0;
  animation: drift 9s ease-in-out infinite alternate;
}

.px.a {
  width: 92px;
  height: 92px;
  background: var(--pink);
  right: -6px;
  top: -10px;
}

.px.b {
  width: 60px;
  height: 60px;
  background: var(--hellgruen);
  right: 92px;
  top: -26px;
  animation-delay: -3s;
}

.px.c {
  width: 74px;
  height: 74px;
  background: var(--tuerkis);
  left: -30px;
  bottom: -12px;
  animation-delay: -5s;
  z-index: 2;
}

.px.d {
  width: 40px;
  height: 40px;
  background: var(--petrol);
  left: 52px;
  bottom: -26px;
  animation-delay: -1.5s;
  z-index: 2;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(6px, -14px, 0) rotate(6deg); }
}

.hero-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .8rem 1rem;
  box-shadow: var(--shadow);
  max-width: 250px;
  font-size: .92rem;
  text-decoration: none;
  color: var(--ink);
}

.hero-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.mini-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  margin: .5rem 0 .3rem;
}

.mini-bar i {
  /* Die Breite setzt assets/js/inhalte.js aus inhalte/finanzierung.md */
  display: block;
  height: 100%;
  width: 0;
  transition: width .9s cubic-bezier(.2, .7, .2, 1);
  background: linear-gradient(90deg, var(--petrol), var(--dunkelgruen));
  border-radius: 99px;
  transform-origin: left;
  animation: grow 1.4s .3s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

  .hero-art {
    padding: 1.2rem .6rem 1.6rem;
  }

  .px.c {
    left: -8px;
  }

  .hero-card {
    right: .2rem;
  }
}

/* Kacheln */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .8rem;
  padding: 1.2rem 0 0;
}

.tile {
  --tb: var(--pink);
  --ti: #fff;
  background: var(--tb);
  color: var(--ti);
  border-radius: var(--r);
  padding: 1rem;
  min-height: 150px;
  display: grid;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.15;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), border-radius .22s ease, box-shadow .22s ease;
  flex: 1;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: .7rem;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-5px) rotate(-1.2deg);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.tile svg {
  width: 30px;
  height: 30px;
  transition: transform .22s ease;
}

.tile:hover svg {
  transform: translateX(5px);
}

.tile.t2 { --tb: var(--weinrot); }
.tile.t3 { --tb: var(--hellgruen); --ti: #1d1d1b; }
.tile.t4 { --tb: var(--petrol); }
.tile.t5 { --tb: var(--tuerkis); --ti: #1d1d1b; }
.tile.t6 { --tb: var(--dunkelgruen); }

@media (max-width: 980px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Abschnitte */
section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.sec-head {
  display: grid;
  gap: .9rem;
  margin-bottom: 2rem;
}

.sec-head .kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--c, var(--pink));
  flex: none;
}

.sec-head p {
  color: var(--muted);
  font-size: 1.12rem;
}

/* Zwischenüberschrift eines Unterbereichs */
.sec-head h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Kopf ohne Abstand nach unten, wenn der Abstand schon vom umgebenden Raster kommt */
.sec-head.flush {
  margin: 0;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 1.1rem;
}

/* Raster mit engerem Abstand */
.grid.tight {
  gap: .9rem;
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 920px) {
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .g2,
  .g3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem;
  display: grid;
  gap: .7rem;
  align-content: start;
}

.band .card {
  background: var(--bg);
}

.card.top {
  border-top: 6px solid var(--c, var(--pink));
}

.card.top > .chip {
  justify-self: start;
}

.card ul + h3 {
  margin-top: .8rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card li strong {
  color: var(--ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-width: 0;
}

.meta li {
  max-width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 2rem;
  padding: .25rem .75rem;
  line-height: 1.3;
  border-radius: 99px;
  white-space: normal;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .9rem;
  border: 1px solid var(--line);
}

.facts {
  display: grid;
  gap: .35rem;
}

.facts div {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: .6rem;
  font-size: .98rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Auf schmalen Bildschirmen steht der Name über dem Wert. Die Regel muss hinter den
   Grundregeln stehen. Im Entwurf stand sie davor und blieb deshalb wirkungslos. */
@media (max-width: 480px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.haus-top .facts {
  margin-top: .4rem;
}

dl {
  margin: 0;
}

.bullets {
  display: grid;
  gap: .5rem;
}

.bullets li {
  padding-left: 1.4rem;
  position: relative;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--c, var(--petrol));
}

.sub {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.1rem;
}

/* dasdigihaus */
.haus {
  background: var(--surface);
  border-block: 1px solid var(--line);
  position: relative;
}

.haus-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* Die Blöcke des Bereichs dasdigihaus stehen mit großem Abstand untereinander */
.haus > .wrap {
  display: grid;
  gap: clamp(2.2rem, 5vw, 3.6rem);
}

.logo-plate {
  background: #fff;
  border-radius: var(--r);
  padding: 1rem 1.4rem;
  display: inline-block;
  border: 1px solid var(--line);
  width: min(340px, 100%);
}

.plan {
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.plan figcaption,
.photo figcaption {
  font-size: .9rem;
  color: var(--muted);
  padding: .55rem .9rem;
  background: var(--surface-2);
}

figure {
  margin: 0;
}

@media (max-width: 860px) {
  .haus-top {
    grid-template-columns: 1fr;
  }
}

.finance {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: 1.3rem;
}

.fin-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}

.fin-total strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-variant-numeric: tabular-nums;
}

.fin-bar {
  display: flex;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  gap: 3px;
}

.fin-bar span {
  display: block;
  height: 100%;
  flex: 0 0 var(--w);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

/* Wie breit die Stücke des Balkens sind (--w), setzt assets/js/inhalte.js aus inhalte/finanzierung.md */
.fin-bar .s1 {
  background: var(--petrol);
}

.fin-bar .s2 {
  background: var(--dunkelgruen);
  transition-delay: .25s;
}

/* Spenden: eigenes Stück zwischen Eigenleistung und dem offenen Rest. Erscheint erst, wenn welche eingetragen sind. */
.fin-bar .sp {
  background: var(--hellgruen);
  transition-delay: .4s;
}

.fin-bar .s3 {
  flex: 1 1 0;
  background: repeating-linear-gradient(135deg, var(--pink) 0 10px, color-mix(in srgb, var(--pink) 72%, #fff) 10px 20px);
  transition-delay: .5s;
}

.fin-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Mit Spenden hat die Legende vier Einträge statt drei */
.fin-legend.mit-spenden {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .fin-legend.mit-spenden {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .fin-legend.mit-spenden {
    grid-template-columns: 1fr;
  }
}

.fin-legend li {
  display: grid;
  gap: .15rem;
  border-left: 6px solid var(--c);
  padding-left: .8rem;
}

.fin-legend strong {
  font-family: var(--display);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.fin-legend li > span {
  color: var(--muted);
  font-size: .96rem;
}

@media (max-width: 620px) {
  .fin-legend {
    grid-template-columns: 1fr;
  }
}

.donate {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
  align-items: start;
}

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

.donate-box {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: 1.2rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0;
  margin-bottom: .7rem;
}

/* „2. Überweisen“ sieht aus wie die Legende „1. Betrag wählen“ */
.donate-box h3 {
  font-size: 1.15rem;
  margin-bottom: .7rem;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}

.amounts label {
  position: relative;
  display: block;
}

.amounts input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.amounts span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  font: 600 1.2rem var(--display);
  font-variant-numeric: tabular-nums;
  transition: transform .15s ease, background .15s ease;
}

.amounts input:hover + span {
  transform: translateY(-2px);
}

.amounts input:checked + span {
  background: var(--cta-bg);
  color: var(--cta-ink);
  border-color: var(--cta-bg);
}

.amounts input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 460px) {
  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: grid;
  gap: .35rem;
}

.field label {
  font-weight: 700;
  font-size: .98rem;
}

.field input {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: .7rem .9rem;
  min-height: 48px;
  width: 100%;
}

.field input:focus-visible {
  border-color: var(--ink);
}

.hint {
  font-size: .9rem;
  color: var(--muted);
}

.pay {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem;
}

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

.pay dl {
  display: grid;
  gap: .55rem;
}

.pay dl div {
  display: grid;
  gap: .05rem;
}

.pay dt {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.pay dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.copy {
  font: 400 .85rem var(--body);
  min-height: 32px;
  padding: .15rem .7rem;
  border-radius: 99px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.copy:hover {
  background: var(--surface-2);
}

.qr {
  display: grid;
  gap: .4rem;
  justify-items: center;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  max-width: 170px;
}

.qr-img {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  line-height: 0;
}

.qr-img svg {
  width: 148px;
  height: 148px;
  display: block;
}

.status {
  min-height: 1.4em;
  font-size: .95rem;
  color: var(--link);
  font-weight: 700;
}

/* IoT */
/* Termine */
.timeline {
  display: grid;
  gap: .7rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.band details {
  background: var(--bg);
}

summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font: 600 1.2rem var(--display);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex: none;
  margin-right: .3rem;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

.news {
  padding: 0 1.3rem 1.2rem;
  display: grid;
  gap: .9rem;
}

.news > li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.news .when {
  color: var(--muted);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

.news p {
  color: var(--muted);
}

.news-body {
  display: grid;
  gap: .5rem;
}

@media (max-width: 620px) {
  .news > li {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
}

/* Verein */
/* Fuß */
footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: .98rem;
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.foot-brand {
  display: grid;
  gap: .8rem;
  align-content: start;
}

.foot-cta {
  justify-self: center;
}

.foot > nav {
  justify-self: end;
}

.foot .foot-legal {
  display: grid;
  gap: .2rem;
  justify-items: end;
}

@media (max-width: 760px) {
  .foot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .foot > * {
    justify-self: center !important;
  }

  .foot .foot-legal {
    justify-items: center;
  }
}

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

.foot ul {
  display: grid;
  gap: .15rem;
}

.foot li a {
  display: inline-block;
  padding: .35rem 0;
}

.legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* Wechsel von Farbe und Weiß: nur die drei dunklen Logofarben als Flächen,
   dazwischen weiße Abschnitte. Die hellen Logofarben bleiben kleine Akzente. */
main section,
main section.band,
main section.haus {
  border-block: 0;
  background: #fff;
  color: var(--ink);
}

.on-dark {
  --ink: #fff;
  --muted: #f4f7f6;
  --link: #fff;
  --line: rgba(255, 255, 255, .45);
  --focus: #fff;
  --cta-bg: #fff;
  --cta-ink: #1d1d1b;
}

main section[aria-labelledby="h-warum"] {
  background: #eef3f2;
}

main #erwachsene {
  background: var(--petrol);
}

main #iot {
  background: var(--dunkelgruen);
}

main #verein {
  background: var(--weinrot);
}

main .on-dark .dot {
  background: #fff;
}

.card,
.finance,
.donate-box,
details,
.plan,
.photo,
.logo-plate,
.chip {
  --ink: #1d1d1b;
  --muted: #4c585b;
  --line: #d5dedd;
  --link: var(--petrol);
  --focus: #1d1d1b;
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f0f4f3;
  --cta-bg: var(--weinrot);
  --cta-ink: #fff;
  color: var(--ink);
}

.card,
.finance,
details {
  box-shadow: 0 1px 2px rgba(27, 33, 35, .05), 0 8px 22px rgba(27, 33, 35, .07);
}

.on-dark .card {
  border-color: transparent;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 10px 24px rgba(0, 0, 0, .16);
}

.photo {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.why {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.why-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 12px 30px rgba(27, 33, 35, .18);
}

.squares {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.squares li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}

.sq {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--c);
  box-shadow: 0 4px 0 rgba(27, 33, 35, .14);
  margin-top: .15rem;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.squares li:hover .sq {
  transform: rotate(-8deg) scale(1.08);
}

.squares h3 {
  font-size: 1.45rem;
  margin-bottom: .3rem;
}

.squares p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

  .why-img img {
    aspect-ratio: 4/3;
  }
}

.mint {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  gap: 1.8rem;
  justify-items: center;
}

.mint p {
  max-width: none;
}

.mintmap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(3rem, 9vw, 7.5rem);
  width: min(100%, 980px);
}

.mint-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.mm-col {
  display: grid;
  gap: .95rem;
  position: relative;
}

.mm-col li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  transition: opacity .6s ease calc(.5s + var(--i)*70ms), color .2s ease;
}

/* Die Begriffe links und rechts sind abwechselnd an der Reihe: links 0, 2, 4 …, rechts 1, 3, 5 … */
.mm-left > li { --i: calc(var(--nr)*2); }
.mm-right > li { --i: calc(var(--nr)*2 + 1); }

/* Farbe des Quadrats vor jedem Begriff und seines Signals, in Dreierfolge */
.mm-left > li:nth-child(3n+1) { --hl: var(--pink); }
.mm-left > li:nth-child(3n+2) { --hl: var(--tuerkis); }
.mm-left > li:nth-child(3n) { --hl: var(--dunkelgruen); }
.mm-right > li:nth-child(3n+1) { --hl: var(--hellgruen); }
.mm-right > li:nth-child(3n+2) { --hl: var(--weinrot); }
.mm-right > li:nth-child(3n) { --hl: var(--petrol); }

.mm-left li {
  justify-content: flex-end;
  text-align: right;
}

.sqm {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: var(--hl);
  flex: none;
  transition: transform .2s ease;
}

.mm-hub {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  font-size: 1.3rem;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 4px 0 rgba(27, 33, 35, .14);
}

.ln {
  fill: none;
  stroke: rgba(27, 33, 35, .28);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s cubic-bezier(.3, .6, .2, 1) calc(var(--i)*70ms);
}

.sig {
  fill: none;
  stroke: var(--hl);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 9 100;
  stroke-dashoffset: 10;
  opacity: 0;
}

.js .mint:not(.in) .ln {
  stroke-dashoffset: 100;
}

.js .mint:not(.in) .mm-col li {
  opacity: .2;
}

.mint.in .sig {
  animation: sig 9.6s linear infinite;
  animation-delay: calc(1.6s + var(--i)*.8s);
}

.mint.in .sqm {
  animation: pingsq 9.6s linear infinite;
  animation-delay: calc(2.2s + var(--i)*.8s);
}

.mm-col li:hover .sqm {
  transform: scale(1.5) rotate(12deg);
}

@keyframes sig {
  0% { stroke-dashoffset: 10; opacity: 1; }
  7% { stroke-dashoffset: -100; opacity: 1; }
  7.1%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes pingsq {
  0%, 14%, 100% { transform: none; box-shadow: 0 0 0 0 transparent; }
  2% { transform: scale(1.8) rotate(12deg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hl) 30%, transparent); }
  8% { transform: scale(1.3); box-shadow: 0 0 0 9px transparent; }
}

.mint-sub {
  color: var(--muted);
  font-size: 1.08rem;
  text-align: center;
}

@media (max-width: 760px) {
  .mintmap {
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 1.3rem;
  }

  .mint-svg {
    display: none;
  }

  .mm-hub {
    grid-column: 1/-1;
    grid-row: 1;
    justify-self: start;
  }

  .mm-left li {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: left;
  }

  .mm-col li {
    font-size: 1rem;
  }

  .mint {
    justify-items: start;
  }

  .mint-sub {
    text-align: left;
  }
}

/* Auf sehr schmalen Bildschirmen passen lange Begriffe wie „Selbstwirksamkeit“
   nicht mehr in eine halbe Zeile. Dann dürfen sie getrennt werden. */
@media (max-width: 345px) {
  .mintmap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .mm-col li {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-col li {
    opacity: 1 !important;
  }

  .ln {
    stroke-dashoffset: 0 !important;
  }
}

.offer-logo {
  height: 92px;
  display: flex;
  align-items: center;
  margin-bottom: .2rem;
}

.offer-logo img {
  max-height: 100%;
  width: auto;
  max-width: min(100%, 250px);
  object-fit: contain;
}

.card.has-img {
  overflow: hidden;
}

.card-img {
  width: calc(100% + 2.8rem);
  max-width: none;
  margin: -1.4rem -1.4rem .5rem;
  aspect-ratio: 733/380;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.card.has-img:hover .card-img {
  transform: scale(1.04);
}

/* Mitlaufendes Haus: führt direkt zum Spenden */
.haus-fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: 22px;
  z-index: 40;
  display: grid;
  justify-items: center;
  gap: .25rem;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
}

.haus-fab svg {
  width: 60px;
  height: 60px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(27, 33, 35, .28));
  animation: hausbob 3.2s ease-in-out infinite;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.hf-body {
  fill: var(--petrol);
  stroke: #fff;
  stroke-width: 3;
}

.hf-win {
  fill: var(--tuerkis);
  animation: hauslight 3.2s ease-in-out infinite;
}

.haus-fab span {
  font-size: .82rem;
  font-weight: 700;
  background: #fff;
  color: #1d1d1b;
  border: 1.500px solid #1d1d1b;
  border-radius: 99px;
  padding: .1rem .6rem;
  line-height: 1.4;
}

.haus-fab:hover svg,
.haus-fab:focus-visible svg {
  transform: translateY(-4px) rotate(-6deg) scale(1.08);
  animation-play-state: paused;
}

.haus-fab:hover .hf-body,
.haus-fab:focus-visible .hf-body {
  fill: var(--weinrot);
}

.haus-fab.away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

@keyframes hausbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes hauslight {
  0%, 55%, 100% { fill: var(--tuerkis); }
  65%, 90% { fill: var(--hellgruen); }
}

@media (max-width: 520px) {
  .haus-fab svg {
    width: 50px;
    height: 50px;
  }

  .haus-fab {
    bottom: 14px;
  }
}

/* Angebote: Die drei Kacheln sind gleich hoch. Die Beschreibung nimmt den freien Platz,
   damit Alter und Link in allen Kacheln auf einer Höhe stehen. */
.offers .card {
  grid-template-rows: auto auto 1fr;
}

/* Der erste Satz unter dem Logo sagt, was das Angebot ist */
.card .offer-lead {
  color: var(--ink);
  font-weight: 700;
}

/* „Mehr Infos“: Knopf und aufklappbarer Bereich.
   Der Pause-Knopf am Logo-Laufband (.lm-pause) sieht genauso aus. */
.more-btn,
.lm-pause {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 40px;
  padding: .3rem .55rem .3rem .9rem;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 700 .9rem var(--body);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.more-btn:hover,
.lm-pause:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}

.more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.more-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.more-in {
  display: grid;
  gap: .7rem;
  padding-top: .3rem;
}

.js .more-wrap {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .4s cubic-bezier(.2, .7, .2, 1), visibility 0s .4s;
}

.js .more-wrap.open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .4s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}

.js .more-wrap > .more-in {
  overflow: hidden;
  min-height: 0;
}

html:not(.js) .more-btn {
  display: none;
}

/* Ausstattung dasdigihaus: Icons zeichnen sich, dann geht reihum eine Maschine „an“ */
.equip2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}

/* Alle neun in einer Zeile brauchen zusammen 985 px. Das passt erst ab etwa 1040 px Bildschirmbreite. */
@media (min-width: 1060px) {
  .equip2 {
    grid-template-columns: repeat(9, 1fr);
  }
}

/* Drei Kacheln mit ihren Beschriftungen brauchen zusammen 374 px. Darunter zwei je Zeile. */
@media (max-width: 430px) {
  .equip2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.equip2 li {
  align-content: start;
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: 1.1rem .6rem 1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1.2), border-color .2s ease;
  transition-delay: calc(var(--nr)*80ms), calc(var(--nr)*80ms), 0s;
}

.eq-ico {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: var(--c);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(27, 33, 35, .14);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.eq-ico svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--ic);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Auf Hellgrün und Türkis ist das Icon dunkel, auf den übrigen Farben weiß */
.equip2 > li,
.perks > li {
  --ic: #fff;
}

.equip2 > .c-hellgruen,
.equip2 > .c-tuerkis,
.perks > .c-hellgruen,
.perks > .c-tuerkis {
  --ic: #1d1d1b;
}

.eq-ico svg * {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s cubic-bezier(.4, .1, .2, 1);
  transition-delay: calc(.25s + var(--nr)*110ms);
}

.eq-lab {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.25;
}

.js .equip2:not(.in) li {
  opacity: .25;
  transform: translateY(14px) scale(.94);
}

.js .equip2:not(.in) .eq-ico svg * {
  stroke-dashoffset: 1;
}

.equip2 li:hover {
  border-color: var(--ink);
}

.equip2 li:hover .eq-ico {
  transform: translateY(-4px);
}

/* Jede Maschine „arbeitet“ leise vor sich hin */
.eq-ico g,
.eq-ico .a-print,
.eq-ico .a-smoke,
.eq-ico .a-rays,
.eq-ico .a-blink,
.eq-ico .a-beam,
.eq-ico .a-spark,
.eq-ico .a-needle {
  transform-box: fill-box;
  transform-origin: center;
}

.equip2.in .a-nozzle {
  animation: nozzle 2.6s ease-in-out infinite 1.6s;
}

.equip2.in .a-print {
  transform-origin: center bottom;
  animation: print 5.2s ease-in-out infinite 1.6s;
}

.equip2.in .a-smoke {
  animation: smoke 2.4s ease-out infinite 1.8s;
}

.equip2.in .a-rays {
  animation: rays 2s ease-in-out infinite 2s;
}

.equip2.in .a-blink {
  animation: blink 1.1s steps(1) infinite 2.2s;
}

.equip2.in .a-beam {
  animation: beam .9s steps(2) infinite 2.1s;
}

.equip2.in .a-spark {
  animation: spark .9s ease-out infinite 2.1s;
}

.equip2.in .a-turn {
  animation: turn 3s ease-in-out infinite 2.4s;
}

.equip2.in .a-needle {
  animation: needle .7s ease-in-out infinite 2.3s;
}

.equip2.in .a-sway {
  transform-origin: 15% 85%;
  animation: sway 3.6s ease-in-out infinite 2.5s;
}

@keyframes nozzle {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
}

@keyframes print {
  0% { transform: scaleY(.25); }
  80%, 100% { transform: scaleY(1); }
}

@keyframes smoke {
  0% { transform: translateY(1px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-4px); opacity: 0; }
}

@keyframes rays {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes beam {
  0% { opacity: 1; }
  50% { opacity: .35; }
}

@keyframes spark {
  0% { transform: scale(.6) rotate(0); opacity: 1; }
  100% { transform: scale(1.3) rotate(45deg); opacity: .2; }
}

@keyframes turn {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

@keyframes needle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .equip2 li {
    opacity: 1 !important;
    transform: none !important;
  }

  .eq-ico svg * {
    stroke-dashoffset: 0 !important;
  }
}

/* IoT: Datenfluss Sensor -> Gateway -> Server -> Dashboard */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
  margin: .5rem 0 3rem;
  counter-reset: f;
}

.flow li {
  position: relative;
  display: grid;
  gap: .45rem;
  align-content: start;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.flow li:nth-child(2) {
  transition-delay: .12s;
}

.flow li:nth-child(3) {
  transition-delay: .24s;
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 76px;
  right: -3.2rem;
  height: 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--hellgruen) 0 8px, transparent 8px 22px);
  opacity: .95;
  animation: packets 1s linear infinite;
}

.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 76px;
  right: -3.2rem;
  height: 2px;
  background: rgba(255, 255, 255, .3);
}

@keyframes packets {
  from { background-position: 0 0; }
  to { background-position: 22px 0; }
}

.flow h4 {
  font-size: 1.15rem;
  margin-top: .3rem;
}

.flow p {
  color: var(--muted);
  font-size: .98rem;
}

.fico {
  width: 64px;
  height: 64px;
  border-radius: 19px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
  position: relative;
}

.fico svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--k);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Die drei Stationen des Datenflusses haben je eine Farbe */
.flow > li:nth-child(1) { --k: var(--pink); }
.flow > li:nth-child(2) { --k: var(--weinrot); }
.flow > li:nth-child(3) { --k: var(--dunkelgruen); }

.fico .f-dust circle {
  fill: var(--k);
  stroke: none;
  animation: dust 2.4s ease-out infinite;
}

.fico .f-dust circle:nth-child(2) {
  animation-delay: .8s;
}

.fico .f-dust circle:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes dust {
  0% { transform: translateY(3px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-3px); opacity: 0; }
}

@keyframes wave {
  0%, 100% { opacity: .15; }
  40% { opacity: 1; }
}

.fico .f-led {
  fill: var(--hellgruen);
  stroke: none;
  animation: led .9s steps(1) infinite;
}

.fico .f-led2 {
  animation-delay: .45s;
}

@keyframes led {
  0% { opacity: 1; }
  50% { opacity: .15; }
}

.fico .f-line {
  stroke-dasharray: 1;
  animation: chart 3s ease-in-out infinite;
}

@keyframes chart {
  0% { stroke-dashoffset: 1; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}

.js .flow:not(.in) li {
  opacity: .25;
  transform: translateY(14px);
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .flow li {
    grid-template-columns: 64px 1fr;
    column-gap: 1rem;
    row-gap: .1rem;
  }

  .flow .fico {
    grid-row: span 2;
  }

  .flow h4 {
    margin-top: .4rem;
  }

  .flow li:not(:last-child)::after {
    top: 72px;
    left: 29px;
    right: auto;
    width: 6px;
    height: 1.6rem;
    background: repeating-linear-gradient(180deg, var(--hellgruen) 0 8px, transparent 8px 22px);
    animation-name: packetsv;
  }

  .flow li:not(:last-child)::before {
    top: 72px;
    left: 31px;
    right: auto;
    width: 2px;
    height: 1.6rem;
  }
}

@keyframes packetsv {
  from { background-position: 0 0; }
  to { background-position: 0 22px; }
}

.iot-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 3rem;
}

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

.iot-fig {
  background: #fff;
  color: #1d1d1b;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 14px 30px rgba(0, 0, 0, .18);
  display: grid;
  align-content: start;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.iot-fig img {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
  transition: transform 6s ease;
}

.iot-fig:hover img {
  transform: scale(1.06);
}

.iot-fig figcaption {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.3rem 1.3rem;
  color: #4c585b;
  font-size: .98rem;
}

.iot-fig figcaption b {
  color: #1d1d1b;
}

.iot-screen {
  background: #181b1f;
}

.iot-screen figcaption {
  background: #fff;
}

.win {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .6rem .9rem;
  background: #22262b;
  color: #c9d1d9;
  font-size: .82rem;
}

.win i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.win i:nth-child(2) {
  background: #febc2e;
}

.win i:nth-child(3) {
  background: #28c840;
}

.win span {
  margin-left: .5rem;
}

.iot-screen:hover img {
  transform: none;
}

.iot-feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

@media (max-width: 900px) {
  .iot-feats {
    grid-template-columns: 1fr;
  }
}

.iot-feats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.iot-feats h4 {
  font-size: 1.12rem;
  margin-bottom: .25rem;
}

.iot-feats p {
  color: var(--muted);
  font-size: .98rem;
}

.fi {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .55);
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease;
}

.fi svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iot-feats li:hover .fi {
  transform: rotate(-6deg) scale(1.06);
  background: rgba(255, 255, 255, .12);
}

.bbb {
  margin: -1.4rem -1.4rem .5rem;
  background: #1f2a44;
  aspect-ratio: 733/380;
  display: grid;
  place-items: center;
}

.bbb svg {
  width: auto;
  height: 78%;
}

.b-frame {
  fill: #2b3a5e;
  stroke: #4d6aa8;
  stroke-width: 1.5;
}

.b-tiles rect {
  fill: #3c5389;
  animation: speak 3s ease-in-out infinite;
  animation-delay: calc(var(--nr)*.5s);
}

@keyframes speak {
  0%, 16%, 100% { fill: #3c5389; stroke: none; }
  4%, 12% { fill: #46609c; stroke: var(--hellgruen); stroke-width: 2; }
}

.same-h {
  align-items: stretch;
}

/* Im Bereich Verein braucht die rechte Karte allein 442 px.
   Bis 760 px stehen die beiden Karten deshalb untereinander statt nebeneinander. */
@media (max-width: 760px) {
  #verein .g2 {
    grid-template-columns: 1fr;
  }
}

.same-h .card {
  align-content: start;
}

/* Aktionen und Kooperationen: kleine Illustrationen je Kachel */
.act-art {
  margin: -1.4rem -1.4rem .5rem;
  height: 170px;
  background: var(--b);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

/* Hintergrund der drei Illustrationen */
.act-week { --b: var(--pink); }
.act-vox { --b: var(--dunkelgruen); }
.act-year { --b: var(--petrol); }

.week {
  display: flex;
  gap: 6px;
}

.week span {
  width: 34px;
  height: 42px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font: 600 .9rem var(--display);
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.week .fr {
  background: #fff;
  color: var(--pink);
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
}

.acts.in .week .fr {
  animation: frpulse 2.4s ease-in-out infinite 1s;
}

@keyframes frpulse {
  0%, 100% { transform: translateY(-6px) scale(1.12); }
  50% { transform: translateY(-10px) scale(1.18); }
}

.card .act-time {
  position: absolute;
  bottom: 14px;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  margin: 0;
}

.act-week {
  align-content: center;
  gap: 0;
}

.vox {
  position: relative;
  width: calc(9*22px);
  height: calc(5*22px);
}

.vox i,
.vox .drop {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  left: calc(var(--x)*22px);
  bottom: calc(var(--y)*22px);
  background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .3s ease;
  transition-delay: calc(var(--nr)*45ms);
}

.js .acts:not(.in) .vox i {
  transform: translateY(-90px);
  opacity: 0;
}

.vox .drop {
  --x: 4;
  --y: 2;
  background: var(--tuerkis);
  opacity: 0;
  transition: none;
}

/* Die Baustein-Illustration: Spalte (--x), Höhe (--y) und Farbe jedes der 26 Bausteine,
   spaltenweise von links nach rechts und in jeder Spalte von unten nach oben */
.vox i:nth-child(1) { --x: 0; --y: 0; --c: #305c0c; }
.vox i:nth-child(2) { --x: 0; --y: 1; --c: var(--hellgruen); }
.vox i:nth-child(3) { --x: 1; --y: 0; --c: #305c0c; }
.vox i:nth-child(4) { --x: 1; --y: 1; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(5) { --x: 1; --y: 2; --c: var(--hellgruen); }
.vox i:nth-child(6) { --x: 2; --y: 0; --c: #305c0c; }
.vox i:nth-child(7) { --x: 2; --y: 1; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(8) { --x: 2; --y: 2; --c: var(--hellgruen); }
.vox i:nth-child(9) { --x: 3; --y: 0; --c: #305c0c; }
.vox i:nth-child(10) { --x: 3; --y: 1; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(11) { --x: 3; --y: 2; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(12) { --x: 3; --y: 3; --c: var(--hellgruen); }
.vox i:nth-child(13) { --x: 4; --y: 0; --c: #305c0c; }
.vox i:nth-child(14) { --x: 4; --y: 1; --c: var(--hellgruen); }
.vox i:nth-child(15) { --x: 5; --y: 0; --c: #305c0c; }
.vox i:nth-child(16) { --x: 5; --y: 1; --c: var(--hellgruen); }
.vox i:nth-child(17) { --x: 6; --y: 0; --c: #305c0c; }
.vox i:nth-child(18) { --x: 6; --y: 1; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(19) { --x: 6; --y: 2; --c: var(--hellgruen); }
.vox i:nth-child(20) { --x: 7; --y: 0; --c: #305c0c; }
.vox i:nth-child(21) { --x: 7; --y: 1; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(22) { --x: 7; --y: 2; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(23) { --x: 7; --y: 3; --c: var(--hellgruen); }
.vox i:nth-child(24) { --x: 8; --y: 0; --c: #305c0c; }
.vox i:nth-child(25) { --x: 8; --y: 1; --c: rgba(255, 255, 255, .28); }
.vox i:nth-child(26) { --x: 8; --y: 2; --c: var(--hellgruen); }

.acts.in .vox .drop {
  animation: drop 3.2s cubic-bezier(.5, 0, .7, 1) infinite 2.4s;
}

@keyframes drop {
  0% { transform: translateY(-110px); opacity: 0; }
  10% { opacity: 1; }
  35% { transform: translateY(0); opacity: 1; }
  38% { transform: translateY(-6px); }
  42%, 85% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

.act-year {
  align-content: center;
  gap: 1.1rem;
}

.months {
  display: flex;
  gap: 4px;
}

.months span {
  width: 18px;
  text-align: center;
  font: 600 .8rem var(--display);
  opacity: .6;
  padding-bottom: 9px;
  position: relative;
}

.months span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
}

.acts.in .months span {
  animation: month 6s steps(1) infinite;
  animation-delay: calc(var(--nr)*.5s);
}

.acts.in .months span::after {
  animation: monthdot 6s ease-out infinite;
  animation-delay: calc(var(--nr)*.5s);
}

@keyframes month {
  0% { opacity: 1; }
  8.3%, 100% { opacity: .6; }
}

@keyframes monthdot {
  0% { background: var(--hellgruen); transform: scale(1.6); }
  8.3% { background: var(--hellgruen); transform: scale(1); }
  20%, 100% { background: rgba(255, 255, 255, .35); }
}

.ticker {
  position: relative;
  height: 2.2rem;
  width: 100%;
}

.ticker span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 1.25rem var(--display);
  opacity: 0;
}

.ticker span:first-child {
  opacity: 1;
}

.acts.in .ticker span {
  animation: tick 10s infinite;
  animation-delay: calc(var(--nr)*2.5s);
}

.acts.in .ticker span:first-child {
  opacity: 0;
}

@keyframes tick {
  0% { opacity: 0; transform: translateY(12px); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-12px); }
}

.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .4rem;
}

.partner-chips a,
.partner-chips .pc {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  padding: .35rem 1rem .35rem .4rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: border-color .2s ease, transform .2s ease;
}

.partner-chips a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.pc-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--weinrot);
}

.partner-chips li:nth-child(2) .pc-ico {
  background: var(--dunkelgruen);
}

.pc-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .ticker span {
    opacity: 0 !important;
  }

  .ticker span:first-child {
    opacity: 1 !important;
  }

  .vox i {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Icons in den Kacheln oben */
.tiles li {
  display: flex;
}

.tile-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}

.tile.t3 .tile-ico,
.tile.t5 .tile-ico {
  background: rgba(27, 33, 35, .12);
}

.tile-ico svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile:hover .tile-ico,
.tile:focus-visible .tile-ico {
  transform: rotate(-10deg) scale(1.12);
}

/* Möglichmacher: beide Spalten gleich hoch, das Foto füllt den Rest */
@media (min-width: 901px) {
  .donate {
    align-items: stretch;
  }

  .donate > .grid {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }

  .donate > .grid > .photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
  }

  .donate > .grid > .photo img {
    flex: 1 1 0;
    min-height: 0;
    height: 0 !important;
    aspect-ratio: auto !important;
  }

  .donate-box {
    align-content: start;
  }
}

/* Partner: Glastür, auf der nach und nach Logos erscheinen */
.partner-stage {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: stretch;
}

.perks-col {
  display: grid;
  gap: 1.6rem;
  align-content: center;
}

.perks-cta {
  margin: 0;
}

@media (min-width: 861px) {
  .door {
    align-content: stretch;
  }

  .door-frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 400px;
  }
}

@media (max-width: 860px) {
  .partner-stage {
    grid-template-columns: 1fr;
  }
}

.door {
  margin: 0;
  display: grid;
  gap: .7rem;
  justify-items: center;
}

.door-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 3/4.1;
  background: var(--petrol);
  border-radius: 20px 20px 6px 6px;
  padding: 16px;
  box-shadow: 0 16px 34px rgba(27, 33, 35, .18);
}

.door-glass {
  position: relative;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(160deg, #e9f6f8, #cfeaee);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px 18px;
  gap: 16px;
}

.door-title {
  font: 600 1.15rem var(--display);
  color: #1d1d1b;
  text-align: center;
  letter-spacing: .01em;
}

.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 10px;
}

.slot {
  border: 2px dashed rgba(27, 33, 35, .25);
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
}

.slot b {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  background: var(--c);
  color: #fff;
  font: 600 .85rem var(--display);
  transform: scale(.4);
  opacity: 0;
}

.slot:nth-child(3) b,
.slot:nth-child(5) b {
  color: #1d1d1b;
}

.partner-stage.in .slot b {
  animation: logo 12s cubic-bezier(.3, 1.4, .5, 1) infinite;
  animation-delay: calc(.6s + var(--nr)*1.2s);
}

@keyframes logo {
  0% { transform: scale(.4); opacity: 0; }
  4% { transform: scale(1); opacity: 1; }
  80% { transform: scale(1); opacity: 1; }
  88%, 100% { transform: scale(.6); opacity: 0; }
}

.glare {
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}

.partner-stage.in .glare {
  animation: glare 6s ease-in-out infinite 1.5s;
}

@keyframes glare {
  0% { left: -60%; }
  35%, 100% { left: 130%; }
}

.door-handle {
  position: absolute;
  right: 5px;
  top: 50%;
  width: 6px;
  height: 56px;
  border-radius: 3px;
  background: #e7ecea;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}

.perks {
  display: grid;
  gap: 1.4rem;
}

.perks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--nr)*.12s);
}

.js .partner-stage:not(.in) .perks li {
  opacity: .25;
  transform: translateX(24px);
}

.perks h4 {
  font-size: 1.15rem;
  margin-bottom: .25rem;
}

.perks p {
  color: var(--muted);
}

.pk-ico {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--c);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(27, 33, 35, .14);
}

.pk-ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ic, #fff);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.pk-ico g {
  transform-box: fill-box;
  transform-origin: center;
}

.partner-stage.in .pk-eye {
  animation: blinkeye 4s ease-in-out infinite 1s;
}

.partner-stage.in .pk-cap {
  animation: captoss 3.6s ease-in-out infinite 1.4s;
}

.partner-stage.in .pk-wave {
  transform-origin: left center;
  animation: hello 2.4s ease-in-out infinite 1.8s;
}

.partner-stage.in .pk-spot {
  animation: spot 2.2s ease-in-out infinite 2.2s;
}

@keyframes blinkeye {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.1); }
}

@keyframes captoss {
  0%, 60%, 100% { transform: none; }
  72% { transform: translateY(-5px) rotate(-12deg); }
  84% { transform: none; }
}

@keyframes hello {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(10deg); }
}

@keyframes spot {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .slot b {
    opacity: 1 !important;
    transform: none !important;
  }

  .perks li {
    opacity: 1 !important;
    transform: none !important;
  }
}

.btn-partner {
  background: var(--petrol);
  color: #fff;
}

.btn-partner:hover {
  background: color-mix(in srgb, var(--petrol) 85%, #000);
}

/* Wer wir sind: Zeitleiste, Ziele, Vorstand */
.vtl {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .9rem;
  position: relative;
  margin: .5rem 0 2.8rem;
  padding-top: 34px;
}

.vtl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}

.vtl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--hellgruen);
  transform-origin: left;
  transition: transform 2.4s cubic-bezier(.4, .1, .2, 1) .2s;
}

.js .vtl:not(.in)::after {
  transform: scaleX(0);
}

.vtl li {
  position: relative;
  display: grid;
  gap: .15rem;
  align-content: start;
  transition: opacity .5s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1);
  transition-delay: calc(.25s + var(--nr)*.32s);
  z-index: 1;
}

.js .vtl:not(.in) li {
  opacity: .2;
  transform: translateY(10px);
}

.tl-dot {
  position: absolute;
  top: -30px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--c);
  box-shadow: 0 0 0 4px var(--weinrot), inset 0 0 0 2px rgba(255, 255, 255, .7);
  z-index: 2;
}

.vtl time {
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.vtl h4 {
  font-size: clamp(.98rem, 1.02vw, 1.12rem);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hellgruen);
}

.vtl p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.4;
}

.vtl .next .tl-dot {
  width: 22px;
  height: 22px;
  top: -32px;
  background: #fff;
  animation: nextpulse 2s ease-out infinite 3s;
}

.vtl .next h4 {
  color: var(--hellgruen);
}

@keyframes nextpulse {
  0% { box-shadow: 0 0 0 4px var(--weinrot), 0 0 0 4px rgba(255, 255, 255, .6); }
  100% { box-shadow: 0 0 0 4px var(--weinrot), 0 0 0 16px rgba(255, 255, 255, 0); }
}

@media (max-width: 980px) {
  .vtl {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 0 0 0 34px;
  }

  .vtl::before,
  .vtl::after {
    left: 12px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

  .vtl::after {
    transform-origin: top;
  }

  .js .vtl:not(.in)::after {
    transform: scaleY(0);
  }

  .tl-dot {
    top: 2px;
    left: -30px;
  }

  .vtl .next .tl-dot {
    top: 0;
    left: -32px;
  }
}

.goals {
  display: grid;
  gap: .9rem;
  margin-top: .3rem;
}

.goals li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: center;
}

.goals h4 {
  font-size: 1.02rem;
}

.goals p {
  font-size: .95rem;
}

.g-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--c);
  display: grid;
  place-items: center;
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}

.g-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.goals li:nth-child(3) .g-ico svg,
.goals li:nth-child(4) .g-ico svg {
  stroke: #1d1d1b;
}

.goals li:hover .g-ico {
  transform: rotate(-10deg) scale(1.1);
}

.team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
  margin-top: .3rem;
}

.team li {
  display: grid;
  justify-items: center;
  gap: .45rem;
  text-align: center;
  transition: opacity .45s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1);
  transition-delay: calc(.2s + var(--nr)*.1s);
}

.av {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--c);
  color: #fff;
  display: grid;
  place-items: center;
  font: 600 1.25rem var(--display);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), border-radius .3s ease;
}

.team li:nth-child(2) .av,
.team li:nth-child(3) .av {
  color: #1d1d1b;
}

.team li:hover .av {
  transform: translateY(-4px) rotate(-6deg);
  border-radius: 50%;
}

.av-name {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.25;
}

.js .card:not(.in) .team li {
  opacity: .2;
  transform: scale(.8);
}

@media (max-width: 520px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Bildung für Erwachsene: Bilder wischen herein, Listen bauen sich auf */
.img-wrap {
  position: relative;
  margin: -1.4rem -1.4rem .5rem;
  overflow: hidden;
}

.img-wrap .card-img {
  margin: 0;
  width: 100%;
  display: block;
  clip-path: inset(0 0 0 0);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), clip-path 1s cubic-bezier(.6, .1, .2, 1) .15s;
}

.js #erwachsene .card:not(.in) .card-img {
  clip-path: inset(0 100% 0 0);
}

.img-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem .35rem .45rem;
  border-radius: 99px;
  background: #fff;
  color: #1d1d1b;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: opacity .5s ease .9s, transform .5s cubic-bezier(.3, 1.4, .5, 1) .9s;
}

.js #erwachsene .card:not(.in) .img-badge {
  opacity: 0;
  transform: translateY(10px);
}

.ib-waves {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--petrol);
  display: grid;
  place-items: center;
}

.ib-waves i {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: 0;
  animation: ibwave 2.4s ease-out infinite;
}

.ib-waves i:nth-child(2) {
  animation-delay: .8s;
}

.ib-waves i:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes ibwave {
  0% { transform: scale(.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ib-swap {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--weinrot);
}

.ib-swap svg {
  position: absolute;
  inset: 4px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: swap 4s ease-in-out infinite;
}

.ib-swap .sw2 {
  animation-delay: -2s;
}

@keyframes swap {
  0%, 40% { opacity: 1; transform: none; }
  50%, 90% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: none; }
}

.ico-list,
.partner-list {
  display: grid;
  gap: .75rem;
}

.ico-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: center;
  color: var(--muted);
}

.il-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c);
  display: grid;
  place-items: center;
}

.il-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-list li:nth-child(3) .il-ico svg {
  stroke: #1d1d1b;
}

.i-core {
  fill: #fff;
  fill-opacity: 0;
  animation: core 1.6s ease-in-out infinite;
}

@keyframes core {
  0%, 100% { fill-opacity: 0; }
  50% { fill-opacity: .9; }
}

.i-check {
  stroke-dasharray: 1;
  animation: check 3s ease-in-out infinite;
}

@keyframes check {
  0% { stroke-dashoffset: 1; }
  30%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.i-w1 {
  animation: wave 1.8s ease-in-out infinite;
}

.i-w2 {
  animation: wave 1.8s ease-in-out infinite .45s;
}

.partner-list li {
  padding: .55rem .8rem;
  border-left: 5px solid var(--c);
  background: #f4f7f6;
  border-radius: 0 10px 10px 0;
  color: #4c585b;
  font-size: .97rem;
}

.partner-list li strong {
  color: #1d1d1b;
}

.ico-list li,
.partner-list li {
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(.5s + var(--nr)*.12s);
}

.js #erwachsene .card:not(.in) .ico-list li,
.js #erwachsene .card:not(.in) .partner-list li {
  opacity: .2;
  transform: translateX(-14px);
}

@media (prefers-reduced-motion: reduce) {
  #erwachsene .card-img {
    clip-path: none !important;
  }

  .img-badge {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mehr Bilder: Fotostreifen, Fotos neben Überschriften, Logo-Laufband */
.photo-strip {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: .9rem;
  margin: 0 0 2rem;
  height: clamp(200px, 24vw, 290px);
}

.photo-strip figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  transition: clip-path .9s cubic-bezier(.6, .1, .2, 1);
  transition-delay: calc(var(--nr)*.15s);
  clip-path: inset(0 0 0 0 round var(--r));
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.photo-strip figure:hover img {
  transform: scale(1.05);
}

.js .photo-strip:not(.in) figure {
  clip-path: inset(100% 0 0 0 round var(--r));
}

@media (max-width: 700px) {
  .photo-strip {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .photo-strip figure:first-child {
    grid-column: 1/-1;
  }

  .photo-strip figure {
    aspect-ratio: 4/3;
  }
}

.head-with-img {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: 2rem;
}

.head-with-img > .sec-head {
  margin: 0;
}

.head-img {
  margin: 0;
  width: clamp(180px, 22vw, 260px);
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  transition: transform .7s cubic-bezier(.3, 1.3, .5, 1), opacity .7s ease;
}

.head-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.head-img:hover {
  transform: rotate(0) scale(1.03);
}

.js .head-img:not(.in) {
  opacity: .2;
  transform: rotate(12deg) scale(.85);
}

@media (max-width: 760px) {
  .head-with-img {
    grid-template-columns: 1fr;
  }

  .head-img {
    width: min(70%, 260px);
  }
}

.logo-marquee {
  overflow: hidden;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Die Spur enthält jedes Logo zweimal und wandert um ihre halbe Breite, dann beginnt sie von vorn.
   Der Abstand rechts gehört dazu: Ohne ihn ist die halbe Breite einen halben Logo-Abstand zu kurz,
   und das Band ruckt bei jedem Umlauf um 24 Pixel.
   Tempo: rund 68 Pixel je Sekunde. Kommt ein Logo dazu, die Dauer um 3 Sekunden verlängern. */
.lm-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  width: max-content;
  animation: marquee 74s linear infinite;
}

.logo-marquee:hover .lm-track,
.logo-marquee.is-paused .lm-track {
  animation-play-state: paused;
}

/* Pause-Knopf direkt unter dem Laufband. Im Markup ist er versteckt, main.js blendet ihn ein
   und setzt beim Klick die Klasse is-paused an Band und Knopf. Das Symbol steht hier links. */
.lm-pause {
  gap: .45rem;
  padding: .3rem .9rem .3rem .65rem;
}

.lm-pause svg {
  width: 18px;
  height: 18px;
}

.lm-pause:not(.is-paused) .lm-ico-play,
.lm-pause.is-paused .lm-ico-pause {
  display: none;
}

.lm-track li {
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
}

.lm-track img {
  height: 64px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s ease, opacity .3s ease;
}

.lm-track li:hover img {
  filter: none;
  opacity: 1;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .lm-track {
    animation: none !important;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 0 1rem;
    row-gap: 1.4rem;
  }

  .lm-track li[aria-hidden] {
    display: none;
  }

  /* Das Band steht dann schon, der Pause-Knopf hätte keine Wirkung */
  .lm-pause {
    display: none;
  }

  .photo-strip figure {
    clip-path: none !important;
  }

  .head-img {
    opacity: 1 !important;
  }
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.8rem;
  margin-top: .3rem;
}

.values li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.values svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  background: var(--hellgruen);
  fill: none;
  stroke: #1d1d1b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.vtl::before,
.vtl::after {
  z-index: 0;
}

/* Zeitstrahl: Datum über dem Punkt, Text darunter */
@media (min-width: 981px) {
  .vtl {
    padding-top: 0;
  }

  .vtl::before,
  .vtl::after {
    top: 36px;
  }

  .vtl time {
    display: block;
    height: 24px;
    margin-bottom: 30px;
  }

  .tl-dot {
    top: 29px;
  }

  .vtl .next .tl-dot {
    top: 27px;
  }
}

/* Zeitstrahl: einheitliche Schriftgrößen */
/* Datenfluss: zentriert in einem Panel, nummeriert */
@media (min-width: 901px) {
  .flow {
    gap: 3.2rem;
  }

  .flow li {
    justify-items: center;
    text-align: center;
  }

  .flow p {
    max-width: 24ch;
  }

  .flow li:not(:last-child)::after {
    left: calc(50% + 46px);
    right: calc(-3.2rem - 50% + 46px);
  }

  .flow li:not(:last-child)::before {
    left: calc(50% + 46px);
    right: calc(-3.2rem - 50% + 46px);
  }
}

/* Echtes Logo */
.brand .brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

footer .brand .brand-logo {
  height: 46px;
}

footer .brand {
  margin: 0;
}

@media (max-width: 480px) {
  .brand .brand-logo {
    height: 32px;
  }
}

/* Rechtstexte und 404-Seite (eigene Seiten: impressum/, datenschutzerklaerung/, 404.html) */
.legal-hero {
  background: var(--weinrot);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(4rem, 8vw, 5.5rem);
}

.legal-hero .crumb {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  opacity: .9;
}

.legal-hero .crumb:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-hero .crumb svg {
  width: 18px;
  height: 18px;
}

.legal-wrap {
  width: min(820px, 100% - 2.5rem);
  margin: -3rem auto clamp(3rem, 7vw, 5rem);
  position: relative;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 2px 0 rgba(27, 33, 35, .06), 0 18px 40px rgba(27, 33, 35, .08);
  display: grid;
  gap: 1.8rem;
}

/* minmax(0,1fr) und overflow-wrap: Ein langes Wort darf die Karte auf schmalen Bildschirmen nicht aufweiten */
.legal-card,
.legal-block {
  grid-template-columns: minmax(0, 1fr);
  overflow-wrap: break-word;
}

.legal-card h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-top: -.2rem;
}

.legal-block {
  display: grid;
  gap: .75rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.legal-card h1 + .legal-block,
.legal-toc + .legal-block {
  border-top: 0;
  padding-top: 0;
}

.legal-block h2 {
  font-size: 1.35rem;
  color: var(--weinrot);
}

.legal-block h3 {
  font-size: 1.1rem;
  margin-top: .6rem;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  max-width: none;
}

.legal-block ul {
  list-style: none;
  display: grid;
  gap: .45rem;
  padding: 0;
}

.legal-block ul li {
  position: relative;
  padding-left: 1.4rem;
}

.legal-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--petrol);
}

.legal-block a {
  overflow-wrap: anywhere;
}

.legal-source {
  font-size: .9rem;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .3rem .9rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}

.legal-toc a:hover {
  border-color: var(--ink);
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a::before {
  content: counter(toc) ".";
  margin-right: .35rem;
  color: var(--weinrot);
}

.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

/* Schalter „Meine Besuche nicht zählen“ in der Datenschutzerklärung, bedient von assets/js/statistik.js */
.opt-out {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
}

/* /Rechtstexte */
/* Bewegung: Ruhezustand bleibt sichtbar, Inhalte gleiten nur nach */
.reveal {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.js .reveal:not(.in) {
  opacity: .3;
  transform: translateY(26px);
}

.js .fin-bar:not(.in) span {
  transform: scaleX(0);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .fin-bar span {
    transform: none !important;
  }
}
