/* RZ Autotechnik – statische Website
   Farben und Schriften wie auf der bisherigen WordPress-Seite. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff") format("woff");
}
/* Barlow Condensed: Dateien optional in /fonts ablegen (siehe README.txt).
   Fehlen sie, greift der Fallback aus --font-head. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Barlow Condensed Regular"), local("BarlowCondensed-Regular"),
       url("../fonts/BarlowCondensed-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Barlow Condensed Medium"), local("BarlowCondensed-Medium"),
       url("../fonts/BarlowCondensed-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Barlow Condensed Bold"), local("BarlowCondensed-Bold"),
       url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"),
       url("../fonts/BarlowCondensed-Medium.ttf") format("truetype"); /* Ersatz, falls Bold fehlt */
}

:root {
  --blue: #164DA8;
  --dark: #1A1A1A;
  --text: #7A7A7A;
  --light: #E8E8EA;
  --lighter: #F6F6F6;
  --white: #FFFFFF;
  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; }
.ico { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { stroke-width: 1.8; }
.menu-toggle .ico, .menu-close .ico, .slider-controls .ico { stroke-width: 2; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
main a:focus-visible, .section a:focus-visible { outline-color: var(--blue); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--dark);
}
h2 { font-size: 2.6rem; }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  padding: 20px 35px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover, .btn:focus { color: var(--blue); background: var(--white); text-decoration: none; }
.btn--ghost {
  background: transparent;
  border-color: var(--white);
  box-shadow: 0 0 10px rgba(0,0,0,.5);
}
.btn--ghost:hover, .btn--ghost:focus { color: var(--white); background: var(--blue); border-color: transparent; }

/* ---------- Header ---------- */
.site-header { background: var(--blue); padding: 15px 0; position: relative; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { display: block; width: 180px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  color: var(--white);
  padding: 10px 20px;
  font-size: 1rem;
}
.main-nav a:hover { text-decoration: none; color: var(--light); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.main-nav .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 190px;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  padding: 6px 0;
  flex-direction: column;
}
.main-nav .sub-menu a { font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.main-nav .has-sub:hover > .sub-menu,
.main-nav .has-sub:focus-within > .sub-menu { display: flex; }

.menu-toggle, .menu-close {
  display: none;
  background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px;
}
.menu-toggle svg, .menu-close svg { width: 34px; height: 34px; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  background-image: url("../images/hero.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg, #164DA8 0%, #1A1A1A 100%);
  opacity: .5;
}
.hero .container { position: relative; display: flex; justify-content: flex-end; min-width: 0; }
.hero h1, .hero h3 { overflow-wrap: break-word; hyphens: auto; }
.hero-content { width: 50%; animation: fadeInRight 1s .3s both; }
.hero h1, .hero h2, .hero h3 { color: var(--white); text-shadow: 0 0 10px rgba(0,0,0,.3); }
.hero h2 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin-bottom: .2em; }
.hero h1 { font-size: clamp(3rem, 5vw, 5rem); font-weight: 700; margin-bottom: .1em; hyphens: none; }
.hero h3 { font-size: 2.5rem; font-weight: 700; text-transform: uppercase; padding-right: 50px; margin-bottom: 1em; }

@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(60px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Gemeinsame Bausteine ---------- */
.section { padding: 100px 0; }
.divider {
  display: flex; align-items: center; gap: 0;
  color: var(--blue);
  padding: 15px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--blue); }
.divider svg { width: 30px; height: 30px; margin: 0 12px; flex: none; }
.divider--left::before { display: none; }
.divider--left svg { margin-left: 0; }

.center { text-align: center; }

/* ---------- Leistungen ---------- */
.features h2 { text-align: center; }
.features .lead { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 2.5rem;
  text-align: center;
}
.feature svg { width: 65px; height: 65px; color: var(--blue); margin-bottom: .6rem; }
.feature h3 { font-size: 1.6rem; margin-bottom: .2em; }
.feature p { margin: 0; }

/* ---------- Gewerbekunden / Beratung ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { display: block; width: 100%; }
.split.no-media { grid-template-columns: 1fr; }
.split.no-media .media { display: none; }
.split.no-media .text { padding-left: 0; padding-right: 0; max-width: 720px; }
.business { background: var(--light); }
.business .text { padding-right: 40px; }
.advice { background: var(--white); }
.advice .text { padding-left: 50px; }

/* ---------- Dunkler Block mit GTI-Bild ---------- */
.quality {
  background-image: linear-gradient(180deg, var(--dark) 69%, var(--white) 69%);
  text-align: center;
}
.quality h2 { color: var(--light); }
.quality img { display: block; margin: 0 auto; }

/* ---------- Marken ---------- */
.brands { background: var(--lighter); }
.brand-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px;
}
.brand-list li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: .06em;
  color: #9A9A9E;
  text-transform: uppercase;
}

/* ---------- Kundenstimmen ---------- */
.reviews { background: var(--blue); color: var(--white); text-align: center; }
.reviews svg.quote-icon { width: 54px; height: 54px; color: var(--light); }
.reviews h2 { color: var(--white); }
.reviews .intro { color: var(--white); padding: 0 30%; }
.review {
  margin: 0 auto 2rem;
  max-width: 820px;
}
.review blockquote { margin: 0 0 1rem; }
.review blockquote p {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
.review .name { color: var(--white); font-weight: 400; }
.review .source { color: var(--light); }

.slider-controls { display: none; align-items: center; justify-content: center; gap: 24px; }
.js .slider-controls { display: flex; }
.js .review { display: none; margin-bottom: 1.5rem; }
.js .review.is-active { display: block; }
.slider-controls button {
  background: none; border: 0; color: var(--light); cursor: pointer; padding: 6px;
}
.slider-controls button svg { width: 32px; height: 32px; display: block; }
.slider-controls button:hover { color: var(--white); }
.slider-count { color: var(--light); font-size: .9rem; min-width: 3.5em; }

/* ---------- Footer ---------- */
.contact { background: var(--dark); color: var(--lighter); padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.location { padding: 10px 40px 10px 10px; }
.location + .location { padding: 10px 10px 10px 40px; }
.location:first-child { border-right: 2px solid var(--text); }
.contact h2 { color: var(--light); font-size: 26px; margin-bottom: .8em; }
.contact h2.hours-title { margin-top: 2rem; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; margin-bottom: .7em; color: var(--light); }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: .25em; color: var(--light); }
.contact-list a { color: var(--light); }
.contact-list a:hover { color: var(--white); text-decoration: underline; }

.hours { list-style: none; margin: 0; padding: 0; font-size: 17px; color: var(--light); }
.hours li { display: flex; align-items: baseline; gap: 10px; padding: 2px 0; }
.hours .dots { flex: 1; border-bottom: 1px dotted rgba(232,232,234,.35); transform: translateY(-4px); }

.footer-bar { background: var(--dark); border-top: 1px solid #333; padding: 22px 0; font-size: .9rem; }
.footer-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; }
.footer-bar a { color: var(--light); }
.footer-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero h3 { font-size: 2rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews .intro { padding: 0 10%; }
  .main-nav a { padding: 10px 15px; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 767px) {
  .section { padding: 50px 0; }
  h2 { font-size: 2.2rem; }

  .logo img { width: 150px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 100;
    background: var(--blue);
    display: none;
    padding: 90px 20px 40px 20%;
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .main-nav a { font-size: 30px; letter-spacing: .4px; padding: 10px 0; }
  .main-nav .sub-menu { display: flex; position: static; box-shadow: none; padding: 0 0 0 20px; background: none; }
  .main-nav .sub-menu a { font-size: 24px; }
  .menu-close { display: block; position: absolute; top: 18px; right: 18px; }

  .hero { min-height: 85vh; background-image: url("../images/hero-mobile.jpg"); }
  .hero-content { width: 100%; text-align: left; }
  .hero h2 { font-size: 20px; }
  .hero h1 { font-size: min(48px, 11vw); }
  .hero h3 { font-size: min(32px, 8vw); padding: 0 15px 0 0; }
  .hero .btn { display: block; text-align: center; }

  .feature-grid { grid-template-columns: 1fr; }
  .features .container { padding: 0 10px; }

  .split { grid-template-columns: 1fr; }
  .business { padding: 0; }
  .business .container { padding: 0; }
  .business .split .media { order: -1; }
  .business .text { padding: 15px 25px 50px; }
  .advice { padding: 0; }
  .advice .container { padding: 0; }
  .advice .text { padding: 25px 25px 50px; }
  .quality { padding: 50px 0; }
  .quality .container { padding: 0 25px; }
  .brands { padding: 32px 0; }
  .brand-list { gap: 10px 28px; }
  .brand-list li { font-size: 1.6rem; }
  .reviews { padding: 50px 0; }
  .reviews .intro { padding: 0; }
  .review blockquote p { font-size: 24px; }

  .contact { padding: 50px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .location, .location + .location { padding: 10px 0 30px; }
  .location:first-child { border-right: 0; border-bottom: 2px solid var(--text); margin-bottom: 30px; }
  .footer-bar .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal .container { max-width: 860px; }
.legal { color: #555; padding: 70px 0 90px; overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: 3rem; margin-bottom: .6em; }
.legal h2 { font-size: 2rem; margin: 2em 0 .5em; }
.legal h3 { font-size: 1.45rem; margin: 1.6em 0 .4em; }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal a { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .legal { padding: 40px 0 60px; }
  .legal h1 { font-size: 2.3rem; }
  .legal h2 { font-size: 1.7rem; }
}

/* ---------- Standortseiten ---------- */
.loc-page { background: var(--white); padding: 80px 0 90px; }
.loc-page .split { align-items: start; }
.loc-page .text { padding-right: 50px; }
.loc-page h1 { font-size: 3.2rem; margin-bottom: .5em; }
.loc-page h2 { font-size: 1.9rem; margin: 1.6em 0 .5em; }
.loc-page address { font-style: normal; margin-bottom: 1em; }
.loc-page .contact-info { margin: 0; }
.loc-page .contact-info dt { font-weight: 700; color: var(--dark); margin-top: .8em; }
.loc-page .contact-info dd { margin: 0; }
.loc-page .hours { color: var(--text); max-width: 380px; }
.loc-page .hours .dots { border-bottom-color: #cfcfd3; }
.loc-page .media img { border-radius: 2px; }
@media (max-width: 767px) {
  .loc-page { padding: 0 0 50px; }
  .loc-page .container { padding: 0; }
  .loc-page .media { order: -1; }
  .loc-page .text { padding: 30px 25px 0; }
  .loc-page h1 { font-size: 2.4rem; }
}
