/* H34 Schriftbild und Lesbarkeit v1.1.0
 * NUR die Startseite im bestehenden Design „Modernes Funkmagazin“.
 * Keine Seitenbreiten, Reihenfolgen, Datumsinhalte, Widgets oder Menüs geändert.
 * Entfernen/Deaktivieren des Plugins stellt das bisherige Schriftbild wieder her.
 */
body.h34fx-magazin.h34fx-is-home {
  --h34ty-body: 18px;
  --h34ty-info: 17px;
  --h34ty-leading: 1.58;
}

/* 1. Hero-Überschrift: kontrolliert skalierend, nie mitten im Wort umbrechen.
 * Der bereits installierte H34-Überschriften-Fix darf bei Bedarf durch
 * Inline-Anpassung weiter nach unten korrigieren. */
body.h34fx-magazin.h34fx-is-home :is(main,.site-main,#primary,.entry-content) h1 {
  font-size: clamp(2rem, 5.1vw, 4.25rem) !important;
  line-height: 1.10 !important;
  letter-spacing: -.026em;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

/* Ruhige Größenhierarchie; nur H34-Startseiten-Abschnitte. */
body.h34fx-magazin.h34fx-is-home .h34fx-section h2 {
  font-size: clamp(32px, 2.7vw, 36px);
  line-height: 1.22;
  text-wrap: balance;
}

/* 1. Interessen-Kacheln: Beschreibung einheitlich 18 px. */
body.h34fx-magazin.h34fx-is-home .h34fx-card-interesse h3 {
  font-size: clamp(20px, 1.5vw, 23px) !important;
  line-height: 1.32;
  overflow-wrap: break-word;
}
body.h34fx-magazin.h34fx-is-home .h34fx-card-interesse :is(p,li),
body.h34fx-magazin.h34fx-is-home .h34ty-section-lead {
  font-size: var(--h34ty-body) !important;
  line-height: var(--h34ty-leading) !important;
  color: #294657;
  overflow-wrap: break-word;
}

/* 2. Termine: Titel, Uhrzeit und Veranstaltungsort bleiben klar erkennbar. */
body.h34fx-magazin.h34fx-is-home .h34fx-card-termin h3 {
  font-size: clamp(20px, 1.58vw, 23px) !important;
  line-height: 1.32 !important;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
body.h34fx-magazin.h34fx-is-home .h34fx-card-termin :is(p,small,time,li),
body.h34fx-magazin.h34fx-is-home .h34fx-card-termin .h34ty-event-detail {
  font-size: var(--h34ty-info) !important;
  line-height: 1.54 !important;
  color: #28475a;
  overflow-wrap: break-word;
}
/* Bestehende Datumsfelder bleiben in Form und Größe erhalten; nur die
 * bislang sehr kleinen Wochentags-/Monatszeilen werden lesbarer. */
body.h34fx-magazin.h34fx-is-home .h34fx-card-termin .h34fx-date-badge .h34fx-date-weekday {
  font-size: 14px !important;
  color: #d5f4ff;
}
body.h34fx-magazin.h34fx-is-home .h34fx-card-termin .h34fx-date-badge .h34fx-date-month {
  font-size: 14px !important;
  color: #ffffff;
}

/* 3. Clubstationen: Rufzeichen, Beschreibungen und Wetter. */
body.h34fx-magazin.h34fx-is-home .h34fx-card-station h3 {
  font-size: clamp(27px, 2.7vw, 34px) !important;
  line-height: 1.18;
  letter-spacing: -.018em;
}
body.h34fx-magazin.h34fx-is-home .h34fx-card-station p {
  font-size: var(--h34ty-body) !important;
  line-height: var(--h34ty-leading) !important;
  color: #28475a;
}
body.h34fx-magazin.h34fx-is-home .h34fx-card-station .h34ty-weather,
body.h34fx-magazin.h34fx-is-home .h34fx-card-station .h34ty-weather :is(span,small,em,strong,b) {
  font-size: max(16px, var(--h34ty-info)) !important;
  line-height: 1.5;
  color: #22556a;
}

/* 5. Die beiden kleinen, türkisen redaktionellen Kennzeichnungen. */
body.h34fx-magazin.h34fx-is-home .h34ty-eyebrow {
  font-size: 15px !important;
  line-height: 1.5 !important;
  letter-spacing: .06em !important;
  color: #0c6979 !important;
  font-weight: 750 !important;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* 4. Tablet: genug Platz lassen, ohne künstlich schmale Textspalten. */
@media (max-width: 900px) {
  body.h34fx-magazin.h34fx-is-home :is(main,.site-main,#primary,.entry-content) h1 {
    font-size: clamp(2rem, 5.6vw, 3.1rem) !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34fx-section h2 {
    font-size: clamp(26px, 3.7vw, 32px);
  }
}

/* 4. Smartphone: 17-px-Lesetext und gut skalierende Überschriften. */
@media (max-width: 600px) {
  body.h34fx-magazin.h34fx-is-home {
    --h34ty-body: 17px;
    --h34ty-info: 16px;
    --h34ty-leading: 1.58;
  }
  body.h34fx-magazin.h34fx-is-home :is(main,.site-main,#primary,.entry-content) h1 {
    font-size: clamp(31px, 8.4vw, 39px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.022em;
  }
  body.h34fx-magazin.h34fx-is-home .h34fx-section h2 {
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.23;
  }
  body.h34fx-magazin.h34fx-is-home .h34fx-card-interesse h3,
  body.h34fx-magazin.h34fx-is-home .h34fx-card-termin h3 {
    font-size: clamp(20px, 5.4vw, 22px) !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34fx-card-station h3 {
    font-size: clamp(27px, 7.3vw, 31px) !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34ty-eyebrow {
    font-size: 14px !important;
    letter-spacing: .04em !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34fx-card-termin .h34fx-date-badge .h34fx-date-weekday,
  body.h34fx-magazin.h34fx-is-home .h34fx-card-termin .h34fx-date-badge .h34fx-date-month {
    font-size: 14px !important;
  }
}

/* Nutzervergrößerung und reduzierte Bewegung werden nicht eingeschränkt.
 * Keine feste Höhe, keine versteckten Texte oder horizontale Scrollsperre. */


/* ===== Version 1.1 – Nachprüfung anhand echter Desktop-Screenshots =====
 * Die H34-Startseite hat außer Interessen-, Termin- und Stationenkarten
 * auch kleine Info-/Besuchskarten. Diese bisher nicht angepassten Texte
 * werden ohne Änderungen an HTML, Positionierung oder Kalendern vereinheitlicht.
 */

/* 6. Erster Besuch: sechs Schrittkarten waren im Vergleich zu klein. */
body.h34fx-magazin.h34fx-is-home .h34fx-card-besuch h3 {
  font-size:clamp(18px,1.4vw,20px) !important;
  line-height:1.35 !important;
  overflow-wrap:break-word;
}
body.h34fx-magazin.h34fx-is-home .h34fx-card-besuch :is(p,li) {
  font-size:17px !important;
  line-height:1.57 !important;
  color:#314e5f;
  overflow-wrap:break-word;
}

/* 7. Einleitungsbereich: Kleingedrucktes darf nicht vom Hero abfallen.
   Große Headlines, Markenkennung, Wettermeldungen und Links bleiben eigenständig. */
body.h34fx-magazin.h34fx-is-home .h34fx-section-hero p:not(.h34fx-home-identity) {
  font-size:clamp(17px,1.3vw,18px) !important;
  line-height:1.58 !important;
}
body.h34fx-magazin.h34fx-is-home .h34fx-section-hero p:not(.h34fx-home-identity) small {
  font-size:16px !important;
  line-height:1.5 !important;
}
body.h34fx-magazin.h34fx-is-home .h34fx-section-hero :is(a[class*="button"],a[class*="btn"]) {
  font-size:16px !important;
  line-height:1.3 !important;
}

/* 8. Der neben „Viel mehr als nur funken“ stehende Lizenzkasten. */
body.h34fx-magazin.h34fx-is-home .h34ty-license-teaser h3 {
  font-size:20px !important;
  line-height:1.35 !important;
}
body.h34fx-magazin.h34fx-is-home .h34ty-license-teaser :is(p,li,small) {
  font-size:17px !important;
  line-height:1.55 !important;
  color:#324b5b;
}
body.h34fx-magazin.h34fx-is-home .h34ty-license-teaser a {
  font-size:16px !important;
  line-height:1.48 !important;
  overflow-wrap:anywhere;
}

/* 9. Die Chronik-Kurzbeschreibung entspricht jetzt dem üblichen Lesetext. */
body.h34fx-magazin.h34fx-is-home .h34fx-section-chronik p:not(.h34ty-eyebrow) {
  font-size:17px !important;
  line-height:1.57 !important;
  color:#334e60;
}

/* 10. Lange Termin-Aktionslinks können bei Browserzoom umbrechen. */
@media (max-width:460px) {
  body.h34fx-magazin.h34fx-is-home .h34fx-event-heading > a {
    max-width:100%;
    min-width:0;
    flex:0 1 auto;
    white-space:normal !important;
    overflow-wrap:anywhere;
  }
}
@media (max-width:600px) {
  body.h34fx-magazin.h34fx-is-home .h34fx-card-besuch h3 {
    font-size:19px !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34fx-card-besuch :is(p,li) {
    font-size:16.5px !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34ty-license-teaser h3 {
    font-size:19px !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34ty-license-teaser :is(p,li,small) {
    font-size:16px !important;
  }
  body.h34fx-magazin.h34fx-is-home .h34fx-section-chronik p:not(.h34ty-eyebrow) {
    font-size:16.5px !important;
  }
}
