/* =========================================================
   LTS GmbH — Stylesheet
   Markenfarben aus dem Logo: Schwarz + Lindgrün (#a8c931) + Weiß.
   Alle Farben als Variablen -> exakte Werte zentral anpassbar.
   ========================================================= */

:root {
  /* Marke */
  --lime:        #a8c931;   /* Logo-Grün */
  --lime-deep:   #8bab23;   /* dunkleres Grün für Hover / Text auf Hell */
  --lime-soft:   #eef4d6;   /* sehr helles Grün für Flächen */

  /* Dunkel (Hero / dunkle Sektionen) – leicht warmes Schwarz */
  --ink:         #0f110c;
  --ink-2:       #181b12;
  --ink-line:    #2c3022;

  /* Hell */
  --paper:       #f5f6f0;   /* warmes Off-White */
  --white:       #ffffff;
  --line:        #e3e6d9;

  /* Text */
  --text:        #1a1c14;
  --muted:       #5d6151;
  --text-light:  #f2f3ec;
  --muted-light: #b9bfa9;

  /* Maße */
  --wrap:        1140px;
  --radius:      14px;
  --radius-sm:   10px;
  --gap:         clamp(1.5rem, 4vw, 3rem);

  /* Typo */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(15,17,12,.04), 0 8px 24px rgba(15,17,12,.06);
  --shadow-lg: 0 18px 48px rgba(15,17,12,.14);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lime-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.measure { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; color: var(--lime-deep);
  margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--lime); display: inline-block;
}
.eyebrow-light { color: var(--lime); }

.section-title {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; color: var(--text);
}
.section-title-light { color: var(--text-light); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.lead { font-size: 1.125rem; color: var(--muted); }
.lead-light { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: .72rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover { background: var(--lime-deep); border-color: var(--lime-deep); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--text-light); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn-ghost-dark { background: transparent; color: var(--text-light); border-color: rgba(255,255,255,.35); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }

.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a { color: var(--text-light); font-weight: 600; font-size: .98rem; }
.nav > a:hover { color: var(--lime); text-decoration: none; }
.nav .nav-cta { color: var(--ink); }
.nav .nav-cta:hover { color: var(--ink); }
.nav-close { display: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--text-light);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-swoosh {
  position: absolute; right: -5%; bottom: -2%; width: 70%; height: 90%;
  opacity: .14; z-index: 0; pointer-events: none;
}
.hero-swoosh path { fill: var(--lime); }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.02em;
  margin: .4rem 0 1.3rem;
}
.hero-title .accent { color: var(--lime); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted-light); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--lime); color: var(--ink); }
.trustbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem 1.1rem;
  padding: .85rem 0; font-weight: 700; font-size: .9rem; text-align: center;
}
.trustbar .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(15,17,12,.45); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); }

/* ---------- Leistungen / Cards ---------- */
.cards {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d4dac3; }
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--lime-soft); color: var(--lime-deep); margin-bottom: 1.1rem;
}
.card-ico svg { width: 27px; height: 27px; }
.card-title { font-size: 1.18rem; font-weight: 800; margin-bottom: .55rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-wide { grid-column: 1 / -1; }

.ticklist { margin-top: 1rem; display: grid; gap: .55rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ticklist li { list-style: none; position: relative; padding-left: 1.7rem; color: var(--text); font-weight: 600; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
  border-radius: 2px; background: var(--lime); transform: translateY(-50%);
}

/* ---------- Leistungen-Slider ---------- */
.slider { position: relative; }
.slider-track {
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 6px 18px;
  margin: -6px -6px 0;
  scrollbar-width: thin;
  scrollbar-color: #cfd6bd transparent;
}
.slider-track::-webkit-scrollbar { height: 8px; }
.slider-track::-webkit-scrollbar-thumb { background: #cfd6bd; border-radius: 8px; }
.slider-track::-webkit-scrollbar-track { background: transparent; }
.slider-track > .card, .slider-track > .tile { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 600px) { .slider-track > .card, .slider-track > .tile { flex-basis: calc(50% - 0.65rem); } }
@media (min-width: 900px) { .slider-track > .card, .slider-track > .tile { flex-basis: calc(33.333% - 0.867rem); } }
.slider--media .slider-track { align-items: flex-start; }
.slider--media .tile { aspect-ratio: auto; }
.slider--media .tile img { height: auto; display: block; }

.slider-btn {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--lime-deep);
  cursor: pointer; place-items: center; font-size: 1.85rem; line-height: 1; font-weight: 700;
  box-shadow: var(--shadow-lg); z-index: 3; padding-bottom: 4px;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.slider-btn:hover { background: var(--white); border-color: var(--lime); color: var(--lime-deep); box-shadow: 0 8px 22px rgba(168,201,49,.30); }
.slider-btn:disabled { opacity: .45; cursor: default; background: var(--white); border-color: var(--line); color: var(--muted); }
.slider-prev { left: -10px; }
.slider-next { right: -10px; }
@media (min-width: 768px) { .slider-btn { display: grid; } }

/* ---------- KFZ-Service: strikter 50/50-Split (Text | Foto) ---------- */
.kfz-feature {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: stretch;
}
@media (min-width: 860px) { .kfz-feature { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.kfz-heading { font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.16; margin: 0 0 .9rem; color: var(--ink); }
.kfz-lead { color: var(--muted); margin: 0 0 1.4rem; }
.kfz-ticklist { grid-template-columns: 1fr; gap: .7rem; margin: 0; }

.kfz-feature-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
  min-height: 240px;
}
@media (min-width: 860px) { .kfz-feature-media { aspect-ratio: auto; } }
.kfz-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Warum (dark) ---------- */
.warum-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
.warum-intro .btn { margin-top: 1.4rem; }
.reasons { display: grid; gap: 0; }
.reasons li {
  list-style: none; display: flex; align-items: flex-start; gap: 1rem;
  color: var(--text-light); font-size: 1.1rem; font-weight: 600;
  padding: 1.05rem 0; border-bottom: 1px solid var(--ink-line);
}
.reasons li:first-child { border-top: 1px solid var(--ink-line); }
.reason-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: .1rem;
  background: var(--lime); position: relative;
}
.reason-mark::after {
  content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 10px;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.tile {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3; background: var(--ink-2);
  border: 1px solid var(--line);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% 110%, rgba(168,201,49,.22), transparent 60%),
    var(--ink-2);
}
.tile-ph::after {
  content: "LTS"; position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; letter-spacing: .25em; color: rgba(168,201,49,.5); font-size: 1.4rem;
}
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: .7rem .9rem; color: #fff; font-weight: 700; font-size: .92rem;
  background: linear-gradient(to top, rgba(15,17,12,.82), transparent);
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); grid-template-columns: 1fr; align-items: start; }

.info-list { display: grid; gap: 1.2rem; }
.info-list li { list-style: none; display: grid; gap: .15rem; }
.info-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--lime-deep); font-weight: 700; }
.info-val { font-size: 1.08rem; color: var(--text); font-weight: 600; }
.info-val a { color: var(--text); }
.info-val a:hover { color: var(--lime-deep); }

.map-box { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); min-height: 260px; position: relative; }
.map-box iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; gap: 1rem; text-align: center; padding: 1.5rem; }
.map-consent p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 340px; }
.map-consent .btn { justify-self: center; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg);
}
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field .req { color: var(--lime-deep); }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem .9rem; width: 100%; transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }

.field-check .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; font-size: .95rem; color: var(--muted); }
.field-check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--lime-deep); flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: .3rem 0 0; font-size: .95rem; min-height: 1.2em; }
.form-note.ok { color: var(--lime-deep); font-weight: 700; }
.form-note.err { color: #b42318; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding-bottom: 2rem; border-bottom: 1px solid var(--ink-line); }
.footer-logo { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 420px; margin: 0; font-size: .98rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-nav a, .footer-nav .linklike { color: var(--text-light); font-weight: 600; font-size: .95rem; }
.footer-nav a:hover, .footer-nav .linklike:hover { color: var(--lime); }
.footer-bottom { padding: 1.2rem 0 2rem; font-size: .88rem; color: var(--muted-light); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 1rem; }
.cookie-inner {
  max-width: var(--wrap); margin-inline: auto;
  background: var(--ink-2); color: var(--text-light);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  padding: 1.1rem 1.3rem;
}
.cookie-text { margin: 0; font-size: .92rem; color: var(--muted-light); flex: 1 1 320px; }
.cookie-text a { color: var(--lime); }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal .measure { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; font-weight: 800; margin: 2.2rem 0 .6rem; }
.legal h3 { font-size: 1.08rem; font-weight: 700; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { list-style: disc; margin-bottom: .35rem; }
.back-home { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-weight: 700; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 720px) {
  .warum-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.6fr 1fr; align-items: center; }
  .footer-nav { justify-content: flex-end; }
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--ink-2); flex-direction: column; align-items: stretch; gap: 0;
    padding: 5rem 1.6rem 2rem; transform: translateX(100%);
    transition: transform .25s ease; box-shadow: var(--shadow-lg); z-index: 150;
    border-left: 1px solid var(--ink-line);
  }
  .nav.open { transform: translateX(0); }
  .nav > a { padding: .95rem 0; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 1.2rem; border-bottom: 0; }
  .nav-close {
    display: block; position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
  }
  body.nav-open { overflow: hidden; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* ====================================================
   Scroll-Reveal (Fade-in + Slide-up)
   ==================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js #ueber .measure,
  .js .trustbar-inner,
  .js .section-head,
  .js #leistungen .slider,
  .js .kfz-feature-text,
  .js .kfz-feature-media,
  .js .warum-intro,
  .js #warum .reasons > li,
  .js #galerie .slider,
  .js .contact-grid > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .75s cubic-bezier(.22, .61, .36, 1);
  }
  .js .is-visible { opacity: 1 !important; transform: none !important; }
}
