/* synonyms.de – öffentliche Seiten (Wort, Kategorie, Rechtstexte, Fehlerseiten). Stand 02.10.2026, Design-Linie frage.de:
   Systemschrift, schwarzer Text, Logo-Grün #0a9070, Hover = Unterstreichung statt Farbwechsel. */
:root { --green: #0a9070; --green-dark: #087a5e; --green-soft: rgba(10, 144, 112, .3); --grey: #6b7280; --grey-light: #9ca3af; --line: #e5e7eb; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #000; background: #fff; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 .9em; }
.hidden { display: none; }
.site-page-wrapper { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-page-wrapper > main { flex: 1 0 auto; }

/* Kopfzeile */
.site-header { width: 100%; background: #fff; }
.site-header-inner { max-width: 800px; margin: 0 auto; padding: 16px 20px 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.menu-ask-button { display: inline-block; font-size: 14px; font-weight: 700; background: var(--green); color: #fff; border: 0; border-radius: 5px; padding: 8px 20px; white-space: nowrap; cursor: pointer; transition: background-color .12s; }
.menu-ask-button:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.header-link-btn { display: inline-block; font-size: 14px; font-weight: 600; line-height: 1; padding: 10px 14px; border-radius: 5px; color: #178f6d; background: #e8f6f1; white-space: nowrap; }
a.header-link-btn:hover { background: #d4efe5; text-decoration: none; color: #136e55; }
.header-link-btn.is-active { background: #f3f4f6; color: var(--grey); cursor: default; }

/* Inhalt */
.page { max-width: 800px; margin: 12px auto 50px; padding: 0 20px; width: 100%; }
.breadcrumb { font-size: 13px; color: var(--grey-light); margin: 6px 0 14px; }
.breadcrumb a { color: var(--grey); }
.breadcrumb span { margin: 0 6px; }
h1.page-title { font-size: 1.6em; font-weight: 700; margin: 0 0 4px; line-height: 1.25; }
.page-sub { color: var(--grey); font-size: 15px; margin: 0 0 18px; }
.page-sub a { color: var(--green); }
.page-sub .plain { color: var(--grey-light); }
h2 { font-size: 1.1em; font-weight: 600; margin: 0 0 8px; color: #000; }
h2.section-title { font-size: 1.25em; margin: 36px 0 8px; }

/* Wortbox */
.word-box { position: relative; border: 4px solid var(--green-soft); border-radius: 15px; padding: 18px 18px 14px; margin-bottom: 18px; }
.word-box h2 { margin-top: 0; }
.word-box h2 .count { color: var(--grey-light); font-weight: 400; font-size: .9em; }
.word-box section + section { margin-top: 18px; }
.syn-list { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.syn-list li { margin: 0; }
.syn-list a, .syn-list span { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 15px; line-height: 1.3; border: 1px solid #d5ebe4; background: #f3faf7; color: var(--green); }
.syn-list a:hover { text-decoration: none; background: #e3f4ee; border-color: #bfe0d4; }
.syn-list span { color: var(--green); } /* seit 03.10.2026: Chips ohne Seite sehen aus wie die mit Seite, nur das + unterscheidet sie */
.syn-list .syn-missing { cursor: pointer; }
.syn-list .syn-missing::after { content: " +"; color: var(--grey-light); font-weight: 600; }
.syn-list .syn-missing:hover { background: #e3f4ee; border-color: #bfe0d4; }
.syn-list .syn-missing.is-loading { cursor: progress; }
.syn-list .syn-missing.is-failed::after { content: ""; }
/* Klick auf +: kleiner Spinner anstelle des Plus, bis die neue Seite da ist */
.syn-list .syn-missing.is-loading::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: -1px; border: 2px solid #cfe6dd; border-top-color: var(--green); border-radius: 50%; animation: syn-spin .7s linear infinite; }
@keyframes syn-spin { to { transform: rotate(360deg); } }
.syn-list .syn-missing.is-failed { cursor: default; color: var(--grey-light); }
.word-box .meaning { color: #111; margin: 0; padding: 10px 14px; border: 1px solid #d9dde3; border-radius: 10px; background: #f8f9fa; }
.word-box .example { color: #333; font-style: italic; margin: 0; padding: 10px 14px; border: 1px solid #d9dde3; border-radius: 10px; background: #f8f9fa; }
.word-box .example b { font-weight: 600; color: #000; font-style: normal; }
/* Infoblock Rechtschreibung und Grammatik (seit 04.10.2026): Wortart, Worttrennung, Abkürzung, Sprache */
.word-facts { margin: 0; padding: 10px 14px; border: 1px solid #d9dde3; border-radius: 10px; background: #f8f9fa; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; }
.word-facts div { display: contents; }
.word-facts dt { color: var(--grey); font-weight: 600; margin: 0; }
.word-facts dd { color: #111; margin: 0; }
.word-facts dd.hyphen { letter-spacing: .06em; }
.word-facts dd.ipa { font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", Arial, sans-serif; }
.word-facts dt { white-space: nowrap; }
/* Stilmarker am Chip (ugs., geh., …) und Kurzbedeutung je Lesart (seit 04.10.2026) */
.syn-list .marker { font-size: 11px; color: var(--grey-light); font-weight: 400; margin-left: 2px; font-style: italic; }
.syn-list a:hover .marker { text-decoration: none; }
.syn-group__desc { font-weight: 400; color: var(--grey-light); }
.syn-list--idioms .plain-chip { background: #f3f6f2; border-color: #d9e2d6; color: #3f5a3a; }
.word-meta { font-size: 13px; color: var(--grey-light); margin: 4px 0 0; }
.word-meta a { color: var(--green); font-weight: 600; }
.word-meta .plain { color: var(--grey); font-weight: 600; }

/* Listen (Kategorie, alle Wörter, ähnliche Wörter) */
.ask-container { margin-bottom: 22px; }
.ask-container h3 { font-size: 1.1em; font-weight: 600; margin: 0 0 2px; line-height: 1.35; }
.ask-container > a h3 { color: var(--green); }
.ask-container > a:hover { text-decoration: none; }
.ask-container > a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.ask-container .content, .ask-container .content p { margin: 0 0 1px; color: #333; font-size: 15px; line-height: 1.5; }
.ask-container .meta { font-size: 12px; color: var(--grey-light); }
.ask-container .meta a { color: var(--green); }
.pagination { text-align: center; margin: 10px 0 30px; }
.seo-page { display: inline-block; min-width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 999px; background: #efefef; color: #666; font-size: 12px; margin: 0 3px; }
.seo-page:hover { text-decoration: none; background: #e2e2e2; }
.seo-page-active { background: #dcdcdc; color: #333; font-weight: 600; }
.loading { text-align: center; padding: 10px 0; }
.empty-hint { color: var(--grey); }

/* Statische Seiten */
.static-page-content { line-height: 1.6; }
.static-page-content h2 { margin-top: 24px; }

/* Fehlerseiten */
.error-page { text-align: center; padding: 60px 0 40px; }
.error-page .code { font-size: 64px; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 14px; }
.error-page p { color: #333; }

/* Fußzeile */
.site-footer { width: 100%; margin-top: auto; border-top: 1px solid var(--line); background: #fff; padding: 18px 20px 22px; text-align: center; font-size: 13px; color: var(--grey); }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 8px; }
.site-footer-inner a { color: #4b5563; }
.site-footer-inner a:hover { color: var(--green); }
.site-footer-copy { color: var(--grey-light); font-size: 12px; }

@media (max-width: 480px) {
    .menu-ask-button { font-size: 13px; padding: 8px 12px; }
    .header-link-btn { font-size: 13px; padding: 7px 10px; }
    h1.page-title { font-size: 1.4em; }
    .word-box { padding: 14px 14px 12px; }
}

.site-footer-langs { font-size: 12px; color: var(--grey-light); margin-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.site-footer-langs a { color: var(--grey); }
.site-footer-langs span { color: #000; font-weight: 600; }

/* Buchstabenregister auf /synonyme (03.10.2026) */
.letter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.letter-bar .letter { display: inline-block; min-width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 8px; font-size: 14px; font-weight: 600; background: #f3f4f6; color: #000; padding: 0 8px; }
.letter-bar a.letter:hover { background: #e3f4ee; color: var(--green); text-decoration: none; }
.letter-bar .letter.is-active { background: var(--green); color: #fff; }
.letter-bar .letter.is-empty { color: #c4c8cf; background: #f9fafb; }
.letter-bar .letter-new { color: var(--green); }

/* Bedeutungsgruppen, Gegenteile, Blättern (03.10.2026) */
.syn-group + .syn-group { margin-top: 12px; }
.syn-group__label { font-size: 13px; color: var(--grey); margin: 0 0 6px; font-weight: 600; }
.syn-list--antonyms a, .syn-list--antonyms span { background: #fbf4f4; border-color: #efd9d9; color: #9b3b3b; }
.syn-list--antonyms a:hover { background: #f6e6e6; border-color: #e2bcbc; }
.syn-list--antonyms .syn-missing { color: #9b3b3b; background: #fbf4f4; border-color: #efd9d9; }
.syn-list--antonyms .syn-missing:hover { background: #f6e6e6; border-color: #e2bcbc; }
.word-nav { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin: 6px 0 0; }
.word-nav a { color: var(--grey); }
.word-nav a:hover { color: var(--green); }

/* Abkürzung (amber) und Silbentrennung (blaugrau), 03.10.2026 */
.syn-list--abbr .plain-chip { background: #fff7e6; border-color: #f1dfb5; color: #8a5a00; }
.syn-list--hyphen .plain-chip { background: #eef2f7; border-color: #d6dde8; color: #3b4a63; letter-spacing: .04em; }
.syn-list .plain-chip { cursor: default; }

/* Reime (violett), 03.10.2026 */
.syn-list--rhymes a, .syn-list--rhymes span { background: #f5f1fb; border-color: #e1d7f0; color: #5b3e8f; }
.syn-list--rhymes a:hover, .syn-list--rhymes .syn-missing:hover { background: #ece4f7; border-color: #cdbde6; }
.syn-list--rhymes .syn-missing.is-loading::after { border-color: #e1d7f0; border-top-color: #5b3e8f; }

/* Verwandte Begriffe (blaugrau) und Silbentrennung in der Kopfzeile, 03.10.2026 */
.syn-list--related a, .syn-list--related span { background: #eef2f7; border-color: #d6dde8; color: #3b4a63; }
.syn-list--related a:hover, .syn-list--related .syn-missing:hover { background: #e3e9f2; border-color: #c3cddc; }
.syn-list--related .syn-missing.is-loading::after { border-color: #d6dde8; border-top-color: #3b4a63; }
.page-sub .hyphen { color: var(--grey); letter-spacing: .06em; }

