/* Golfclub Rhein-Wied – zentrale Designbasis
   Referenz: mod_gcplatzstatus 1.2.11
   Überschriftenstil: blauer vertikaler Akzent + dezenter roter Unterstrich
*/
:root {
  --gc-blue: #0994D0;
  --gc-red: #E2001A;
  --gc-ink: #263746;
  --gc-muted: #647786;
  --gc-line: #DCE6ED;
  --gc-soft: #F4F8FB;
  --gc-white: #FFFFFF;
  --gc-radius: 13px;
  --gc-shadow: 0 5px 18px rgba(26,55,73,.055);
}


/* Wiederverwendbarer Überschriftenstil.
   Klasse gc-heading an die jeweilige Überschrift setzen.
   Startseiten-Willkommensüberschrift bewusst nicht damit versehen. */
.gc-heading {
  color: var(--gc-ink);
  border-left: 4px solid var(--gc-blue);
  padding-left: .85rem;
}
.gc-heading::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: .65rem;
  background: var(--gc-red);
  opacity: .75;
}


/* Turnierkalender auf der Startseite – gezielt über Modulklasse */
.gc-turnier-start {
  color: var(--gc-ink);
  font-family: inherit;
}

.gc-turnier-start .card,
.gc-turnier-start.card {
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius);
  background: var(--gc-white);
  box-shadow: var(--gc-shadow);
  overflow: hidden;
}
.gc-turnier-start .card-header,
.gc-turnier-start .module-title,
.gc-turnier-start h2 {
  color: var(--gc-ink);
  border-left: 4px solid var(--gc-blue);
  padding-left: .85rem;
}
.gc-turnier-start .card-header::after,
.gc-turnier-start .module-title::after,
.gc-turnier-start h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: .65rem;
  background: var(--gc-red);
  opacity: .75;
}
.gc-turnier-start iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .gc-turnier-start iframe {
    width: 100%;
  }
}


/* Automatischer Überschriftenstil für Joomla-Beitragsseiten.
   Breiter auf die üblichen Joomla/Astroid Content-Strukturen ausgerichtet.
   Startseiten-Featured-View bleibt ausgenommen. */
body:not(.view-featured) #astroid-content .com-content-article h1,
body:not(.view-featured) #astroid-content .com-content-article h2,
body:not(.view-featured) #astroid-content .com-content-article h3,
body:not(.view-featured) #astroid-content .item-page h1,
body:not(.view-featured) #astroid-content .item-page h2,
body:not(.view-featured) #astroid-content .item-page h3,
body:not(.view-featured) #astroid-content .page-header h1,
body:not(.view-featured) #astroid-content .page-header h2,
body:not(.view-featured) #astroid-content .article-header h1,
body:not(.view-featured) #astroid-content .article-header h2,
body:not(.view-featured) #astroid-content .article-content h1,
body:not(.view-featured) #astroid-content .article-content h2,
body:not(.view-featured) #astroid-content main .page-title,
body:not(.view-featured) #astroid-content main h1,
body:not(.view-featured) #astroid-content main h2,
body:not(.view-featured) #astroid-content main h3,
body:not(.view-featured) main .com-content-article h1,
body:not(.view-featured) main .com-content-article h2,
body:not(.view-featured) main .com-content-article h3 {
  color: var(--gc-ink) !important;
  border-left: 4px solid var(--gc-blue) !important;
  padding-left: .85rem !important;
  display: flow-root;
}
body:not(.view-featured) #astroid-content .com-content-article h1::after,
body:not(.view-featured) #astroid-content .com-content-article h2::after,
body:not(.view-featured) #astroid-content .com-content-article h3::after,
body:not(.view-featured) #astroid-content .item-page h1::after,
body:not(.view-featured) #astroid-content .item-page h2::after,
body:not(.view-featured) #astroid-content .item-page h3::after,
body:not(.view-featured) #astroid-content .page-header h1::after,
body:not(.view-featured) #astroid-content .page-header h2::after,
body:not(.view-featured) #astroid-content .article-header h1::after,
body:not(.view-featured) #astroid-content .article-header h2::after,
body:not(.view-featured) #astroid-content .article-content h1::after,
body:not(.view-featured) #astroid-content .article-content h2::after,
body:not(.view-featured) #astroid-content main .page-title::after,
body:not(.view-featured) #astroid-content main h1::after,
body:not(.view-featured) #astroid-content main h2::after,
body:not(.view-featured) #astroid-content main h3::after,
body:not(.view-featured) main .com-content-article h1::after,
body:not(.view-featured) main .com-content-article h2::after,
body:not(.view-featured) main .com-content-article h3::after {
  content: "" !important;
  display: block !important;
  width: 34px !important;
  height: 2px !important;
  margin-top: .65rem !important;
  background: var(--gc-red) !important;
  opacity: .75 !important;
}


/* Überschriften im Platzstatus nicht durch die allgemeine Regel verändern. */
.gc-platzstatus h1,
.gc-platzstatus h2,
.gc-platzstatus h3 {
  border-left: 0;
  padding-left: 0;
}
.gc-platzstatus h1::after,
.gc-platzstatus h2::after,
.gc-platzstatus h3::after {
  content: none;
}

/* GC Design v5 – ruhigere Überschriftenhierarchie (Spielvorgabentabellen als Referenz)
   Die Akzente bleiben bestehen; H1/H2/H3 werden kompakter und weniger dominant. */
body:not(.view-featured) #astroid-content main h1,
body:not(.view-featured) #astroid-content .com-content-article h1,
body:not(.view-featured) #astroid-content .item-page h1,
body:not(.view-featured) #astroid-content .page-header h1,
body:not(.view-featured) #astroid-content .article-header h1,
body:not(.view-featured) main .com-content-article h1 {
  font-size: clamp(1.65rem, 2.2vw, 1.9rem) !important;
  line-height: 1.22 !important;
  margin-top: 0.15em !important;
  margin-bottom: 0.85em !important;
}
body:not(.view-featured) #astroid-content main h2,
body:not(.view-featured) #astroid-content .com-content-article h2,
body:not(.view-featured) #astroid-content .item-page h2,
body:not(.view-featured) #astroid-content .page-header h2,
body:not(.view-featured) #astroid-content .article-header h2,
body:not(.view-featured) #astroid-content .article-content h2,
body:not(.view-featured) main .com-content-article h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.55rem) !important;
  line-height: 1.25 !important;
  margin-top: 1.1em !important;
  margin-bottom: 0.7em !important;
}
body:not(.view-featured) #astroid-content main h3,
body:not(.view-featured) #astroid-content .com-content-article h3,
body:not(.view-featured) #astroid-content .item-page h3,
body:not(.view-featured) #astroid-content .article-content h3,
body:not(.view-featured) main .com-content-article h3 {
  font-size: clamp(1.12rem, 1.45vw, 1.25rem) !important;
  line-height: 1.3 !important;
  margin-top: 0.95em !important;
  margin-bottom: 0.55em !important;
}

/* GC Design v6 – Joomla Kategorie-/Nachrichtenübersichten
   Kategorie- und Blog-View: Titel/Überschriften erhalten denselben Akzentstil
   wie normale Beitragsseiten. Startseiten-Featured-View bleibt ausgeschlossen. */
body.view-category:not(.view-featured) #astroid-content .page-header h1,
body.view-category:not(.view-featured) #astroid-content h1.category-title,
body.view-category:not(.view-featured) #astroid-content .category-desc h2,
body.view-categories:not(.view-featured) #astroid-content .page-header h1,
body.view-categories:not(.view-featured) #astroid-content h1.category-title,
body.view-category:not(.view-featured) #astroid-content .blog h2,
body.view-category:not(.view-featured) #astroid-content .blog h3 {
  color: var(--gc-ink) !important;
  border-left: 4px solid var(--gc-blue) !important;
  padding-left: .85rem !important;
  display: flow-root !important;
}
body.view-category:not(.view-featured) #astroid-content .page-header h1::after,
body.view-category:not(.view-featured) #astroid-content h1.category-title::after,
body.view-category:not(.view-featured) #astroid-content .category-desc h2::after,
body.view-categories:not(.view-featured) #astroid-content .page-header h1::after,
body.view-categories:not(.view-featured) #astroid-content h1.category-title::after,
body.view-category:not(.view-featured) #astroid-content .blog h2::after,
body.view-category:not(.view-featured) #astroid-content .blog h3::after {
  content: "" !important;
  display: block !important;
  width: 34px !important;
  height: 2px !important;
  margin-top: .65rem !important;
  background: var(--gc-red) !important;
  opacity: .75 !important;
}
/* Größen für Kategorien/Meldungsübersichten auf die ruhige Designhierarchie abstimmen */
body.view-category:not(.view-featured) #astroid-content .page-header h1,
body.view-category:not(.view-featured) #astroid-content h1.category-title,
body.view-categories:not(.view-featured) #astroid-content .page-header h1,
body.view-categories:not(.view-featured) #astroid-content h1.category-title {
  font-size: clamp(1.65rem, 2.2vw, 1.9rem) !important;
  line-height: 1.22 !important;
  margin-top: .15em !important;
  margin-bottom: .85em !important;
}


/* GC Design v7 – Nachrichten-Kategorieblog: H1 mit vollem Akzent,
   Nachrichtentitel (H2) nur mit rotem Unterstrich. Gilt nur in Kategorieansichten. */
body.view-category:not(.view-featured) #astroid-content .blog-item h2.item-title,
body.view-category:not(.view-featured) #astroid-content .blog-item .item-title,
body.view-category:not(.view-featured) #astroid-content .blog-item-header h2,
body.view-category:not(.view-featured) #astroid-content .blog .item h2,
body.view-category:not(.view-featured) #astroid-content .blog h2.item-title {
  border-left: 0 !important;
  padding-left: 0 !important;
  color: var(--gc-ink) !important;
}
body.view-category:not(.view-featured) #astroid-content .blog-item h2.item-title::after,
body.view-category:not(.view-featured) #astroid-content .blog-item .item-title::after,
body.view-category:not(.view-featured) #astroid-content .blog-item-header h2::after,
body.view-category:not(.view-featured) #astroid-content .blog .item h2::after,
body.view-category:not(.view-featured) #astroid-content .blog h2.item-title::after {
  content: "" !important;
  display: block !important;
  width: 30px !important;
  height: 2px !important;
  margin-top: .5rem !important;
  background: var(--gc-red) !important;
  opacity: .75 !important;
}

/* GC Design v8 – exakt anhand der Joomla-HTML-Struktur der News-Seite
   Nur News-H2: roter Unterstrich, kein blauer Seitenstrich.
   H1 der Seite bleibt im bisherigen Akzentstil; andere Seiten unverändert. */
body.aktuelle-nachrichten-alias.view-category #astroid-content .blog-item .article-title.item-title .page-header h2 {
  border-left: 0 !important;
  padding-left: 0 !important;
  color: var(--gc-ink) !important;
  display: flow-root !important;
}
body.aktuelle-nachrichten-alias.view-category #astroid-content .blog-item .article-title.item-title .page-header h2::after {
  content: "" !important;
  display: block !important;
  width: 30px !important;
  height: 2px !important;
  margin-top: .5rem !important;
  background: var(--gc-red) !important;
  opacity: .75 !important;
}

/* GC Design v9 – Korrektur anhand des aktuellen Frontend-DOM (Astroid)
   Auf der News-Seite ist #astroid-content nicht vorhanden.
   Deshalb direkt über .astroid-component-area und die tatsächlichen Joomla-Klassen stylen. */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .page-header h1 {
  color: var(--gc-ink) !important;
  border-left: 4px solid var(--gc-blue) !important;
  padding-left: .85rem !important;
  display: flow-root !important;
  font-size: clamp(1.65rem, 2.2vw, 1.9rem) !important;
  line-height: 1.22 !important;
  margin-top: .15em !important;
  margin-bottom: .85em !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .page-header h1::after {
  content: "" !important;
  display: block !important;
  width: 34px !important;
  height: 2px !important;
  margin-top: .65rem !important;
  background: var(--gc-red) !important;
  opacity: .75 !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .content-category-blog__items .blog-item .article-title.item-title .page-header h2,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-title.item-title .page-header h2 {
  color: var(--gc-ink) !important;
  border-left: 0 !important;
  padding-left: 0 !important;
  display: flow-root !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .content-category-blog__items .blog-item .article-title.item-title .page-header h2::after,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-title.item-title .page-header h2::after {
  content: "" !important;
  display: block !important;
  width: 30px !important;
  height: 2px !important;
  margin-top: .5rem !important;
  background: var(--gc-red) !important;
  opacity: .75 !important;
}

/* GC Design v10 – vertikale Abstände auf der News-Übersicht angleichen
   Seiten-H1 etwas nach unten; News-Titel und Beitragsinfo kompakter verbinden. */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .page-header h1 {
  margin-top: .85em !important;
  margin-bottom: .7em !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-title.item-title .page-header h2 {
  margin-bottom: .25em !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-info.muted.above {
  margin-top: .15em !important;
}

/* GC Design v11 – Beitragsinfo näher an die News-Überschrift */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-title.item-title .page-header h2 {
  margin-bottom: 0 !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-info {
  margin-top: .05em !important;
}

/* GC Design v12 – News-Beitragsinfo sichtbar näher an den Titel rücken */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-title.item-title,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-title.item-title .page-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-info.muted.above,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-info {
  margin-top: .15rem !important;
  padding-top: 0 !important;
}

/* GC Design v13 – Beitragsinfo minimal nach unten setzen (ca. 5–7 px) */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-info.muted.above,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-info {
  margin-top: .5rem !important;
}

/* GC Design v15 – News-Textbeginn weitere ca. 5 px nach unten */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text {
  margin-top: .65rem !important;
}

/* GC Design v16 – Abstand zwischen News-Beiträgen moderat reduzieren (ca. 25–30 %) */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .content-category-blog__items > .row.gy-5 {
  row-gap: 2.25rem !important;
}

/* GC Design v17 – Titel innerhalb des News-Beitrags (nur Aktuelle Nachrichten)
   Beitragsinfo steht davor; der Titel im Artikel erhält wieder den GC-Akzent. */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text > h2:first-child,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text > h3:first-child {
  position: relative !important;
  border-left: 4px solid var(--gc-blue) !important;
  padding-left: .65rem !important;
  color: var(--gc-ink) !important;
  display: flow-root !important;
  margin-top: .2rem !important;
  margin-bottom: .65rem !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text > h2:first-child::after,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text > h3:first-child::after {
  content: "" !important;
  display: block !important;
  width: 30px !important;
  height: 2px !important;
  margin-top: .5rem !important;
  background: var(--gc-red) !important;
  opacity: .75 !important;
}

/* GC Design v18 – News-H2 etwas ruhiger als die Seitenüberschrift
   H2 bleibt semantisch korrekt; nur die Darstellung auf Aktuelle Nachrichten wird angepasst. */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text > h2:first-child {
  font-size: clamp(1.35rem, 1.8vw, 1.55rem) !important;
  line-height: 1.25 !important;
  border-left-width: 3px !important;
  padding-left: .55rem !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text > h2:first-child::after {
  width: 26px !important;
  margin-top: .4rem !important;
}

/* GC Design v19 – H3/H4/H5 auf Aktuelle Nachrichten sauber abgestuft
   Nur innerhalb der News-Beiträge; ohne blaue oder rote Akzentlinien. */
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h3,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h4,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h5 {
  border-left: 0 !important;
  padding-left: 0 !important;
  color: var(--gc-ink) !important;
  display: block !important;
  background: none !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h3 {
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  margin-top: 1.1rem !important;
  margin-bottom: .55rem !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h4 {
  font-size: 1.08rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  margin-top: .9rem !important;
  margin-bottom: .45rem !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h5 {
  font-size: 1rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  margin-top: .75rem !important;
  margin-bottom: .4rem !important;
}
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h3::after,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h4::after,
body.aktuelle-nachrichten-alias.view-category .astroid-component-area .blog-item .article-intro-text h5::after {
  content: none !important;
  display: none !important;
}


/* GC – Joomla-Titel „Die nächsten Turniere“ anhand Screenshot um 14 px nach unten setzen */
.gc-turnier-start .module-title,
.gc-turnier-start .card-header,
.gc-turnier-start h2 {
  position: relative;
  top: 14px;
}
