/*
Theme Name: MotorMeister Nürnberg
Description: Individuelles Werkstatt-Theme für die MotorMeister Nürnberg GmbH – KFZ-Service, Wartung und Reparatur. Mit Hero-Slider, Leistungen, Ablauf und Kontaktbereich.
Version: 1.0.0
Author: CNKSOFT
Text Domain: motormeister
*/

:root {
  --bg: #0b1526;
  --bg-2: #0f1d33;
  --card: #142743;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2f7;
  --muted: #9fb0c7;
  --accent: #f5a301;
  --accent-dark: #c77f00;
  --light: #f4f6fa;
  --light-text: #16233a;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 38, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #ffcf5c);
  color: #231600; font-weight: 900; font-size: 1.3rem; border-radius: 10px;
}
.brand small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); }
.main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 800; text-decoration: none; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #231600; font-weight: 800; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { background: #ffc14d; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 163, 1, 0.35); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; box-shadow: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 1.3rem; padding: 8px 14px; cursor: pointer; }

/* ---------- Hero Slider ---------- */
.hero { position: relative; overflow: hidden; background: #060c17; }
.hero-track { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: min(82vh, 720px); display: flex; align-items: flex-end; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 23, 0.25) 0%, rgba(6, 12, 23, 0.55) 55%, rgba(6, 12, 23, 0.92) 100%),
              linear-gradient(100deg, rgba(6, 12, 23, 0.85) 0%, rgba(6, 12, 23, 0.25) 60%, transparent 100%);
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 110px; max-width: 720px; }
.hero-kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.22em; font-size: 0.78rem; text-transform: uppercase; margin-bottom: 16px; }
.hero-copy h1, .hero-copy .hero-h { margin-bottom: 18px; text-wrap: balance; font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.hero-copy p.lead { color: #d6dee9; font-size: 1.12rem; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; }
.hero-ui-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(7, 14, 26, 0.55);
  color: #fff; font-size: 1.2rem; backdrop-filter: blur(8px);
}
.hero-arrows button:hover { background: var(--accent); border-color: var(--accent); color: #231600; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 5px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, 0.3); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.22em; font-size: 0.78rem; text-transform: uppercase; margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p.sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Leistungen */
.services { background: var(--light); color: var(--light-text); }
.services .section-head p.sub { color: #4c5b74; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #e2e8f0; transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11, 21, 38, 0.14); }
.service-card img { width: 100%; height: 210px; object-fit: cover; }
.service-card-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card-body p { color: #4c5b74; font-size: 0.95rem; flex: 1; }
.service-card-body a.more { color: var(--accent-dark); font-weight: 700; text-decoration: none; font-size: 0.92rem; }

/* Über uns */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid img { border-radius: var(--radius); height: 480px; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.about-copy p { color: var(--muted); margin: 18px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--accent); }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* Warum wir */
.why { background: var(--bg-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: why; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; position: relative; }
.why-card::before {
  counter-increment: why; content: "0" counter(why);
  display: block; font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 14px;
}
.why-card p { color: var(--muted); font-size: 0.93rem; margin-top: 10px; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { border-top: 3px solid var(--accent); padding-top: 22px; }
.step span.num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; color: var(--accent); }
.step h3 { margin: 10px 0; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* CTA Band */
.cta-band { background: linear-gradient(120deg, var(--accent), #ffcf5c); color: #231600; border-radius: 20px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { font-weight: 600; opacity: 0.85; }
.btn-dark { background: #14100a; color: #ffd97a; }
.btn-dark:hover { background: #000; color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }

/* Kontakt */
.contact { background: var(--light); color: var(--light-text); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-lines { margin-top: 24px; display: grid; gap: 0; }
.contact-lines div { padding: 16px 0; border-bottom: 1px solid #dbe2ec; }
.contact-lines small { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #71809a; font-weight: 700; }
.contact-lines strong, .contact-lines a { font-size: 1.05rem; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 0.95rem; }
.hours td { padding: 10px 0; border-bottom: 1px solid #dbe2ec; }
.hours td:last-child { text-align: right; font-weight: 700; }
.contact-form { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 34px; }
.contact-form h3 { margin-bottom: 6px; }
.contact-form p.hint { color: #4c5b74; font-size: 0.9rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; font-size: 0.95rem; background: #f8fafc; color: var(--light-text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); background: #fff; }
.form-note { margin-top: 14px; padding: 13px 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; }
.form-note.ok { background: #e6f7ec; color: #14662f; border: 1px solid #b7e4c7; }
.form-note.err { background: #fdecec; color: #a12020; border: 1px solid #f5c2c2; }
.hp-field { position: absolute; left: -9999px; }

/* Karte mit Einwilligung */
.map-box { margin-top: 26px; border: 1px solid #dbe2ec; border-radius: var(--radius); overflow: hidden; background: #e8edf4; }
.map-consent { padding: 48px 30px; text-align: center; color: #4c5b74; }
.map-consent p { font-size: 0.9rem; max-width: 460px; margin: 10px auto 20px; }
.map-box iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Unterseiten */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 70px 0; }
.page-hero p { color: var(--muted); margin-top: 12px; max-width: 640px; }
.page-body { padding: 70px 0; }
.prose { max-width: 780px; }
.prose p, .prose li { color: var(--muted); }
.prose h2, .prose h3 { margin: 34px 0 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent); }

/* Footer */
.site-footer { background: #060c17; border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer-grid a { display: block; color: #c4cede; text-decoration: none; font-size: 0.93rem; padding: 5px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted); font-size: 0.82rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid img { height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 24px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .phone-link { display: none; }
  .header-cta .btn { padding: 10px 16px; font-size: 0.85rem; }
  .service-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 130px; }
  .cta-band { padding: 38px 26px; }
  .section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
