/* ============================================
   GRID – Mobile First
   ============================================ */

#kontakt.wer-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 2rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

/* ============================================
   HERO – echtes 16:9 + korrigierte Positionen
   ============================================ */

.wer-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.wer-hero-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Bild */
.wer-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Titel – höher gesetzt */
.wer-hero-title {
  position: absolute;
  z-index: 2;
  bottom: 4.4rem;
  left: 1.8rem;
  margin: 0;
  font-size: calc(2.0rem * var(--a11y-scale));
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* Hinweis – perfekt sichtbar, #fff garantiert */
.wer-hero-credit-safe {
  position: absolute;
  z-index: 3;
  right: 1.8rem;
  bottom: 1.8rem;

  font-size: calc(0.75rem * var(--a11y-scale));
  font-weight: 400;
  letter-spacing: 0.3px;

  color: #fff; /* ⭐ wirklich weiß */
  opacity: 1;  /* ⭐ keine Abschwächung */

  padding: 0.3rem 0.65rem;
  background: rgba(0,0,0,0.28);
  border-radius: 4px;

  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

/* Desktop-Feinjustierung */
@media (min-width: 1024px) {
  .wer-hero-title {
    bottom: 4.8rem;
    left: 2rem;
  }

  .wer-hero-credit-safe {
    font-size: calc(0.65rem * var(--a11y-scale));
    bottom: 2rem;
    right: 2rem;
  }
}

/* ============================================
   Intro
   ============================================ */

.wer-intro {
  grid-column: 1 / -1;
  text-align: center;
}

.wer-title {
  font-size: calc(1.9rem * var(--a11y-scale));
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
}

.wer-intro p {
  font-size: calc(1rem * var(--a11y-scale));
  line-height: 1.6;
  color: #333;
}

/* ============================================
   Allgemeine Card-Basis
   ============================================ */

.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;
  height: 100%;
  border-left: 6px solid #005ca9;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wer-card:hover,
.wer-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card-body {
  padding: 1.3rem 1.1rem 1.1rem;
  flex: 1 1 auto;
}

.card-body p {
  font-size: calc(1rem * var(--a11y-scale));
  line-height: 1.55;
  color: #333;
}

.card-footer {
  margin-top: auto;
}

/* ============================================
   Maps-Card
   ============================================ */

.wer-wannwo-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.map-wrapper {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  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;
  padding: 0.9rem 1.1rem 1.1rem;
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
}

.wer-wannwo-card .card-footer a {
  color: #005a9e;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: calc(0.95rem * var(--a11y-scale));
}

/* ============================================
   Gruppen-Cards
   ============================================ */

.wer-group-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin: 1.4rem 0 1rem;
}

.wer-group-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #005ca9;
}

.wer-group-header h3 {
  font-size: calc(1.25rem * var(--a11y-scale));
  margin: 0;
  color: #005ca9;
  font-weight: 700;
}

.wer-meta {
  font-size: calc(0.95rem * var(--a11y-scale));
  color: #555;
  margin-top: 0.9rem;
  font-style: italic;
}

/* ============================================
   Gruppen-Card Footer (Mail)
   ============================================ */

.wer-group-footer {
  text-align: center;
  padding: 0.9rem 1.1rem 1.1rem;
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
}

.wer-group-footer a {
  color: #005a9e;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: calc(0.95rem * var(--a11y-scale));
}

.wer-group-footer a:hover {
  text-decoration: underline;
}

.wer-group-footer a:focus-visible {
  outline: 2px solid #005a9e;
  outline-offset: 3px;
  border-radius: 4px;
}

.wer-group-footer i {
  font-size: calc(1.2rem * var(--a11y-scale));
}

/* ============================================
   Zurück-Card
   ============================================ */

.back-section {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 5rem;
}

.wer-back-card {
  max-width: 400px;
  width: 100%;
}

.back-body {
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: calc(1.1rem * var(--a11y-scale));
  font-weight: 600;
  color: #005ca9;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ============================================
   GRID – 2 / 3 Spalten
   ============================================ */

@media (min-width: 700px) {
  #kontakt.wer-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wer-hero,
  .wer-intro,
  .back-section {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  #kontakt.wer-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wer-hero,
  .wer-intro,
  .back-section {
    grid-column: 1 / -1;
  }
}

/* ============================
   HERO CARD (OHNE BILD)
   ============================ */
.hero-card {
  background: #005ca9; /* BKE-Blau */
  color: #ffffff;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}


/* IMPRESSUM CARD – mit 15px Innenabstand links/rechts */
.card-impressum {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem; /* oben/unten bleibt */
  padding-left: 15px;
  padding-right: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.card-impressum .card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #005ca9; /* BKE-Blau */
}

.card-impressum a {
  color: #005ca9;
  text-decoration: underline;
}

.card-impressum p {
  margin-bottom: 1rem;
}

.card-datenschutz {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  padding-left: 15px;
  padding-right: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 8rem;
  line-height: 1.55;
}

.card-datenschutz .card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #005ca9;
}

.card-datenschutz h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #005ca9;
}

.card-datenschutz a {
  color: #005ca9;
  text-decoration: underline;
}

.card-datenschutz p {
  margin-bottom: 1rem;
}

/* Abstand zur Bottom-Nav für die Datenschutz-Card */
.card-datenschutz {
  margin-bottom: 8rem; /* zusätzlicher Abstand */
}

.card-impressum {
  margin-bottom: 8rem;
}

.main-content {
  padding-bottom: 14rem; /* Puffer über der Bottom-Nav */
}

.hero-card-small {
  background: #005ca9;
  color: #ffffff;
  padding: 1.5rem;        /* viel kleiner als vorher */
  border-radius: 16px;
  margin-bottom: 1.5rem;  /* kleiner Abstand */
}

.hero-title-small {
  font-size: 1.3rem;      /* kompakt */
  margin-bottom: 0.3rem;
}

.hero-subtitle-small {
  font-size: 1rem;
  opacity: 0.9;
}


