/* ==========================================================
   KI-Glossar haase.co.at – Ergänzung zu /assets/site.css
   Gleiche Tokens, gleiche Zeilenlogik. Version: 1.7.2
   ========================================================== */

/* hidden-Attribut gegen display:grid der Zeilen durchsetzen */
.glossar [hidden] { display: none !important; }

/* Vorschau-Hinweis */
.g-preview { background: var(--panel); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.g-preview .wrap { padding-top: .55rem; padding-bottom: .55rem; }
.g-preview .wrap::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); margin-right: .5rem; }

/* Suche */
.g-search { margin-top: 2rem; max-width: 40rem; }
.g-search label { display: block; font-size: var(--fs-label); color: var(--muted); margin-bottom: .3rem; }
.g-search-row { display: flex; gap: .5rem; }
.g-search input[type="search"] {
    flex: 1; min-width: 0; min-height: 44px; font: inherit; color: var(--text);
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .55rem .8rem;
}
.g-search input[type="search"]:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(22,22,22,.08); }
.g-count { margin-top: .5rem; min-height: 1.2em; font-size: var(--fs-label); color: var(--muted); }

/* Themen-Sprungleiste */
.g-clusters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.g-clusters a {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .75rem;
    font-size: var(--fs-small); text-decoration: none; color: var(--text);
    border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.g-clusters a:hover { border-color: var(--text); background: var(--panel); }
.g-clusters .num { font-family: var(--mono); font-size: .6875rem; color: var(--muted); }

/* Begriffszeilen */
.glossar .section-head { margin-bottom: 0; }
.row.g-term { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
.row.g-term h3 a { text-decoration: none; }
.row.g-term h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
.pill.g-draft { color: var(--red); border-color: var(--red); vertical-align: .15em; }
.g-planned { margin-top: 1rem; columns: 3 16rem; column-gap: 2rem; }
.g-planned li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.g-planned .row-sub { display: inline; margin-left: .35rem; }

/* Eintrag */
.g-alt { margin-top: .6rem; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.legal-meta a.pill { text-decoration: none; color: var(--text); }
.legal-meta a.pill:hover { border-color: var(--text); }
.g-definition { margin-top: 1.75rem; font-size: 1.1875rem; line-height: 1.5; letter-spacing: -0.012em; }
.g-definition strong { font-weight: 500; }
.g-entry .kv dd a { text-underline-offset: 3px; }
.g-checked { display: block; margin-top: .15rem; font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.dash .g-checked { display: inline; margin-left: .4rem; }
.g-hidden-public { margin-top: 2.25rem; padding: 0 1.25rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.g-hidden-public .note { margin: 0 0 .6rem; }
.g-disclaimer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.g-back { margin-top: 2.5rem; }

/* Vergleichstabelle */
.g-table-wrap { margin-top: 1rem; overflow-x: auto; }
.g-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--fs-small); }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); }
.g-table thead th { font-weight: 500; font-size: 1rem; }
.g-table thead th a { text-underline-offset: 3px; }
.g-table tbody th { font-weight: 400; color: var(--muted); width: 12rem; }

/* Über das Glossar */
.g-about { margin-top: var(--section); max-width: 46rem; padding-top: 1.25rem !important; border-top: 1px solid var(--text); }
.g-about p + p { margin-top: .8rem; }

@media (max-width: 1000px) {
    .row.g-term { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
    .row.g-term .row-out { grid-column: 1; }
}
@media (max-width: 560px) {
    .g-search-row { flex-direction: column; }
    .g-search .btn { width: 100%; }
}

/* Vollversion, Registrierung, Konto (1.1.0) */
.g-full { margin-top: 2.25rem; padding: 1.25rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.g-full p { margin-bottom: .9rem; }
.g-full-wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: var(--section); }
.g-full-wide p { margin-bottom: 0; max-width: 46rem; }
.g-full-wide .eyebrow { margin-bottom: .4rem; }
.g-register { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.g-register h1 { margin-top: clamp(2rem, 4vw, 3.25rem); }
.g-register .form { margin-top: clamp(2rem, 4vw, 3.25rem); }
.g-benefits { margin-top: 1.25rem; }
.g-form { margin-top: 1.5rem; }
.g-form .note { margin-top: 1rem; }
.g-form .form-msg { margin: 0 0 1rem; }
.g-inline { display: inline-block; margin-top: .5rem; }
.g-inline .consent { margin: .5rem 0 .75rem; }
.g-danger { border-color: var(--red) !important; color: var(--red) !important; }
.g-token { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-top: 1.75rem; }
.g-token label { flex-basis: 100%; font-size: var(--fs-label); color: var(--muted); }
.g-token input { flex: 1; min-width: 0; min-height: 44px; font-family: var(--mono); font-size: .875rem; padding: .5rem .75rem; border: 1px solid var(--text); border-radius: var(--radius); background: var(--panel); }
@media (max-width: 1000px) { .g-register { grid-template-columns: minmax(0, 1fr); } }

/* Hinweise von außen (1.6.0) */
.g-choice { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.g-choice legend { font-size: var(--fs-label); color: var(--muted); margin-bottom: .3rem; padding: 0; }
.g-choice .consent { margin: .25rem 0; }
.g-part[hidden] { display: none; }
.g-more { margin: .25rem 0 1rem; }
.g-more summary { cursor: pointer; font-size: var(--fs-small); text-underline-offset: 3px; }
.g-more[open] summary { margin-bottom: .75rem; }
.g-report { margin-top: 2.5rem; font-size: var(--fs-small); color: var(--muted); }
.g-report a { color: var(--text); text-underline-offset: 3px; }
.g-form select { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .6rem .7rem; min-height: 44px; }
.g-form select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(22,22,22,.08); }

/* ==========================================================
   Eintragsseite zweispaltig (1.7.2)
   Kopf über die volle Breite (Haarlinie wie .section-head), darunter
   Lesespalte links und Seitenspalte rechts. Hält die linke Rasterlinie
   des Logos und füllt die Fläche, ohne die Zeilen zu verlängern.
   ========================================================== */
.g-head .legal-meta { margin-top: 1.25rem; padding-bottom: 1.25rem; }
.g-layout {
    display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 19rem);
    justify-content: space-between; column-gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.g-main { padding-top: 1.75rem; font-size: 1.0625rem; line-height: 1.65; }
.g-main section { padding-top: 2.25rem; }
.g-main .kv dt, .g-main .note { font-size: var(--fs-small); }
.g-entry .g-definition { margin-top: 0; font-size: 1.1875rem; line-height: 1.55; letter-spacing: -0.012em; }
.g-syn { margin-top: .9rem; font-size: var(--fs-small); color: var(--muted); }
.g-main .kv > div { grid-template-columns: 10rem minmax(0, 1fr); }
.g-main .g-kv-narrow > div { grid-template-columns: 8rem minmax(0, 1fr); }
.g-disclaimer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }

/* Seitenspalte */
.g-side { padding-top: 1.75rem; font-size: var(--fs-small); line-height: 1.5; }
.g-side .g-box + .g-box { margin-top: 1.75rem; }
.g-side section { padding-top: 0; }
.legal .g-side h2.g-label, .g-label {
    margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: .8125rem; font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--muted);
}
.g-label::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--red); margin-right: .5rem; vertical-align: .1em; }
.g-side a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.g-side a:hover { text-decoration-color: var(--red); }

.g-fund > div + div { margin-top: .75rem; }
.g-fund dt { font-weight: 500; color: var(--text); }
.g-fassung { font-weight: 400; color: var(--muted); }
.g-fund dd { margin-top: .15rem; }
.g-fund-list { display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.g-fund-list li { line-height: 1.6; }
.g-fund .g-checked { margin-top: .2rem; }
.g-fund-list .g-checked { display: inline; margin: 0 0 0 .25rem; }

.g-links li { padding: .4rem 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.g-links li:last-child { border-bottom: 0; }
.g-links .g-checked { display: inline; margin-left: .35rem; }

.g-side .g-full { margin-top: 0; padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.g-side .g-full .g-label { border-bottom-color: var(--line-strong); }
.g-side .g-full p { margin: 0 0 .9rem; color: var(--text); }
.g-side .g-full .btn { width: 100%; }

.g-foot { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.g-foot p + p { margin-top: .75rem; }
.g-foot a:not(.btn) { color: var(--text); }
.g-since { font-family: var(--mono); font-size: .75rem; }

/* Mono-Kleintext lesbarer (12 → 13 px) */
.g-checked { font-size: .75rem; }
.g-alt { font-size: .875rem; }

@media (max-width: 1000px) {
    .g-layout { grid-template-columns: minmax(0, 1fr); }
    .g-side { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--text); }
}
@media (max-width: 560px) {
    .g-main { font-size: 1rem; }
    .g-entry .g-definition { font-size: 1.125rem; }
    .g-main .kv > div, .g-main .g-kv-narrow > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
