:root{
    /* Premium dark base (cool near-black, passend zum Logo) */
    --bgTop:  #0b0e13;
    --bgMid:  #0d1117;
    --bgDeep: #07090d;
    --bgBot:  #030406;

    --text:  #edf2f8;
    --muted: rgba(237,242,248,0.68);

    --surface:  rgba(255,255,255,0.05)  ;
    --surface2: rgba(255,255,255,0.035);
    --border:   rgba(237,242,248,0.10);
    --border2:  rgba(237,242,248,0.18);

    /* Electric-blue accents (Logo) */
    --accent: #1e88ff;
    --accent2:#6fb8ff;
    --accentDark:#0a4fb0;
    --ink: #ffffff;

    --shadowSoft: 0 10px 30px rgba(0,0,0,0.40);

    --r12: 12px;
    --r16: 16px;
    --r22: 22px;

    --max: 1180px;
  }

  *{ box-sizing:border-box; }
  html, body{ min-height:100%; }

  html{
    background: linear-gradient(
      180deg,
      var(--bgTop) 0%,
      var(--bgMid) 55%,
      var(--bgDeep) 80%,
      var(--bgBot) 100%
    );
  }

  body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
    color: var(--text);
    line-height: 1.6;
    background: transparent;
    -webkit-font-smoothing: antialiased;
  }

  html::before{
    content:"";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
  }

  html::after{
    content:"";
    position: fixed;
    inset: -20%;
    pointer-events:none;
    opacity: 0.16;
    background: radial-gradient(900px 420px at 20% 12%, rgba(30,136,255,0.16), transparent 60%);
  }

  a{
    color: var(--accent2);
    text-decoration:none;
  }
  a:hover{ text-decoration:underline; }

  .page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
  }

  .container{
    width:100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
  }

  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--accent2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
  }

  .eyebrow::before{
    content:"";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
  }

  /* ===== Navbar / Topbar ===== */
  .topbar{
    position: sticky;
    top: 0;
    z-index: 20;

    background: rgba(4,6,9,0.55);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }

  .topbar__inner{
    position: relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }

  .brand{
    display:flex;
    align-items:center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration:none;
  }

  .brand__logo{
    display: block;
    height: 48px;
    width: auto;
    flex: none;
    /* Schwarzer Logo-Hintergrund verschmilzt mit dem dunklen Header */
    mix-blend-mode: lighten;
  }

  @media (min-width: 920px){
    .brand__logo{ height: 56px; }
  }

  .brand__name{
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: clamp(11px, 3vw, 13px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--text);
  }

  /* Mobile: Firmenname mittig in der Navbar, Logo links, Menü rechts */
  @media (max-width: 919px){
    .brand__name{
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      /* links/rechts Platz für Logo bzw. Buttons freihalten */
      max-width: calc(100% - 2 * var(--brandSide, 88px));
      text-align: center;
    }
  }

  @media (max-width: 399px){
    .brand__name{
      font-size: clamp(10px, 3.1vw, 12px);
      letter-spacing: 0.3px;
    }
  }

  /* ===== Mobile dropdown nav ===== */
  .nav{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(4,6,9,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);

    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 280ms var(--easeOut, ease), opacity 200ms ease, padding 280ms ease;
  }

  .nav.is-open{
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
    padding: 10px 20px 18px;
  }

  .nav a{
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: rgba(237,242,248,0.82);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration:none;
  }

  .nav a:last-child{ border-bottom: none; }
  .nav a:hover{ color: var(--accent2); text-decoration: none; }

  @media (min-width: 920px){
    .brand{
      flex: none;
    }

    .nav{
      position: static;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      flex: 1;
      gap: 26px;

      background: none;
      border: none;
      backdrop-filter: none;
      padding: 0;
      max-height: none;
      overflow: visible;
      opacity: 1;
      pointer-events: auto;
    }

    .nav a{
      width: auto;
      padding: 0;
      border-bottom: none;
      font-size: 13px;
      position: relative;
    }

    .nav a::after{
      content:"";
      position:absolute;
      left:0;
      right:0;
      bottom:-8px;
      height:1px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      opacity: 0;
      transform: translateY(2px);
      transition: opacity 140ms ease, transform 140ms ease;
    }

    .nav a:hover::after{ opacity: 1; transform: translateY(0px); }

  }

  /* ===== Header actions (CTA / burger) ===== */
  .topbar__actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    border: 1px solid var(--border2);
    background: rgba(237,242,248,0.04);
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle svg{ width: 19px; height: 19px; }
  .nav-toggle:hover{ border-color: var(--accent); color: var(--accent2); }

  @media (min-width: 920px){
    .nav-toggle{ display: none; }
  }

  /* Auf schmalen Screens nur Menü-Button, damit der mittige Firmenname Platz hat */
  @media (max-width: 699px){
    .btn.topbar__cta{ display: none; }
  }

  @media (min-width: 700px) and (max-width: 919px){
    .topbar__inner{ --brandSide: 180px; }
  }

  /* ===== Buttons (global) ===== */
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 10px;

    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor:pointer;
    user-select:none;
    white-space: nowrap;

    border: 1px solid transparent;
    transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
  }

  .btn--small{
    padding: 10px 16px;
    font-size: 13px;
  }

  .btn--primary{
    color: var(--ink);
    background: linear-gradient(135deg, var(--accent2), var(--accent) 55%, var(--accentDark));
    box-shadow: 0 16px 35px rgba(0,0,0,0.45);
  }
  .btn--primary:hover{
    filter: brightness(1.08);
    transform: translateY(-1px);
    text-decoration: none;
  }

  .btn--ghost{
    color: var(--text);
    background: rgba(237,242,248,0.04);
    border-color: var(--border2);
  }
  .btn--ghost:hover{
    border-color: var(--accent);
    color: var(--accent2);
    transform: translateY(-1px);
    text-decoration: none;
  }

  .btn:active{ transform: translateY(0px); }

  .muted{ color: var(--muted); }

  /* ===== Footer (global) ===== */
  .footer{
    margin-top:auto;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
  }

  .footer__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
  }

  .footer__brand p{ margin: 0; }

  .footer__brand .footer__credit{
    margin-top: 4px;
    font-size: 12px;
  }

  .footer__credit a{ color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
  .footer__credit a:hover{ color: var(--accent2); }

  .footer__links{
    display:flex;
    gap: 18px;
  }

  .footer__links a{
    color: var(--muted);
    font-size: 13px;
  }
  .footer__links a:hover{ color: var(--accent2); }

  @media (max-width: 520px){
    .footer__inner{
      flex-direction:column;
      align-items:flex-start;
    }
  }

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