/* Tuttlinger Autoteile — Stylesheet
   Schrift: Inter (wie der bisherige Shop), lokal eingebunden – keine Verbindung zu Google. */

@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --ink: #000000;
  --ink-2: #4b5563;
  --rule: #e3e6ea;
  --blue: #0060ff;
  --blue-hover: #004fd6;
  --blue-soft: #e8f0ff;
  --overlay: rgba(18, 18, 18, 0.4);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 1.5rem; }
p { margin: 0; }
.lede { font-size: 1.1rem; color: var(--ink-2); }
.center { text-align: center; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 500 0.95rem var(--font);
  padding: 16px 26px; border-radius: var(--radius);
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: var(--blue); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); color: #fff; }
.btn--blue:disabled { opacity: .6; cursor: default; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: #fff; border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-size: 0.95rem; padding: 0.5em 0.85em; border-radius: 10px; color: #111; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 500; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font: 500 0.95rem var(--font); color: #000;
    background: transparent; border: 1px solid var(--rule); border-radius: 10px;
    padding: 0.55em 0.9em; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: 4px var(--gutter) 12px;
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: 0.85em 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .brand img { height: 40px; }
}

/* Hero (full-width picture) */
.hero {
  position: relative; display: grid; place-items: center;
  min-height: clamp(420px, 72vh, 760px);
  color: #fff; text-align: center; overflow: hidden; background: #d9dcdf;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.hero-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; padding: 48px var(--gutter); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }

/* Sections */
section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; gap: 16px; max-width: 46em; margin-inline: auto; text-align: center; }
.divider { border: 0; border-top: 1px solid var(--rule); max-width: 420px; margin: 0 auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); text-align: center; }
.feature { display: grid; justify-items: center; gap: 10px; }
.feature svg { width: 40px; height: 40px; color: var(--blue); }
.feature h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.feature p { color: var(--ink-2); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Slideshow */
.slideshow { position: relative; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  min-height: clamp(380px, 56vw, 620px); display: flex; align-items: center;
  color: #fff; overflow: hidden; background: #3a3f45;
}
.slide picture { position: absolute; inset: 0; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.slide-content { position: relative; z-index: 1; display: grid; gap: 18px; max-width: 34em; padding: clamp(24px, 5vw, 64px); }
.slide-content h3 { color: #fff; }
.slide-content p { color: rgba(255,255,255,.92); }
.slide--right { justify-content: flex-end; text-align: right; }
.slide--right .slide-content { justify-items: end; }
.slide--center { justify-content: center; text-align: center; }
.slide--center .slide-content { justify-items: center; }
.slide-content .btn { justify-self: start; }
.slide--right .slide-content .btn { justify-self: end; }
.slide--center .slide-content .btn { justify-self: center; }
.slide-nav { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.slide-nav button.dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: #c9ced6; transition: background-color .2s, width .2s;
}
.slide-nav button.dot[aria-current="true"] { background: var(--blue); width: 26px; border-radius: 6px; }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #000; display: grid; place-items: center;
}
.slide-arrow:hover { background: var(--blue); color: #fff; }
.slide-arrow.prev { left: 14px; }
.slide-arrow.next { right: 14px; }
.slide-arrow svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .slide-arrow { display: none; } }

/* Logo marquee */
.marquee { overflow: hidden; padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: clamp(40px, 6vw, 88px); padding-right: clamp(40px, 6vw, 88px); }
.marquee img { height: 56px; width: auto; max-width: none; opacity: .85; }
.marquee img.tall { height: 76px; }
.marquee--small img { height: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos-head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: 18px; }
.logos-head svg { width: 36px; height: 36px; color: var(--blue); }
.logos { padding-block: clamp(48px, 6vw, 80px) 24px; }
.logos + .logos { padding-top: 24px; padding-bottom: clamp(48px, 6vw, 80px); }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--rule); padding-block: clamp(44px, 6vw, 72px) 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-call { font-weight: 500; }
.phone-text { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-top: 4px; user-select: all; }
.footer-col h4 { font-size: 1rem; margin-bottom: 12px; }
.footer-col p + p { margin-top: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-2); }
.footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Page head (subpages) */
.page-head { padding-block: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 44px); background: var(--soft); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head .lede { max-width: 40em; }

/* About */
.about { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose { display: grid; gap: 1.1em; max-width: 42em; }
.prose h2 { margin-top: 0.6em; }
.about-media { position: sticky; top: 100px; display: grid; gap: 14px; }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-media img.wide { aspect-ratio: 16 / 9; }
.pull { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.35; border-left: 3px solid var(--blue); padding-left: 20px; text-wrap: balance; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-media { position: static; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: 0 10px 30px rgba(0, 20, 60, .05); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.93rem; }
.field input, .field textarea {
  font: 400 1rem var(--font); color: var(--ink);
  background: #fff; border: 1px solid #cfd5dc; border-radius: 10px;
  padding: 0.75em 0.85em; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.9rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.form-status { font-size: 0.95rem; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rule); }
.form-status.ok { border-color: #1f8a4c; color: #1f7a45; background: #eefaf2; }
.form-status.err { border-color: #d93025; color: #b3261e; background: #fdf0ef; }
.hp { position: absolute; left: -9999px; }
.contact-card { display: grid; gap: 22px; }
.kv { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--rule); }
.kv .label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* Legal */
.legal { display: grid; gap: 1em; max-width: 46em; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 1.2em; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.3em; }
.legal address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

@media (max-width: 600px) {
  .marquee img { height: 38px; }
  .marquee img.tall { height: 52px; }
  .marquee--small img { height: 28px; }
}
