.rf-lex .rf-wrap { padding-bottom:1rem; }
.rf-lex .lex-opening { padding:2.8rem 0 1.6rem; max-width:850px; }
.rf-lex h1 { font-size:clamp(1.875rem,1.3rem + 1.35vw,2.5rem); line-height:1.15; margin:0 0 1.4rem; }
.rf-lex .lead { font-size:1.1rem; line-height:1.8; color:var(--rf-muted); }
.rf-lex [hidden] { display:none!important; }
.rf-lex .lex-ranges { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:0 0 2rem; }
.rf-lex .lex-ranges a { display:flex; justify-content:space-between; gap:1rem; padding:1.1rem 1.3rem; background:var(--rf-paper); border:1px solid var(--rf-line); border-radius:4px; text-decoration:none; }
.rf-lex .lex-ranges a[aria-current] { border-color:var(--rf-green); }
.rf-lex .lex-ranges span { color:var(--rf-muted); font-size:.85rem; }
.rf-lex .lex-controls { background:var(--rf-paper); padding:1.5rem; border:1px solid var(--rf-line); border-radius:5px; }
.rf-lex .lex-controls label { display:block; font-weight:650; margin-bottom:.65rem; }
.rf-lex input[type=search] { display:block; width:100%; max-width:760px; min-width:0; padding:.9rem 1rem; font:inherit; border:1px solid #91a99b; border-radius:4px; background:white; color:var(--rf-ink); }
.rf-lex fieldset { border:0; padding:0; margin:1.2rem 0 0; min-width:0; }
.rf-lex legend { font-size:.85rem; color:var(--rf-muted); margin-bottom:.7rem; }
.rf-lex .lex-topics { display:flex; flex-wrap:wrap; gap:.65rem; }
.rf-lex button { font:inherit; color:var(--rf-green); background:white; border:1px solid var(--rf-line); padding:.65rem .85rem; border-radius:4px; cursor:pointer; }
.rf-lex button[aria-pressed=true] { color:white; background:var(--rf-green); border-color:var(--rf-green); }
.rf-lex .lex-filter-status { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.75rem; margin-top:1rem; }
.rf-lex .lex-filter-status p { margin:0; font-size:.9rem; }
.rf-lex .lex-filter-status button { font-size:.85rem; }
.rf-lex .lex-alphabet { display:flex; flex-wrap:wrap; gap:.4rem; margin:1.4rem 0 2.5rem; }
.rf-lex .lex-alphabet a,.rf-lex .lex-alphabet > span { display:grid; place-items:center; min-width:2.6rem; min-height:2.6rem; padding:.4rem; border:1px solid var(--rf-line); border-radius:3px; text-decoration:none; }
.rf-lex .lex-alphabet > span { color:#76877e; background:#f4f6f2; }
.rf-lex .lex-alphabet a[aria-current] { background:var(--rf-green); color:white; }
.rf-lex :is(a,button,input):focus-visible { outline:3px solid #bf7b3e; outline-offset:3px; }
.rf-lex .lex-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 2rem; }
.rf-lex .lex-result { display:flex; flex-direction:column; padding:1.3rem .4rem; border-top:1px solid var(--rf-line); text-decoration:none; min-width:0; }
.rf-lex .lex-result strong { font-size:1.1rem; margin-bottom:.55rem; }
.rf-lex .lex-result > span { color:var(--rf-muted); font-size:.95rem; line-height:1.7; }
.rf-lex .lex-result small { margin-top:.8rem; font-size:.75rem; color:var(--rf-green); }
.rf-lex .lex-how { margin-top:3rem; border-top:1px solid var(--rf-line); padding-top:2rem; }
.rf-lex .lex-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem 3rem; }
.rf-lex .lex-guide-grid h3 { font-size:1.1rem; line-height:1.5; }
.rf-lex .lex-guide-grid p { font-size:1rem; line-height:1.85; color:var(--rf-muted); }
.rf-lex .lex-reading { max-width:none; margin:auto; }
.rf-lex .lex-letter-section > h2 { color:var(--rf-green); font-size:2.4rem; margin:2.6rem 0 .6rem; }
.rf-lex .lex-entry { padding:1.8rem 0 2rem; border-top:1px solid var(--rf-line); scroll-margin-top:100px; }
.rf-lex .lex-entry:target { border-top:3px solid #708a76; background:var(--rf-paper); padding-inline:1.4rem; }
.rf-lex .lex-entry h3 { font-family:Georgia,serif; font-weight:400; font-size:1.7rem; margin:.6rem 0 1rem; }
.rf-lex .lex-entry p,.rf-lex .lex-entry dd { font-size:1.05rem; line-height:1.85; color:#40534a; }
.rf-lex .lex-entry dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.3rem 2rem; margin:1.4rem 0; }
.rf-lex .lex-entry dt { font-weight:650; margin-bottom:.35rem; }
.rf-lex .lex-entry dd { margin:0; font-size:1rem; }
.rf-lex .lex-deeper a { font-weight:650; }
.rf-lex .lex-related { font-size:.9rem!important; }
.rf-lex .lex-entry a,.rf-lex .lex-practice a { text-decoration:underline; text-underline-offset:.2em; }
.rf-lex .lex-practice { max-width:none; margin:2.5rem auto; padding:1.6rem; background:var(--rf-paper); border-left:3px solid #708a76; }
.rf-lex .lex-practice p,.rf-lex .lex-practice li { font-size:1rem; line-height:1.85; }
.rf-lex .lex-overview-graphic { max-width:720px; margin:2.5rem auto; }
.rf-lex .lex-overview-graphic img { display:block; max-width:100%; height:auto; margin:auto; }
.rf-lex .lex-overview-graphic figcaption { text-align:center; font-size:.85rem; line-height:1.7; color:var(--rf-muted); margin-top:.8rem; }
@media(max-width:1000px) { .rf-lex .lex-results { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .rf-lex .lex-entry dl,.rf-lex .lex-guide-grid { grid-template-columns:1fr; } .rf-lex .lex-ranges { gap:.5rem; } .rf-lex .lex-ranges a { flex-direction:column; padding:.8rem; gap:.3rem; } }
@media(max-width:500px) { .rf-lex .lex-results { grid-template-columns:1fr; } .rf-lex .lex-controls { padding:1rem; } .rf-lex .lex-opening { padding-top:2rem; } }

/* Breite mit Suchbereich abstimmen; A–Z auf dem Desktop in einer Reihe. */
@media(min-width:851px) {
 .rf-lex .lex-alphabet { display:grid; grid-template-columns:repeat(26,minmax(0,1fr)); gap:clamp(2px,.3vw,4px); }
 .rf-lex .lex-alphabet a,.rf-lex .lex-alphabet > span { min-width:0; min-height:2.4rem; padding:.25rem .05rem; font-size:clamp(.75rem,1vw,1rem); }
}
