/* Menü als schwebendes Dock unten in der Mitte (assets/dock.js: Icons wachsen unter der Maus) */
.dock {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 62px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: rgba(14, 15, 19, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.dock a, .dock-me { --s: 1; position: relative; display: grid; place-items: center; flex: none; width: calc(44px * var(--s)); height: calc(44px * var(--s)); transition: width .18s, height .18s; }
.dock-me { border-radius: 14px; background: radial-gradient(circle, rgba(63, 123, 217, .35), transparent 70%); }
.dock-me img { width: 100%; height: 100%; object-fit: contain; }
.dock-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(255, 255, 255, .1); }
.dock-ic { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid rgba(255, 255, 255, .07); border-radius: 30%; background: linear-gradient(#1b1d24, #111217); color: #c7cad1; transition: color .2s, border-color .2s, background .2s; }
.dock-ic svg { width: 45%; height: 45%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock a:hover .dock-ic { color: #fff; border-color: rgba(255, 255, 255, .16); }
.dock a[aria-current="page"] .dock-ic { color: #fff; border-color: rgba(63, 123, 217, .6); background: linear-gradient(#20345a, #121a2b); }
/* Leuchtender Punkt unter der aktiven Seite */
.dock a::after { content: ""; position: absolute; bottom: -7px; width: 4px; height: 4px; border-radius: 50%; }
.dock a[aria-current="page"]::after { background: #8db8ff; box-shadow: 0 0 8px 2px rgba(63, 123, 217, .9); }
/* Name als Tooltip über dem Icon */
.dock b { position: absolute; bottom: calc(100% + 10px); padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 7px; background: rgba(14, 15, 19, .92); font-size: 11px; font-weight: 400; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.dock a:hover b, .dock a:focus-visible b { opacity: 1; transform: none; }
.dock a:focus-visible { outline: none; }
.dock a:focus-visible .dock-ic { outline: 1px solid #fff; outline-offset: 3px; }
.dock a:active .dock-ic { transform: scale(.94); }

/* Handy: über die ganze Breite, ohne Tooltips */
@media (max-width: 639px) {
  .dock { left: 12px; right: 12px; transform: none; justify-content: space-between; bottom: max(12px, env(safe-area-inset-bottom)); }
  .dock b { display: none; }
}
/* Schmale Handys: 6 Seiten passen nicht neben den Avatar, er ist nur Deko */
@media (max-width: 439px) { .dock-me, .dock-sep { display: none; } }
@media (max-width: 359px) { .dock a { --s: .86; } }
@media (prefers-reduced-motion: reduce) { .dock a, .dock-me { transition: none; } }

/* Projects-Mindmap endet über dem Dock */
@media (min-width: 640px) { .page .net.net-ready { height: clamp(360px, calc(100dvh - 17.5rem), 700px); } }
