/* glossaryLib.css – Glossar-Frontend (geladen via Theme-Discovery) */

/* Popover */
.po, .popover, [data-toggle="popover"] {
  cursor: help;
}
.popover {
  --bs-popover-max-width: 22rem;
  max-width: 22rem;
}
.popover .popover-body .g_teaser {
  font-style: italic;
  margin-bottom: .65em;
}
.popover .popover-body .g_description {
  font-size: .95em;
  line-height: 1.35;
}

/* Glossar-Links (Fliesstext und Uebersicht – gleiche Basis) */
a.fancyglossary {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: var(--ek-coral-light, #DB8C9E);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  cursor: pointer;
}
a.fancyglossary:hover {
  color: var(--ek-coral, #CC637B);
  text-decoration-color: var(--ek-coral, #CC637B);
}

/* Standalone-Detailseite (Direct-URL / Crawler) */
body.iframeedit {
  position: relative;
}
.g_standalone_logo {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 10;
  line-height: 0;
}
.g_standalone_logo img {
  height: 48px;
  width: auto;
  display: block;
}
.g_back {
  margin: .75rem 0 1.25rem;
  font-size: .95rem;
  padding-right: 5rem; /* Platz neben Logo */
}
.g_back a {
  color: var(--ek-petrol, #2A6F7A);
  text-decoration: none;
}
.g_back a:hover {
  color: var(--ek-coral, #CC637B);
  text-decoration: underline;
}
.glossary a.fancyglossary {
  display: block;
}

/* Uebersicht: Rubriken */
.glossary h4.g_rubrik {
  color: var(--ek-petrol, #14A0A5);
  font-weight: 700;
}
.glossary h4.g_rubrik i {
  font-size: .75em;
  margin-right: .4em;
  vertical-align: .1em;
}

/* Detail (auch Fancybox-iframe) */
body.iframeedit {
  font-family: var(--ek-font-base, 'Montserrat', system-ui, sans-serif);
  padding: 1rem .75rem;
  background: var(--ek-white, #fff);
}
body.iframeedit h1 { color: var(--ek-petrol, #14A0A5); }
body.iframeedit a { color: var(--ek-coral, #CC637B); }
body.iframeedit a:hover { color: var(--ek-coral-dark, #A8485E); }
.gc_title { margin-bottom: .6rem; }
.g_tag {
  display: inline-block;
  background: var(--ek-petrol, #14A0A5);
  color: var(--ek-white, #fff);
  border-radius: 2em;
  padding: .2em .9em .25em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.g_tag i {
  margin-right: .45em;
  font-size: .85em;
  opacity: .75;
}
.g_teaser {
  font-size: 1.15em;
  font-style: italic;
  padding: 5px 0 10px;
  color: var(--ek-coral, #CC637B);
}
.g_description {
  font-size: 1.3em;
  line-height: 1.4em;
  padding: 5px 0;
}
.g_sect { margin-top: 1.5rem; }
.g_sect h2 {
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}
.g_sect h2 i {
  opacity: .55;
  margin-right: .35em;
}
.g_sect p { margin-bottom: .6rem; }
.g_finally {
  font-style: italic;
  font-weight: 600;
  margin-top: 1.5rem;
  padding: .75rem 0;
  border-top: 2px solid var(--ek-coral-light, #DB8C9E);
  color: var(--ek-petrol-dark, #0E777A);
}
.ghg { margin-top: 1.25rem; font-size: smaller; }
.ghg a { margin-right: .5em; }
.gi_image img { max-width: 100%; }
.gi_description { font-style: italic; }

/* Fancybox Glossar: mobil bildschirmfuellend (kein Mini-Fenster am unteren Rand) */
@media (max-width: 767.98px) {
  .fancybox-glossary .fancybox-slide {
    padding: 0;
  }
  .fancybox-glossary .fancybox-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    border-radius: 0;
  }
  .fancybox-glossary .fancybox-iframe {
    width: 100% !important;
    height: 100% !important;
  }
  .fancybox-glossary .fancybox-button--close,
  .fancybox-glossary .fancybox-close-small {
    top: .35rem;
    right: .35rem;
  }
}