/* ----------------------------------------------------------
   Ashlag – Light Theme (Glass Header + Slider + Responsive)
   + Mobile Dropdown Navigation (ohne HTML-Änderung)
   ---------------------------------------------------------- */

/* Reset & Base */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

:root{
  --bg: #f9fafb;             /* Gesamthintergrund hell */
  --card: #ffffff;           /* Karten / Content Hintergrund */
  --text: #1a1a1a;           /* Standardtext dunkel */
  --muted: #6b7280;          /* Grauton für Footer etc. */
  --accent: #d22718;         /* Rot aus Logo */
  --accent-2: #004f9f;       /* Blau aus Logo */
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --radius: 0px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(0,0,0,.1);
  --shadow-soft: 0 6px 16px rgba(0,0,0,.06);
  --maxw: 1200px;
  --header-h: 110px;
}

body{
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
  font: 500 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  color: var(--text);
  background: var(--bg) url(/assets/img/bg.png) no-repeat center center fixed;
	background-size: cover;
	overflow-y:hidden;
}

/* ----------------------------------------------------------
   Header (Glass, sticky, rund)
   ---------------------------------------------------------- */

#ashlag-header{
  position: sticky;
  top:0px;
  z-index: 1000;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 5px 16px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow);
  transition: all .2s ease;
}
body.stuck #ashlag-header{
  top: 0;                    /* klebt ganz oben */
  border-radius: 0;
  width: 100%;
  margin: 0;
  background: var(--glass-strong);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.ashlag-header-logo img{
  display:block;
  height: calc(var(--header-h) - 10px);
  width:auto; object-fit:contain;
}

/* ----------------------------------------------------------
   Desktop-Navigation 
   ---------------------------------------------------------- */

.ashlag-header-menu nav ul{
  list-style:none;
  display:flex;
  gap: clamp(14px,2.4vw,28px);
  margin:0; padding:0;
}
.ashlag-header-menu nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:8px 12px;
  border-radius:12px;
  color:var(--text);
  font-weight:500;
  text-decoration:none;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.ashlag-header-menu nav a:hover{
  background: rgba(0,0,0,.05);
  color: var(--accent);
  transform: translateY(-1px);
}
.ashlag-header-menu .nav-main{
  display:flex; align-items:center; gap:8px;
}
.ashlag-header-menu .nav-title{ font-size:14px; text-transform:uppercase; }
.ashlag-header-menu .nav-subtitle{ font-size:12px; color:var(--muted); }
.ashlag-header-menu .nav-icon{ width:32px; height:32px; flex-shrink:0; color: var(--accent-2); }
.ashlag-header-menu .nav-icon svg{ width:100%; height:100%; display:block; }

/* Flags */
.ashlag-header-right{
  display:flex; justify-content:flex-end; align-items:center; gap:10px;
}
.lang-switch{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  background: rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.08);
  transition: background-color .15s ease;
}
.lang-switch:hover{ background: rgba(0,0,0,.08); }

.content-left{
	float: left; width: 55%; margin-right: 60px;
}
.content-right{
	float:left;
	max-width:39%;
}
@media (max-width: 1220px){
	.content-left{float:none;width:auto;margin:0px;}
	.content-right{float:none;max-width:100%;}
	.home-kontakt{display:flex;gap: 5%;}
	.home-kontakt-left, .home-kontakt-right{flex:1;}
}

@media (max-width: 630px){
	.home-kontakt{display:block;max-width:98%;}
}

/* ----------------------------------------------------------
   Mobile Toggle Button (Hamburger)
   ---------------------------------------------------------- */

#mobile-menu{
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.1);
  background: rgba(0,0,0,.04);
  align-items:center; justify-content:center;
  gap:5px; cursor:pointer; user-select:none;
  flex-direction: column;
}
#mobile-menu span{
  display:block; width:22px; height:2px;
  background:var(--text); border-radius:2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* ----------------------------------------------------------
   Slider (hell, Text dunkel auf hellem Overlay)
   ---------------------------------------------------------- */

.hero-slider{
  position:relative;
  width:100%;
  max-height:550px;
  aspect-ratio: 21/9;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-slider .slide{
  position:absolute; inset:0;
  background-image:var(--bg);
  background-position:center;
  background-size:cover;
  opacity:0;
  animation: slideShow var(--duration,21s) infinite;
}
@keyframes slideShow{
  0%{opacity:0; transform:scale(1.04) translateX(2%);}
  5%{opacity:1; transform:scale(1) translateX(0);}
  30%{opacity:1;}
  33.333%{opacity:0;}
  100%{opacity:0;}
}
.slide-inner{
  position:absolute; inset:0;
  display:grid; place-items:center; text-align:center;
  padding:24px;
  background: linear-gradient(to top, rgba(255,255,255,.6), rgba(255,255,255,0) 40%);
}
.slide-inner h1{ margin:0 0 6px; font-size:clamp(28px,5vw,54px); color:var(--accent-2); }
.slide-inner p{ margin:0; color:var(--text); font-size:clamp(14px,2.2vw,20px); }

/* ----------------------------------------------------------
   Content
   ---------------------------------------------------------- */

#content{
  width: min(100% - 2rem, var(--maxw));
  margin-inline:auto;
  margin-top: clamp(14px,3vw,28px);
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(18px,3vw,28px);
  min-height:500px;
}
.headline{
  font-size: clamp(24px,4vw,36px);
  font-weight:700; color:var(--accent);
  margin-bottom:12px;
}
#content a{ color:var(--accent-2); }
#content a:hover{ color:var(--accent); }

/* Home category navigation */
.home-kontakt{
	padding: 10px;
    border: 2px dotted var(--accent);
	    font-weight: bold;
}
.home-category-navigation h2{
  margin: 0 0 1rem;
  font-size: clamp(22px,3vw,32px);
  color: var(--accent-2);
}
.home-category-navigation-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.home-category-navigation-card{
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.7);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-category-navigation-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.15);
}
.home-category-navigation-icon{
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--accent-2);
}
.home-category-navigation-icon svg{
  width: 100%;
  height: 100%;
}
.home-category-navigation-text{
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.home-category-navigation-title{
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.home-category-navigation-subtitle{
  font-size: 0.85rem;
  color: var(--muted);
}
.home-category-navigation-cta{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Random entries / Cards */
.random-entries{ margin-top:2rem; }
.entries-grid{
  display:grid; gap:1rem;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
}
.vehicle-card{
  display:flex; gap:1rem; padding:.5rem;
  border:1px solid rgba(0,0,0,.12);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vehicle-card:hover{ transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,.12); }
.vehicle-card img{ width:150px; height:auto; border-radius:var(--radius); object-fit:cover; }
.vehicle-card-info{ display:flex; flex-direction:column; font-size:.9rem; }
.vehicle-card-info p{ margin:0; line-height:1.4; }
.vehicle-card-label{ font-weight:600; color:var(--accent); }
.vehicle-card-manufacturer{ color:var(--accent); font-weight:700; }
.vehicle-card-details{ margin-top:auto; align-self:flex-start; color:var(--accent-2); text-decoration:none; font-weight:500; }
.vehicle-card-details:hover{ color:var(--accent); }

/* Fahrzeug-Detailseiten */
.vehicle-page{ display:flex; flex-wrap:wrap; gap:2rem; }
.vehicle-images{ flex:2 1 400px; max-width:100%; }
.vehicle-main img,
.vehicle-main video{ width:100%; height:auto; border-radius:var(--radius); box-shadow:var(--shadow-soft); }
.vehicle-thumbs{ display:flex; gap:.5rem; margin-top:.5rem; margin: auto;flex-wrap: wrap;justify-content: center;}
.vehicle-thumbs img,
.vehicle-thumbs video{ width:100px; height:auto; border-radius:var(--radius); border:1px solid #ddd; object-fit:cover;display:block;    max-height: 76px;}
.vehicle-thumbs video{max-height:60px;}
.vehicle-thumbs .video-thumb{ position:relative; display:inline-block;font-size: 10pt;text-align: center;color: var(--accent);}
.vehicle-thumbs .video-thumb::before{ content:''; position:absolute; top:35%; left:50%; transform:translate(-50%,-50%); width:30px; height:30px; background:rgba(0,0,0,.6); border-radius:50%; z-index:1; pointer-events:none; }
.vehicle-thumbs .video-thumb::after{ content:''; position:absolute; top:35%; left:50%; transform:translate(-40%,-50%); width:0; height:0; border-left:10px solid #fff; border-top:6px solid transparent; border-bottom:6px solid transparent; z-index:2; pointer-events:none; }
.vehicle-details{ flex:1 1 300px; }
.vehicle-data{ width:100%; border-collapse:collapse; margin-bottom:1rem; }
.vehicle-data th{ text-align:left; padding-right:.5rem; }
.vehicle-options{ list-style:none; padding:0; margin:0 0 1rem; }
.vehicle-options li{ margin-bottom:.25rem; }
.vehicle-contact{ flex:inherit; }
.vehicle-contact form{ display:flex; flex-direction:column; gap:.5rem; }
.vehicle-contact input, .vehicle-contact textarea{ width:100%; padding:.4rem; }
.vehicle-contact button{ padding:.6rem; background:var(--accent); color:#fff; border:none; cursor:pointer; }
.vehicle-contact button:hover{ background:var(--accent-2); }


/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
#ashlag-footer{ margin:36px 0 28px; color:var(--muted); text-align:center; }

/* ----------------------------------------------------------
   Mobile Navigation (Dropdown unter Header)
   ---------------------------------------------------------- */
@media (max-width: 1417px){
	.ashlag-header-logo img {
		display: block;
		height: 60px;
		width: auto;
		object-fit: contain;
	}
	.ashlag-header-menu nav ul{
		gap: clamp(11px, 0.4vw, 28px);
	}
}
@media (max-width: 1240px){

  /* Header Layout: Logo | Flags | Burger */
  #ashlag-header{
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 10px;
  }

  /* Desktop-Menü wird zum festen Dropdown-Panel */
  .ashlag-header-menu{
    position: fixed;
    left: 0; right: 0;
    /* Top je nach Sticky-Status */
    background: var(--card);
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    z-index: 999;              /* unter Header, über Content */
    padding: 14px 16px 18px;
  }
  body.stuck .ashlag-header-menu{ top: var(--header-h); }
  body:not(.stuck) .ashlag-header-menu{ top: calc(var(--header-h) + 16px); }

  .ashlag-header-menu nav ul{
    display:grid; grid-template-columns:1fr; gap:10px; margin:0; padding:0;
  }
  .ashlag-header-menu nav a{
    align-items:flex-start;
    padding:12px;
    border-radius:12px;
    background: rgba(0,0,0,.02);
  }
  .ashlag-header-menu nav a:hover{ background: rgba(0,0,0,.05); }
  .ashlag-header-menu .nav-icon{ margin-bottom:6px; }

  /* Flags bleiben sichtbar */
  .ashlag-header-right{ gap:8px; }

  /* Burger sichtbar */
  #mobile-menu{ display:flex; }

  /* ---------- Toggle via body.menu-open ---------- */
  body.menu-open .ashlag-header-menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Hamburger → X Animation */
  body.menu-open #mobile-menu span:nth-child(1){
            transform: rotate(45deg) translate(5px, 5px);
  }
  body.menu-open #mobile-menu span:nth-child(2){
    opacity: 0;
  }
  body.menu-open #mobile-menu span:nth-child(3){
    transform: rotate(-48deg) translate(5px, -5px);
  }
  body.menu-open #mobile-menu span:nth-child(4){
    display: none;
  }
}

/* ----------------------------------------------------------
   Very Small Screens
   ---------------------------------------------------------- */
@media (max-width: 560px){
  :root { --header-h: 64px; }
  .ashlag-header-logo img{ height: calc(var(--header-h) - 18px); }
  .hero-slider{ aspect-ratio: 16/9; }
  #content{         padding: 5px;
        overflow: hidden;
        margin: 5px;
        width: 98%;
    }
  .vehicle-card img{ width:120px; max-height:103px;}
}

@media (max-width: 480px){
	.ashlag-header-logo img {
		height: calc(var(--header-h) - 30px);
	}
}

#ashlag-footer a{
	color:#bbb;
	text-decoration:none;
}

#ashlag-side-buttons {
    position: fixed;
    right: 0;
    z-index: 99;
    top: 250px;
    width: 90px;
}
#ashlag-side-buttons .vsb-entry {
    margin-bottom: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.17);
    transition: all 0.3s;
    height: 90px;
    width: 290px;
    background: linear-gradient(147deg, var(--accent) 0%, var(--accent) 85%);
    border-radius: 15px 0px 0px 15px;
    position: relative;
    transform: translateX(0px);
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
#ashlag-side-buttons .vsb-entry * {
    color: #fff !important;
}
#ashlag-side-buttons .vsb-entry a {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}
#ashlag-side-buttons .vsb-entry .vsb-icon {
    display: inline-block;
    width: 90px;
    height: 90px;
    padding: 10px;
    vertical-align: top;
    text-align: center;
}
#ashlag-side-buttons .vsb-entry .vsb-icon img {
    height: auto;
    width: 25px;
    padding-top: 5px;
    margin-bottom: 6px;
}
#ashlag-side-buttons .vsb-entry .vsb-icon .vsb-smalltxt {
    text-transform: uppercase;
    font-size: 12px;
    display: block;
    font-weight: bold;
	line-height: 14px;
}
#ashlag-side-buttons .vsb-entry .vsb-txt {
    width: 180px;
    height: 90px;
    display: inline-block;
    padding-left: 15px;
    padding-top: 20px;
}
#ashlag-side-buttons .vsb-entry .vsb-txt * {
    font-size: 15px !important;
}
#ashlag-side-buttons .vsb-entry .vsb-txt b,
#ashlag-side-buttons .vsb-entry .vsb-txt span {
    display: block;
}
#ashlag-side-buttons .vsb-entry .vsb-txt{display:none;}
#ashlag-side-buttons .vsb-entry:hover {
    transform: translateX(-200px);
    background: linear-gradient(147deg, var(--accent) 0%, var(--accent) 85%);
}
#ashlag-side-buttons .vsb-entry:hover .vsb-txt{
	display:inline-block;
}

@media (max-width: 480px) {
    #ashlag-side-buttons {
        top: inherit;
        bottom: 0px;
        width: 100% !important;
        border-radius: 15px 15px 0px 0px;
        overflow: hidden;
        border-top: 1px solid #fff;
    }
    #ashlag-side-buttons .vsb-entry {
        width: 33.33%;
        color: #fff;
        transform: translateX(0px) !important;
        display: block;
        float: left;
        margin-bottom: 0px;
        height: 45px;
        border-right: 1px solid #fff !important;
        border-radius: 0px;
    }
    #ashlag-side-buttons .vsb-entry * {
        color:#fff;
    }
    #ashlag-side-buttons .vsb-entry .vsb-icon {
        display: block;
        width: 100% !important;
        text-align: center;
        height: 45px;
        padding: 10px 0px 0px 0px;
    }
    #ashlag-side-buttons .vsb-entry .vsb-icon img {
        display:none;
    }
    #ashlag-side-buttons .vsb-entry .vsb-icon .gardient-phone {
        background: linear-gradient(135deg, var(--accent), var(--accent));
        -webkit-mask-image: url(img/phone-bubble.svg);
        mask-image: url(img/phone-bubble.svg);
    }
    #ashlag-side-buttons .vsb-entry .vsb-icon .gardient-envelope {
        background: linear-gradient(135deg, var(--accent), var(--accent));
        -webkit-mask-image: url(img/envelope-open.svg);
        mask-image: url(img/envelope-open.svg);
    }
    #ashlag-side-buttons .vsb-entry .vsb-icon .gardient-marker {
        background: linear-gradient(135deg, var(--accent), var(--accent));
        -webkit-mask-image: url(img/map-marker.svg);
        mask-image: url(img/map-marker.svg);
    }
    #ashlag-side-buttons .vsb-entry .vsb-txt,
    #ashlag-side-buttons .vsb-entry .vsb-smalltxt {
        display: inline-block !important;
        background: linear-gradient(147deg, var(--accent) 0%, var(--accent) 85%);
        background-clip: text;
        color: rgba(0, 0, 0, 0);
        font-size: 12px;
        display: block;
        max-width: 60%;
        line-height: 12px;
        padding-top: 2px;
    }
    #ashlag-side-buttons .vsb-entry:last-of-type {
        border-right: none !important;
    }
}