/* ============================================
   A11Y-OPTIMIERTE VERSION
   ============================================ */

/* Grundfarben – WCAG-konform */
:root {
  --bke-blue: #00508f; /* dunkleres Blau für besseren Kontrast */
  --text-dark: #1f1f1f;
  --text-medium: #333;
  --text-light: #555;
  --focus-outline: #00508f;
}

/* ============================================
   WER – Grundstruktur
   ============================================ */

.wer-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 2rem;
  display: grid;
  gap: 1.75rem;
}

.wer-title {
  text-align: center;
  font-size: calc(1.9rem * var(--a11y-scale));
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* ============================================
   Typografie & Hilfsklassen
   ============================================ */

.wer-section h3,
.wer-section h4 {
  font-size: calc(1.25rem * var(--a11y-scale));
  margin: 0 0 0.4rem;
  color: var(--bke-blue);
}

/* ============================================
   Header-Card Überschrift – näher an H2/H1
   ============================================ */

.wer-section h3.wer-subtitle {
  font-size: calc(1.7rem * var(--a11y-scale)); /* neue Größe */
  line-height: 1.25;
  color: var(--bke-blue);
  font-weight: 700;
}

.wer-meta {
  font-size: calc(0.9rem * var(--a11y-scale));
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.wer-section p {
  font-size: calc(1rem * var(--a11y-scale));
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0.3rem 0;
}

/* Screenreader-only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   Gruppen-Tage
   ============================================ */

.wer-subtitle,
.wer-card-header .card-body h3 {
  color: var(--bke-blue);
  font-weight: 700;
}

/* ============================================
   CARD – Grundlayout
   ============================================ */

.wer-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Hover + Tastatur gleichwertig */
.wer-card:hover,
.wer-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ============================================
   HEADERBILD
   ============================================ */

.wer-card-header .card-header-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ============================================
   CARD BODY
   ============================================ */

.wer-card .card-body {
  padding: 1.3rem 1.1rem 1.1rem;
}

/* ============================================
   CARD FOOTER
   ============================================ */

.wer-card .card-footer {
  margin-top: auto;
  padding: 0.9rem 1.1rem;
  background: #f4f4f4;
  border-top: 1px solid #dcdcdc;
  text-align: right;
}

.wer-card .card-footer a {
  color: var(--bke-blue);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: calc(0.95rem * var(--a11y-scale));
}

.wer-card .card-footer a:focus-visible {
  outline: 3px solid var(--focus-outline);
  outline-offset: 4px;
  border-radius: 4px;
}

.wer-card .card-footer a:hover {
  text-decoration: underline;
}

.wer-card .card-footer i {
  font-size: calc(1.1rem * var(--a11y-scale));
  aria-hidden: true;
}

/* ============================================
   Border-Left
   ============================================ */

.wer-card:not(.wer-card-header) {
  border-left: 6px solid var(--bke-blue);
}

.wer-card:not(.wer-card-header) .card-body {
  padding-left: 1.3rem;
}

/* ============================================
   ZURÜCK-CARD
   ============================================ */

.back-section {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 5rem;
}

.wer-back-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.back-body {
  padding: 1.6rem 1.2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: calc(1.1rem * var(--a11y-scale));
  font-weight: 600;
  color: var(--bke-blue);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link i {
  font-size: calc(1.3rem * var(--a11y-scale));
  aria-hidden: true;
}

/* ============================================
   GRID – Mobile First
   ============================================ */

.wer-section {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .wer-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wer-card-header {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .wer-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wer-card-header {
    grid-column: 1 / -1;
  }
}

/* ============================================
   HERO – Überschrift bleibt weiß (WCAG-konform)
   ============================================ */

.wer-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.wer-hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.wer-hero-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;

  /* dunkler für sicheren Weiß-Kontrast */
  filter: brightness(0.55);
}

/* ⭐ Hero-Titel jetzt wirklich größer und sichtbar wie ein H1 */
.wer-hero .wer-hero-title {
  position: absolute;
  bottom: 4.2rem;
  left: 1.6rem;
  margin: 0;

  /* feste, sichtbare Größe */
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;

  /* stärkerer Schatten für optische Größe */
  text-shadow:
    0 3px 8px rgba(0,0,0,0.75),
    0 0 14px rgba(0,0,0,0.65);
}

.wer-hero-credit {
  position: absolute;
  bottom: 8px;
  left: 12px;
  color: #fff;
  font-size: calc(0.65rem * var(--a11y-scale));
  opacity: 0.9;
  margin: 0;
  pointer-events: none;
}

/* ============================================
   Gruppen-Header
   ============================================ */

.wer-group-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.wer-group-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bke-blue);
}

/* ============================================
   WANN & WO
   ============================================ */

.wannwo-layout {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-bottom: 5rem;
}

.wer-wannwo-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.wannwo-back-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.map-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.wer-wannwo-card .card-footer {
  text-align: center;
}

.wer-wannwo-card .card-footer i {
  font-size: calc(1.6rem * var(--a11y-scale));
  aria-hidden: true;
}
