/*
 * SM-Automobile – modernisierte statische Version
 * Farben aus dem Logo (Anthrazit, Weiß, Rot), Schriften lokal.
 */

/* ---------- Schriften ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variablen ---------- */
:root {
  --dark: #1b1e21;
  --dark-2: #232628;
  --dark-3: #2e3236;
  --text: #2a2e33;
  --muted: #646b73;
  --line: #e4e7eb;
  --bg-soft: #f4f5f7;
  --white: #fff;
  --accent: #d7001b;
  --accent-dark: #b00016;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(20, 24, 28, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 24, 28, 0.16);
  --font-head: Montserrat, "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) { .container { padding: 0 16px; } }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-sm { padding: 0.6em 1.15em; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 24, 28, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--dark); }
.logo img { width: 62px; height: auto; }
.logo-text { font-family: var(--font-head); line-height: 1.15; }
.logo-text strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.logo-text span { font-size: 0.78rem; color: var(--muted); }
.logo:hover { color: var(--dark); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover { color: var(--dark); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--dark);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .logo img { width: 50px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 24, 28, 0.1);
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  padding: 96px 0 120px;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 19, 22, 0.92) 0%, rgba(17, 19, 22, 0.72) 45%, rgba(17, 19, 22, 0.25) 100%),
    linear-gradient(0deg, rgba(17, 19, 22, 0.6) 0%, transparent 40%);
}
.hero-content { max-width: 640px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; flex: none; background: currentColor; }
@media (max-width: 600px) { .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Info-Leiste, die in den Hero hineinragt */
.quick-info { position: relative; z-index: 2; margin-top: -64px; }
.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quick-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
  color: var(--text);
}
.quick-info-item + .quick-info-item { border-left: 1px solid var(--line); }
a.quick-info-item:hover { background: var(--bg-soft); color: var(--text); }
.quick-info-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: rgba(215, 0, 27, 0.08);
  color: var(--accent);
}
.quick-info-item small { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.quick-info-item strong { font-family: var(--font-head); font-size: 1rem; color: var(--dark); }

@media (max-width: 860px) {
  .quick-info-grid { grid-template-columns: 1fr; }
  .quick-info-item + .quick-info-item { border-left: 0; border-top: 1px solid var(--line); }
  .quick-info-item { padding: 18px 20px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 600px) { .section { padding: 72px 0; } }

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--dark-2);
  color: #fff;
  transition: background 0.25s;
}
.service-card:hover .service-icon { background: var(--accent); }
.service-card .service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Meisterbetrieb */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.badge {
  position: absolute;
  right: -22px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-head);
  line-height: 1.2;
}
.badge .icon { width: 34px; height: 34px; }
.badge strong { display: block; font-size: 1.05rem; }
.badge span { font-size: 0.82rem; opacity: 0.9; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--accent); margin-top: 0.2em; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 56px; }
  .badge { right: 16px; bottom: -24px; }
}

/* Kontakt & Öffnungszeiten */
.section-dark { background: var(--dark); color: rgba(255, 255, 255, 0.78); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.65); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  padding: 36px;
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}
.panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 1.25rem; }
.panel h3 .icon { color: var(--accent); width: 26px; height: 26px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; font-weight: 400; vertical-align: top; }
.hours th { color: #fff; font-family: var(--font-head); font-weight: 600; padding-right: 16px; white-space: nowrap; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: rgba(255, 255, 255, 0.45); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: 0.15em; }
.contact-list small { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); }
.contact-list a, .contact-list strong { color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.panel .btn { margin-top: 28px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
}

/* ---------- Unterseiten ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: 88px 0 72px;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 19, 22, 0.95), rgba(17, 19, 22, 0.55));
}
.page-hero h1 { color: #fff; margin: 0; }
.breadcrumb { margin-bottom: 12px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: #fff; }

.prose { max-width: 780px; padding: 72px 0 96px; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 0.7em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose a { word-break: break-word; }
.prose .card {
  padding: 28px 30px;
  margin-bottom: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.prose .card p:last-child { margin-bottom: 0; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.prose dt { font-weight: 700; color: var(--dark); }
.prose dd { margin: 0; }
@media (max-width: 600px) {
  .prose { padding: 48px 0 72px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #121416; color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand img { width: 72px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
}

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
