  /* =========================================================
     Mobilista Motors – helle Version
     Schriften kommen lokal aus fonts.css (kein Google-Fonts-Import mehr).
     ========================================================= */

  :root{
    /* Grundflächen */
    --bg:         #ffffff;   /* Seitenhintergrund */
    --panel:      #f4f4f2;   /* abgesetzte Flächen (Footer, Kacheln) */
    --text:       #161616;   /* Fließtext / Headlines */
    --muted:      #5e5e5e;   /* Sekundärtext */
    --faint:      #9a9a9a;   /* sehr leise Texte (Zähler, Labels) */
    --line:       rgba(22,22,22,0.12);
    --line-strong:rgba(22,22,22,0.22);

    /* Akzent */
    --red:        #e30613;
    --red-dark:   #b5040f;   /* Hover auf hellem Grund */

    /* Texte auf Fotos (Slider) */
    --on-photo:       #ffffff;
    --on-photo-muted: rgba(255,255,255,0.82);

    /* Kompatibilität für ältere Selektoren/Content Blocks */
    --paper:      var(--text);
    --red-soft:   var(--red);

    --font-display: 'Oswald', sans-serif;
    --font-ui: 'Jost', sans-serif;
    box-sizing: border-box;
  }
  html{ scroll-padding-top: env(safe-area-inset-top, 0px); }
  *,*::before,*::after{box-sizing:inherit;}
  body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  a{color:inherit; text-decoration:none;}
  button{font-family:inherit;}

  /* ---------- Hero (Slider.html) ---------- */
  .hero{
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: min(23vw, 300px) 1fr;
  }

  .side{
    position: relative;
    background: var(--bg);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.2rem 1.8rem 2.6rem;
    overflow: hidden;
    z-index: 3;
  }

  .brand{ position: relative; display: block; flex-shrink: 0; }
  .brand img{ width: 168px; max-width: 100%; height: auto; display:block; }

  .side-mid{ position: relative; display: flex; align-items: center; gap: 1.4rem; }
  .slide-index{ font-family: var(--font-display); font-weight: 600; line-height: 0.85; }
  .slide-index .current{
    font-size: 4.6rem; color: var(--red); display: inline-block; min-width: 1.3ch;
    transition: opacity .35s ease, transform .35s ease;
  }
  .slide-index .total{ font-size: 1rem; color: var(--faint); font-family: var(--font-ui); letter-spacing: 0.08em; }
  .vertical-label{
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 0.72rem; letter-spacing: 0.32em; color: var(--faint);
  }

  .side-bottom{ position: relative; }
  .rule{ width: 28px; height: 1px; background: var(--line-strong); margin-bottom: 1.4rem; }
  .socials{ display: flex; flex-direction: column; gap: 1.1rem; }
  .socials a{
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted);
    transition: border-color .2s ease, color .2s ease;
  }
  .socials a:hover, .socials a:focus-visible{ border-color: var(--red); color: var(--red); }
  .socials svg{ width: 14px; height: 14px; fill: currentColor; }

  .stage{ position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; }
  .stage.is-dragging{ cursor: grabbing; }

  .stage-art{ position: absolute; inset: 0; background: #1c1c1c; }
  .art-layer{
    position: absolute; inset: 0;
    opacity: 0;
    transform: scale(1.055);
    transition: opacity 1.15s cubic-bezier(.4,0,.2,1), transform 6.5s cubic-bezier(.16,.6,.3,1);
  }
  .art-layer.active{ opacity: 1; transform: scale(1); z-index: 1; }
  .art-layer svg{ position:absolute; inset:0; width:100%; height:100%; }
  .art-layer .bg-photo{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
  }
  .art-layer svg.overlay{ pointer-events: none; }

  @keyframes sheen{
    0%   { transform: translateX(-120%) skewX(-12deg); }
    100% { transform: translateX(220%) skewX(-12deg); }
  }
  .art-layer.active .sheen{ animation: sheen 2.6s cubic-bezier(.4,0,.2,1) 1; }

  /* ---------- Navigation ---------- */
  .nav{
    position: relative; z-index: 4;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: 1.5rem clamp(1.4rem, 4vw, 3.2rem);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-phone{ font-size: 0.82rem; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }
  .nav-phone b{ color: var(--red); font-weight: 500; }
  .nav-phone a:hover b, .nav-phone a:focus-visible b{ color: var(--red-dark); }
  .nav-links{ display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
  .nav-links a{
    display: inline-block;
    font-size: 0.78rem; letter-spacing: 0.16em; color: var(--text);
    padding-bottom: 0.4rem; border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
  }
  .nav-links a:hover, .nav-links a:focus-visible{ color: var(--red); }
  .nav-links a.is-active{ color: var(--red); border-color: var(--red); }

  /* Dropdown: greift nur, sobald ein Menüpunkt Unterseiten hat (navItem.children) */
  .nav-links li{ position: relative; }
  .nav-links .dropdown{
    display: none;
    list-style: none; margin: 0; padding: 0.5rem 0;
  }
  @media (min-width: 861px){
    .nav-links .dropdown{
      position: absolute; top: 100%; left: -1.2rem;
      min-width: 220px;
      background: var(--bg);
      border: 1px solid var(--line);
      box-shadow: 0 14px 30px -18px rgba(0,0,0,0.35);
      z-index: 10;
    }
    .nav-links li.has-dropdown:hover .dropdown,
    .nav-links li.has-dropdown:focus-within .dropdown{ display: block; }
    .nav-links .dropdown a{
      display: block; padding: 0.6rem 1.2rem;
      border-bottom: none; white-space: nowrap;
    }
  }
  .nav-meta{ display: flex; align-items: center; gap: 1.4rem; flex-shrink: 0; }

  /* Burger-Button: nur mobil sichtbar */
  .nav-menu-btn{
    display:none; width: 40px; height: 40px; flex-shrink: 0;
    align-items:center; justify-content:center;
    border: 1px solid var(--line-strong); border-radius: 50%;
    background: var(--bg); color: var(--text); cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
  }
  .nav-menu-btn:hover, .nav-menu-btn:focus-visible{ border-color: var(--red); color: var(--red); }
  .nav-menu-btn[aria-expanded="true"]{ background: var(--text); border-color: var(--text); color: var(--bg); }

  /* ---------- Slider-Steuerung & Text (liegen auf dem Foto) ---------- */
  .slide-controls{
    position: relative; z-index: 4;
    display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
    padding: clamp(1.6rem, 6vw, 3.4rem) clamp(1.4rem, 4vw, 3.2rem) 0;
  }
  .slide-controls .arrows{ display:flex; align-items:center; gap: clamp(1.4rem, 3vw, 2.4rem); }
  .slide-controls button.arrow{
    display: flex; align-items: center; gap: 0.6rem;
    background: none; border: none; cursor: pointer;
    color: var(--on-photo); font-size: 0.78rem; letter-spacing: 0.16em; padding: 0.3rem 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
    transition: color .2s ease;
  }
  .slide-controls button.arrow:hover, .slide-controls button.arrow:focus-visible{ color: #fff; opacity: .75; }
  .slide-controls svg{ width: 15px; height: 11px; }

  .progress{ display:flex; align-items:center; gap: 0.55rem; }
  .progress button{
    position: relative; width: 34px; height: 3px;
    background: rgba(255,255,255,0.4);
    border: none; padding: 0; cursor: pointer; border-radius: 2px; overflow: hidden;
  }
  .progress button::after{
    content:""; position:absolute; inset:0; width: 0%;
    background: var(--red); transform-origin: left;
  }
  .progress button.active::after{ width: 100%; transition: width 6s linear; }

  .stage-copy{
    position: relative; z-index: 4;
    min-height: calc(100% - 10rem);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem clamp(1.4rem, 4vw, 3.2rem) clamp(2.6rem, 7vw, 4.6rem);
    color: var(--on-photo);
  }
  .copy-inner{ transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
  .copy-inner.is-shifting{ opacity: 0; transform: translateY(14px); }
  .eyebrow{
    font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--red); margin: 0 0 1rem;
  }
  h1{
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.08; letter-spacing: 0.005em;
    text-transform: uppercase; margin: 0 0 1.6rem; max-width: 17ch;
  }
  .lede{ font-size: 1.02rem; line-height: 1.65; color: var(--muted); max-width: 46ch; margin: 0 0 2.2rem; }
  .stage-copy .lede{ color: var(--on-photo-muted); }
  .cta{
    display: inline-flex; align-items: center; gap: 0.7rem; align-self: flex-start;
    background: var(--red); color: #fff; font-family: var(--font-display);
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 1rem 1.8rem; border-radius: 2px;
    transition: background .2s ease, transform .2s ease;
  }
  .cta:hover, .cta:focus-visible{ background: var(--red-dark); transform: translateX(2px); }
  .cta svg{ width: 16px; height: 12px; }

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

  :focus-visible{ outline: 2px solid var(--red); outline-offset: 2px; }

  /* ---------- page shell ---------- */
  .page-main{ position: relative; z-index: 3; display: flex; flex-direction: column; }
  .nav.nav--solid{ background: var(--bg); border-bottom: 1px solid var(--line); }
  .page-copy{
    padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 4vw, 3.2rem) 0;
  }
  .page-copy h1{ max-width: 100%; }
  .page-content{
    flex: 1;
    padding: 2rem clamp(1.4rem, 4vw, 3.2rem) clamp(2.6rem, 7vw, 4.6rem);
    color: var(--text);
  }
  .page-content .no-content-placeholder{
    padding: 2rem 1.6rem;
    color: var(--faint);
    font-size: 0.9rem;
    border: 1px dashed var(--line-strong);
    border-radius: 4px;
    text-align: center;
  }

  /* ---------- kompakter Hero für Seiten ohne Slider (Default.html) ---------- */
  .hero.hero--page{ min-height: 0; align-items: start; }
  .hero.hero--page .side{ min-height: 100%; }

  .page-hero{
    position: relative;
    height: 46vh;
    min-height: 280px;
    max-height: 520px;
    overflow: hidden;
    background: var(--panel);
  }
  .page-hero .bg-photo{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
  }
  .page-hero .overlay{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
  }

  /* ---------- Default.html: Logo direkt in der Nav ---------- */
  .nav--page{ position: relative; z-index: 4; }
  .nav--page .nav-left{
    display: flex;
    align-items: center;
    gap: clamp(1.6rem, 4vw, 3.2rem);
  }
  .nav--page .brand img{ width: 140px; }

  /* Bei knapper Desktop-Breite (861–1180px) Telefonnummer etwas verdichten */
  @media (min-width: 861px) and (max-width: 1180px){
    .nav-phone{ font-size: 0.76rem; letter-spacing: 0.1em; }
  }

  /* ---------- Footer ---------- */
  .site-footer{
    border-top: 1px solid var(--line);
    background: var(--panel);
    padding: clamp(2rem, 5vw, 3.2rem) clamp(1.4rem, 4vw, 3.2rem);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-col address{
    font-style: normal;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--muted);
  }
  .footer-nav{ text-align: right; }
  .footer-nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem 1.6rem;
  }
  .footer-nav a{
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: color .2s ease;
  }
  .footer-nav a:hover, .footer-nav a:focus-visible{ color: var(--red); }

  /* =========================================================
     MOBIL (≤ 860px)
     Burger sitzt oben rechts in der Kopfzeile – auf der Startseite
     in der Logo-Leiste (.side), auf Unterseiten rechts in der Nav.
     Das Menü klappt direkt darunter über die volle Breite auf.
     ========================================================= */
  @media (max-width: 860px){
    .hero{ grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .side{
      flex-direction: row; align-items: center; justify-content: flex-start;
      gap: 0.9rem;
      padding: 1rem 1.2rem; border-right: none; border-bottom: 1px solid var(--line);
    }
    .brand img{ width: 128px; }
    .side-mid{ display:none; }
    .side-bottom{ margin-left: auto; }
    .side-bottom .socials{ flex-direction: row; gap: 0.5rem; }
    .side-bottom .rule{ display:none; }
    .nav-menu-btn{ display:flex; }

    /* Startseite: Nav-Leiste selbst wird unsichtbar (0 px hoch),
       dient nur noch als Anker für das aufklappende Menü */
    .hero .nav{
      padding: 0; min-height: 0; gap: 0;
      background: none; border-bottom: none;
      z-index: 6;
    }
    .nav-meta{ display: none; }

    .nav-links{
      display: none;
      position: absolute;
      top: 100%; left: 0; right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 18px 30px -20px rgba(0,0,0,0.4);
      padding: 0.4rem clamp(1.4rem, 4vw, 3.2rem) 1rem;
    }
    .nav-links.is-open{ display: flex; }
    .nav-links a{
      display: block;
      width: 100%;
      padding: 0.95rem 0;
      border-bottom: 1px solid var(--line);
    }
    .nav-links a.is-active{ border-color: var(--line); }
    .nav-links .dropdown{ display: block; padding-left: 1rem; }
    .nav-links .dropdown a{ font-size: 0.72rem; padding: 0.7rem 0; }

    /* Unterseiten: Logo links, Burger ganz rechts */
    .nav--page{ padding-top: 1rem; padding-bottom: 1rem; }
    .nav--page .brand img{ width: 118px; }
    .nav--page .nav-menu-btn{ margin-left: auto; }

    h1{ max-width: 100%; }
    .stage-copy{ padding-bottom: 2.6rem; }
    .slide-controls{ flex-wrap: wrap; }

    .page-hero{ height: 34vh; min-height: 220px; }

    .site-footer{
      grid-template-columns: 1fr;
      text-align: left;
      gap: 1.4rem;
    }
    .footer-nav{ text-align: left; }
    .footer-nav ul{ justify-content: flex-start; }
  }

  /* Sehr schmale Geräte: Social-Icons weichen, damit Logo + Burger Platz haben */
  @media (max-width: 360px){
    .side-bottom .socials{ display: none; }
    .brand img{ width: 116px; }
  }
