/* Verbseiten aus App-Daten (factory_core/site_pages.py). Neutrale Grundfassung;
   Farben, Schriften und Zeichen der App setzt `theme` in config/site-pages.json. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7; --card: #ffffff; --ink: #1d1d1f; --muted: #6e6e73; --accent: #0a66c2;
  --wrong: #b3261e; --line: #e5e5ea; --on-accent: #ffffff; --mark-bg: var(--accent); --mark-fg: var(--on-accent);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101014; --card: #1c1c21; --ink: #f2f2f4; --muted: #98989f; --accent: #5ea8ff; --wrong: #ff8a80; --line: #2c2c33; --on-accent: #101014; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); padding: 32px 16px 48px; }
main { max-width: 760px; margin: 0 auto; }
a { color: var(--accent); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
header { margin-bottom: 24px; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.meta { color: var(--muted); margin-top: 6px; }
section, aside { background: var(--card); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
h2 { font-size: 1.25rem; margin-bottom: 10px; }
h3 { font-size: 1rem; margin-bottom: 6px; color: var(--accent); }
.rule { color: var(--muted); margin-bottom: 10px; }
.mistakes { list-style: none; }
.mistakes li { padding: 6px 0; border-top: 1px solid var(--line); }
.mistakes li:first-child { border-top: 0; }
s { color: var(--wrong); text-decoration-thickness: 2px; }
.tense { color: var(--muted); font-size: 0.9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 22px; }
table { border-collapse: collapse; width: 100%; }
td { padding: 2px 0; vertical-align: top; }
.not { display: block; font-size: 0.82rem; color: var(--wrong); }
.app { background: var(--accent); color: var(--on-accent); }
.app p { margin-bottom: 14px; }
.button { display: inline-block; background: #fff; color: #1d1d1f; font-weight: 600; text-decoration: none; padding: 10px 18px; border-radius: 999px; }
.related ul, .index ul { list-style: none; columns: 2 220px; }
.related li, .index li { padding: 3px 0; break-inside: avoid; }
.index .meaning { color: var(--muted); }
.mark { width: 56px; height: 56px; margin-bottom: 14px; border-radius: 14px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-fg); font-size: 30px; font-weight: 700; line-height: 1; }
[dir="rtl"] .crumbs, [dir="rtl"] header, [dir="rtl"] section, [dir="rtl"] aside { text-align: right; }
.forms { width: 100%; border-collapse: collapse; }
.forms td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.forms tr:first-child td { border-top: 0; }
.forms .name { color: var(--muted); padding-right: 16px; width: 46%; }
.forms .pattern { display: block; font-size: 0.85rem; opacity: 0.8; }
.forms .form { font-size: 1.2rem; font-weight: 600; }
.credit { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.languages a { margin: 0 2px; }
:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
:lang(ko) { font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
:lang(ar) { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; line-height: 2; font-size: 1.12em; }
/* Gestaltung der App, aus config/site-pages.json */
:root { --bg: #f7f0f0; --card: #ffffff; --ink: #171727; --muted: #5e5e7a; --accent: #C2661A; --on-accent: #ffffff; --line: #ebe2e2; --wrong: #bc002d; --mark-bg: #171727; --mark-fg: #FB8B24; }
@media (prefers-color-scheme: dark) { :root { --bg: #171727; --card: #2a2a4a; --ink: #F7F0F0; --muted: #BEC0E9; --accent: #FB8B24; --on-accent: #171727; --line: #434371; --wrong: #ff8a80; --mark-bg: #F7F0F0; --mark-fg: #BC002D; } }
h1, h2, h3, .mark { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
