/* ============================================================
   shared.css – Solvist gemeinsame Styles
   Nav, Footer, HiDPI-Breakpoint und Mobile-Nav
   Änderungen hier wirken auf alle Seiten.
   ============================================================ */
:root {
    --blue-deep: #0e1828;
    --blue-mid: #2b5aa0;
    --blue-brand: #3b6eb8;
    --blue-light: #5e8fcc;
    --blue-pale: #8baac8;
    --accent: #4b82c8;
    --accent-dim: rgba(75,130,200,0.15);
    --white: #f0f5fc;
    --text: #bdd0e8;
    --text-dim: #7090b0;
    --bg: #0b1526;
    --bg2: #0e1b30;
    --card: rgba(25,50,85,0.45);
    --border: rgba(75,130,200,0.18);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height%3D'100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.6;
  }

  .mesh {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 80% 60% at 15% 20%, rgba(59,110,184,0.22) 0%, transparent 60%),
      radial-gradient(ellipse 60% 70% at 85% 75%, rgba(75,130,200,0.08) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 50% 100%, rgba(25,50,85,0.6) 0%, transparent 70%);
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 6%;
    padding-top: calc(1.4rem + env(safe-area-inset-top));
    background: rgba(11,21,38,0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    animation: fadeDown 0.7s ease both;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
  @keyframes fadeDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }

  .nav-logo { display: flex; align-items: center; text-decoration: none; }
  .nav-logo-img { height: 44px; width: auto; display: block; }
  @media (max-width: 768px) { .nav-logo-img { height: 36px; } }
  @media (max-width: 480px) { .nav-logo-img { height: 30px; } }

  .nav-links { display: flex; gap: 2.5rem; }
  .nav-links a {
    font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--text-dim);
    text-decoration: none; transition: color 0.2s;
  }
  .nav-links a:hover, .nav-links a.active { color: var(--accent); }

  .nav-cta {
    background: var(--accent); color: var(--bg);
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.65rem 1.6rem; border-radius: 2px;
    text-decoration: none; transition: opacity 0.2s;
  }
  .nav-cta:hover { opacity: 0.85; }

  /* HAMBURGER */
  .nav-hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; cursor: pointer;
    background: none; border: none; padding: 4px; z-index: 200;
  }
  .nav-hamburger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: none; position: fixed; inset: 0; top: 65px; z-index: 99;
    background: rgba(11,21,38,0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.5rem; padding: 2rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 1.6rem; letter-spacing: -0.01em;
    color: var(--text); text-decoration: none; transition: color 0.2s;
  }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-menu .nav-cta { font-size: 0.9rem; margin-top: 1rem; }

  /* ── FOOTER ── */
  footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2.5rem 6%;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
  }
  .footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: #8baac8; display: flex; align-items: center; gap: 0.5rem; }
  .footer-logo .v { color: #3b6eb8; font-size: 1.55rem; line-height: 1; transform: translateY(1px); display: inline-block; }
  .footer-text { font-size: 0.82rem; color: var(--text-dim); }
  .footer-links { display: flex; gap: 2rem; }
  .footer-links a { font-size: 0.82rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--accent); }

  /* ── RESPONSIVE: HIDPI-NOTEBOOK (2880×1800 @ 200% = 1440 CSS-px) ── */
  @media (max-width: 1500px) {
    .nav-links { gap: 1.4rem; }
    .nav-links a { font-size: 0.82rem; letter-spacing: 0.03em; }
    .nav-cta { font-size: 0.8rem; padding: 0.6rem 1.2rem; }
  }

  /* ── RESPONSIVE: MOBIL – NAV & FOOTER (geteilt) ── */
  @media (max-width: 768px) {
    nav { padding: 1.1rem 5%; padding-top: calc(1.1rem + env(safe-area-inset-top)); }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: flex; margin-right: 0.5rem; }
    footer { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 2rem 5%; }
    .footer-links { flex-wrap: wrap; gap: 1.2rem; }
  }
