/*
 * Template "hup" (Kindtemplate von Cassiopeia) für Hafensänger & Puffmusiker e.V.
 * Leitidee: dunkel, kräftig und herzlich. Dunkles Grau trägt Kopf, Hero und Fußzeile,
 * Pink markiert jede Handlung, der Inhalt liegt auf Weiß.
 *
 * Aufbau
 *  1. Schriften und Variablen
 *  2. Grundlagen (Typografie, Links, Fokus)
 *  3. Buttons
 *  4. Kopf, Menü, mobile Spendenleiste
 *  5. Bänder (Hero, Aktuell, Zahlen, Ich möchte, Projekt, Geschichten, Termine, Partner, Newsletter)
 *  6. Bausteine (Karten, Fortschritt, Termin, Zitat, Event-Infos, Spenden-Widget)
 *  7. Inhaltsbereich und Joomla-Elemente
 *  8. Fußzeile
 *  9. Bewegung reduzieren, Druck
 */

/* ---------- 1. Schriften und Variablen ---------- */

/* Nunito Sans, SIL Open Font License 1.1, lokal gehostet (siehe fonts/OFL-NunitoSans.txt) */
@font-face {
  font-family: "Nunito Sans HuP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans HuP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans HuP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-800-normal.woff2") format("woff2");
}

:root {
  /* Vereinsfarben */
  --hup-dark: #333132;
  --hup-darker: #262425;
  --hup-pink: #ee4d9c;           /* Buttons, große Überschriften, Zahlen */
  --hup-pink-text: #b8236f;      /* Textlinks auf Weiß, 6,0 : 1 */
  --hup-pink-on-dark: #ff7ab8;   /* Textlinks auf Dunkel, 5,4 : 1 */
  --hup-white: #fff;
  --hup-light: #f6f3f4;
  --hup-line: #e3dcdf;
  --hup-muted: #5d595b;          /* Nebentext auf Weiß, 6,9 : 1 */

  /* Schrift: Thickhead nur für große Überschriften und Zahlen, sonst Nunito Sans */
  --hup-font-body: "Nunito Sans HuP", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hup-font-head: "Thickhead", "Nunito Sans HuP", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --hup-radius: 18px;
  --hup-radius-s: 10px;
  --hup-wrap: 1200px;
  --hup-gutter: clamp(1rem, 4vw, 2rem);
  --hup-shadow: 0 6px 22px rgba(51, 49, 50, .12);
  --hup-header-h: 76px;

  /* Cassiopeia und Bootstrap auf Vereinsfarben umstellen */
  --cassiopeia-color-primary: var(--hup-dark);
  --cassiopeia-color-hover: var(--hup-pink-text);
  --cassiopeia-color-link: var(--hup-pink-text);
  --link-color: var(--hup-pink-text);
  --link-color-rgb: 184, 35, 111;
  --link-hover-color: #8c1a54;
  --link-hover-color-rgb: 140, 26, 84;
  --body-color: var(--hup-dark);
  --body-bg: #fff;
}

[class^="hup-"],
[class*=" hup-"] {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--hup-header-h) + 1rem);
}

/* ---------- 2. Grundlagen ---------- */

body.site {
  font-family: var(--hup-font-body);
  font-size: 1.125rem; /* 18 px */
  line-height: 1.6;
  color: var(--hup-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.site.has-mobilebar {
  padding-bottom: 5rem;
}

h1, h2 {
  font-family: var(--hup-font-body);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .005em;
  color: var(--hup-dark);
  text-wrap: balance;
}

h3, h4, h5, h6 {
  font-family: var(--hup-font-body);
  font-weight: 800;
  line-height: 1.25;
  color: var(--hup-dark);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.35rem; }

a {
  color: var(--hup-pink-text);
  text-underline-offset: .18em;
}

a:hover,
a:focus-visible {
  color: #8c1a54;
}

/* Sichtbarer Fokus für Tastatur */
:focus-visible {
  outline: 3px solid var(--hup-pink-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.hup-header :focus-visible,
.hup-footer :focus-visible,
.hup-band--hero :focus-visible,
.hup-band--zahlen :focus-visible,
.hup-band--newsletter :focus-visible,
.hup-mobilebar :focus-visible {
  outline-color: var(--hup-pink-on-dark);
}

.hup-skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 1000;
  padding: .6rem 1rem;
  font-weight: 700;
  color: var(--hup-dark);
  background: #fff;
  border-radius: var(--hup-radius-s);
  box-shadow: var(--hup-shadow);
}

.hup-skip:focus {
  top: .75rem;
}

/* ---------- 3. Buttons ---------- */

/*
 * Der pinke Button trägt dunkle Schrift (3,8 : 1). Das genügt nur für große, fette Schrift
 * (ab 18,7 px bei fett). Deshalb ist die Schrift hier bewusst groß. Für kleine Buttons gibt es
 * .hup-btn--klein mit dunkelpinkem Grund und weißer Schrift (6,0 : 1).
 */
.hup-btn,
.hup-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 3rem;
  padding: .7rem 1.7rem;
  font-family: var(--hup-font-body);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--hup-dark);
  background: var(--hup-pink);
  border: 2px solid var(--hup-pink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.hup-btn:hover,
.hup-btn:focus-visible {
  color: var(--hup-dark);
  background: #f56cae;
  border-color: #f56cae;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(238, 77, 156, .35);
}

.hup-btn--ghost,
.hup-btn--ghost:visited {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

.hup-btn--ghost:hover,
.hup-btn--ghost:focus-visible {
  color: var(--hup-dark);
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}

.hup-btn--dunkel,
.hup-btn--dunkel:visited {
  color: #fff;
  background: var(--hup-dark);
  border-color: var(--hup-dark);
}

.hup-btn--dunkel:hover,
.hup-btn--dunkel:focus-visible {
  color: #fff;
  background: var(--hup-darker);
  border-color: var(--hup-darker);
  box-shadow: none;
}

.hup-btn--klein,
.hup-btn--klein:visited {
  min-height: 2.75rem;
  padding: .5rem 1.2rem;
  font-size: 1rem;
  color: #fff;
  background: var(--hup-pink-text);
  border-color: var(--hup-pink-text);
}

.hup-btn--klein:hover,
.hup-btn--klein:focus-visible {
  color: #fff;
  background: #8c1a54;
  border-color: #8c1a54;
  box-shadow: none;
}

/* Joomla-Standardbuttons (Formulare, Suche, Abschicken) */
.btn-primary,
.btn-primary:visited {
  --bs-btn-bg: var(--hup-pink-text);
  --bs-btn-border-color: var(--hup-pink-text);
  --bs-btn-hover-bg: #8c1a54;
  --bs-btn-hover-border-color: #8c1a54;
  --bs-btn-active-bg: #8c1a54;
  color: #fff;
  font-weight: 700;
  background-color: var(--hup-pink-text);
  border-color: var(--hup-pink-text);
  border-radius: var(--hup-radius-s);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background-color: #8c1a54;
  border-color: #8c1a54;
}

/* ---------- 4. Kopf, Menü, mobile Spendenleiste ---------- */

.hup-topbar {
  font-size: .95rem;
  color: #fff;
  background: var(--hup-darker);
}

.hup-topbar a {
  color: var(--hup-pink-on-dark);
}

.hup-header {
  position: relative;
  z-index: 100;
  color: #fff;
  background: var(--hup-dark);
  border-bottom: 4px solid var(--hup-pink);
}

.hup-header--sticky {
  position: sticky;
  top: 0;
}

.hup-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: var(--hup-wrap);
  min-height: var(--hup-header-h);
  padding: .4rem var(--hup-gutter);
  margin: 0 auto;
}

.hup-brand,
.hup-brand:visited {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 1 auto;
  color: #fff;
  text-decoration: none;
}

.hup-brand:hover,
.hup-brand:focus-visible {
  color: #fff;
}

.hup-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hup-brand__text {
  display: none;
  max-width: 14rem;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hup-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  order: 3;
}

.hup-header__cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
  margin-inline-start: auto;
  order: 2;
}

.hup-btn--header {
  min-height: 2.75rem;
  padding: .45rem 1.3rem;
}

/* Menü (mod_menu, Layout "Cassiopeia: Menü einklappbar" / metismenu) */
.hup-nav nav {
  position: static;
  padding: 0;
  margin: 0;
}

.hup-nav .navbar-toggler {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .4rem .9rem;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: var(--hup-radius-s);
  cursor: pointer;
}

.hup-nav .navbar-toggler .icon-menu {
  display: none;
}

.hup-nav .navbar-toggler::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.hup-nav .navbar-toggler::after {
  content: "Menü";
}

/* Aufklappbarer Bereich unter dem Kopf (Handy und Tablet) */
.hup-nav .navbar-collapse {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 200;
  max-height: calc(100vh - var(--hup-header-h));
  padding: .5rem var(--hup-gutter) 1.5rem;
  overflow-y: auto;
  background: var(--hup-dark);
  border-bottom: 4px solid var(--hup-pink);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .25);
}

.hup-nav .navbar-collapse:not(.show):not(.collapsing) {
  display: none;
}

.hup-nav .collapsing {
  height: 0;
  overflow: hidden;
  transition: height .25s ease;
}

.hup-nav .mod-menu {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #fff;
}

.hup-nav .metismenu.mod-menu .metismenu-item {
  padding: .35rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.hup-nav .mod-menu a,
.hup-nav .mod-menu button,
.hup-nav .mod-menu .mod-menu__heading {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #fff;
  text-decoration: none;
}

.hup-nav .mod-menu button {
  padding: 0;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.hup-nav .mod-menu a:hover,
.hup-nav .mod-menu button:hover {
  color: var(--hup-pink-on-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hup-nav .mod-menu .active > a,
.hup-nav .mod-menu .active > button {
  color: var(--hup-pink-on-dark);
}

/* Untermenü: auf dem Handy eingerückt, am Desktop als Karte */
.hup-nav .metismenu.mod-menu .mm-collapse {
  position: static;
  width: 100%;
  background: transparent;
  box-shadow: none;
}

.hup-nav .metismenu.mod-menu .mm-collapse a {
  font-weight: 600;
}

.hup-nav .metismenu.mod-menu .mm-collapse > li {
  padding-inline-start: 1rem;
}

@media (min-width: 992px) {
  .hup-nav {
    order: 2;
  }

  .hup-header__cta {
    margin-inline-start: 0;
    order: 3;
  }

  .hup-nav .navbar-toggler {
    display: none;
  }

  .hup-nav .navbar-collapse,
  .hup-nav .navbar-collapse:not(.show):not(.collapsing) {
    position: static;
    display: flex;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hup-nav .mod-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0 .25rem;
  }

  .hup-nav .metismenu.mod-menu .metismenu-item {
    padding: .25rem .5rem;
    border-bottom: 0;
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .hup-nav .mod-menu > li {
    position: relative;
  }

  .hup-nav .mod-menu > li > a,
  .hup-nav .mod-menu > li > button {
    border-bottom: 3px solid transparent;
  }

  .hup-nav .mod-menu > li.active > a,
  .hup-nav .mod-menu > li.active > button,
  .hup-nav .mod-menu > li > a:hover,
  .hup-nav .mod-menu > li > button:hover {
    border-bottom-color: var(--hup-pink);
    text-decoration: none;
  }

  .hup-nav .metismenu.mod-menu .mm-collapse {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 300;
    width: auto;
    min-width: 16rem;
    padding: .5rem;
    color: var(--hup-dark);
    background: #fff;
    border-radius: var(--hup-radius-s);
    box-shadow: var(--hup-shadow);
  }

  .hup-nav .metismenu.mod-menu .mm-collapse > li {
    padding-inline-start: 0;
  }

  .hup-nav .metismenu.mod-menu .mm-collapse a,
  .hup-nav .metismenu.mod-menu .mm-collapse button {
    display: flex;
    width: 100%;
    padding: .35rem .75rem;
    color: var(--hup-dark);
    border-radius: 8px;
  }

  .hup-nav .metismenu.mod-menu .mm-collapse a:hover {
    color: var(--hup-dark);
    background: var(--hup-light);
    text-decoration: none;
  }
}

@media (min-width: 1200px) {
  .hup-header__inner {
    gap: 1rem 2rem;
  }
}

@media (min-width: 1700px) {
  .hup-brand__text {
    display: block;
  }
}

/* Feste Spendenleiste am unteren Rand (nur Handy/Tablet) */
.hup-mobilebar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  padding: .6rem var(--hup-gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--hup-dark);
  border-top: 3px solid var(--hup-pink);
}

.hup-mobilebar .hup-btn {
  width: 100%;
}

@media (min-width: 992px) {
  .hup-mobilebar {
    display: none;
  }

  body.site.has-mobilebar {
    padding-bottom: 0;
  }
}

/* ---------- 5. Bänder auf der Startseite ---------- */

.hup-band {
  position: relative;
}

.hup-band__inner {
  max-width: var(--hup-wrap);
  padding-right: var(--hup-gutter);
  padding-left: var(--hup-gutter);
  margin: 0 auto;
}

.hup-band--ichmoechte,
.hup-band--projekt,
.hup-band--geschichten,
.hup-band--termine,
.hup-band--partner {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hup-band--geschichten,
.hup-band--partner {
  background: var(--hup-light);
}

.hup-band h2 {
  margin: 0 0 1.25rem;
}

/* Seitenkopf für Unterbereiche (Kopfbild-Parameter) */
.hup-pagehead {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(9rem, 22vw, 15rem);
  padding: 1.5rem 0;
  color: #fff;
  background-color: var(--hup-dark);
  background-position: center;
  background-size: cover;
}

.hup-pagehead::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(51, 49, 50, .2), rgba(51, 49, 50, .85));
}

.hup-pagehead .hup-band__inner {
  position: relative;
  width: 100%;
}

.hup-pagehead__title {
  margin: 0;
  font-family: var(--hup-font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.hup-pagehead__sub {
  margin: .4rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hup-pink-on-dark);
}

/* Hero */
.hup-band--hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(238, 77, 156, .22), transparent 45%),
    var(--hup-dark);
}

.hup-band--hero .mod-custom {
  position: relative;
  background-position: center;
  background-size: cover;
}

/* Foto im Hero (Hintergrundbild im Modul): dunkle Folie für lesbare Schrift */
.hup-band--hero .mod-custom[style*="background-image"]::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(51, 49, 50, .92) 0%, rgba(51, 49, 50, .6) 60%, rgba(51, 49, 50, .35) 100%);
}

.hup-hero__inner {
  position: relative;
  max-width: var(--hup-wrap);
  padding: clamp(3rem, 8vw, 6rem) var(--hup-gutter);
  margin: 0 auto;
}

.hup-band--hero h1,
.hup-band--hero h2 {
  max-width: 18ch;
  margin: 0 0 1rem;
  color: #fff;
}

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

.hup-eyebrow {
  display: inline-block;
  padding: .3rem .9rem;
  margin: 0 0 1rem;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hup-pink-on-dark);
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
}

.hup-lead {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}

.hup-band--hero .hup-lead {
  color: #f1ecee;
}

.hup-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 0;
}

/* Aktuell-Band: nächstes Ereignis. Dunkle, fette Schrift auf Pink (3,8 : 1, große Schrift). */
.hup-band--aktuell {
  color: var(--hup-dark);
  background: var(--hup-pink);
}

.hup-aktuell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 1rem 0;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.hup-aktuell__datum {
  display: inline-block;
  padding: .15rem .8rem;
  margin-inline-end: .6rem;
  color: #fff;
  background: var(--hup-dark);
  border-radius: 999px;
}

.hup-aktuell .hup-btn,
.hup-aktuell .hup-btn:visited {
  color: #fff;
  background: var(--hup-dark);
  border-color: var(--hup-dark);
}

.hup-aktuell .hup-btn:hover,
.hup-aktuell .hup-btn:focus-visible {
  color: #fff;
  background: var(--hup-darker);
  border-color: var(--hup-darker);
  box-shadow: none;
}

.hup-aktuell a:not(.hup-btn) {
  color: var(--hup-dark);
}

/* Zahlenband */
.hup-band--zahlen {
  color: #fff;
  background: var(--hup-dark);
}

.hup-zahlen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  margin: 0;
  text-align: center;
}

.hup-zahl {
  margin: 0;
}

.hup-zahl strong,
.hup-zahl .hup-zahl__wert {
  display: block;
  font-family: var(--hup-font-body);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--hup-pink);
}

.hup-zahl span {
  display: block;
  margin-top: .25rem;
  font-size: 1.05rem;
  color: #f1ecee;
}

@media (min-width: 768px) {
  .hup-zahlen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* "Ich möchte…": vier große Kacheln */
.hup-kacheln {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hup-kachel,
.hup-kachel:visited {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 9rem;
  padding: 1.25rem 1.4rem;
  color: var(--hup-dark);
  text-decoration: none;
  background: var(--hup-light);
  border: 2px solid transparent;
  border-radius: var(--hup-radius);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.hup-kachel:hover,
.hup-kachel:focus-visible {
  color: var(--hup-dark);
  border-color: var(--hup-pink);
  box-shadow: var(--hup-shadow);
  transform: translateY(-2px);
}

.hup-kachel__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hup-muted);
}

.hup-kachel strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.hup-kachel__pfeil {
  align-self: flex-end;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hup-pink-text);
}

.hup-kachel--spenden,
.hup-kachel--spenden:visited {
  background: var(--hup-pink);
}

.hup-kachel--spenden .hup-kachel__label,
.hup-kachel--spenden .hup-kachel__pfeil {
  color: var(--hup-dark);
}

@media (min-width: 600px) {
  .hup-kacheln {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hup-kacheln {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Aktuelles Projekt: erstes Modul der Position = dunkle Karte mit Text und Fortschritt,
   zweites Modul = Spenden-Widget. Beide stehen auf großen Bildschirmen nebeneinander. */
.hup-band--projekt .hup-band__inner {
  display: grid;
  gap: 1.5rem;
}

.hup-band--projekt .hup-band__inner > * {
  min-width: 0;
}

.hup-band--projekt .hup-band__inner > :first-child {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  background: var(--hup-dark);
  border-radius: var(--hup-radius);
}

.hup-band--projekt h2,
.hup-band--projekt h3 {
  margin-top: 0;
}

.hup-band--projekt .hup-band__inner > :first-child h2,
.hup-band--projekt .hup-band__inner > :first-child h3 {
  color: #fff;
}

.hup-band--projekt .hup-band__inner > :first-child a:not(.hup-btn) {
  color: var(--hup-pink-on-dark);
}

.hup-band--projekt .hup-spenden {
  align-self: center;
}

@media (min-width: 900px) {
  .hup-band--projekt .hup-band__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    gap: 2rem;
  }
}

/* Newsletter */
.hup-band--newsletter {
  color: #fff;
  background: var(--hup-dark);
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.hup-band--newsletter h2 {
  color: #fff;
}

.hup-band--newsletter a {
  color: var(--hup-pink-on-dark);
}

.hup-band--newsletter input[type="email"],
.hup-band--newsletter input[type="text"] {
  min-height: 3rem;
  padding: .5rem 1rem;
  font-size: 1.1rem;
  color: var(--hup-dark);
  background: #fff;
  border: 2px solid #fff;
  border-radius: var(--hup-radius-s);
}

.hup-band--newsletter button,
.hup-band--newsletter input[type="submit"] {
  min-height: 3rem;
  padding: .5rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hup-dark);
  background: var(--hup-pink);
  border: 2px solid var(--hup-pink);
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- 6. Bausteine ---------- */

/* Karten (Geschichten, Projekte, Presse) */
.hup-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hup-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hup-line);
  border-radius: var(--hup-radius);
}

.hup-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hup-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .5rem;
  padding: 1.1rem 1.25rem 1.35rem;
}

.hup-card__body h3 {
  margin: 0;
}

.hup-card__body p {
  margin: 0;
}

.hup-card__body .hup-card__link {
  margin-top: auto;
  font-weight: 800;
}

@media (min-width: 700px) {
  .hup-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Fortschrittsbalken: Markup mit role="progressbar", Breite als Inline-Style, funktioniert ohne JavaScript */
.hup-progress {
  position: relative;
  height: 1.1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.hup-progress > span {
  display: block;
  height: 100%;
  min-width: .5rem;
  background: var(--hup-pink);
  border-radius: 999px;
}

.hup-progress__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin: .5rem 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

/* auf hellem Grund */
.hup-progress--hell {
  background: var(--hup-line);
}

/* Termin-Karte */
.hup-termine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hup-termin,
.hup-termin:visited {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--hup-dark);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--hup-line);
  border-radius: var(--hup-radius);
}

.hup-termin:hover,
.hup-termin:focus-visible {
  color: var(--hup-dark);
  border-color: var(--hup-pink);
  box-shadow: var(--hup-shadow);
}

.hup-termin__datum {
  display: flex;
  flex: 0 0 4.2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .45rem 0;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  background: var(--hup-dark);
  border-radius: var(--hup-radius-s);
}

.hup-termin__datum b {
  font-family: var(--hup-font-body);
  font-size: 1.9rem;
  color: var(--hup-pink);
}

.hup-termin__text strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hup-termin__text span {
  color: var(--hup-muted);
  font-size: 1rem;
}

@media (min-width: 800px) {
  .hup-termine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Zitat-Karte */
.hup-zitat {
  position: relative;
  padding: 1.5rem 1.6rem 1.4rem 2rem;
  margin: 0;
  background: var(--hup-light);
  border-inline-start: 6px solid var(--hup-pink);
  border-radius: 0 var(--hup-radius) var(--hup-radius) 0;
}

.hup-zitat p {
  margin: 0 0 .6rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.hup-zitat footer,
.hup-zitat cite {
  font-size: 1rem;
  font-style: normal;
  color: var(--hup-muted);
}

/* Partner-Logos */
.hup-partner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.25rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.hup-partner img {
  display: block;
  width: auto;
  max-width: 9rem;
  height: 3.25rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .85;
  transition: filter .2s ease, opacity .2s ease;
}

.hup-partner a:hover img,
.hup-partner a:focus-visible img {
  filter: none;
  opacity: 1;
}

/* Event-Infoleiste: Datum, Ort, Einlass, Tickets */
.hup-event-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.75rem;
  background: var(--hup-light);
  border-inline-start: 6px solid var(--hup-pink);
  border-radius: 0 var(--hup-radius) var(--hup-radius) 0;
}

.hup-event-info div {
  margin: 0;
}

.hup-event-info dt {
  font-size: .95rem;
  font-weight: 700;
  color: var(--hup-muted);
}

.hup-event-info dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.hup-event-info .hup-btn {
  align-self: center;
}

@media (min-width: 700px) {
  .hup-event-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Spenden-Widget (Layout "hup:spendenwidget" für mod_custom) */
.hup-spenden {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--hup-dark);
  background: #fff;
  border: 2px solid var(--hup-pink);
  border-radius: var(--hup-radius);
  box-shadow: var(--hup-shadow);
}

.hup-spenden__title {
  margin: 0;
  font-size: 1.6rem;
}

.hup-spenden__group {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0;
  margin: 0;
  border: 0;
}

.hup-chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.hup-chip > input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.hup-chip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 3rem;
  padding: .4rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 800;
  background: #fff;
  border: 2px solid var(--hup-dark);
  border-radius: 999px;
}

.hup-chip > input:checked + span {
  color: var(--hup-dark);
  background: var(--hup-pink);
  border-color: var(--hup-pink);
}

.hup-chip > input:focus-visible + span {
  outline: 3px solid var(--hup-pink-text);
  outline-offset: 3px;
}

.hup-chip--frei {
  align-items: center;
  gap: .4rem;
  font-weight: 800;
}

.hup-spenden__frei {
  width: 11.5rem;
  max-width: 100%;
  min-height: 3rem;
  padding: .4rem .9rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hup-dark);
  background: #fff;
  border: 2px solid var(--hup-dark);
  border-radius: 999px;
}

.hup-spenden__wirkung {
  min-height: 1.6em;
  margin: 0;
  font-weight: 700;
  color: var(--hup-pink-text);
}

.hup-spenden__go {
  width: 100%;
}

.hup-spenden__hinweis {
  font-size: 1rem;
  color: var(--hup-muted);
}

.hup-spenden__hinweis > :last-child {
  margin-bottom: 0;
}

/* ---------- 7. Inhaltsbereich und Joomla-Elemente ---------- */

.container-component {
  padding-bottom: 2rem;
}

/* Lesbare Zeilenlänge: etwa 65 Zeichen */
.com-content-article__body > p,
.com-content-article__body > ul,
.com-content-article__body > ol,
.com-content-article .item-page > p,
.blog-item p,
.hup-text {
  max-width: 65ch;
}

.com-content-article__body img,
.item-page img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hup-radius-s);
}

.page-header h1,
.page-header h2 {
  margin-bottom: 1rem;
}

.breadcrumb,
.mod-breadcrumbs {
  font-size: 1rem;
}

.mod-breadcrumbs a {
  color: var(--hup-pink-text);
}

.card {
  border-radius: var(--hup-radius);
}

.card-header {
  font-weight: 800;
}

table {
  border-collapse: collapse;
}

th,
td {
  padding: .6rem .8rem;
}

thead th {
  color: #fff;
  background: var(--hup-dark);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea,
.form-control,
.form-select {
  min-height: 2.75rem;
  font-size: 1.05rem;
  color: var(--hup-dark);
  border: 2px solid #8a8587;
  border-radius: var(--hup-radius-s);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  border-color: var(--hup-pink-text);
  outline: 3px solid rgba(184, 35, 111, .35);
  outline-offset: 0;
}

.alert-info {
  color: var(--hup-dark);
  background: var(--hup-light);
  border-color: var(--hup-pink);
}

.back-to-top-link {
  color: var(--hup-dark);
  background: var(--hup-pink);
  border-radius: 50%;
}

/* ---------- 8. Fußzeile ---------- */

.hup-footer {
  margin-top: 0;
  color: #f1ecee;
  background: var(--hup-dark);
  border-top: 4px solid var(--hup-pink);
}

.hup-footer a {
  color: var(--hup-pink-on-dark);
}

.hup-footer a:hover,
.hup-footer a:focus-visible {
  color: #fff;
}

.hup-footer h2,
.hup-footer h3,
.hup-footer h4 {
  margin: 0 0 .75rem;
  font-family: var(--hup-font-body);
  font-size: 1.15rem;
  color: #fff;
}

.hup-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: 2rem;
}

.hup-footer__col p,
.hup-footer__col ul {
  margin: 0 0 .5rem;
  font-size: 1rem;
}

.hup-footer__col ul {
  padding: 0;
  list-style: none;
}

.hup-footer__col li {
  margin-bottom: .35rem;
}

.hup-footer__plain {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hup-footer__legal {
  font-size: .95rem;
  background: var(--hup-darker);
}

.hup-footer__legal .hup-band__inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hup-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hup-footer__legal p {
  margin: 0;
}

@media (min-width: 700px) {
  .hup-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hup-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 9. Bewegung reduzieren, Druck ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hup-btn:hover,
  .hup-kachel:hover {
    transform: none;
  }
}

@media print {
  .hup-header,
  .hup-mobilebar,
  .hup-band--newsletter,
  .hup-skip,
  .back-to-top-link {
    display: none !important;
  }

  body.site {
    font-size: 11pt;
    color: #000;
  }
}

/* Lange Wörter in Überschriften auf schmalen Bildschirmen umbrechen */
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Lange Adressen in Artikeln umbrechen */
.com-content-article__body a {
  overflow-wrap: anywhere;
}

/* Brief-Karte (Dankesbrief) */
.hup-brief { position: relative; margin: 1.5rem 0; padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem; background: var(--hup-white); border: 1px solid var(--hup-line); border-top: 8px solid var(--hup-pink); border-radius: var(--hup-radius); box-shadow: var(--hup-shadow); max-width: 44rem; }
.hup-brief::before { content: "\201E"; position: absolute; top: -.1em; right: 1.25rem; font-family: var(--hup-font-head); font-size: 6rem; line-height: 1; color: var(--hup-pink); opacity: .25; }
.hup-brief p { margin: 0 0 1rem; }
.hup-brief p:last-child { margin-bottom: 0; }
.hup-brief__gruss { margin-top: 1.5rem; font-weight: 800; }
.hup-brief__quelle { margin-top: 1rem; font-size: .9rem; color: var(--hup-muted); }

/* Geschichten (Menüpunkt "Hilfe, die ankommt"): Bilder begrenzen */
body.itemid-113 .item-image img { display: block; max-width: min(100%, 560px); height: auto; border-radius: var(--hup-radius-s); }
body.itemid-113 .com-content-category-blog .item-image { float: none; margin: 0 0 1rem; }
body.itemid-113 .com-content-article__body p > img,
body.itemid-113 .item-content p > img { max-width: min(100%, 360px) !important; max-height: 440px; width: auto; height: auto; border-radius: var(--hup-radius-s); }

/* Thickhead nur noch für die Hero-Überschrift der Startseite */
.hup-band--hero h1 { font-family: var(--hup-font-head); }

/* Überschriften einheitlich 24 px (Hero der Startseite bleibt groß) */
body main h1:not(.hup-band--hero h1),
body main h2:not(.hup-band--hero h2),
body .hup-pagehead__title,
body .hup-band:not(.hup-band--hero) h2,
body .hup-spenden__title { font-size: 24px !important; line-height: 1.25 !important; }

/* Foto-Galerie (Gala 2024 u. a.) */
.hup-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; margin: 1rem 0 2rem; }
.hup-galerie a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--hup-radius-s); background: #eee; }
.hup-galerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.hup-galerie a:hover img { transform: scale(1.04); }

/* Sponsoren-Anzeigen und Teilnehmer-Wappen: groß genug zum Lesen */
.hup-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 1rem 0 1.5rem; align-items: start; }
.hup-logos li { background: #fff; border: 1px solid #eee; border-radius: var(--hup-radius-s); padding: .75rem; display: flex; align-items: center; justify-content: center; }
.hup-logos li:first-child { grid-column: 1 / -1; }
.hup-logos a { display: block; width: 100%; }
.hup-logos img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0 auto; }
.hup-logos li:first-child img { max-width: 460px; }
@media (min-width: 700px) { .hup-logos li.hup-logos__wide { grid-column: span 2; } }
.hup-logos--teams { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; align-items: stretch; }
.hup-logos--teams li { flex-direction: column; gap: .5rem; padding: .75rem; text-align: center; }
.hup-logos--teams li:first-child { grid-column: auto; }
.hup-logos--teams img { width: auto; height: 90px; max-height: 90px; object-fit: contain; }
.hup-logos--teams span { font-size: .9rem; line-height: 1.25; }
/* Countdown (unsichtbar, solange kein Datum gesetzt ist) */
.hup-countdown { font-size: 24px; font-weight: 700; color: var(--hup-pink); margin: .5rem 0 1rem; }
.hup-countdown[hidden] { display: none; }

/* Lightbox */
.hup-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.hup-lb[hidden] { display: none; }
.hup-lb__img { max-width: 94vw; max-height: 86vh; object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,.6); }
.hup-lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hup-lb button:hover, .hup-lb button:focus-visible { background: rgba(255,255,255,.3); outline: 2px solid #fff; }
.hup-lb__close { top: 1rem; right: 1rem; }
.hup-lb__prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.hup-lb__next { right: .75rem; top: 50%; transform: translateY(-50%); }
.hup-lb__count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }
.hup-galerie a { cursor: zoom-in; }

/* Menue: zweite Unterebene als Flyout (Desktop) */
@media (min-width: 992px) {
  .hup-header .metismenu li.level-1.parent:hover > ul,
  .hup-header .metismenu li.level-1.parent:focus-within > ul { display: block !important; }
  .hup-header .metismenu li.level-1 > ul { overflow: visible; }
  .hup-header .metismenu li.level-2.parent { position: relative; flex-wrap: nowrap; justify-content: space-between; gap: .5rem; }
  .hup-header .metismenu li.level-2.parent > a { flex: 1 1 auto; white-space: nowrap; }
  .hup-header .metismenu li.level-2.parent > button { position: static; flex: 0 0 2rem; width: 2rem; height: 2rem; min-width: 0; padding: 0; margin: 0; transform: rotate(-90deg); }
  .hup-header .metismenu li.level-2.parent > ul {
    position: absolute; top: -.5rem; left: 100%; min-width: 15rem; margin: 0; padding: .5rem 0; list-style: none;
    background: #fff; color: rgb(34, 38, 42); border-radius: var(--hup-radius-s, 8px); box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  }
  .hup-header .metismenu li.level-2.parent:hover > ul,
  .hup-header .metismenu li.level-2.parent:focus-within > ul,
  .hup-header .metismenu li.level-2.parent > ul.mm-show { display: block !important; height: auto !important; overflow: visible !important; transition: none !important; }
  .hup-header .metismenu li.level-2.parent > ul.mm-collapsing { height: auto !important; overflow: visible !important; transition: none !important; }
  .hup-header .metismenu li.level-3 { padding: .45em 1em; font-size: 1rem; }
  /* die letzten Menuepunkte oeffnen nach links, damit nichts aus dem Bild ragt */
  .hup-header .metismenu > li.level-1:nth-last-child(-n+3) li.level-2.parent > ul { left: 100%; right: auto; }
  .hup-header .metismenu > li.level-1:nth-last-child(-n+3) li.level-2.parent > button { transform: rotate(-90deg); }
}

/* Menue zentriert: Navigation fuellt den Platz zwischen Logo und Spenden-Button */
@media (min-width: 992px) {
  .hup-nav { flex: 1 1 auto; }
  .hup-nav .navbar-collapse { justify-content: center; }
}
/* auf schmaleren Desktops oeffnet das Flyout der letzten Punkte nach links, damit es im Bild bleibt */
@media (min-width: 992px) and (max-width: 1279px) {
  .hup-header .metismenu > li.level-1:nth-last-child(-n+3) li.level-2.parent > ul { left: auto; right: 100%; }
  .hup-header .metismenu > li.level-1:nth-last-child(-n+3) li.level-2.parent > button { transform: rotate(90deg); }
}

/* Portraits der Aktiven: Ausschnitt oben ansetzen, damit das Gesicht sichtbar bleibt */
.hup-card img[src*="/aktive/"] { aspect-ratio: 3 / 4; object-position: 50% 8%; }


/* Schritte als Karten (Ranzenaktion, Weihnachtswuenschebaum) */
.hup-schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0 2rem; counter-reset: schritt; }
.hup-schritt { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 2.4rem 1.25rem 1.25rem; background: #fff; border: 1px solid var(--hup-line); border-top: 6px solid var(--hup-pink); border-radius: var(--hup-radius); box-shadow: var(--hup-shadow); }
.hup-schritt__nr { position: absolute; top: -1.1rem; left: 1.1rem; display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--hup-dark); color: #fff; font-weight: 800; }
.hup-schritt__icon { font-size: 1.8rem; line-height: 1; }
.hup-schritt h3 { margin: 0; font-size: 1.15rem; }
.hup-schritt p { margin: 0; }

/* Farbige Infobox am rechten Rand */
.hup-box { background: var(--hup-pink); color: var(--hup-dark); border-radius: var(--hup-radius); padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
.hup-box h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.hup-box p { margin: 0 0 .6rem; }
.hup-box p:last-child { margin-bottom: 0; }
.hup-box a { color: var(--hup-dark); font-weight: 800; }
@media (min-width: 900px) { .hup-box--rechts { float: right; width: 21rem; margin: 0 0 1rem 2rem; } }

/* FAQ-Bereich und Kontaktkarte */
.hup-faq { background: #fdeaf3; border-radius: var(--hup-radius); padding: 1.5rem clamp(1rem, 3vw, 2rem); margin: 2rem 0; }
.hup-faq h2 { margin: 0 0 1rem; }
.hup-faq details { background: #fff; border: 1px solid #f3c2da; border-left: 6px solid var(--hup-pink); border-radius: var(--hup-radius-s); margin: 0 0 .75rem; }
.hup-faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 800; list-style-position: inside; }
.hup-faq details[open] summary { border-bottom: 1px solid #f3c2da; }
.hup-faq details > div { padding: .9rem 1.1rem 1rem; }
.hup-kontakt { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; background: var(--hup-dark); color: #fff; border-radius: var(--hup-radius); border-left: 8px solid var(--hup-pink); padding: 1.5rem clamp(1rem, 3vw, 2rem); margin: 2rem 0; }
.hup-kontakt h3 { margin: 0; color: #fff; font-size: 1.5rem; }
.hup-kontakt p { margin: 0; }
.hup-kontakt__label { display: block; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hup-pink-on-dark); }
.hup-kontakt__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.hup-kontakt__btn, .hup-kontakt__btn:visited { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; background: var(--hup-pink); color: var(--hup-dark); border-radius: 999px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.hup-kontakt__btn:hover, .hup-kontakt__btn:focus-visible { background: #fff; color: var(--hup-dark); }
.hup-kontakt__hinweis { flex-basis: 100%; font-size: .95rem; color: #e6dfe2; }

.hup-box__btn, .hup-box__btn:visited { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; padding: .55rem 1rem; background: var(--hup-dark); color: #fff !important; border-radius: 999px; font-weight: 800; text-decoration: none; }
.hup-box__btn:hover, .hup-box__btn:focus-visible { background: #fff; color: var(--hup-dark) !important; }

.hup-kontakt .hup-kontakt__btn, .hup-kontakt .hup-kontakt__btn:visited { background: #fff; color: var(--hup-dark); text-decoration: none; }
.hup-kontakt .hup-kontakt__btn:hover, .hup-kontakt .hup-kontakt__btn:focus-visible { background: var(--hup-pink); color: var(--hup-dark); }

.hup-schritte { margin-top: 2.5rem; }
.hup-schritt__nr { z-index: 2; }
.hup-schritte, .hup-schritte > li { overflow: visible; }

ol.hup-schritte { overflow: visible !important; }

/* Farbige Sektionen (Artikel) */
img.hup-bildtop { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--hup-radius); }
.hup-sektion { border-radius: var(--hup-radius); padding: 1.5rem clamp(1rem, 3vw, 2rem); margin: 1.75rem 0; overflow: hidden; }
.hup-sektion > h2 { margin: 0 0 1rem; }
.hup-sektion > :last-child { margin-bottom: 0; }
.hup-sektion img { max-width: 100%; height: auto; border-radius: var(--hup-radius-s); }
.hup-sektion--rosa { background: #fdeaf3; border-left: 8px solid var(--hup-pink); }
.hup-sektion--hell { background: var(--hup-light); border-left: 8px solid var(--hup-dark); }
.hup-sektion--dunkel { background: var(--hup-dark); color: #fff; border-left: 8px solid var(--hup-pink); }
.hup-sektion--dunkel h2, .hup-sektion--dunkel h3 { color: #fff !important; }
.hup-sektion--dunkel blockquote { margin: 1rem 0 0; padding: .5rem 0 .5rem 1rem; border-left: 4px solid var(--hup-pink); font-size: 1.15rem; }
.hup-sektion--dunkel a { color: var(--hup-pink-on-dark); }
.hup-sektion--pink { background: var(--hup-pink); color: var(--hup-dark); }
.hup-sektion--pink h2 { color: var(--hup-dark) !important; }
.hup-sektion--pink a { color: var(--hup-dark); font-weight: 800; }

.hup-box--logo { background: #fff; border: 3px solid var(--hup-pink); text-align: center; }
.hup-box--logo img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto .5rem; }
ul.hup-projekte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.hup-projekt { position: relative; display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid var(--hup-line); border-top: 6px solid var(--hup-pink); border-radius: var(--hup-radius-s); padding: 1rem 1.1rem 1.1rem; }
.hup-projekt__icon { font-size: 1.8rem; line-height: 1; }
.hup-projekt h3 { margin: 0; font-size: 1.1rem; }
.hup-projekt p { margin: 0; font-size: 1rem; }
.hup-projekt__betrag { align-self: flex-start; background: var(--hup-dark); color: #fff; border-radius: 999px; padding: .1rem .8rem; font-weight: 800; }

.hup-video { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--hup-dark); color: #fff; border-radius: var(--hup-radius); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.hup-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hup-video button { background: var(--hup-pink); color: var(--hup-dark); border: 0; border-radius: 999px; padding: .8rem 1.6rem; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.hup-video p { margin: .75rem 0 0; font-size: .9rem; color: #e6dfe2; }
.hup-video__inner { display: flex; flex-direction: column; align-items: center; }

ul.hup-kacheln-zahl { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.hup-kz { background: var(--hup-dark); color: #fff; border-radius: var(--hup-radius); border-bottom: 6px solid var(--hup-pink); padding: 1.1rem 1.2rem; text-align: center; }
.hup-kz strong { display: block; font-size: 2.2rem; line-height: 1.1; color: var(--hup-pink-on-dark); }
.hup-kz span { display: block; margin-top: .3rem; }
.hup-kz--hell { background: #fff; color: var(--hup-dark); border: 1px solid var(--hup-line); border-bottom: 6px solid var(--hup-pink); }
.hup-kz--hell strong { color: var(--hup-pink-text); font-size: 2.8rem; }

.hup-box__summe { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 0 0 .4rem; }

/* Fotogalerie mit Bildunterschriften (Trikottausch): natuerliche Bildformate, Lightbox ueber .hup-galerie */
.hup-galerie.hup-galerie--frei { display: block; column-width: 230px; column-gap: 1rem; margin: 1.25rem 0 0; }
.hup-galerie--frei figure { break-inside: avoid; margin: 0 0 1rem; background: #fff; border: 1px solid var(--hup-line); border-bottom: 6px solid var(--hup-pink); border-radius: var(--hup-radius-s); overflow: hidden; color: var(--hup-dark); }
.hup-galerie--frei figure a { aspect-ratio: auto; border-radius: 0; }
.hup-galerie--frei figure img { height: auto; }
.hup-galerie--frei figcaption { padding: .6rem .8rem .8rem; font-size: .95rem; line-height: 1.35; }

/* Zyan-Projektseite: Der Spendenkasten im Artikel genuegt, das allgemeine Spenden-Widget darunter entfaellt */
body.itemid-148 .hup-band--projekt { display: none; }

/* Balkendiagramme (Zahlen & Fakten): reine HTML/CSS-Balken, Werte stehen als Text daneben */
ol.hup-saeulen { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .4rem; --bar: var(--hup-dark); --bar-max: var(--hup-pink-text); }
.hup-saeulen li { display: grid; grid-template-columns: 3rem 1fr minmax(5.5rem, auto); align-items: center; gap: .6rem; }
.hup-saeulen__jahr { font-weight: 700; }
.hup-saeulen__spur { display: block; height: 1.25rem; border-radius: 999px; background: rgba(0, 0, 0, .07); overflow: hidden; }
.hup-saeulen__bar { display: block; height: 100%; width: var(--w, 0%); min-width: 4px; border-radius: 999px; background: var(--bar); }
.hup-saeulen li.is-max .hup-saeulen__bar { background: var(--bar-max); }
.hup-saeulen__wert { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.hup-saeulen li.is-max .hup-saeulen__wert { color: var(--hup-pink-text); }
.hup-saeulen-summe { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .6rem .9rem; background: var(--hup-dark); color: #fff; border-radius: var(--hup-radius-s); font-weight: 800; }
.hup-quelle { font-size: .9rem; margin: 1rem 0 0; opacity: .85; }

.hup-zahlen__mehr { grid-column: 1 / -1; margin: .5rem 0 0; text-align: center; }
.hup-saeulen-summe { margin-bottom: 1rem; }

/* Stimmen (Zitatkarten mit Portrait) */
ul.hup-stimmen { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.5rem; }
.hup-stimme { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: start; background: #fff; border: 1px solid var(--hup-line); border-left: 8px solid var(--hup-pink); border-radius: var(--hup-radius); padding: 1.25rem; box-shadow: var(--hup-shadow); }
.hup-stimme img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; display: block; }
.hup-stimme blockquote { margin: 0; padding: 0; border: 0; }
.hup-stimme blockquote p { margin: 0 0 .75rem; }
.hup-stimme__kern { font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: var(--hup-pink-text); }
.hup-stimme__name { display: block; margin: .25rem 0 0; font-weight: 800; }
.hup-stimme__rolle { display: block; font-weight: 600; font-size: .95rem; }
@media (max-width: 600px) { .hup-stimme { grid-template-columns: 1fr; } .hup-stimme img { width: 110px; height: 110px; } }

/* Zeitleiste und Ehrungen: Jahr links, Inhalt rechts mit Linie */
ol.hup-zeitleiste { list-style: none; margin: 1.5rem 0; padding: 0; }
.hup-zeit { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 1.25rem; margin: 0 0 1.5rem; }
.hup-zeit__jahr { font-weight: 800; font-size: 1.6rem; line-height: 1.2; color: var(--hup-pink-text); }
.hup-zeit__inhalt { border-left: 4px solid var(--hup-pink); padding: 0 0 .25rem 1.25rem; min-width: 0; }
.hup-zeit__inhalt h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.hup-zeit__inhalt p { margin: 0 0 .6rem; }
.hup-zeit__inhalt img { max-width: 100%; height: auto; border-radius: var(--hup-radius-s); margin: .25rem 0 .75rem; }
.hup-zeit__inhalt ul { margin: 0 0 .6rem; padding-left: 1.2rem; }
@media (max-width: 600px) { .hup-zeit { grid-template-columns: 1fr; } .hup-zeit__inhalt { margin-top: .25rem; } }

/* Vorstandsfotos: abgerundetes Quadrat statt Kreis, damit die Gesichter nicht angeschnitten werden */
.hup-stimme img[src*="vorstand-"] { border-radius: 14px; object-position: 50% 8%; }

/* Eingebettete Videos passen sich der Bildschirmbreite an */
.com-content-article__body iframe { max-width: 100%; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Startseite: Kopfbereich kompakter, damit die Zahlenleiste auf Laptop-Bildschirmen sichtbar bleibt */
.hup-band--hero .hup-hero__inner { padding-top: clamp(1.25rem, 3vw, 2.25rem); padding-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.hup-band--hero h1 { max-width: 28ch; font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: .6rem; }
.hup-band--hero .hup-eyebrow { margin-bottom: .4rem; }
.hup-band--hero .hup-lead { margin-bottom: 1rem; }
.hup-zahlen { padding-top: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(1rem, 2vw, 1.5rem); gap: 1rem; }
.hup-zahl strong { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.hup-zahlen__mehr { margin: 0; }
.hup-zahlen__mehr .hup-btn { padding: .4rem 1rem; font-size: .95rem; }

/* Eingebettete Social-Media-Beiträge (Zwei-Klick-Lösung) */
.hup-embed { margin: 0 0 2rem; padding: 1.25rem 1.5rem; border-radius: var(--hup-radius-s, 12px); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.hup-embed h2 { margin: 0 0 .5rem; }
.hup-embed__ziel { margin: 1rem 0; text-align: center; }
.hup-embed__ziel iframe { display: block; max-width: 100%; width: 100%; max-width: 500px; margin: 0 auto; border: 0; }
.hup-embed__links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* Video-Variante der Zwei-Klick-Einbettung */
.hup-embed--video .hup-embed__ziel iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
.hup-embed--video p { margin: 0 0 .5rem; }
/* Kontakt: Mail-Button mit Symbol (Adresse ist verschleiert) */
.hup-kontakt__btn--mail::before { content: "\2709\00a0"; }
/* Suche im Kopfbereich */
.hup-search .mod-finder__search { flex-wrap: nowrap; align-items: stretch; }
.hup-search .form-control { width: clamp(7rem, 18vw, 14rem); min-width: 0; }
.hup-search .btn { white-space: nowrap; }
@media (max-width: 767.98px) {
  .hup-search .form-control { display: none; }
  .hup-search .btn { border-radius: 8px; }
}
/* Barrierefreiheit: Kontraste */
body:not(.hup-landing) .hup-spenden__hinweis, body:not(.hup-landing) .hup-spenden__hinweis p { color: #e4e1e3; }
.hup-box--rechts h3, .hup-box--rechts p, .hup-sektion--pink h2, .hup-sektion--pink p, .hup-sektion--pink strong, .hup-kachel--spenden span, .hup-kachel--spenden strong { color: #1a1819; }
.hup-kachel.hup-kachel--spenden .hup-kachel__label, .hup-kachel.hup-kachel--spenden .hup-kachel__pfeil { color: #1a1819; }
/* Häufige Fragen (aufklappbar) */
.hup-faq { margin: 2rem 0; }
.hup-faq details { border: 2px solid var(--hup-pink, #ee4d9c); border-radius: 14px; margin: 0 0 .75rem; background: #fff; }
.hup-faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.hup-faq summary::-webkit-details-marker { display: none; }
.hup-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--hup-pink-text, #b8236f); }
.hup-faq details[open] summary::after { content: "\2212"; }
.hup-faq summary:focus-visible { outline: 3px solid #333132; outline-offset: 2px; }
.hup-faq details p { margin: 0; padding: 0 1.1rem 1rem; }
/* Suche: nur Lupen-Button, Feld klappt auf Klick auf */
.hup-search { position: relative; flex: 0 0 auto; }
.hup-search .mod-finder__search { flex-wrap: nowrap; }
.hup-search .btn { font-size: 0; line-height: 1; padding: .55rem .7rem; border-radius: 10px; }
.hup-search .btn [class^="icon-"] { font-size: 1.15rem; margin: 0; }
.hup-search.has-js .form-control { display: none; }
.hup-search.has-js.is-open .form-control { display: block; position: absolute; right: 0; top: calc(100% + .6rem); width: min(18rem, calc(100vw - 2rem)); z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
/* Kopfbereich: Logo bleibt, Menü bricht nicht um */
.hup-header .hup-brand { flex: 0 0 auto; }
.hup-header .hup-logo { width: auto; height: 64px; max-width: none; flex: none; }
.hup-nav a, .hup-nav .nav-link, .hup-nav .mod-menu > li > * { white-space: nowrap; }
.hup-nav { min-width: 0; }
.hup-search.has-js.is-open .mod-finder__search .form-control { width: min(18rem, calc(100vw - 2rem)); flex: none; min-width: 0; background: #fff; color: #222; padding: .65rem .9rem; border-radius: 10px; }
.hup-search.has-js.is-open .mod-finder__search .form-control { max-width: none; }
/* Menü auf Laptop-Breiten: kompakter, damit nichts umbricht */
.hup-nav .metismenu-item.level-1 { flex-wrap: nowrap; }
@media (min-width: 768px) and (max-width: 1279.98px) {
  .hup-header__inner { padding-left: 1rem; padding-right: 1rem; gap: .75rem 1rem; }
  .hup-nav .metismenu-item.level-1 { padding: .25rem .1rem; }
  .hup-nav .metismenu-item.level-1 > a, .hup-nav .metismenu-item.level-1 > button { padding: .35rem .45rem; font-size: .9rem; }
  .hup-header .hup-logo { height: 52px; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .hup-header__inner { gap: .5rem; }
  .hup-nav ul { gap: 0; }
  .hup-nav .metismenu-item.level-1 { padding: .2rem 0; }
  .hup-nav .metismenu-item.level-1 > a, .hup-nav .metismenu-item.level-1 > button { padding: .3rem .3rem; font-size: .82rem; }
  .hup-header__cta .hup-btn { padding: .5rem .9rem; font-size: .9rem; }
}
/* Handy: nur das Hamburger-Symbol, ohne Schriftzug */
@media (max-width: 575.98px) {
  .hup-nav .navbar-toggler::after { content: none; }
  .hup-nav .navbar-toggler { padding: .4rem .75rem; gap: 0; }
}
/* Sponsorenband: alle Logos nebeneinander, laufend (pausiert bei Hover/Fokus) */
.hup-marquee__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.hup-marquee__track { display: flex; width: max-content; animation: hup-marquee 80s linear infinite; }
.hup-marquee .hup-logos { display: flex; flex-wrap: nowrap; flex: none; gap: 1.25rem; margin: 1rem 0; padding: 0 1.25rem 0 0; align-items: stretch; }
.hup-marquee .hup-logos li, .hup-marquee .hup-logos li:first-child { grid-column: auto; flex: 0 0 auto; width: auto; height: 84px; padding: .5rem 1rem; }
.hup-marquee .hup-logos a { display: flex; align-items: center; width: auto; height: 100%; }
.hup-marquee .hup-logos img, .hup-marquee .hup-logos li:first-child img { width: auto; height: 100%; max-width: 170px; object-fit: contain; }
.hup-marquee:hover .hup-marquee__track, .hup-marquee:focus-within .hup-marquee__track, .hup-marquee.is-paused .hup-marquee__track { animation-play-state: paused; }
.hup-marquee__pause { display: block; margin: 0 auto; padding: .25rem .5rem; background: none; border: 0; color: var(--hup-pink-text, #b8236f); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
@keyframes hup-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hup-marquee__track { animation: none; } }
/* Spendenseite: Wege als Karten mit Abstand */
.hup-spendenwege{display:grid;gap:1.5rem;margin:1.5rem 0 2.5rem}
.hup-spendenweg{padding:1.5rem 1.75rem;border:1px solid rgba(0,0,0,.15);border-radius:12px}
.hup-spendenweg h3{margin:0 0 .75rem}
.hup-spendenweg p{margin:0 0 1rem}
.hup-spendenweg > :last-child{margin-bottom:0}
.hup-spendenweg .hup-paypal{margin:0}
/* Videos kompakter, mittig */
.hup-video{max-width:560px;margin-left:auto;margin-right:auto}
.hup-video button{font-size:1rem;padding:.65rem 1.3rem}
.hup-video p{font-size:.8rem}
/* hup-video-klein */
/* Termine: Jahresüberschriften */
.hup-termine .hup-termine__jahr{grid-column:1/-1;margin:.75rem 0 0;padding:0 0 .35rem;font-family:var(--hup-font-head,inherit);font-size:1.9rem;font-weight:800;line-height:1.1;color:var(--hup-dark);border-bottom:3px solid var(--hup-pink)}
.hup-termine .hup-termine__jahr:first-child{margin-top:0}
/* hup-termine-jahr */
/* Bilder in der Zeitleiste */
.hup-bilder{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-start;margin:1.1rem 0}
.hup-bild{flex:1 1 220px;max-width:340px;margin:0}
.hup-bild img{display:block;width:100%;height:auto;border-radius:var(--hup-radius-s,12px)}
.hup-bild figcaption{margin-top:.4rem;font-size:.9rem;line-height:1.35;color:var(--hup-muted,#666)}
/* hup-bilder-css */

/* hup-header-gross */
@media (min-width: 1700px) {
  .hup-header__inner { max-width: 1600px; }
  .hup-brand__text { max-width: 12rem; }
}
