/* ==========================================================================
   MTX Motorsport – custom site stylesheet (non-Shopify rebuild)
   Base colors/typography come from color-schemes.css + base.css (ported
   1:1 from the original Shopify theme). This file covers header, footer,
   and the homepage sections that were custom `mtx-*` theme sections.
   ========================================================================== */

:root {
  --mtx-red: #cc0000;
  --mtx-red-hover: #a80000;
  --mtx-green: #00c896;
  --header-height: 76px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #f1f3f3;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Texte nicht markier-/kopierbar – Formularfelder bleiben normal bedienbar */
html, body, body * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body input, body textarea, body select, body [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img { -webkit-user-drag: none; user-drag: none; }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.mtx-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mtx-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  height: 76px;   /* feste Höhe – darf nicht von --header-height abhängen (sonst wächst sie mit offenem Menü) */
}
.mtx-header__logo { display: flex; align-items: center; }
.mtx-header__logo img { height: 40px; width: auto; }
.mtx-header__nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.mtx-header__nav a {
  color: #f1f3f3;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.mtx-header__nav a:hover,
.mtx-header__nav a.active {
  color: var(--mtx-red);
  border-bottom-color: var(--mtx-red);
}
.mtx-header__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.mtx-header__mobile {
  display: none;
  background: #121212;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mtx-header__mobile.open {
  display: block;
  max-height: calc(100vh - 76px);
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mtx-header__mobile ul {
  list-style: none;
  margin: 0; padding: 16px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.mtx-header__mobile a {
  color: #f1f3f3;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.mtx-header__mobile a.active { color: var(--mtx-red); }

@media (max-width: 820px) {
  .mtx-header__nav { display: none; }
  .mtx-header__burger { display: block; }
}

main { padding-top: var(--header-height); }
body.mtx-home main { padding-top: 0; }

/* ---------------------------------------------------------------------- */
/* Intro-Bildschirm (einmal pro Session, siehe assets/intro.js)            */
/* ---------------------------------------------------------------------- */
html.mtx-intro-aktiv,
html.mtx-intro-aktiv body { background: #000; overflow: hidden; }
html.mtx-intro-aktiv body > *:not(.mtx-intro) { visibility: hidden; }
.mtx-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
  color: #00e5ff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 2;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.mtx-intro.is-weg { opacity: 0; pointer-events: none; }
.mtx-intro__terminal { min-width: min(420px, 100%); white-space: pre-wrap; }
.mtx-intro__zeile { min-height: 2em; }
.mtx-intro__zeile.is-final { color: #fff; font-weight: 700; }
.mtx-intro__balken {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.mtx-intro__fuellung {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #7c3aed);
}
.mtx-intro__prozent {
  position: absolute;
  right: 10%;
  bottom: 52px;
  font-size: 12px;
  line-height: 1;
  color: #888;
}
.mtx-intro__skip {
  position: absolute;
  right: 24px;
  bottom: 16px;
  padding: 6px 14px;
  border: 1px solid #555;
  border-radius: 4px;
  background: transparent;
  color: #aaa;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.mtx-intro__skip:hover,
.mtx-intro__skip:focus-visible { border-color: #00e5ff; color: #00e5ff; outline: none; }

/* ---------------------------------------------------------------------- */
/* Google-Bewertungen (schwebend unten links)                              */
/* ---------------------------------------------------------------------- */
.g-badge {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.g-badge.is-da { opacity: 1; transform: none; }
.g-badge.is-weg { opacity: 0; transform: translateY(12px); }
.g-badge__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #202124;
  text-decoration: none;
}
.g-badge__link:hover { color: #202124; }
.g-badge__link:focus-visible { outline: 3px solid #cc0000; outline-offset: 2px; border-radius: 14px; }
.g-badge__logo { width: 30px; height: 30px; flex-shrink: 0; }
.g-badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.g-badge__top { display: flex; align-items: center; gap: 6px; }
.g-badge__top strong { font-size: 1.05rem; font-weight: 800; color: #202124; }
.g-badge__sterne { display: inline-flex; gap: 1px; }
.g-badge__stern { width: 15px; height: 15px; fill: #dadce0; }
.g-badge__stern.is-voll { fill: #fbbc04; }
.g-badge__stern.is-halb { fill: #fbbc04; opacity: 0.55; }
.g-badge__anzahl { margin-top: 2px; font-size: 0.78rem; color: #5f6368; }
.g-badge__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #3c4043;
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.g-badge:hover .g-badge__close,
.g-badge__close:focus-visible { opacity: 1; }
@media (hover: none) { .g-badge__close { opacity: 1; } }
@media (max-width: 640px) {
  .g-badge { left: 12px; bottom: 12px; }
  .g-badge__link { padding: 8px 12px; gap: 10px; }
  .g-badge__logo { width: 24px; height: 24px; }
  .g-badge__top strong { font-size: 0.95rem; }
  .g-badge__stern { width: 13px; height: 13px; }
  .g-badge__anzahl { font-size: 0.72rem; }
}
@media print { .g-badge { display: none; } }

/* WhatsApp-Button (schwebend unten rechts) */
.wa-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform 0.2s, background 0.2s;
}
.wa-button:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.wa-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-button svg { width: 28px; height: 28px; flex-shrink: 0; }
@media (max-width: 640px) {
  .wa-button { right: 12px; bottom: 12px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wa-button__text { display: none; }
}
@media print { .wa-button { display: none; } }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.mtx-footer {
  position: relative;
  background: #070708;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'Inter', sans-serif;
}
.mtx-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mtx-red) 50%, transparent);
  opacity: 0.7;
}

/* CTA-Leiste über dem Footer */
.mtx-footer__cta {
  padding: 40px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(circle at 0% 50%, rgba(204,0,0,0.16), transparent 50%);
}
.mtx-footer__cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.mtx-footer__cta-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.mtx-footer__cta-text { margin: 0; font-size: 0.98rem; color: #a1a1aa; }
.mtx-footer__cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.mtx-footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.mtx-footer__btn--primary { background: var(--mtx-red); color: #fff; }
.mtx-footer__btn--primary:hover { background: #e01414; color: #fff; }
.mtx-footer__btn--ghost { border-color: rgba(255,255,255,0.18); color: #fff; }
.mtx-footer__btn--ghost:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); color: #fff; }
/* Auf Startseite (eigener Abschluss-CTA) und im Konfigurator überflüssig */
.mtx-home .mtx-footer__cta,
body:has(.mtx-konfigurator) .mtx-footer__cta { display: none; }

/* Spalten */
.mtx-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 64px 24px 56px;
}
.mtx-footer__logo { display: inline-block; margin-bottom: 20px; }
.mtx-footer__logo img { width: 160px; height: auto; }
.mtx-footer__about {
  max-width: 320px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #a1a1aa;
}
.mtx-footer__col h4 {
  margin: 0 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.mtx-footer__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.mtx-footer__links a,
.mtx-footer__contact a,
.mtx-footer__legal a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s;
}
.mtx-footer__links a:hover,
.mtx-footer__contact a:hover,
.mtx-footer__legal a:hover { color: #fff; }
.mtx-footer__contact {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.mtx-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #a1a1aa;
}
.mtx-footer__contact svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--mtx-red);
}

/* Öffnungsstatus ("Jetzt geöffnet") */
.mtx-oeffnung {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a1a1aa;
}
.mtx-oeffnung:empty { display: none; }
.mtx-oeffnung::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71717a;
}
.mtx-oeffnung.is-offen { color: #00c896; }
.mtx-oeffnung.is-offen::before { background: #00c896; box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.2); }
.p-contact__item .mtx-oeffnung { display: flex; }

/* Unterste Zeile */
.mtx-footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); }
.mtx-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.mtx-footer__bottom p { margin: 0; font-size: 0.85rem; color: #71717a; }
.mtx-footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.mtx-footer__legal a { font-size: 0.85rem; color: #71717a; }

@media (max-width: 960px) {
  .mtx-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mtx-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mtx-footer__cta { padding: 32px 16px; }
  .mtx-footer__cta-btns, .mtx-footer__btn { width: 100%; justify-content: center; }
  .mtx-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 48px 16px 40px; }
  .mtx-footer__col:last-child { grid-column: 1 / -1; }
  .mtx-footer__bottom-inner { flex-direction: column; text-align: center; padding: 20px 16px; }
}

/* ---------------------------------------------------------------------- */
/* Hero (homepage)                                                         */
/* ---------------------------------------------------------------------- */
.mtx-home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
  padding: calc(var(--header-height) + 40px) 48px 100px;
}
.mtx-home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.mtx-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.75) 100%);
}
.mtx-home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.mtx-home-hero__content h1 {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 24px;
  color: #fff;
}
.mtx-home-hero__content h1 strong { color: #fff; }
.mtx-home-hero__content p {
  font-size: 1.5rem;
  color: #e5e5e5;
  line-height: 1.5;
  margin: 0 0 36px;
  max-width: 560px;
}
.mtx-home-hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }
.mtx-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.mtx-btn--primary { background: #4a675d; color: #f1f3f3; }
.mtx-btn--primary:hover { background: #174f3c; }
.mtx-btn--outline { background: transparent; color: #fff; border-color: #fff; }
.mtx-btn--outline:hover { background: #fff; color: #0a0a0a; }

@media (max-width: 700px) {
  .mtx-home-hero { padding: calc(var(--header-height) + 24px) 20px 64px; min-height: 70vh; }
  .mtx-home-hero__content h1 { font-size: 2.4rem; }
  .mtx-home-hero__content p { font-size: 1.1rem; }
}

/* generic section container used across homepage mtx sections */
.mtx-section { padding: 90px 32px; max-width: 1200px; margin: 0 auto; }
.mtx-section--tight { padding: 60px 32px; }
@media (max-width: 700px) {
  .mtx-section, .mtx-section--tight { padding: 56px 20px; }
}
