/* ============================================================
   GROUNDING PAGE
   Maschinenlesbare Entitätsseite — bewusst schlicht gehalten,
   damit Screenreader und Crawler klare Strukturen vorfinden.
   Basis-Layout nutzt Theme-Variablen für Farben und Typografie.

   Wird nur auf der Grounding Page geladen (page-grounding.php).
============================================================ */

/* Seiten-Wrapper: schmaler Lesebereich.
   Der Abstand zum Header wird über .archive-hero (Theme-CSS) gesteuert. */
.gp-page {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

/* Aliase (jetzt im archive-hero) */
.archive-hero .gp-aliases {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 8px 0 0;
}

/* Metadaten-Leiste */
.gp-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

/* Human Notice (Hinweis für menschliche Leser) */
.gp-human-notice {
    background: var(--bg-light, #f9fafb);
    border-left: 4px solid var(--accent);
    padding: 0.875rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
}
.gp-human-notice a {
    color: var(--accent);
    text-decoration: underline;
}

/* Abschnitte */
.gp-page section {
    margin: 2.5rem 0;
}
.gp-page h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent);
}
.gp-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 1.25rem 0 0.4rem;
}

/* Lead-Sektion — speakable targets */
.lead-definition {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
    margin: 0 0 0.75rem;
}
.retrieval-statement {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Disambiguierungs-Intro — speakable target */
.disambiguation-intro {
    font-size: 0.95rem;
    line-height: 1.65;
    background: var(--bg-light, #f9fafb);
    border-radius: 6px;
    padding: 0.875rem 1.25rem;
    margin: 1.25rem 0;
}

/* Daten-Grid: Tabellen-ähnliches dl-Layout */
.gp-data-grid {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
}
.gp-data-grid dt {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    align-self: start;
}
.gp-data-grid dd {
    margin: 0;
    padding: 0.35rem 0;
    font-size: 0.925rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    align-self: start;
    word-break: break-word;
}
.gp-data-grid a {
    color: var(--accent);
}

/* Werdegang-Liste */
.gp-career-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gp-career-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.25rem 1rem;
    align-items: baseline;
}
.gp-career-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.gp-career-role {
    font-weight: 600;
    font-size: 0.95rem;
}
.gp-career-org {
    grid-column: 2;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.gp-career-org a {
    color: var(--accent);
}

/* Themenschwerpunkte: Chip-Layout */
.gp-tags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gp-tags-list li {
    background: var(--bg-light, #f3f4f6);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

/* Reportagen-Liste */
.gp-posts-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}
.gp-posts-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.gp-posts-list a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}
.gp-posts-list a:hover {
    text-decoration: underline;
}
.gp-post-meta {
    font-size: 0.825rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.gp-posts-more a {
    font-size: 0.9rem;
    color: var(--accent);
}

/* Publikationen-Liste */
.gp-publications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gp-publications-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.925rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: baseline;
}
.gp-publications-list a {
    color: var(--accent);
}
.gp-pub-publisher {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.gp-pub-year {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Medien-Liste */
.gp-media-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gp-media-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.925rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    align-items: baseline;
}
.gp-media-source {
    font-weight: 600;
}
.gp-media-list a {
    color: var(--accent);
}
.gp-media-year {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Verknüpfte Entitäten */
.gp-entities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gp-entities-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.925rem;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}
.gp-entity-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 70px;
}
.gp-entities-list a {
    color: var(--accent);
}

/* FAQ */
.gp-faq-section .gp-faq-item {
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.gp-faq-section .gp-faq-item:last-child {
    border-bottom: none;
}
.gp-faq-section h3 {
    margin: 0 0 0.5rem;
}
.gp-faq-section p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Abgrenzung */
.gp-name-others {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}
.gp-name-others li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}
.gp-name-others a {
    color: var(--accent);
}

/* Changelog */
.gp-changelog {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gp-changelog li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}
.gp-changelog time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Quellen */
.gp-sources {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.gp-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gp-sources li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.gp-sources a {
    color: var(--accent);
    word-break: break-all;
}

/* Volatile-Fact-Hinweise (veraltbare Angaben) */
.volatile-fact {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 600px) {
    .gp-metadata {
        flex-direction: column;
        gap: 0.4rem;
    }
    .gp-data-grid {
        grid-template-columns: 1fr;
    }
    .gp-data-grid dt {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 0.75rem;
    }
    .gp-data-grid dd {
        padding-top: 0;
        margin-bottom: 0.25rem;
    }
    .gp-career-item {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
    .gp-career-org {
        grid-column: 1;
    }
    .gp-posts-list li {
        flex-direction: column;
        gap: 0.15rem;
    }
}
