/* ============================================================
   motor-tuner.at — Mobile Responsive Fixes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* ── Viewport & Box Model ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Basis: Schrift & Abstände ── */
html, body {
  overflow-x: hidden;
  background-color: #000 !important;
}
body {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.gridContainer {
  background-color: #000;
}

.gridContainer {
  width: 100% !important;
  max-width: 1200px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  margin: 0 auto !important;
}

/* ── Logo ── */
#logo img {
  max-width: 280px;
  height: auto;
  display: block;
}

/* ── Header ── */
#headcontainer {
  padding: 8px 0 4px;
  max-width: 1200px;
  margin: 0 auto;
}
#spruch {
  font-size: 14px !important;
  padding: 4px 8px;
}
/* Top-Nav (#menue) ausblenden — Links kommen in Footer */
#menue {
  display: none !important;
}

/* ── Mobile Navigation (Select-Dropdowns: ausblenden, ersetzt durch Hamburger) ── */
#mobilnavi1,
#mobilnavi2 {
  display: none !important;
}

/* Fallback: Select-Dropdowns nur zeigen wenn kein JS ── */
.no-js #mobilnavi1,
.no-js #mobilnavi2 {
  display: block !important;
}

#mobilnavi1 select,
#mobilnavi2 select {
  width: 100% !important;
  padding: 10px 12px !important;
  font-size: 15px !important;
  border: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23fff' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  cursor: pointer;
}

/* ── Volle Viewport-Breite für Header, Nav und Icon-Grid ── */
#LayoutDiv1,
#contentcontainer,
#unterercontainer {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* ── Navileiste — modernes Desktop-Menü ── */
#navileiste {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #181818 !important;
  border-bottom: 3px solid #990000 !important;
  border-top: none !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
#navileiste::-webkit-scrollbar { display: none; }
#navileiste a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding: 14px 20px !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #999 !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  transition: color 0.2s, background 0.2s, border-color 0.2s !important;
  margin-bottom: -3px !important;
}
#navileiste a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.04) !important;
  border-bottom-color: #990000 !important;
}
#navileiste span.naviact a {
  color: #fff !important;
  border-bottom-color: #990000 !important;
  background: rgba(153,0,0,0.08) !important;
}

/* ── Hamburger-Button (nur Mobile sichtbar) ── */
#hamburger-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: #990000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 900;
}
#hamburger-btn span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#hamburger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
#hamburger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── Mobile Nav Overlay ── */
#mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 950;
  overflow-y: auto;
  padding: 70px 20px 30px;
  transition: opacity 0.3s;
  opacity: 0;
}
#mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}
#mobile-nav-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
#mobile-nav-close:hover { color: #cccccc; }

#mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#mobile-nav-list a {
  display: block;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 14px 16px !important;
  border-left: 3px solid transparent;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}
#mobile-nav-list a:hover,
#mobile-nav-list a.active {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08);
  border-left-color: #ffffff;
}
#mobile-nav-list a.secondary {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #999 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 8px 16px !important;
}
#mobile-nav-list a.secondary:hover { color: #ffffff !important; }
#mobile-nav-list hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 8px 0;
}

body.nav-open { overflow: hidden; }

/* ── Logo ── */
#logo img {
  max-width: 300px;
  height: auto;
  display: block;
}

/* ── Icon-Grid responsive ── */
#unterercontainer {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  padding: 16px 0 !important;
  gap: 12px !important;
}

#icon1, #icon2, #icon3, #icon4, #icon5, #icon6 {
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  width: auto !important;
  flex: 0 0 auto;
}

/* ── HTML-Icon-Buttons (ersetzt PNG-Icons) ── */
.mt-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  background: #990000;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none !important;
  gap: 10px;
  padding: 10px;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.mt-icon-btn:hover {
  background: #ffffff;
  color: #990000 !important;
  text-decoration: none !important;
}
.mt-icon-btn i {
  font-size: 52px;
  line-height: 1;
  color: #ffffff !important;
}
.mt-icon-btn span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff !important;
}
.mt-icon-btn:hover i,
.mt-icon-btn:hover span {
  color: #990000 !important;
}

/* Fallback: PNG-Icons falls JS nicht lädt */
#icon1 img, #icon2 img, #icon3 img,
#icon4 img, #icon5 img, #icon6 img {
  width: 130px;
  height: auto;
  display: block;
  transition: opacity 0.2s;
  border-radius: 8px;
}
#icon1 img:hover, #icon2 img:hover, #icon3 img:hover,
#icon4 img:hover, #icon5 img:hover, #icon6 img:hover {
  opacity: 0.85;
}

/* ── Content ── */
#content {
  padding: 0 !important;
}
#contentlinks {
  padding: 10px 12px !important;
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
}
#contentrechts {
  display: none !important;
}
#contentlinks p, #contentlinks li {
  line-height: 1.65 !important;
}
#contentlinks a {
  color: #990000;
}
#contentlinks h1, #contentlinks h2, #contentlinks h3 {
  color: #990000;
  margin-top: 14px;
}

/* ── Tabellen scrollbar ── */
.csc-default table, table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
}

/* ── Formular ── */
.powermail_field,
.powermail_input,
.powermail_textarea,
.powermail_select {
  width: 100% !important;
  font-size: 16px !important; /* verhindert Auto-Zoom auf iOS */
  padding: 10px 12px !important;
  border: 1px solid #555 !important;
  border-radius: 4px !important;
  background: #1a1a1a !important;
  color: #fff !important;
  margin-bottom: 4px !important;
}
.powermail_field:focus {
  outline: none !important;
  border-color: #990000 !important;
}
.powermail_label {
  color: #ccc !important;
  font-size: 14px !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.powermail_submit {
  background: #990000 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 30px !important;
  font-size: 16px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  width: auto !important;
  margin-top: 8px !important;
}
.powermail_submit:hover {
  background: #6b0000 !important;
}
.powermail_fieldwrap {
  margin-bottom: 14px !important;
}
.powermail_legend {
  color: #990000 !important;
  font-size: 18px !important;
  margin-bottom: 16px !important;
}

/* ── Footer ── */
#footer {
  padding: 12px 16px !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
  height: auto !important;
  min-height: 40px !important;
  border-top: 1px solid #333 !important;
  background: #000 !important;
}
#footer p {
  margin: 0 0 6px 0 !important;
  color: #aaa !important;
}
#footer a {
  font-size: 12px !important;
  color: #aaa !important;
  text-decoration: none !important;
}
#footer a:hover {
  color: #fff !important;
}
#footer .footer-legal {
  margin-top: 6px !important;
  font-size: 11px !important;
  color: #777 !important;
}
#footer .footer-legal a {
  font-size: 11px !important;
  color: #777 !important;
}
#footer .footer-legal a:hover {
  color: #fff !important;
}

/* ── Slider ── */
.flex-viewport, .flexslider {
  max-width: 100% !important;
}

/* ── Bilder allgemein ── */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   MODERNES CONTENT-STYLING
   ============================================================ */

/* Basis-Schrift */
#contentlinks {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  line-height: 1.8 !important;
  color: #cccccc !important;
}

/* font-Tags und veraltete Elemente neutralisieren */
#contentlinks font {
  font-family: inherit !important;
  font-size: inherit !important;
}

/* H1 — Seitentitel */
#contentlinks h1,
#contentlinks .csc-firstHeader h1,
#contentlinks h1.csc-firstHeader {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.5em !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 0 18px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #990000 !important;
  line-height: 1.3 !important;
}

/* H2 — Zwischentitel */
#contentlinks h2 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.15em !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  border-left: 3px solid #990000 !important;
  padding-left: 10px !important;
  margin: 22px 0 10px 0 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

/* H3 */
#contentlinks h3 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1em !important;
  color: #990000 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 16px 0 8px 0 !important;
}

/* Fließtext-Absätze */
#contentlinks p.bodytext {
  margin-bottom: 14px !important;
  color: #cccccc !important;
}

/* Bold/Strong: leicht heller */
#contentlinks b,
#contentlinks strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Links im Content */
#contentlinks a {
  color: #cc2222 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: color 0.2s, border-color 0.2s !important;
}
#contentlinks a:hover {
  color: #ff4444 !important;
  border-bottom-color: #990000 !important;
}

/* Listen — modernes Bullet */
#contentlinks ul {
  padding-left: 0 !important;
  list-style: none !important;
  margin: 8px 0 14px 0 !important;
}
#contentlinks ul li {
  position: relative !important;
  padding: 5px 0 5px 20px !important;
  color: #cccccc !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}
#contentlinks ul li:last-child {
  border-bottom: none !important;
}
#contentlinks ul li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 6px !important;
  background: #990000 !important;
  border-radius: 50% !important;
}
#contentlinks ul li p {
  margin: 0 !important;
  color: inherit !important;
}

/* Spacer-GIFs verstecken */
#contentlinks img.spacer-gif,
#contentlinks img[src*="clear.gif"] {
  display: none !important;
}

/* contentrechts (Facebook-Box) aufräumen */
#contentrechts {
  opacity: 0.7;
  border-top: 1px solid #222;
  padding-top: 12px;
  margin-top: 12px;
}

/* ============================================================
   MOBILE / TABLET — unter 768px: Hamburger einblenden
   ============================================================ */
@media only screen and (max-width: 768px) {

  #headcontainer {
    position: relative;
    padding-right: 60px !important; /* Platz für Hamburger-Button */
  }

  #hamburger-btn {
    display: flex !important;
  }

  /* Desktop-Nav ausblenden */
  #navileiste {
    display: none !important;
  }
}

/* ============================================================
   SMALL MOBILE — unter 480px
   ============================================================ */
@media only screen and (max-width: 480px) {

  #logo img { max-width: 200px; }

  #spruch { font-size: 12px !important; }

  #icon1 img, #icon2 img, #icon3 img,
  #icon4 img, #icon5 img, #icon6 img {
    width: 100px;
  }

  .mt-icon-btn {
    width: 100px;
    height: 100px;
    gap: 8px;
  }
  .mt-icon-btn i { font-size: 40px; }
  .mt-icon-btn span { font-size: 11px; }

  #contentlinks {
    padding: 8px !important;
  }

  #contentlinks p, #contentlinks li {
    font-size: 15px !important;
  }

  .powermail_field,
  .powermail_input,
  .powermail_textarea {
    font-size: 16px !important;
  }

  .gridContainer {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* ============================================================
   TABLET — 481–768px
   ============================================================ */
@media only screen and (min-width: 481px) and (max-width: 768px) {

  #icon1 img, #icon2 img, #icon3 img,
  #icon4 img, #icon5 img, #icon6 img {
    width: 120px;
  }

  .mt-icon-btn {
    width: 118px;
    height: 118px;
  }
  .mt-icon-btn i { font-size: 46px; }
}

/* ============================================================
   DESKTOP — ab 769px
   ============================================================ */
@media only screen and (min-width: 769px) {

  #contentlinks {
    padding: 10px 24px !important;
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }
  #contentrechts {
    display: none !important;
  }

  #icon1 img, #icon2 img, #icon3 img,
  #icon4 img, #icon5 img, #icon6 img {
    width: 144px;
  }

  .mt-icon-btn {
    width: 144px;
    height: 144px;
    gap: 12px;
  }
  .mt-icon-btn i { font-size: 60px; }
  .mt-icon-btn span { font-size: 13px; }
}

/* ============================================================
   CONTENT + FACEBOOK SIDEBAR LAYOUT
   ============================================================ */

#content-with-sidebar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 0 12px;
}

/* Sidebar (Facebook) */
#contentrechts {
  display: block !important;
  flex: 0 0 300px;
  min-width: 260px;
  max-width: 300px;
}

/* Content nimmt restlichen Platz */
#contentlinks {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  float: none !important;
  margin-left: 0 !important;
  padding: 10px 0 !important;
}

/* ── Facebook Widget Card ── */
.fb-widget-card {
  background: #111;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 16px;
}

.fb-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1877F2;
  padding: 12px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}

.fb-widget-consent {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.fb-widget-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fb-preview-avatar {
  width: 64px;
  height: 64px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
}

.fb-preview-name {
  margin: 0;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.fb-preview-name small {
  color: #888;
  font-weight: 400;
  font-size: 12px;
}

.fb-consent-text {
  margin: 0;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
.fb-consent-text small {
  font-size: 11px;
  color: #555;
}

.fb-load-btn {
  background: #1877F2;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}
.fb-load-btn:hover {
  background: #1565c0;
}

.fb-direct-link {
  font-size: 11px;
  color: #555;
  text-decoration: none;
  margin-top: -6px;
}
.fb-direct-link:hover {
  color: #1877F2;
}

.fb-widget-embed {
  padding: 0;
}

/* Mobile: Sidebar unter Content */
@media only screen and (max-width: 900px) {
  #content-with-sidebar {
    flex-direction: column;
  }
  #contentrechts {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .fb-widget-card {
    position: static;
  }
}

/* ── Marken-Grid ─────────────────────────────────────── */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
}
.brand-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #1a1a1a;
    border: 1px solid #990000;
    color: #990000 !important;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.brand-btn:hover {
    background: #990000;
    color: #fff !important;
    border-color: #990000;
}

/* ── Content-Bereich Verschönerung ───────────────────── */

/* Überschrift mit roter Linie */
.csc-header h1,
.csc-header h2,
.csc-firstHeader {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(18px, 2.2vw, 26px) !important;
    color: #fff !important;
    border-bottom: 2px solid #990000;
    padding-bottom: 8px;
    margin-bottom: 18px !important;
}

/* Intro-Text und Fließtext */
#contentlinks p.bodytext {
    line-height: 1.75;
    color: #ddd;
    margin-bottom: 12px;
}

/* Info-Karten: Wie? / Womit? / Wofür? */
p.bodytext.info-card {
    background: #111;
    border-left: 3px solid #990000;
    padding: 10px 16px;
    border-radius: 0 4px 4px 0;
    margin: 10px 0 !important;
    color: #ddd;
}
b.info-label {
    color: #990000;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

/* Bullet-Liste mit roten Pfeilen */
#contentlinks ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 16px;
}
#contentlinks ul li {
    padding: 5px 0 5px 22px;
    position: relative;
    color: #ddd;
    line-height: 1.6;
    border-bottom: 1px solid #1a1a1a;
}
#contentlinks ul li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: #990000;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
}

/* SONDERDIENSTLEISTUNGEN Heading */
.sonder-grid {
    margin-top: 6px !important;
}
#contentlinks p.bodytext b:only-child {
    color: #aaa;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── h3/h4 in Content-Bereich ────────────────────────── */
#contentlinks h3,
#contentlinks h4 {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff !important;
    margin: 20px 0 10px !important;
    font-size: clamp(14px, 1.6vw, 18px) !important;
    border-left: 3px solid #990000;
    padding-left: 10px;
}

/* Fett-Lead Paragraphen (bold intro) */
p.bodytext.info-card b.info-label {
    display: block;
    margin-bottom: 2px;
}

/* ── Header: Logo links, Slogan rechts ───────────────── */
#headcontainer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 20px !important;
}
#logo {
    flex: 0 0 auto;
}
#spruch {
    flex: 0 1 auto;
    text-align: right !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: clamp(12px, 1.2vw, 15px) !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    color: #bbb !important;
    padding: 0 4px !important;
    border-right: 2px solid #990000;
    padding-right: 10px !important;
    line-height: 1.4 !important;
}
#spruch p {
    margin: 0 !important;
    color: #bbb !important;
}

/* ── Navileiste: Trennlinie via CSS ─────── */
#navileiste a,
#navileiste span.naviact {
    border-right: 1px solid rgba(255,255,255,0.06) !important;
}
#navileiste a:last-child,
#navileiste span.naviact:last-child {
    border-right: none !important;
}

/* ── Footer neue Farbe ───────────────────────────────── */
#footer {
    background: #0e0e0e !important;
    border-top: 2px solid #990000 !important;
    padding: 16px 24px !important;
}
#footer p.bodytext {
    color: #ccc !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
}
#footer a {
    color: #ccc !important;
}
#footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
#footer .footer-legal {
    color: #666 !important;
    border-top: 1px solid #1e1e1e !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
}
#footer .footer-legal a {
    color: #666 !important;
}
#footer .footer-legal a:hover {
    color: #aaa !important;
}

/* ── Slogan: ganz rechts unten ───────────────────────── */
#headcontainer {
    align-items: flex-end !important;
    padding-bottom: 8px !important;
}
#spruch {
    margin-left: auto !important;
    text-align: right !important;
    border-right: none !important;
    border-bottom: 1px solid #990000 !important;
    padding-right: 0 !important;
    padding-bottom: 3px !important;
    font-style: italic !important;
    color: #999 !important;
    letter-spacing: 0.8px !important;
}

/* ══ FINAL OVERRIDES ════════════════════════════════════ */

/* Header: Logo links-unten, Slogan rechts-unten */
#headcontainer {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    padding: 10px 20px 10px 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}
#logo { flex: 0 0 auto !important; }
#menue { display: none !important; }

#spruch {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
    padding: 0 0 4px 0 !important;
    border: none !important;
    border-bottom: 1px solid #990000 !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: clamp(11px, 1.1vw, 14px) !important;
    font-weight: 400 !important;
    font-style: italic !important;
    letter-spacing: 0.6px !important;
    color: #999 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}
#spruch p { margin: 0 !important; color: #999 !important; }

/* Footer Legal-Links als Buttons */
#footer .footer-legal {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-top: 10px !important;
    margin-top: 6px !important;
    border-top: 1px solid #1e1e1e !important;
}
#footer .footer-legal a.legal-btn {
    display: inline-block !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    font-family: 'Oswald', sans-serif !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #888 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s !important;
}
#footer .footer-legal a.legal-btn:hover {
    color: #ccc !important;
    border-color: #666 !important;
}

@media only screen and (max-width: 600px) {
    #spruch { display: none !important; }
}

/* ── Footer Info-Zeile ───────────────────────────────── */
.footer-info {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: 10px !important;
}
.footer-item {
    font-size: 12px !important;
    color: #aaa !important;
    white-space: nowrap !important;
    padding: 2px 8px !important;
    border-right: 1px solid #2d2d2d !important;
    line-height: 1.8 !important;
}
.footer-item:last-child {
    border-right: none !important;
}
.footer-item strong {
    color: #ccc !important;
    font-weight: 600 !important;
}
.footer-item a {
    color: #aaa !important;
    text-decoration: none !important;
}
.footer-item a:hover {
    color: #fff !important;
}
.footer-location {
    color: #777 !important;
    font-style: italic !important;
}
.footer-fb-link {
    color: #7b9dc9 !important;
}
.footer-fb-link:hover {
    color: #a8c4e8 !important;
}

/* Footer Legal zurück zu | Stil */
#footer .footer-legal {
    display: block !important;
    padding-top: 8px !important;
    border-top: 1px solid #1a1a1a !important;
    margin-top: 0 !important;
}
#footer .footer-legal a {
    font-size: 11px !important;
    color: #555 !important;
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#footer .footer-legal a:hover {
    color: #aaa !important;
}

/* ── Slogan final ────────────────────────────────────── */
#spruch {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
    padding: 0 0 6px 0 !important;
    border: none !important;
    border-bottom: 2px solid #990000 !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: clamp(14px, 1.6vw, 20px) !important;
    font-weight: 600 !important;
    font-style: normal !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-shadow: 0 0 20px rgba(204,0,0,0.3) !important;
}
#spruch p { margin: 0 !important; color: inherit !important; }

/* ── Header full-width (Slogan wirklich ganz rechts) ─── */
#LayoutDiv1 #headcontainer {
    max-width: none !important;
    width: 100% !important;
    padding: 10px 32px 10px 24px !important;
    box-sizing: border-box !important;
}

/* ── Impressum Adress-Card ───────────────────────────── */
.impressum-card {
    background: #111 !important;
    border-left: 3px solid #990000 !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 18px 22px !important;
    margin: 0 0 24px !important;
    display: inline-block !important;
    min-width: 300px !important;
}
.impressum-card p {
    margin: 0 0 12px !important;
    color: #ccc !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
.impressum-card p:last-child { margin-bottom: 0 !important; }
.impressum-card strong { color: #fff !important; }
.impressum-card a { color: #990000 !important; }

/* ── Sitemap Liste ───────────────────────────────────── */
.sitemap-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 8px !important;
}
.sitemap-list li a {
    display: block !important;
    padding: 10px 16px !important;
    background: #111 !important;
    border-left: 3px solid #990000 !important;
    color: #ccc !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    border-radius: 0 3px 3px 0 !important;
    transition: background 0.15s, color 0.15s !important;
}
.sitemap-list li a:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    border-left-color: #ff2222 !important;
}

/* ── Garantie Cards ──────────────────────────────────── */
.garantie-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.garantie-card {
    flex: 1 1 220px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-top: 3px solid #990000;
    border-radius: 0 0 4px 4px;
    padding: 16px 20px;
}
.garantie-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.garantie-price {
    font-size: 22px;
    font-weight: 700;
    color: #990000;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 12px;
}
.garantie-card ul {
    padding-left: 0 !important;
    margin: 0 !important;
}
.garantie-card ul li {
    border-bottom: none !important;
    font-size: 13px !important;
    color: #bbb !important;
    padding: 3px 0 3px 18px !important;
}

/* ── Marken-Buttons dezent ───────────────────────────── */
.brand-btn {
    background: #0d0d0d !important;
    border: 1px solid #2a2a2a !important;
    color: #888 !important;
    font-weight: 400 !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    padding: 5px 11px !important;
    letter-spacing: 0.2px !important;
}
.brand-btn:hover {
    background: #1a1a1a !important;
    border-color: #990000 !important;
    color: #ccc !important;
}

/* ── Marken-Buttons minimal ──────────────────────────── */
.brand-btn {
    background: transparent !important;
    border: 1px solid #222 !important;
    color: #666 !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 2px !important;
    letter-spacing: 0 !important;
}
.brand-btn:hover {
    background: transparent !important;
    border-color: #444 !important;
    color: #aaa !important;
}

/* ── HTML Logo ───────────────────────────────────────── */
.html-logo {
    display: inline-block;
    text-decoration: none !important;
    line-height: 1;
}
.html-logo a { text-decoration: none !important; }

.html-logo-wordmark {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 46px);
    letter-spacing: 2px;
    line-height: 1;
}
.logo-motor {
    background: #1a1a1a;
    color: #fff;
    padding: 6px 14px;
    display: inline-block;
}
.logo-dash {
    color: #990000;
    padding: 0 3px;
    font-size: 0.9em;
}
.logo-tuner {
    background: #990000;
    color: #fff;
    padding: 6px 14px;
    display: inline-block;
    position: relative;
}
.logo-at {
    font-size: 0.35em;
    font-weight: 400;
    letter-spacing: 0;
    vertical-align: super;
    margin-left: 2px;
    color: #fff;
    opacity: 0.9;
}
.html-logo-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(10px, 1vw, 13px);
    color: #888;
    letter-spacing: 0.5px;
    margin-top: 6px;
    padding-left: 2px;
}

/* ── HTML Logo Höhe angepasst (wie Original-Bild) ────── */
#logo {
    display: flex !important;
    align-items: center !important;
}
.html-logo {
    display: inline-block !important;
    padding: 8px 0 !important;
}
.html-logo-wordmark {
    font-size: clamp(22px, 2.8vw, 38px) !important;
}

/* ── Logo Stufen ─────────────────────────────────────── */
.html-logo-wordmark {
    display: flex !important;
    align-items: flex-end !important;
    gap: 0 !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(18px, 2.4vw, 32px) !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
}
/* Basis-Buchstaben-Block */
.ll {
    display: inline-flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    color: #fff !important;
    min-width: 1.1em !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
}
/* Schwarze Blöcke: MOTOR */
.lk { background: #3a3a3a !important; }
/* Rote Blöcke: TUNER */
.lr { background: #990000 !important; }

/* Stufenhöhe: s1=kürzeste, s10=höchste */
.s1  { padding-top: 5px  !important; }
.s2  { padding-top: 9px  !important; }
.s3  { padding-top: 13px !important; }
.s4  { padding-top: 17px !important; }
.s5  { padding-top: 21px !important; }
.s6  { padding-top: 25px !important; }
.s7  { padding-top: 29px !important; }
.s8  { padding-top: 33px !important; }
.s9  { padding-top: 37px !important; }
.s10 { padding-top: 41px !important; position: relative !important; }

.logo-dash {
    color: #990000 !important;
    padding: 0 4px !important;
    font-size: 0.9em !important;
    align-self: flex-end !important;
    padding-bottom: 4px !important;
}
.logo-at {
    font-size: 0.32em !important;
    vertical-align: super !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}
.html-logo-sub {
    font-family: 'Open Sans', sans-serif !important;
    font-size: clamp(9px, 0.9vw, 12px) !important;
    color: #777 !important;
    letter-spacing: 0.3px !important;
    margin-top: 5px !important;
    padding-left: 2px !important;
}

/* ── Logo Buchstaben-Trennung ────────────────────────── */
.ll { gap: 0 !important; margin-right: 2px !important; }
.logo-dash { margin: 0 2px !important; }

/* ── Logo Stufen korrigiert ──────────────────────────── */
.s1  { padding-top: 4px  !important; }
.s2  { padding-top: 10px !important; }
.s3  { padding-top: 16px !important; }
.s4  { padding-top: 22px !important; }
.s5  { padding-top: 28px !important; }
.s6  { padding-top: 36px !important; }
.s7  { padding-top: 46px !important; }
.s8  { padding-top: 58px !important; }
.s9  { padding-top: 72px !important; }
.s10 { padding-top: 88px !important; overflow: visible !important; }

.logo-at {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    font-size: 0.3em !important;
    font-weight: 600 !important;
    vertical-align: unset !important;
    background: #990000 !important;
    padding: 1px 3px !important;
    border-radius: 1px !important;
    line-height: 1.2 !important;
}
.s10 { position: relative !important; }

/* ── SVG Auto über Logo ──────────────────────────────── */
.html-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
.logo-car-svg {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    display: block !important;
    margin-bottom: -2px !important;
}

/* ── Logo Stufen korrekte Proportionen ───────────────── */
/* MOTOR: alle gleich hoch, TUNER: linearer Anstieg */
.s1  { padding-top: 12px !important; }
.s2  { padding-top: 12px !important; }
.s3  { padding-top: 12px !important; }
.s4  { padding-top: 12px !important; }
.s5  { padding-top: 12px !important; }
.s6  { padding-top: 16px !important; }
.s7  { padding-top: 26px !important; }
.s8  { padding-top: 38px !important; }
.s9  { padding-top: 52px !important; }
.s10 { padding-top: 68px !important; }

/* ── Footer neu ──────────────────────────────────────── */
#footer {
    background: #0a0a0a !important;
    border-top: 2px solid #990000 !important;
    padding: 14px 24px !important;
}
.footer-info {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: 10px !important;
}
.footer-item {
    font-size: 12px !important;
    color: #777 !important;
    white-space: nowrap !important;
    padding: 3px 12px 3px 0 !important;
    margin-right: 12px !important;
    border-right: 1px solid #1e1e1e !important;
    line-height: 1.8 !important;
}
.footer-item:last-child {
    border-right: none !important;
    margin-right: 0 !important;
}
.footer-item a {
    color: #777 !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}
.footer-item a:hover { color: #bbb !important; }
.footer-fb-link { color: #6b8cba !important; }
.footer-fb-link:hover { color: #8caad4 !important; }
.footer-location { color: #555 !important; font-style: italic !important; }

#footer .footer-legal {
    font-size: 11px !important;
    color: #444 !important;
    border-top: 1px solid #161616 !important;
    padding-top: 8px !important;
    margin: 0 !important;
}
#footer .footer-legal a {
    color: #444 !important;
    text-decoration: none !important;
    font-size: 11px !important;
}
#footer .footer-legal a:hover { color: #888 !important; }

/* ── Footer Schriftgröße ─────────────────────────────── */
.footer-info {
    flex-wrap: nowrap !important;
}
.footer-item {
    font-size: 13px !important;
    color: #999 !important;
    white-space: nowrap !important;
}
.footer-item a { color: #999 !important; }
.footer-location { color: #999 !important; font-style: normal !important; }
#footer .footer-legal {
    font-size: 12px !important;
    color: #555 !important;
}
#footer .footer-legal a { font-size: 12px !important; color: #555 !important; }

/* ── Slogan Unterstrich nur unter Text ───────────────── */
#spruch {
    width: fit-content !important;
}

/* ── Navigation modern (large screen override) ───────── */
#navileiste a {
    padding: 16px 24px !important;
    font-size: 13px !important;
    letter-spacing: 2px !important;
}
#navileiste span.naviact {
    border-right: 1px solid rgba(255,255,255,0.06) !important;
}

/* ── Marken-Grid einklappbar ─────────────────────────── */
.brand-grid-wrapper {
    overflow: hidden !important;
    max-height: 0 !important;
    transition: max-height 0.4s ease !important;
}
.brand-grid-wrapper.open {
    max-height: 400px !important;
}
.brand-grid-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #666 !important;
    background: none !important;
    border: 1px solid #222 !important;
    padding: 5px 12px !important;
    border-radius: 2px !important;
    margin-bottom: 8px !important;
    transition: color 0.2s, border-color 0.2s !important;
}
.brand-grid-toggle:hover { color: #aaa !important; border-color: #444 !important; }
.brand-grid-toggle svg { transition: transform 0.3s !important; }
.brand-grid-toggle.open svg { transform: rotate(180deg) !important; }

/* ── Footer Layout zentriert ─────────────────────────── */
#footer {
    text-align: center !important;
    padding: 16px 24px 12px !important;
}
.footer-info {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    margin-bottom: 10px !important;
}
.footer-item {
    font-size: 13px !important;
    padding: 2px 14px !important;
    margin: 0 !important;
    border-right: 1px solid #222 !important;
}
.footer-item:last-child { border-right: none !important; }
#footer .footer-legal {
    text-align: center !important;
    font-size: 11px !important;
}

/* ── Hamburger Button nicht rot ──────────────────────── */
#hamburger-btn {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}
#hamburger-btn span {
    background: #aaa !important;
}

/* ── Logo Stufen reduziert ───────────────────────────── */
.s6  { padding-top: 10px !important; }
.s7  { padding-top: 20px !important; }
.s8  { padding-top: 30px !important; }
.s9  { padding-top: 42px !important; }
.s10 { padding-top: 54px !important; }

/* ── Logo Stufen nochmals reduziert ──────────────────── */
.s6  { padding-top: 6px  !important; }
.s7  { padding-top: 13px !important; }
.s8  { padding-top: 21px !important; }
.s9  { padding-top: 30px !important; }
.s10 { padding-top: 40px !important; }





/* Chip Icon SVG - korrekte Größe wie FA icons */
.mt-icon-btn .chip-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  fill: #ffffff !important;
}
.mt-icon-btn:hover .chip-icon {
  fill: #990000 !important;
}
@media (max-width: 768px) {
  .mt-icon-btn .chip-icon { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .mt-icon-btn .chip-icon { width: 46px; height: 46px; }
}
@media (min-width: 1024px) {
  .mt-icon-btn .chip-icon { width: 60px; height: 60px; }
}

/* Content-Links unsichtbar (SEO-safe) */
.bodytext a, .ce-bodytext a {
  color: inherit !important;
  text-decoration: none !important;
}
.bodytext a:hover, .ce-bodytext a:hover {
  text-decoration: underline !important;
}


/* ── Sprachumschalter ───────────────────────────────────── */
#lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    top: 10px;
    right: 16px;
}
#lang-switch .lang-item {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
#lang-switch a.lang-item {
    color: #888;
    border: 1px solid #333;
}
#lang-switch a.lang-item:hover {
    color: #fff;
    background: #990000;
    border-color: #990000;
}
#lang-switch span.lang-active {
    color: #fff;
    background: #990000;
    border: 1px solid #990000;
}
@media only screen and (max-width: 768px) {
    #lang-switch {
        top: 12px;
        right: 60px;
    }
}

/* ── Sprachumschalter Mobile Fix ────────────────────── */
@media only screen and (max-width: 768px) {
    #headcontainer {
        padding-bottom: 30px !important;
    }
    #lang-switch {
        position: absolute;
        top: auto;
        bottom: 5px;
        right: 12px;
        left: auto;
        gap: 3px;
    }
    #lang-switch .lang-item {
        font-size: 10px !important;
        padding: 2px 6px !important;
        letter-spacing: 0.5px !important;
    }
}
