/* ==========================================================================
   TY Cars GmbH — Garage Pro Theme
   Self-contained stylesheet (no external CSS frameworks required)
   ========================================================================== */

:root {
  --red: #e01f26;
  --red-dark: #b3161c;
  --black: #0d0d0f;
  --panel: #16171b;
  --panel-2: #1d1f24;
  --gray: #9aa0a8;
  --gray-light: #c9ced5;
  --line: #2a2d34;
  --white: #ffffff;
  --yellow: #f5c518;
  --radius: 14px;
  --maxw: 1200px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--gray-light);
  background: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Oswald", "Inter", sans-serif;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .5px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--panel); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title {
  font-size: clamp(28px, 4vw, 46px);
  text-transform: uppercase;
  font-weight: 700;
}
.section-title span { color: var(--red); }
.section-sub { color: var(--gray); font-size: 17px; margin-top: 4px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--btn-bg);
  color: var(--white);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 10px;
  border: 2px solid var(--btn-bg);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(224,31,38,.35); }
.btn--ghost {
  --btn-bg: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--red); box-shadow: none; background: rgba(224,31,38,.08); }

/* Header ----------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(13,13,15,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.brand-text span { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--gray-light);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero / Slider ---------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.72) 45%, rgba(10,10,12,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding: 120px 0 60px; }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 78px);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--red); display: block; }
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--gray-light); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 40px; left: 0; right: 0; z-index: 3; display: flex; gap: 10px; }
.hero-dots .container { display: flex; gap: 10px; }
.hero-dot {
  width: 40px; height: 4px; border-radius: 4px; border: 0;
  background: rgba(255,255,255,.25); cursor: pointer; transition: background .3s, transform .3s; padding: 0;
}
.hero-dot.active { background: var(--red); transform: scaleY(1.6); }

.hero-badge {
  position: absolute; right: 40px; bottom: 48px; z-index: 3;
  display: none; text-align: right;
}
@media (min-width: 992px) { .hero-badge { display: block; } }
.hero-badge strong { font-family: "Oswald", sans-serif; font-size: 46px; color: var(--white); display: block; line-height: 1; }
.hero-badge span { color: var(--gray); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }

/* Quick info strip ------------------------------------------------------- */
.strip { background: var(--red); }
.strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.strip-item {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 20px; color: var(--white);
}
.strip-item .ico { font-size: 26px; flex-shrink: 0; }
.strip-item h4 { color: var(--white); margin: 0 0 2px; font-size: 17px; }
.strip-item p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }

/* About ------------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media .exp {
  position: absolute; bottom: -26px; left: -26px;
  background: var(--red); color: var(--white);
  padding: 22px 26px; border-radius: 12px; box-shadow: var(--shadow);
}
.about-media .exp strong { font-family: "Oswald", sans-serif; font-size: 40px; line-height: 1; display: block; }
.about-media .exp span { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
.about-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.about-list li { display: flex; align-items: center; gap: 10px; color: var(--gray-light); }
.about-list li::before { content: "\2714"; color: var(--red); font-weight: 700; }

/* Services --------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--red); background: var(--panel); }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(224,31,38,.12); color: var(--red); margin-bottom: 20px;
  transition: background .35s, color .35s;
}
.card:hover .ico { background: var(--red); color: #fff; }
.card h3 { font-size: 21px; text-transform: uppercase; }
.card p { color: var(--gray); margin: 0; font-size: 15px; }

/* Services detail (dienstleistungen) ------------------------------------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dl-item {
  display: flex; gap: 20px; padding: 26px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.dl-item:hover { border-color: var(--red); transform: translateY(-4px); }
.dl-num { font-family: "Oswald", sans-serif; font-size: 34px; color: var(--red); font-weight: 700; line-height: 1; opacity: .55; }
.dl-item h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 6px; }
.dl-item p { margin: 0; color: var(--gray); font-size: 15px; }

/* Portfolio -------------------------------------------------------------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pf {
  position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; cursor: pointer;
  background: var(--panel-2);
}
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pf::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(224,31,38,.85));
  opacity: 0; transition: opacity .35s;
}
.pf .pf-label {
  position: absolute; left: 18px; bottom: 14px; z-index: 2;
  color: #fff; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 1px;
  transform: translateY(12px); opacity: 0; transition: .35s;
}
.pf:hover img { transform: scale(1.1); }
.pf:hover::after { opacity: 1; }
.pf:hover .pf-label { transform: translateY(0); opacity: 1; }

/* Price / CTA ------------------------------------------------------------ */
.cta-band {
  position: relative;
  background: linear-gradient(rgba(13,13,15,.82), rgba(13,13,15,.92)), url("../../img/slider-img-4.jpg") center/cover fixed;
  text-align: center;
}
.cta-band .section-title { font-size: clamp(30px, 4.5vw, 52px); }
.cta-band p { color: var(--gray-light); max-width: 620px; margin: 0 auto 30px; font-size: 18px; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.info-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px;
  background: rgba(224,31,38,.12); color: var(--red); display: grid; place-items: center; font-size: 20px;
}
.info-item h4 { margin: 0 0 3px; font-size: 16px; text-transform: uppercase; }
.info-item p { margin: 0; color: var(--gray); font-size: 15px; }
.info-item a:hover { color: var(--red); }

.hours { list-style: none; padding: 0; margin: 18px 0 0; }
.hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hours li span:first-child { color: var(--gray-light); }
.hours li span:last-child { color: var(--white); font-family: "Oswald", sans-serif; letter-spacing: .5px; }

.contact-form { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: var(--black); border: 1px solid var(--line); color: var(--white);
  font-family: inherit; font-size: 15px; transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 4px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 34px; }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }
.map-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--panel-2); border-top: 1px solid var(--line);
}
.map-bar-addr { display: flex; align-items: center; gap: 10px; color: var(--gray-light); font-size: 15px; }
.map-bar-addr .ico { color: var(--red); font-size: 20px; }

/* Footer ----------------------------------------------------------------- */
.footer { background: #08080a; padding: 64px 0 26px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer p { color: var(--gray); font-size: 15px; }
.footer h4 { text-transform: uppercase; font-size: 16px; letter-spacing: 1px; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--gray); transition: color .2s; }
.footer ul a:hover { color: var(--red); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--gray-light); transition: .25s;
}
.socials a:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--gray); font-size: 14px;
}
.footer-bottom a:hover { color: var(--red); }
.powered-by {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Oswald", sans-serif; letter-spacing: .5px;
  color: var(--gray); font-size: 13px; text-transform: uppercase;
}
.powered-by a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-light); font-weight: 600; transition: color .25s;
}
.powered-by a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px rgba(224,31,38,.2);
}
.powered-by a:hover { color: var(--red); }

/* Reveal animation ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Back to top ------------------------------------------------------------ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-size: 20px;
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateY(20px); transition: .3s; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* WhatsApp float --------------------------------------------------------- */
.wa-float {
  position: fixed; right: 24px; bottom: 84px; z-index: 91;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: #25d366; box-shadow: 0 12px 28px rgba(37,211,102,.45);
  transition: transform .25s var(--ease), box-shadow .25s;
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(37,211,102,.6); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 78px; width: 52px; height: 52px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* Legal page ------------------------------------------------------------- */
.page-hero {
  padding: 160px 0 70px;
  background: linear-gradient(rgba(13,13,15,.86), rgba(13,13,15,.94)), url("../../img/slider-img-2.jpg") center/cover;
  text-align: center;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); text-transform: uppercase; }
.legal p { margin-bottom: 20px; }
.legal h3 { color: var(--red); text-transform: uppercase; font-size: 20px; margin: 34px 0 10px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 991px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media .exp { left: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw);
    background: var(--panel); flex-direction: column; align-items: stretch;
    padding: 100px 22px 30px; gap: 4px; transform: translateX(100%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: flex; z-index: 101; }
  .strip .container { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .about-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
