/* Seite „Dive centers worldwide“ (Atlas). Optik aus dem freigegebenen Mockup
   docs/mockups/basen_globus_2610.html, Variante A; Tokens wie web/landing/assets/site.css (dunkel).
   Seiten erzeugt tool/gen_dive_centers.py, Verhalten dive-centers.js. */
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/SchibstedGrotesk-Regular.woff2') format('woff2')}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/SchibstedGrotesk-Medium.woff2') format('woff2')}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/SchibstedGrotesk-SemiBold.woff2') format('woff2')}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/SchibstedGrotesk-Bold.woff2') format('woff2')}
@font-face{font-family:'Schibsted Grotesk';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/SchibstedGrotesk-ExtraBold.woff2') format('woff2')}

:root {
  --bg-page: #081620; --bg: #0C2130; --surface: #122C3A; --surface-2: #0F2734;
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .14);
  --head: #EAF2F6; --ink: #F2F8FB; --ink2: #D4E0E7; --body: #9BB0BC; --faint: #7C909B;
  --teal: #37C6BE; --teal-bg: rgba(55, 198, 190, .12); --teal-line: rgba(55, 198, 190, .32);
  --hover: rgba(255, 255, 255, .05);
  --ease-o: cubic-bezier(.2, .8, .2, 1);
  --hd: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--bg-page); }
body { background: var(--bg-page); color: var(--body); font: 400 16px/1.5 'Schibsted Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-focus:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--teal); color: #052022; padding: 8px 14px; border-radius: 999px; }
.num { font-variant-numeric: tabular-nums; }
.flag { display: inline-block; width: 1.33em; height: 1em; border-radius: .14em; object-fit: cover; vertical-align: -.12em; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.flag--none { background: var(--surface); border: 1px solid var(--line2); box-shadow: none; }
svg { flex: none; }

/* ---------- Kopfleiste ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(8, 22, 32, .84); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.hd__in { max-width: 1280px; margin: 0 auto; height: var(--hd); padding: 0 var(--gutter); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; }
@media (max-width: 374px) { .brand img { height: 24px; } }
.hd nav { display: flex; gap: 24px; font-size: 15px; }
.hd nav a { color: var(--body); text-decoration: none; transition: color .2s; white-space: nowrap; }
.hd nav a:hover, .hd nav a[aria-current] { color: var(--ink); }
.hd__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.login { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 7px 16px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2); border: 1px solid transparent; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--line2); }
.lang img { border-radius: 2px; display: block; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; background: #10293A; border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 32px); }
[dir="rtl"] .lang__menu { right: auto; left: 0; }
.lang__menu a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; font-size: 14px; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.lang__menu a:hover, .lang__menu a[aria-current] { background: rgba(255, 255, 255, .07); color: var(--ink); }
@media (max-width: 720px) { .hd nav { display: none; } .hd__in { gap: 12px; } }

/* ---------- Bausteine ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--teal-line); background: var(--teal-bg); color: var(--teal); font-size: 13px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; text-decoration: none; }
.btn--pri { background: var(--teal); color: #052022; }
.btn--pri:hover { background: #52D3CB; }
.btn--sec { border: 1px solid var(--line2); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn--sec:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.btn--ghost { color: var(--body); }
.btn--ghost:hover { color: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.stats b { display: block; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stats span { display: block; font-size: 13px; color: var(--faint); }
.sea { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); }

/* Suche */
.search { position: relative; }
.search__box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line2); color: var(--faint); transition: border-color .2s; }
.search__box:focus-within { border-color: var(--teal-line); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--faint); }
.search__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: #10293A; border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); max-height: min(60vh, 440px); overflow: auto; text-align: start; }
.search__grp { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; font-weight: 600; }
.opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--ink2); }
.opt .flag { font-size: 20px; }
.opt[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--ink); }
.opt .t { flex: 1; min-width: 0; }
.opt .t b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .t small { display: block; color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt > small { color: var(--faint); white-space: nowrap; font-size: 13px; }
.opt .mini { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line2); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink2); flex: none; }
.search__empty { padding: 12px 10px; font-size: 14px; color: var(--faint); }

/* ---------- Globus ---------- */
.globe { position: absolute; inset: 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.globe canvas.is-drag { cursor: grabbing; }
.globe canvas.is-pt { cursor: pointer; }
.globe canvas:focus-visible { outline-offset: -2px; }
.globe__tip { position: absolute; left: 0; top: 0; pointer-events: none; background: rgba(6, 20, 27, .94); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 11px; font-size: 13.5px; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .15s; z-index: 3; }
.globe__tip.is-on { opacity: 1; }
.globe__tip span { color: var(--body); margin-inline-start: 8px; }
.globe__ctl { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.gbtn { width: 38px; height: 38px; border-radius: 12px; background: rgba(12, 33, 48, .88); border: 1px solid var(--line2); color: var(--ink2); display: grid; place-items: center; transition: border-color .2s, color .2s; }
.gbtn:hover { border-color: rgba(255, 255, 255, .28); color: var(--ink); }
.globe__leg { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; color: var(--faint); display: flex; flex-direction: column; gap: 4px; z-index: 2; pointer-events: none; }
.globe__leg span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: .8; display: inline-block; }
.dot--p { width: 9px; height: 9px; background: #EAF2F6; border: 1.5px solid #081620; box-shadow: 0 0 0 1px rgba(234, 242, 246, .5); opacity: 1; }
.globe__load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 14px; text-align: center; padding: 24px; }

/* ---------- Atlas ---------- */
.atlas { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head globe" "list globe"; height: calc(100svh - var(--hd)); min-height: 640px; }
.atlas__head { grid-area: head; padding: 28px 24px 14px; background: var(--bg); border-inline-end: 1px solid var(--line); }
.atlas__h1 { font-size: 32px; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); font-weight: 800; margin: 14px 0 14px; }
.atlas__head .stats { margin-bottom: 18px; gap: 10px 20px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.atlas__head .stats span { max-width: 9.5em; line-height: 1.35; font-size: 12.5px; }
.atlas__head .stats b { font-size: 18px; }
.atlas__list { grid-area: list; overflow: auto; background: var(--bg); border-inline-end: 1px solid var(--line); padding: 0 12px 28px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; --stick: 0px; }
.atlas__globe { grid-area: globe; position: relative; background: var(--bg-page); min-height: 0; }
.atlas__globe .globe { inset: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 10px; margin: 0 -12px; scrollbar-width: none; position: sticky; top: var(--stick); background: var(--bg); z-index: 3; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--body); font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--ink); border-color: var(--line2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #081620; border-color: var(--ink); }
.grp { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 20px 12px 6px; font-weight: 600; }
.crow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 10px; color: var(--ink2); font-size: 15px; transition: background .15s; text-decoration: none; }
.crow:hover, .crow:focus-visible { background: var(--hover); color: var(--ink); }
.crow .flag { font-size: 19px; }
.crow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .num { color: var(--faint); font-size: 14px; }
.crow .p { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.det { padding: 12px 12px 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--body); font-size: 14px; padding: 6px 8px 6px 2px; font-weight: 500; margin-inline-start: -2px; text-decoration: none; }
.back:hover { color: var(--ink); }
[dir="rtl"] .back svg { transform: scaleX(-1); }
.det__head { display: flex; gap: 14px; align-items: center; margin: 12px 0 8px; }
.det__head .flag { font-size: 40px; border-radius: 4px; }
.det__head h1, .det__head h2 { font-size: 26px; letter-spacing: -.025em; color: var(--ink); line-height: 1.1; font-weight: 800; }
.det__meta { font-size: 14.5px; }
.det .sea { margin-top: 12px; }
.det__sub { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; font-size: 13px; color: var(--faint); gap: 12px; }
.det__sub b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.det__filter { margin: 0 0 12px; }
.det__filter .search__box { height: 44px; border-radius: 12px; }
.det__more { margin-top: 14px; width: 100%; }
.det__empty { font-size: 14px; color: var(--faint); padding: 8px 2px; }
.addlink { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.addlink:hover { color: var(--ink); }
.a-claim { margin: 26px 12px 0; padding: 18px; border-radius: 16px; border: 1px solid var(--line); }
.a-claim b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.a-claim p { font-size: 14px; margin-bottom: 12px; }
.dc-note { margin: 22px 12px 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.det .dc-note { margin: 22px 0 0; }

@media (max-width: 900px) {
  .atlas { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "globe" "list"; height: auto; min-height: 0; }
  .atlas__head, .atlas__list { border-inline-end: 0; }
  .atlas__head { padding: 26px var(--gutter) 6px; }
  .atlas__h1 { font-size: 30px; }
  .atlas__globe { height: min(100vw, 520px); }
  .atlas__globe .globe { inset: 8px; }
  .atlas__list { overflow: visible; padding: 0 calc(var(--gutter) - 12px) 32px; --stick: var(--hd); }
  .chips { margin: 0 calc(12px - var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* Basen-Karten */
.cards { display: grid; gap: 12px; }
.base { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; scroll-margin: 120px; transition: border-color .3s; min-width: 0; }
.base.is-hit { border-color: var(--teal); }
.base__top { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.logo { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--ink2); letter-spacing: -.02em; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; box-sizing: border-box; }
.logo--dark img { background: #0C2130; }
.base--p .logo { background: var(--teal-bg); border-color: var(--teal-line); color: var(--teal); }
.base__txt { min-width: 0; flex: 1; }
.base h3 { font-size: 17px; color: var(--ink); line-height: 1.25; letter-spacing: -.01em; font-weight: 600; overflow-wrap: anywhere; }
.place { font-size: 14px; color: var(--body); margin-top: 2px; overflow-wrap: anywhere; }
.web { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px; color: var(--teal); text-decoration: none; overflow-wrap: anywhere; }
.web:hover { text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; margin-top: 10px; }
.tag--on { background: var(--teal-bg); color: var(--teal); border: 1px solid var(--teal-line); }
.tag--off { color: var(--faint); padding: 0; font-weight: 500; }
.base__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; }
.claim { font-size: 13px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.claim:hover { color: var(--body); }

/* Fuß */
.ft { border-top: 1px solid var(--line); }
.ft__in { max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13.5px; color: var(--faint); }
.ft__in nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--ink); }

/* Dialog, zentriert */
dialog { margin: auto; border: 1px solid var(--line2); border-radius: 20px; background: #0F2635; color: var(--body); width: min(460px, calc(100vw - 32px)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
dialog::backdrop { background: rgba(3, 10, 15, .62); }
.dlg { position: relative; padding: 26px 24px 22px; }
.dlg .logo { width: 48px; height: 48px; font-size: 16px; border-radius: 12px; }
.dlg h2 { font-size: 21px; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; margin: 16px 0 8px; padding-inline-end: 24px; }
.dlg p { font-size: 15px; }
.dlg p + p { margin-top: 10px; }
.dlg .small { font-size: 13.5px; color: var(--faint); }
.dlg__act { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.dlg__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--body); }
[dir="rtl"] .dlg__x { right: auto; left: 14px; }
.dlg__x:hover { background: var(--hover); color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
