/* =========================================================
   Ortsfeuerwehr-Kacheln (Layout A) – CLEAN
   Ziel: ruhige Kacheln, ganze Kachel klickbar, kein Abschneiden/Clamp,
   kein Buchstaben-Umbruch, kompatibel mit WP "is-layout-constrained".
   ========================================================= */

/* Kachel (Gruppe) */
.ofw-kachel {
  background: #f6f6f6;
  border-radius: 10px;
  overflow: hidden;

  min-height: 140px;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);

  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

/* Hover / Fokus */
.ofw-kachel:hover,
.ofw-kachel:focus-within {
  border-color: #b30000;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

/* Headings in der Kachel: niemals clamp/ellipsis */
.ofw-kachel h2,
.ofw-kachel h3,
.ofw-kachel h4 {
  margin: 0 !important;
  padding: 0 !important;

  height: auto !important;
  max-height: none !important;
  overflow: visible !important;

  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;

  width: 100% !important;
  max-width: 100% !important;
}

/* Link macht die ganze Kachel klickbar */
.ofw-kachel h2 a,
.ofw-kachel h3 a,
.ofw-kachel h4 a {
  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 100% !important;
  max-width: 100% !important;
  min-height: 140px;
  padding: 20px;
  box-sizing: border-box;

  text-align: center;
  font-weight: 600;
  font-size: 1.35rem !important; /* sorgt dafür, dass „Ortsfeuerwehr …“ sauber passt */
  line-height: 1.2 !important;

  /* WICHTIG: kein Buchstaben-Umbruch */
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important; /* umbrechen statt abschneiden */
  hyphens: manual !important;

  /* Theme-Link-Stile neutralisieren */
  color: inherit;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;

  outline: none !important;
  box-shadow: none !important;

  /* kein Abschneiden/Masking */
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  clip-path: none !important;
  transform: none !important;
}

/* Link-Stile sicher abräumen */
.ofw-kachel a,
.ofw-kachel a:hover,
.ofw-kachel a:focus,
.ofw-kachel a:active,
.ofw-kachel a:focus-visible {
  text-decoration: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hover/Fokus: roter Text */
.ofw-kachel:hover a,
.ofw-kachel:focus-within a {
  color: #b30000;
}

/* WP Inner-Container / constrained Layout darf Text nicht begrenzen */
.ofw-kachel .wp-block-group__inner-container,
.ofw-kachel .is-layout-constrained,
.ofw-kachel .is-layout-constrained > * {
  max-width: none !important;
  width: 100% !important;
  overflow: visible !important;
}

/* Sicherheitsnetz: innerhalb der Kachel nichts künstlich begrenzen */
.ofw-kachel,
.ofw-kachel * {
  max-width: none !important;
}

/* =========================================================
   Seitentitel im Frontend ausblenden (Cover-Titel nutzen)
   ========================================================= */
.page h1,
.page .page-title,
.page .entry-title,
.page .post-title,
.page .wp-block-post-title,
.page header.entry-header,
.page .entry-header,
.page .page-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
