/* pocket ATA 4.14: one consistent 1200px content frame, mobile-first. */
.g414,.s414{max-width:1200px;margin:0 auto 3rem;color:#0f172a}
.g414 [hidden],.s414 [hidden]{display:none!important}
.g414-head,.s414-intro{background:linear-gradient(115deg,#effcf9,#fff 70%);border:1px solid #b5dcd5;border-radius:16px;padding:clamp(15px,2vw,24px);margin-bottom:14px}
.g414-eyebrow{color:#0d756e;font-weight:800;text-transform:uppercase;letter-spacing:.035em;font-size:12px;margin-bottom:7px}
.g414-head h2,.s414-intro h2{font-size:clamp(20px,2.3vw,26px);font-weight:850;line-height:1.25;margin:0 0 7px}
.g414-head p,.s414-intro p{font-size:14px;line-height:1.58;color:#46576e;max-width:770px;margin:0}
.g414-to-search{display:inline-flex;align-items:center;gap:8px;color:#0f766e;font-size:13px;text-decoration:underline;font-weight:750;margin-top:12px;min-height:35px}
.g414-notice{display:flex;gap:9px;background:#f8fafc;border-left:3px solid #0d9488;padding:12px 15px;border-radius:8px;font-size:12.5px;color:#475569;margin-bottom:14px;line-height:1.55}
.g414-controls,.s414-box{padding:17px;background:white;border:1px solid #cbd5e1;border-radius:14px;margin-bottom:16px}
.g414-controls label,.s414-box label{font-size:13px;font-weight:800;display:block;margin-bottom:6px;color:#334155}
.g414-controls input,.s414-box input{width:100%;min-width:0;min-height:46px;font-size:16px;color:#0f172a;border:1px solid #94a3b8;border-radius:10px;padding:10px 13px;background:#f8fafc;outline-offset:2px}
.g414-controls input:focus,.s414-box input:focus{outline:3px solid #99f6e4;border-color:#0f766e}
.g414-filterrow,.s414-filters{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}
.g414-filterrow button,.s414-filters button{min-height:40px;padding:7px 12px;border-radius:22px;background:#f8fafc;border:1px solid #cbd5e1;color:#334155;font-size:12px;font-weight:750;white-space:nowrap}
.g414-filterrow button.is-active,.s414-filters button.is-active{background:#0f766e;color:#fff;border-color:#0f766e}
.g414-filterrow span{font-size:10px;opacity:.9}
.g414-status{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:13px;font-size:12px;color:#475569}
.g414-status button{color:#0f766e;text-decoration:underline;font-weight:700;min-height:40px}
.g414-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.g414-term{min-width:0;background:white;border:1px solid #d1dee8;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:5px;scroll-margin-top:100px}
.g414-term.is-deep-linked{border:2px solid #0d9488;background:#f0fdfa}
.g414-category{font-size:10px;text-transform:uppercase;color:#0f766e;letter-spacing:.04em;font-weight:800}
.g414-term h3{font-size:16px;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
.g414-aliases{color:#64748b;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.g414-definition{font-size:13px;color:#334155;line-height:1.62;flex:1}
.g414-source{display:inline-flex;gap:7px;align-items:center;color:#0f766e;font-size:12px;font-weight:760;min-height:37px;margin-top:5px;align-self:flex-start}
.g414-empty,.s414-empty{padding:18px;border:1px dashed #94a3b8;border-radius:12px;color:#475569;background:white;font-size:13px}
.s414-status{font-size:12px;color:#64748b;margin-top:12px}
.s414-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.s414-hit{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:105px;padding:13px 14px;border:1px solid #d4e0ea;border-radius:12px;background:white;text-decoration:none!important;transition:border-color .12s,background .12s}
.s414-hit:hover,.s414-hit:focus-visible{border-color:#14b8a6;background:#f0fdfa;outline-offset:1px}
.s414-type{font-size:10px;font-weight:850;color:#0e7490;text-transform:uppercase;letter-spacing:.04em}
.s414-title{color:#0f172a;line-height:1.38;font-size:14px;overflow-wrap:anywhere}
.s414-desc{color:#475569;font-size:11.5px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.s414-arrow{color:#0f766e;font-size:12px;font-weight:700;margin-top:auto}
.s414-more{padding:11px 17px;border-radius:10px;background:#0f766e;color:#fff;font-weight:750;display:block;margin:16px auto}
.s414-hints{margin-top:17px;color:#64748b;font-size:12px;line-height:1.6}
.s414-hints p+p{margin-top:6px}
/* Header dropdown: preserve the existing panel positioning and do not force JS inline actions. */
#searchResultsList .s414-hit{padding:10px;min-height:90px;max-width:100%}
#searchResultsList .s414-title{font-size:12px}
#searchResultsList .s414-see-all{grid-column:1/-1;text-align:center;background:#0f766e;color:#fff;font-size:12px;font-weight:800;min-height:42px;padding:10px;border-radius:10px}
#searchResultsList .s414-hint{grid-column:1/-1;font-size:12px;color:#64748b;padding:9px}
@media(max-width:767px){
 .g414-grid,.s414-results{grid-template-columns:minmax(0,1fr)}
 .g414-filterrow,.s414-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity;padding-bottom:4px}
 .g414-filterrow button,.s414-filters button{flex:0 0 auto;scroll-snap-align:start}
 .g414-controls,.s414-box{padding:12px}
 .g414-term{padding:13px}
 #searchResultsList{grid-template-columns:minmax(0,1fr)!important}
 #searchResultsList .s414-hit{min-height:70px}
}
/* Header reset is an actual tap target (legacy input styles left it at 0×0). */
#appHeader #clearSearchBtn:not(.hidden){display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;min-width:38px;border-radius:9px;background:#f1f5f9;color:#64748b}
#appHeader #clearSearchBtn:not(.hidden):focus-visible{outline:3px solid #5eead4}
/* Mobile-first: the page hero already explains the module. Show the lookup
   field immediately after the quick topics instead of a second large intro. */
@media(max-width:767px){
 .g414-head,.s414-intro{display:none}
 .g414-notice{display:none} /* global Lehrfassungs-Hinweis remains above the header */
 .g414-controls,.s414-box{margin-top:2px}
}
