/**
 * Alumni FFHS – FFHS-Markenlook (Erweiterung zu Bootstrap 4 + styles.css vom CDN).
 * Klassen aus layouts/microtemplates & layouts/textblock.
 */

/* -------------------------------------------------------------------------- */
/* Design tokens                                                               */
/* -------------------------------------------------------------------------- */

:root {
  --ffhs-red: #d0021b;
  --ffhs-red-dark: #a90216;
  --ffhs-purple: #4f2378;
  --ffhs-text: #454444;
  --ffhs-text-muted: #5a5a5a;
  --ffhs-border: #e0e0e0;
  --ffhs-surface: #ffffff;
  --ffhs-surface-alt: #f8f9fa;
  --ffhs-red-soft: rgba(208, 2, 27, 0.08);
  --ffhs-font-sans:
    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ffhs-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ffhs-radius: 4px;
  --ffhs-shadow: 0 2px 12px rgba(69, 68, 68, 0.08);
  --ffhs-link: var(--ffhs-red);
  --ffhs-link-hover: var(--ffhs-red-dark);
}

/* -------------------------------------------------------------------------- */
/* Basis                                                                       */
/* -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ffhs-font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ffhs-text);
}

/* Standard-Linkfarbe (wird von Navigation / Hero / Footer gezielt überschrieben) */
a {
  color: var(--ffhs-link);
}

a:hover {
  color: var(--ffhs-link-hover);
}

/* -------------------------------------------------------------------------- */
/* Navigation (.navbar.top-nav, mainNavigation.pug)                            */
/* -------------------------------------------------------------------------- */

nav.top-nav,
.navbar.top-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 0;
  padding-bottom: 0;
  background: #fff !important;
  border-bottom: 1px solid var(--ffhs-border);
}

nav.top-nav::before,
.navbar.top-nav::before {
  display: block;
  width: 100%;
  height: 7px;
  content: "";
  background: linear-gradient(
    90deg,
    var(--ffhs-red) 0%,
    var(--ffhs-purple) 100%
  );
}

.navbar.top-nav .navbar-brand {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar.top-nav .navbar-brand .logo {
  width: auto;
  max-width: none;
  height: 120px;
}

.navbar.top-nav .nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ffhs-text) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.navbar.top-nav .nav-item.active .nav-link,
.navbar.top-nav .nav-link:hover,
.navbar.top-nav .nav-link:focus {
  color: var(--ffhs-red) !important;
}

.navbar.top-nav .dropdown-menu {
  border-color: var(--ffhs-border);
  border-radius: var(--ffhs-radius);
  box-shadow: var(--ffhs-shadow);
}

.navbar.top-nav .dropdown-item {
  color: var(--ffhs-text);
}

.navbar.top-nav .dropdown-item:hover {
  color: var(--ffhs-red);
  background: var(--ffhs-red-soft);
}

.navbar-nav.flex-row .nav-link img {
  opacity: 0.85;
}

.navbar-nav.flex-row .nav-link:hover img {
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Main & Typo (standard.pug → doc.objContainer)                               */
/* -------------------------------------------------------------------------- */

/* Max-Breite + Zentrierung für .wrap überall (nicht nur unter .alumni-preview). */
.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.preview-block {
  margin-bottom: 16px;
}

main {
  min-height: calc(100vh - 200px);
}

main .container {
  margin-bottom: 1rem;
}

main :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ffhs-font-serif);
  color: var(--ffhs-red);
}

main h1 {
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hauptinhalt & Blöcke: FFHS-Rot (ohne .container-Zwang) */
main
  a:not(.btn):not(.nav-link):not(.dropdown-item):not(
    .carousel-control-prev
  ):not(.carousel-control-next):not(.lightbox),
main
  .container
  a:not(.btn):not(.nav-link):not(.dropdown-item):not(
    .carousel-control-prev
  ):not(.carousel-control-next):not(.lightbox) {
  color: var(--ffhs-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

main a:not(.btn):not(.nav-link):not(.dropdown-item):not(
    .carousel-control-prev
  ):not(.carousel-control-next):not(.lightbox):hover,
main
  .container
  a:not(.btn):not(.nav-link):not(.dropdown-item):not(
    .carousel-control-prev
  ):not(.carousel-control-next):not(.lightbox):hover {
  color: var(--ffhs-link-hover);
}

/* Microtemplates / Sektionen außerhalb .container, z. B. direkt unter main */
.preview-block:not(.preview-hero)
  a:not(.btn):not(.nav-link):not(.dropdown-item):not(
    .carousel-control-prev
  ):not(.carousel-control-next):not(.lightbox) {
  color: var(--ffhs-link);
}

.preview-block:not(.preview-hero)
  a:not(.btn):not(.nav-link):not(.dropdown-item):not(
    .carousel-control-prev
  ):not(.carousel-control-next):not(.lightbox):hover {
  color: var(--ffhs-link-hover);
}

main .container > div + div {
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* horz-full-row / fullWidthDevider.pug                                        */
/* -------------------------------------------------------------------------- */

.horz-full-row {
  padding: 2.5rem 0;
}

.horz-full-row .container > .row {
  margin-right: -10px;
  margin-left: -10px;
}

.horz-full-row .container > .row > [class*="col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

.bg-vertical-white-to-light {
  background: #fff
    linear-gradient(to bottom, #fff 0%, var(--ffhs-surface-alt) 100%);
}

.horz-full-row.bg-light,
main .bg-light {
  background-color: var(--ffhs-surface-alt) !important;
}

.horz-full-row.justwhite,
main .justwhite {
  background: #fff !important;
}

/* -------------------------------------------------------------------------- */
/* twoBox / 2BoxTemplate.pug                                                   */
/* -------------------------------------------------------------------------- */

.twoBox {
  min-height: 280px;
  margin: 1.5rem 0;
  padding: 2rem;
  font-size: 1.05rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ffhs-border);
  border-radius: var(--ffhs-radius);
  box-shadow: var(--ffhs-shadow);
}

.twoBox h2 {
  margin-top: 0;
  font-family: var(--ffhs-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ffhs-red);
}

.twoBox p {
  color: var(--ffhs-text-muted);
}

/* -------------------------------------------------------------------------- */
/* feedList.pug                                                                */
/* -------------------------------------------------------------------------- */

.feedlist {
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ffhs-border);
  border-radius: var(--ffhs-radius);
}

.feedlist h2 {
  margin-top: 0;
  font-family: var(--ffhs-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ffhs-red);
}

/* -------------------------------------------------------------------------- */
/* card.pug                                                                    */
/* -------------------------------------------------------------------------- */

main .card {
  border-color: var(--ffhs-border);
  border-radius: var(--ffhs-radius);
  box-shadow: var(--ffhs-shadow);
}

main .card-title {
  font-family: var(--ffhs-font-serif);
  font-weight: 700;
  color: var(--ffhs-red);
}

main .card-text {
  color: var(--ffhs-text-muted);
}

/* -------------------------------------------------------------------------- */
/* Galerie / galery.pug, galeryImage.pug                                       */
/* -------------------------------------------------------------------------- */

.topSpace.content.bg,
.content.bg {
  padding-top: 1rem;
}

.gallery-block.grid-gallery {
  padding-bottom: 3rem;
}

.gallery-block.grid-gallery .heading h2 {
  font-family: var(--ffhs-font-serif);
  color: var(--ffhs-red);
}

.gallery-block .item img {
  border-radius: var(--ffhs-radius);
}

/* -------------------------------------------------------------------------- */
/* carousel.pug / caruselImageEntry.pug                                        */
/* -------------------------------------------------------------------------- */

.carousel {
  overflow: hidden;
  border: 1px solid var(--ffhs-border);
  border-radius: var(--ffhs-radius);
}

.carousel-item img {
  object-fit: cover;
  max-height: 70vh;
}

.carousel-caption {
  padding-bottom: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  border-radius: 0 0 var(--ffhs-radius) var(--ffhs-radius);
}

.carousel-control-prev,
.carousel-control-next {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}

/* -------------------------------------------------------------------------- */
/* Formulare (register, eventRegister, eventTemplate)                          */
/* -------------------------------------------------------------------------- */

main .btn-primary {
  background-color: var(--ffhs-red);
  border-color: var(--ffhs-red);
}

main .btn-primary:hover,
main .btn-primary:focus {
  background-color: var(--ffhs-red-dark);
  border-color: var(--ffhs-red-dark);
}

main .form-control:focus {
  border-color: var(--ffhs-purple);
  box-shadow: 0 0 0 0.2rem rgba(79, 35, 120, 0.15);
}

.cslider-warn {
  color: var(--ffhs-red) !important;
}

.cslider,
main #cslider {
  border-radius: var(--ffhs-radius) !important;
}

.cslider .cHandle,
#cslider .cHandle {
  background-color: var(--ffhs-red) !important;
}

.required {
  color: var(--ffhs-red);
}

/* -------------------------------------------------------------------------- */
/* alert.pug (ehem. altert.pug)                                                */
/* -------------------------------------------------------------------------- */

.alert-danger {
  border-color: #f5c6cb;
}

.alert-success {
  border-color: #c3e6cb;
}

/* -------------------------------------------------------------------------- */
/* footer.pug                                                                  */
/* -------------------------------------------------------------------------- */

footer {
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(
    180deg,
    var(--ffhs-red) 0%,
    var(--ffhs-purple) 100%
  );
}

footer a {
  color: #fff;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

footer .footer-logo {
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0.95;
  filter: brightness(0) invert(1);
}

footer .text-center {
  color: rgba(255, 255, 255, 0.88);
}

/* FFHS site-footer (footerNew.pug): Inhalt zentriert */
footer.site-footer {
  text-align: center;
}

footer.site-footer .footer-meta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

footer.site-footer .footer-meta .oss-note {
  margin-inline: auto;
}

footer.site-footer .footer-powered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

footer.site-footer .footer-powered__label {
  display: block;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

footer.site-footer .footer-powered__link {
  display: inline-block;
  line-height: 0;
}

footer.site-footer .footer-powered img {
  margin: 0;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* -------------------------------------------------------------------------- */
/* index-ffhs.html – Spiegel alumni-ffhs.ch (Scope .alumni-preview)            */
/* Microtemplate-Zuordnung: data-mt = empfohlener Block-Typ zum Splitten      */
/* -------------------------------------------------------------------------- */

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

.alumni-preview {
  margin: 0;
  font-family: var(--ffhs-font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ffhs-text);
  background: var(--ffhs-surface);
}

.alumni-preview a {
  color: var(--ffhs-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.alumni-preview a:hover {
  color: var(--ffhs-link-hover);
}

/* Header: an header.site-header gebunden, damit Flex auch ohne body.alumni-preview greift (Cloudee standard.pug). */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ffhs-border);
}

header.site-header::before {
  display: block;
  width: 100%;
  height: 7px;
  content: "";
}

header.site-header .header-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

header.site-header .header-inner {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-block: 0.85rem;
}

header.site-header .brand {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

header.site-header .brand:hover {
  opacity: 0.92;
}

header.site-header .brand:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ffhs-red);
  outline-offset: 4px;
}

header.site-header .brand .logo {
  display: block;
  width: auto;
  height: 120px;
}

header.site-header .site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

header.site-header .site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ffhs-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

header.site-header .site-nav a:hover {
  color: var(--ffhs-red);
}

header.site-header .site-nav li.active > a:first-of-type {
  color: var(--ffhs-red);
}

header.site-header .site-nav li.dropdown {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

header.site-header .site-nav li.dropdown > a.dropdown-toggle {
  padding: 0.15rem 0.35rem;
  text-transform: none;
  letter-spacing: normal;
}

header.site-header .site-nav .dropdown-menu {
  z-index: 60;
  margin-top: 0.25rem;
}

header.site-header .site-nav .dropdown-item {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
}

header.site-header .site-nav--social a {
  display: inline-flex;
  padding: 0.25rem;
  line-height: 0;
  color: var(--ffhs-text-muted);
}

header.site-header .site-nav--social a:hover {
  color: var(--ffhs-red);
}

header.site-header .site-nav--social img {
  display: block;
  width: 24px;
  height: 24px;
}

@media (max-width: 720px) {
  header.site-header .header-bar {
    align-items: flex-start;
  }

  header.site-header .header-inner {
    flex-basis: 100%;
    justify-content: flex-start;
    padding-block: 0 0.85rem;
  }

  header.site-header .site-nav ul {
    gap: 0.5rem 1rem;
  }
}

/* Hauptinhalt: Blöcke wie horz-full-row + container (splittbar) */
.alumni-preview .preview-main {
  min-height: calc(100vh - 200px);
}

.alumni-preview .preview-block {
  padding: clamp(2rem, 6vw, 2.5rem) 0;
}

/* Kein doppeltes Padding: horz-full-row liefert den vertikalen Rhythmus wie auf alumni-ffhs.ch */
.alumni-preview .preview-block.horz-full-row {
  padding-top: 0;
  padding-bottom: 0;
}

.alumni-preview .preview-block--alt {
  background: var(--ffhs-surface-alt);
}

/* Farbiger Hero: .preview-block + .preview-hero (section oder div; ohne body.alumni-preview / Microtemplate). */
.preview-block.preview-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--ffhs-purple) 0%,
    #3a1a5c 40%,
    var(--ffhs-red) 100%
  );
}

.preview-block.preview-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(
      ellipse 70% 55% at 0% 0%,
      rgba(208, 2, 27, 0.45),
      transparent 55%
    ),
    radial-gradient(
      ellipse 55% 45% at 100% 100%,
      rgba(79, 35, 120, 0.5),
      transparent 50%
    );
}

.preview-block.preview-hero .wrap {
  position: relative;
  z-index: 1;
}

.preview-block.preview-hero .hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.preview-block.preview-hero h1 {
  margin: 0 0 1.25rem;
  max-width: 22ch;
  font-family: var(--ffhs-font-serif);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.02em;
}

.preview-block.preview-hero .lead {
  margin: 0 0 1rem;
  max-width: 42ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.preview-block.preview-hero .tagline {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

.preview-block.preview-hero a {
  color: #f0c4a8;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.preview-block.preview-hero a:hover {
  color: #fff;
}

/* Zwei Spalten nebeneinander (auch ohne body.alumni-preview / Microtemplate grid-2.pug) */
.preview-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.preview-grid-2 .twoBox {
  margin: 0;
}

/* News & Events: article.twoBox.feedlist (grid-2 news-events.pug + script.js Feeds) */
.preview-grid-2 .twoBox.feedlist {
  padding: 1.5rem 1.75rem;
  text-align: left;
  min-height: 0;
}

.preview-grid-2 .twoBox.feedlist h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  text-align: center;
  border-bottom: 1px solid var(--ffhs-border);
}

.preview-grid-2 .twoBox.feedlist > div {
  margin-bottom: 0.35rem;
}

.preview-grid-2 .twoBox.feedlist > div:not(:last-child) {
  margin-bottom: 0.65rem;
}

.preview-grid-2 .twoBox.feedlist a {
  color: var(--ffhs-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.preview-grid-2 .twoBox.feedlist > div:not(:last-child) a:hover {
  color: var(--ffhs-link-hover);
}

.preview-grid-2 .twoBox.feedlist h4 {
  margin: 0 0 0.35rem;
  font-family: var(--ffhs-font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ffhs-red);
}

.preview-grid-2 .twoBox.feedlist h4 span {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--ffhs-font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ffhs-text-muted);
}

.preview-grid-2 .twoBox.feedlist a > div {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ffhs-text-muted);
}

.preview-grid-2 .twoBox.feedlist hr {
  margin: 0.65rem 0 0;
  border: 0;
  border-top: 1px solid var(--ffhs-border);
}

.preview-grid-2 .twoBox.feedlist > div:last-child {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding-top: 0.5rem;
  text-align: center;
  border-top: 1px solid var(--ffhs-border);
}

.preview-grid-2 .twoBox.feedlist > div:last-child a {
  display: inline-block;
  font-weight: 600;
  color: var(--ffhs-red);
}

.preview-grid-2 .twoBox.feedlist > div:last-child a:hover {
  color: var(--ffhs-red-dark);
  text-decoration: underline;
}

/* Nutzt bestehendes .twoBox aus CMS-Theme; Inhalt = alumni-ffhs Kacheln */
.alumni-preview .twoBox h2 {
  margin-top: 0;
  font-family: var(--ffhs-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ffhs-red);
}

.alumni-preview .twoBox p {
  margin: 0 0 0.75rem;
  color: var(--ffhs-text-muted);
}

.alumni-preview .twoBox p:last-child {
  margin-bottom: 0;
}

.alumni-preview .twoBox .link-more {
  margin-top: 1rem;
}

.alumni-preview .veryconnect-visual {
  margin: 1rem auto 0;
  text-align: center;
}

.alumni-preview .veryconnect-visual img {
  width: 25%;
  min-width: 120px;
  max-width: 200px;
  height: auto;
}

.alumni-preview .hashtags-row {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* Hashtag-Kasten im Footer-Bereich */
.alumni-preview .footer-hashtags-box {
  max-width: 56rem;
  margin: 0 auto 1.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--ffhs-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.alumni-preview .footer-hashtags-box .hashtags-row {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

/* Buttons (wie früheres index-ffhs) */
.alumni-preview .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.alumni-preview .btn:active {
  transform: scale(0.99);
}

.alumni-preview .btn-primary {
  color: #fff;
  background: var(--ffhs-red);
  box-shadow: 0 4px 16px rgba(208, 2, 27, 0.35);
}

.alumni-preview .btn-primary:hover {
  color: #fff;
  background: var(--ffhs-red-dark);
  box-shadow: 0 6px 20px rgba(208, 2, 27, 0.4);
}

/* Footer: alumni-ffhs + erweiterte Zeile (Cloudee) */
.alumni-preview footer.site-footer {
  padding: 2.5rem 0 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(
    180deg,
    var(--ffhs-red) 0%,
    var(--ffhs-purple) 100%
  );
}

.alumni-preview footer.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alumni-preview footer.site-footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.alumni-preview footer.site-footer .footer-powered {
  margin-bottom: 1.5rem;
  text-align: center;
}

.alumni-preview footer.site-footer .footer-powered img {
  margin: 0;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.alumni-preview footer.site-footer .footer-meta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.alumni-preview footer.site-footer .oss-note {
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------------------------------- */
/* Vorstand / Team-Karten                                                       */
/* -------------------------------------------------------------------------- */

.preview-block.page-intro {
  position: relative;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.75rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--ffhs-surface-alt) 100%);
}

.preview-block.page-intro::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--ffhs-red) 0%, var(--ffhs-purple) 100%);
}

.preview-block.page-intro h1 {
  margin: 0 0 1rem;
  font-family: var(--ffhs-font-serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ffhs-red);
  letter-spacing: -0.02em;
}

.preview-block.page-intro .lead {
  max-width: 72ch;
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ffhs-text);
}

.preview-block.page-intro .page-intro__note {
  max-width: 72ch;
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ffhs-purple);
  background: rgba(79, 35, 120, 0.07);
  border-left: 3px solid var(--ffhs-red);
  border-radius: 0 var(--ffhs-radius) var(--ffhs-radius) 0;
}

.preview-block.board-section {
  padding: 2rem 0 3rem;
  background: var(--ffhs-surface-alt);
}

.preview-block.board-section--former {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background: var(--ffhs-surface);
  border-top: 1px solid var(--ffhs-border);
}

.board-section h2 {
  position: relative;
  margin: 0 0 2rem;
  padding-bottom: 0.85rem;
  font-family: var(--ffhs-font-serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--ffhs-red);
  text-align: center;
}

.board-section h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3.5rem;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--ffhs-red), var(--ffhs-purple));
  border-radius: 2px;
  transform: translateX(-50%);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.board-grid--lead {
  margin-bottom: 1.75rem;
}

.board-grid--lead:empty,
.board-grid--members:empty {
  display: none;
  margin: 0;
}

.board-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid var(--ffhs-border);
  border-radius: calc(var(--ffhs-radius) + 2px);
  box-shadow: var(--ffhs-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.board-card:hover {
  border-color: rgba(208, 2, 27, 0.25);
  box-shadow: 0 10px 28px rgba(69, 68, 68, 0.12);
  transform: translateY(-3px);
}

.board-card::before {
  display: block;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--ffhs-red) 0%, var(--ffhs-purple) 100%);
}

.board-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ffhs-surface-alt);
}

.board-card__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(79, 35, 120, 0.18) 100%);
}

.board-card__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease;
}

.board-card:hover .board-card__photo {
  transform: scale(1.04);
}

.board-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.35rem 1.35rem;
}

.board-card__name {
  margin: 0 0 0.45rem;
  font-family: var(--ffhs-font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ffhs-red);
}

.board-card__role {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ffhs-purple);
  background: rgba(79, 35, 120, 0.09);
  border: 1px solid rgba(79, 35, 120, 0.15);
  border-radius: 999px;
}

.board-card__facts {
  flex: 1;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ffhs-text-muted);
}

.board-card__facts li {
  padding-left: 0.15rem;
}

.board-card__facts li::marker {
  color: var(--ffhs-red);
}

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

.board-card__linkedin {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ffhs-border);
}

.board-card__linkedin a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ffhs-red) !important;
  text-decoration: none !important;
  background: var(--ffhs-red-soft);
  border: 1px solid rgba(208, 2, 27, 0.2);
  border-radius: var(--ffhs-radius);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.board-card__linkedin a::before {
  font-size: 0.75rem;
  font-weight: 700;
  content: "in";
  font-family: var(--ffhs-font-sans);
  letter-spacing: -0.02em;
}

.board-card__linkedin a:hover {
  color: #fff !important;
  background: var(--ffhs-red);
  border-color: var(--ffhs-red);
}

/* Präsident/in: breitere Karte, optional zweispaltig ab Desktop */
.board-card--lead {
  border-color: rgba(208, 2, 27, 0.2);
  box-shadow: 0 6px 24px rgba(208, 2, 27, 0.1);
}

@media (min-width: 768px) {
  .board-card--lead {
    grid-column: 1 / -1;
    flex-direction: row;
    max-width: 52rem;
    margin-inline: auto;
  }

  .board-card--lead .board-card__media {
    flex: 0 0 38%;
    aspect-ratio: 3 / 4;
  }

  .board-card--lead .board-card__body {
    justify-content: center;
    padding: 1.5rem 1.75rem;
  }

  .board-card--lead .board-card__name {
    font-size: 1.45rem;
  }
}

.board-section--former .board-card {
  background: #fafafa;
}

.board-section--former .board-card::before {
  height: 3px;
  opacity: 0.75;
}

.board-section--former .board-card:hover {
  transform: none;
  box-shadow: var(--ffhs-shadow);
}

.board-section--former .board-card__photo {
  filter: grayscale(0.15);
}

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