/* ============================================================
   NOTRUF & APOTHEKE — Modal + Kachel · SPRITPREIS — Details
   ============================================================ */

/* ---------- Overlay ---------- */
.not-overlay {
    position: fixed; inset: 0;
    z-index: var(--wi-z-modal, 900);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(6, 12, 16, .84);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.not-overlay.active { opacity: 1; visibility: visible; }

.not-box {
    position: relative;
    width: min(560px, 100%);
    max-height: min(88vh, 760px);
    border-radius: 18px;
    background: var(--bg-elevated, #1a2d39);
    border: 1px solid var(--border, rgba(201,162,39,.14));
    box-shadow: 0 28px 70px rgba(0,0,0,.6);
    overflow: hidden;
}
.not-body { max-height: min(88vh, 760px); overflow-y: auto; padding: 26px 24px 22px; }
.not-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--text-muted, rgba(255,255,255,.6));
    font-size: 1.2rem; cursor: pointer;
}
.not-close:hover { background: #ff3b52; color: #fff; }

.not-titel  { margin: 0 0 16px; font-size: 1.25rem; font-weight: 700; color: var(--text, #f0f0f5); }
.not-gruppe {
    margin: 20px 0 9px; font-size: .76rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-muted, rgba(255,255,255,.5));
}
.not-n {
    padding: 1px 7px; border-radius: 999px;
    background: rgba(255,255,255,.08); font-size: .72rem;
}
.not-lade { color: var(--text-muted, rgba(255,255,255,.55)); font-size: .88rem; }

/* ---------- Nummern-Kacheln ---------- */
.not-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.not-item {
    display: flex; flex-direction: column; gap: 1px;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.not-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); }
.not-item i { font-size: 1.3rem; margin-bottom: 3px; }
.not-item__nr   { font-size: 1.22rem; font-weight: 800; color: var(--text, #fff); letter-spacing: .01em; }
.not-item__name { font-size: .82rem; color: var(--text, #f0f0f5); }
.not-item__info { font-size: .69rem; color: var(--text-dim, rgba(255,255,255,.4)); }

.not-item--notfall    { border-color: rgba(255,59,82,.35);  background: rgba(255,59,82,.08); }
.not-item--notfall i, .not-item--notfall .not-item__nr { color: #ff5c70; }
.not-item--gesundheit { border-color: rgba(61,220,132,.3); }
.not-item--gesundheit i { color: #3ddc84; }
.not-item--hilfe      { border-color: rgba(120,170,255,.3); }
.not-item--hilfe i    { color: #7aaaff; }
.not-item--technik    { border-color: rgba(201,162,39,.3); }
.not-item--technik i  { color: var(--accent, #c9a227); }

/* ---------- Apotheken ---------- */
.not-hinweis {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; margin-bottom: 12px;
    border-radius: 11px;
    background: rgba(61,220,132,.08);
    border: 1px solid rgba(61,220,132,.22);
    font-size: .82rem; line-height: 1.5;
    color: var(--text, #f0f0f5);
}
.not-hinweis i { font-size: 1.2rem; color: #3ddc84; flex: 0 0 auto; }
.not-hinweis a { color: #3ddc84; }

.not-select {
    width: 100%; padding: 10px 12px; margin-bottom: 10px;
    border-radius: 9px;
    border: 1px solid var(--border-hover, rgba(201,162,39,.3));
    background: var(--bg-tile, #1B2E3A);
    color: var(--text, #f0f0f5);
    font-size: .88rem; font-family: inherit;
}
.not-apo { display: flex; flex-direction: column; }
.not-apo__row {
    display: grid; grid-template-columns: 1.2fr 1.3fr auto;
    gap: 10px; align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .8rem;
}
.not-apo__name { color: var(--text, #f0f0f5); font-weight: 600; }
.not-apo__adr  { color: var(--text-muted, rgba(255,255,255,.5)); }
.not-apo__tel  { color: var(--accent, #c9a227); text-decoration: none; white-space: nowrap; }
.not-apo__tel:hover { text-decoration: underline; }
.not-mehr { margin: 10px 0 0; font-size: .74rem; color: var(--text-dim, rgba(255,255,255,.4)); }

/* ---------- Kachel ---------- */
.not-tile__nums { display: flex; gap: 7px; justify-content: center; }
.not-tile__nums b {
    padding: 2px 8px; border-radius: 7px;
    background: rgba(255,59,82,.14); border: 1px solid rgba(255,59,82,.3);
    color: #ff5c70; font-size: .78em; font-weight: 800;
}
.not-tile__sub { font-size: .72rem; line-height: 1.35; display: block; }

/* ---------- Spritpreis-Details ---------- */
.sprit-sub { font-size: .74rem; line-height: 1.3; display: block; }
.sprit-detail { display: none; flex-direction: column; gap: 9px; margin: 8px 0; font-size: .76rem; }
.wi-tile--expanded .sprit-detail { display: flex; }
.sprit-sorte { display: flex; flex-direction: column; gap: 3px; }
.sprit-sorte__kopf { color: var(--text, #fff); font-weight: 600; }
.sprit-sorte__kopf em { color: #3ddc84; font-style: normal; font-size: .9em; }
.sprit-row {
    display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px;
    color: var(--text-muted, rgba(255,255,255,.55));
}
.sprit-row__p { color: var(--text, #fff); font-variant-numeric: tabular-nums; }
.sprit-quelle { color: var(--text-dim, rgba(255,255,255,.35)); font-size: .7rem; }

@media (prefers-reduced-motion: reduce) {
    .not-overlay { transition: none; }
    .not-item:hover { transform: none; }
}

@media (max-width: 600px) {
    .not-overlay { padding: 8px; align-items: flex-start; padding-top: 18px; }
    .not-body { padding: 22px 16px 18px; }
    .not-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 7px; }
    .not-item { padding: 12px 11px; }          /* groessere Touch-Ziele */
    .not-item__nr { font-size: 1.3rem; }
    .not-apo__row { grid-template-columns: 1fr auto; row-gap: 2px; }
    .not-apo__adr { grid-column: 1 / -1; font-size: .74rem; }
    .sprit-row { grid-template-columns: 1fr auto; }
    .sprit-row__a { display: none; }
}
