/* Layout-Styles für alle Seiten, ausgelagert aus includes/layout.php (21.10.2026). */

/* ── Kopfzeile: Suche ── */
.header-search { position:relative; display:flex; align-items:center; }
.search-toggle { background:none;border:none;cursor:pointer;font-size:1.1rem;
    padding:.3rem .5rem;border-radius:6px;color:rgba(255,255,255,.7);transition:color .15s; }
.search-toggle:hover { color:#fff; }
.search-box { position:absolute;top:calc(100% + 8px);right:0;width:320px;z-index:300; }
.search-box input { width:100%;padding:.6rem .9rem;border-radius:var(--radius);border:none;
    font-size:.88rem;box-shadow:0 4px 20px rgba(0,0,0,.25);outline:none; }
.search-results { background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 4px 20px rgba(0,0,0,.18);
    margin-top:4px;overflow:hidden;max-height:400px;overflow-y:auto; }
.search-result-item { display:flex;align-items:flex-start;gap:.6rem;padding:.65rem .9rem;
    text-decoration:none;color:var(--text);border-bottom:1px solid var(--border);transition:background .12s; }
.search-result-item:last-child { border-bottom:none; }
.search-result-item:hover { background:var(--bg); }
.search-result-icon { font-size:1rem;flex-shrink:0;margin-top:.05rem; }
.search-result-text { flex:1;min-width:0; }
.search-result-title { font-size:.84rem;font-weight:600;line-height:1.4;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.search-result-sub { font-size:.74rem;color:var(--muted);margin-top:.1rem; }
.search-no-results { padding:.9rem;text-align:center;font-size:.83rem;color:var(--muted); }
@media(max-width:639px){ .search-box { width:calc(100vw - 2rem); right:-1rem; } }

/* ── Benachrichtigungszentrum (Glocke) ── */
.notif-wrap { position:relative; display:flex; align-items:center; }
.notif-bell { position:relative; background:none; border:none; cursor:pointer; font-size:1.15rem;
    padding:.3rem .5rem; border-radius:7px; color:rgba(255,255,255,.85); line-height:1; flex-shrink:0; }
.notif-bell:hover { color:#fff; }
.notif-badge { position:absolute; top:-2px; right:-2px; min-width:17px; height:17px; padding:0 4px;
    background:var(--red); color:#fff; border-radius:9px; font-size:.66rem; font-weight:700;
    display:flex; align-items:center; justify-content:center; line-height:1; }
.notif-dropdown { position:absolute; top:calc(100% + 8px); right:0; width:340px; max-width:calc(100vw - 1.5rem);
    background:var(--white); color:var(--text); border:1px solid var(--border); border-radius:var(--radius-lg);
    box-shadow:0 8px 30px rgba(0,0,0,.22); z-index:400; overflow:hidden; display:none; }
.notif-dropdown.open { display:block; }
.notif-head { display:flex; align-items:center; justify-content:space-between; padding:.7rem .9rem;
    border-bottom:1px solid var(--border); font-weight:600; font-size:.86rem; }
.notif-readall { background:none; border:none; color:var(--red); font-size:.76rem; font-weight:600; cursor:pointer; padding:.15rem .3rem; }
.notif-list { max-height:min(60vh,420px); overflow-y:auto; }
.notif-item { display:flex; gap:.6rem; padding:.7rem .9rem; text-decoration:none; color:var(--text);
    border-bottom:1px solid var(--border); transition:background .12s; }
.notif-item:last-child { border-bottom:none; }
.notif-item:hover { background:var(--bg); }
.notif-item.unread { background:color-mix(in srgb, var(--red) 7%, transparent); }
.notif-ic { font-size:1.05rem; flex-shrink:0; margin-top:.05rem; }
.notif-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:.12rem; }
.notif-title { font-size:.83rem; font-weight:600; line-height:1.35; }
.notif-text { font-size:.79rem; color:var(--muted); line-height:1.4; }
.notif-time { font-size:.7rem; color:var(--muted); opacity:.8; }
.notif-empty { padding:1.4rem .9rem; text-align:center; font-size:.82rem; color:var(--muted); }
.notif-foot { display:block; padding:.65rem .9rem; text-align:center; font-size:.78rem; font-weight:600;
    color:var(--red); text-decoration:none; border-top:1px solid var(--border); }
.notif-foot:hover { background:var(--bg); }

/* ── Fußzeile (layout_legal_footer) ── */
@media(max-width:639px){
    footer { flex-direction:column; align-items:flex-start; gap:.6rem; }
    footer > div { gap:.75rem; }
}
