.gv-icon{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.glossary-post .btn-back{display:inline-flex;align-items:center;gap:10px}.glossary-post .gv-entry-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:40px}.gv-entry-content{min-width:0}.gv-entry-text:after{content:"";display:table;clear:both}.gv-entry-aside img{max-width:100%;height:auto;border-radius:10px}.gv-author{display:flex;align-items:center;gap:14px;margin:24px 0 32px;line-height:1.4;color:inherit}.gv-author .gv-author__avatar{width:72px;height:72px;object-fit:cover;border-radius:50%;padding:2px;background:var(--secondary,var(--primary,#2271b1));flex-shrink:0}.gv-author__label{display:block;color:var(--primary,#2271b1);font-size:12px;font-weight:600;margin-bottom:2px}.gv-author__name{display:inline-block;font-size:18px;font-weight:700}.glossary-post .__footer{margin-top:32px}.glossary_liste[class*="gv-columns-"]{grid-template-columns:minmax(0,1fr)}.gv-tagline{display:block;margin:0 0 12px}.glossary_liste .glossary_liste_items:last-child{margin:0}@media(min-width:768px){.glossary_liste.gv-columns-2,.glossary_liste.gv-columns-3{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:990px){.glossary-post .gv-entry-layout--aside{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.glossary_liste.gv-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Standard content owns its spacing; flexible elements own their containers. */
.glossary-post.gv-post--standard { padding: var(--gv-header-height, 85px) 0 64px; }
@media (min-width: 580px) {
    .glossary-post.gv-post--standard { padding-top: var(--gv-header-height, 105px); }
}
@media (min-width: 768px) {
    .glossary-post.gv-post--standard { padding-top: var(--gv-header-height, 120px); }
}
@media (min-width: 990px) {
    .glossary-post.gv-post--standard { padding-bottom: 80px; }
}
/* Move the theme's first-section offset outside the element itself. */
.glossary-post.gv-post--elements { padding: 85px 0 0; }
@media (min-width: 580px) {
    .glossary-post.gv-post--elements { padding-top: 105px; }
}
@media (min-width: 768px) {
    .glossary-post.gv-post--elements { padding-top: 120px; }
}
.glossary-post.gv-post--elements #rindex_1 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.glossary-post.gv-post--elements > article { padding: 0; margin: 0; }
.glossary-post.gv-post--elements > article > .__footer { padding-bottom: 48px; }
.glossary-post .gv-entry-image { margin: 24px 0 32px; }
.glossary-post .gv-entry-image img { display: block; max-width: 100%; height: auto; border-radius: 10px; }

.glossary-post .__footer .__button a.btn-back .gv-back-arrow {
    position: static;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
    stroke: none;
    transform: none;
}

/* Isolate the author layout from theme image-order and avatar rules. */
.glossary-post .gv-author {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 14px;
    direction: ltr;
}
.glossary-post .gv-author > .gv-author__photo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: 72px;
    height: 72px;
    order: 0;
}
.glossary-post .gv-author > .gv-author__details {
    grid-column: 2;
    grid-row: 1;
    order: 1;
    text-align: left;
}
.glossary-post .gv-author__photo img {
    display: block;
    float: none;
    margin: 0;
    width: 72px;
    height: 72px;
}
.glossary-post .__footer .__button a.btn-back {
    padding-inline: 20px;
    gap: 10px;
}
.glossary-post .__footer .__button a.btn-back .gv-back-arrow {
    margin: 0;
    inset: auto;
}

/* Tagline typography stays independent of its semantic HTML tag. */
.glossary_header .gv-tagline {
    font-family: var(--font-title, inherit);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--primary, inherit);
    text-transform: none;
    letter-spacing: normal;
    margin: 0 0 12px;
}

.glossary-post .gv-author__link { color: inherit; text-decoration: none; }
.glossary-post .gv-author__link:hover { text-decoration: underline; }
.glossary-post .gv-author__link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.glossary-post .gv-author__photo > a { display: block; border-radius: 50%; }

.gv-languages ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 16px 0; }
.gv-languages .current-lang a { font-weight: 700; }
#glossary-search-container[hidden] { display: none !important; }

/* Zurück-Button: seitlicher Abstand wie im aktuellen Theme. */
.glossary-post .__footer { padding-right: 20px !important; padding-left: 20px !important; }

/* Shortcode auf einer eigenen Seite (Modus „Eigene Seite“). */
.gv-shortcode { position: relative; }

/* Leeres Glossar und nicht veröffentlichte Einträge (nur für Redakteure sichtbar). */
.gv-empty { padding: 30px; border-radius: 10px; background: #f6f7f7; text-align: center; margin: 0 0 35px; }
.gv-empty p { margin: 0; }
.glossary_liste .gv-unpublished a { opacity: .75; }
.gv-status { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; font-size: 12px; line-height: 18px; font-weight: 600; background: #fcf9e8; color: #8a6d00; border: 1px solid #f0d878; text-decoration: none; vertical-align: middle; }
.gv-status--private { background: #f0f0f1; color: #50575e; border-color: #c3c4c7; }
.gv-status--future { background: #edf5ff; color: #2271b1; border-color: #c5ddf3; }

/* Suche: Buchstaben ohne Treffer */
.glossary_menu a.gv-disabled { opacity: .35; }

/* Suche: Platz für den Such-Button reservieren, damit Buchstaben nicht darunter liegen. */
.glossary_menu.gv-has-search { padding-right: 62px; }
.glossary_menu.gv-has-search #glossary-toggle-search { top: 10px; right: 10px; }

/* Mobil/Tablet: Suchfeld als eigene Zeile über den Buchstaben (neben dem Button), statt über ihnen zu liegen. */
@media (max-width: 767.98px) {
    .glossary_menu #glossary-search-container {
        position: static;
        max-width: none;
        width: 100%;
        height: 42px;
        margin: -5px 0 12px;
        transition: none;
    }
    .glossary_menu #glossary-search-container.visible { max-width: none; }
    .glossary_menu #glossary-search-container input { width: 100%; }
}

/* ---------- Barrierefreiheit: sichtbarer Tastatur-Fokus (nur bei Tab-Navigation) ---------- */
/* Buchstaben: Fokus wie Hover/Aktiv (weißes Feld, dunkle Schrift) plus weißer Ring – dauerhaft sichtbar, ohne Übergang. */
.glossary_menu ul li a:focus-visible {
    background: #fff !important;
    color: var(--gray-900, #1d2327) !important;
    text-decoration: none !important;
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
    border-radius: 2px;
    transition: none !important;
}
#glossary-toggle-search:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
    transition: none !important;
}
#glossary-search:focus-visible { outline: none; }
#glossary-search-container:focus-within {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}
.glossary_liste a:focus-visible,
.glossary-post a:focus-visible,
.glossary-post button:focus-visible,
.gv-empty a:focus-visible {
    outline: 3px solid var(--primary, #2271b1) !important;
    outline-offset: 3px !important;
    transition: none !important;
    border-radius: 4px;
    text-decoration: none;
}
.glossary-post .__footer .btn-back:focus-visible {
    outline: 3px solid var(--primary, #2271b1);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px #fff;
}
.glossary_liste_items:focus { outline: none; }
.glossary_liste_items:focus-visible { outline: 3px solid var(--primary, #2271b1); outline-offset: 4px; border-radius: var(--border-radius, 10px); }
@media (prefers-reduced-motion: reduce) {
    #glossary-search-container, .glossary_menu ul li a { transition: none !important; }
}

/* ---------- Autor-Block ---------- */
.glossary-post .gv-author > .gv-author__photo {
    box-sizing: border-box;
    width: 72px;
    height: 72px;
    padding: 3px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary, var(--primary, #2271b1));
}
.glossary-post .gv-author > .gv-author__photo > a { width: 100%; height: 100%; }
.glossary-post .gv-author .gv-author__photo img,
.glossary-post .gv-author .gv-author__avatar {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: center top;
    background: #e9ecef;
}
.glossary-post .gv-author__name { font-weight: 400; }
/* Mehr Abstand zwischen Autor und Zurück-Button */
.glossary-post .__footer .gv-author { margin-bottom: 40px; }
.glossary-post .gv-entry-content .gv-author { margin-bottom: 40px; }
