/*
 * Globaler Seamap24-Header.
 * Alle oeffentlichen Seiten verwenden dieselbe Blade-Komponente
 * partials/map-header.blade.php und ausschliesslich diese Darstellung.
 */
.smp-header {
    --smp-header-text: #f4fbfd;
    --smp-header-muted: #94aeb8;
    --smp-header-accent: #41d9d0;
    --smp-header-live: #39e3a4;
    --smp-header-stale: #ff7b68;
    --smp-header-line: rgba(184, 226, 239, .16);
    --smp-header-panel: rgba(7, 17, 25, .98);
    --smp-header-height: 56px;
    --smp-header-shadow: 0 20px 56px rgba(0, 0, 0, .42);
    position: relative;
    z-index: 1200;
    height: var(--smp-header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    color: var(--smp-header-text);
    background: #07121a;
    border-bottom: 1px solid rgba(181, 229, 241, .14);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.smp-header,
.smp-header * { box-sizing: border-box; }
.smp-header button,
.smp-header input { font: inherit; }
.smp-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 21px;
    font-weight: 820;
    letter-spacing: -.03em;
}
.smp-brand > span:last-child > span { color: var(--smp-header-accent); }
.smp-brandmark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(65, 217, 208, .48);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(65, 217, 208, .22), rgba(20, 105, 139, .13));
    box-shadow: inset 0 0 20px rgba(65, 217, 208, .08);
}
.smp-brandmark svg { width: 23px; height: 23px; fill: none; stroke: var(--smp-header-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smp-live {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--smp-header-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
}
.smp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #81949b; box-shadow: 0 0 0 4px rgba(129, 148, 155, .1); }
.smp-live.is-ok { color: #b6ffe2; }
.smp-live.is-ok .smp-live-dot { background: var(--smp-header-live); box-shadow: 0 0 0 4px rgba(57, 227, 164, .13), 0 0 15px rgba(57, 227, 164, .65); animation: smp-header-pulse 2s infinite; }
.smp-live.is-error { color: #ffc1b8; }
.smp-live.is-error .smp-live-dot { background: var(--smp-header-stale); }
.smp-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.smp-gsearch { position: relative; justify-self: center; width: min(460px, 40vw); }
.smp-gsearch-open,
.smp-gsearch-close { display: none; }
.smp-gsearch-open svg,
.smp-gsearch-close svg,
.smp-gsearch-field svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.smp-gsearch-box { position: relative; display: flex; align-items: center; gap: 8px; }
.smp-gsearch-field { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid rgba(181, 229, 241, .18); border-radius: 12px; color: #8fb2bc; background: rgba(255, 255, 255, .05); transition: border-color .15s, background .15s; }
.smp-gsearch-field:focus-within { border-color: rgba(65, 217, 208, .6); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px rgba(65, 217, 208, .12); }
.smp-gsearch-field svg { width: 17px; height: 17px; flex: 0 0 auto; }
.smp-gsearch-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; color: var(--smp-header-text); background: transparent; font-size: 13px; }
.smp-gsearch-field input::placeholder { color: #7f9aa3; }
.smp-gsearch-results { position: absolute; z-index: 1600; top: calc(100% + 8px); left: 0; right: 0; max-height: min(70vh, 480px); overflow: auto; padding: 6px; border: 1px solid var(--smp-header-line); border-radius: 14px; background: var(--smp-header-panel); box-shadow: var(--smp-header-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.smp-gsearch-group { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px 5px; color: var(--smp-header-accent); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.smp-gsearch-group span { color: #7f9aa3; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.smp-gsearch-item { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; color: var(--smp-header-text); background: transparent; text-align: left; cursor: pointer; }
.smp-gsearch-item:hover,
.smp-gsearch-item[aria-selected="true"] { background: rgba(65, 217, 208, .1); }
.smp-gsearch-icon { display: grid; place-items: center; color: var(--smp-header-accent); font-size: 14px; }
.smp-gsearch-icon .smp-flag { margin: 0; }
.smp-gsearch-ship { width: 9px; height: 9px; border-radius: 50%; background: var(--smp-header-accent); }
.smp-gsearch-main { min-width: 0; }
.smp-gsearch-main strong { display: block; overflow: hidden; color: #edf7f8; font-size: 12px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.smp-gsearch-main small { display: flex; align-items: center; gap: 5px; margin-top: 3px; overflow: hidden; color: var(--smp-header-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.smp-gsearch-side { max-width: 140px; overflow: hidden; color: #b7cdd3; font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.smp-gsearch-side small { display: block; margin-top: 3px; color: #79959e; font-size: 9px; }
.smp-gsearch-msg { padding: 12px 10px; color: var(--smp-header-muted); font-size: 11px; }
.smp-gsearch-backdrop { position: fixed; z-index: 1650; inset: 0; background: rgba(0, 0, 0, .55); }

.smp-header-end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.smp-lang { position: relative; }
.smp-lang summary { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(181, 229, 241, .2); border-radius: 10px; color: #cfe3e8; background: rgba(255, 255, 255, .05); font-size: 11px; font-weight: 800; letter-spacing: .08em; cursor: pointer; list-style: none; user-select: none; }
.smp-lang summary::-webkit-details-marker { display: none; }
.smp-lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.smp-lang summary:hover,
.smp-lang[open] summary { border-color: rgba(65, 217, 208, .6); background: rgba(255, 255, 255, .08); }
.smp-lang-menu { position: absolute; z-index: 1600; top: calc(100% + 8px); right: 0; min-width: 170px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--smp-header-line); border-radius: 12px; background: var(--smp-header-panel); box-shadow: var(--smp-header-shadow); }
.smp-lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--smp-header-text); font-size: 13px; text-decoration: none; }
.smp-lang-menu a b { width: 22px; color: var(--smp-header-accent); font-size: 10px; letter-spacing: .08em; }
.smp-lang-menu a:hover,
.smp-lang-menu a:focus-visible { background: rgba(65, 217, 208, .1); outline: none; }
.smp-lang-menu a[aria-current="page"] { color: #fff; font-weight: 700; background: rgba(65, 217, 208, .14); }

@media (max-width: 720px) {
    .smp-header { grid-template-columns: 1fr auto auto; gap: 10px; padding: 0 12px; }
    .smp-gsearch { width: auto; justify-self: end; }
    .smp-gsearch-open { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(181, 229, 241, .2); border-radius: 12px; color: #cfe3e8; background: rgba(255, 255, 255, .05); cursor: pointer; }
    .smp-gsearch-open svg { width: 19px; height: 19px; }
    .smp-gsearch-box { display: none; }
    .smp-gsearch.is-open .smp-gsearch-box { position: fixed; z-index: 1700; top: 0; left: 0; right: 0; height: calc(var(--smp-header-height) + env(safe-area-inset-top, 0px)); display: flex; padding: env(safe-area-inset-top, 0px) 10px 0; background: #07121a; border-bottom: 1px solid rgba(181, 229, 241, .14); }
    .smp-gsearch.is-open .smp-gsearch-close { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid rgba(181, 229, 241, .2); border-radius: 12px; color: #cfe3e8; background: rgba(255, 255, 255, .05); cursor: pointer; }
    .smp-gsearch.is-open .smp-gsearch-close svg { width: 18px; height: 18px; }
    .smp-gsearch-field input { font-size: 16px; }
    .smp-gsearch-results { position: fixed; top: calc(var(--smp-header-height) + env(safe-area-inset-top, 0px) + 8px); left: 8px; right: 8px; max-height: calc(100svh - var(--smp-header-height) - 24px); }
    .smp-header-end { gap: 8px; }
    .smp-lang summary { height: 38px; padding: 0 10px; border-radius: 12px; }
    .smp-lang summary svg { display: none; }
}
@media (max-width: 400px) {
    .smp-header #smpLiveText { display: none; }
}
@keyframes smp-header-pulse {
    50% { box-shadow: 0 0 0 7px rgba(57, 227, 164, 0), 0 0 18px rgba(57, 227, 164, .72); }
}
