/*
Theme Name: BestandPilot Autohaus Demo
Theme URI: https://bestandpilot.de/
Author: BestandPilot
Author URI: https://bestandpilot.de/
Description: Ein modernes, leichtgewichtiges Autohaus-Theme für die BestandPilot-Produktdemo.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bestandpilot-autohaus
*/

:root {
  --bp-ink: #101820;
  --bp-paper: #ffffff;
  --bp-surface: #f3f5f6;
  --bp-line: #dfe4e7;
  --bp-muted: #63717c;
  --bp-accent: #d94b2b;
  --bp-accent-dark: #b83b20;
  --bp-radius: 18px;
  --bp-shadow: 0 18px 50px rgba(16, 24, 32, 0.11);
  --bp-content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bp-ink);
  background: var(--bp-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--bp-ink);
  border-radius: 8px;
}
.bp-container {
  width: min(calc(100% - 40px), var(--bp-content));
  margin-inline: auto;
}
.bp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--bp-accent);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bp-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.bp-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 38px;
}
.bp-section-heading h2,
.bp-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.bp-section-heading > p {
  max-width: 530px;
  margin: 0;
  color: var(--bp-muted);
  font-size: 1.05rem;
}

.bp-topbar {
  padding: 8px 0;
  color: #dbe1e5;
  background: var(--bp-ink);
  font-size: .82rem;
}
.bp-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bp-topbar p { margin: 0; }
.bp-topbar-links { display: flex; gap: 22px; }
.bp-topbar a { text-decoration: none; }
.bp-topbar a:hover { color: #fff; }

.bp-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(16, 24, 32, .08);
  backdrop-filter: blur(14px);
}
.admin-bar .bp-header { top: 32px; }
.bp-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.bp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.bp-brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: #fff;
  background: var(--bp-accent);
  border-radius: 11px 11px 11px 3px;
  font-size: .75rem;
  font-weight: 900;
}
.bp-brand-copy { display: grid; line-height: 1.08; }
.bp-brand-copy strong { font-size: 1.03rem; letter-spacing: -.02em; }
.bp-brand-copy span { margin-top: 4px; color: var(--bp-muted); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.bp-brand .custom-logo { display: block; width: auto; max-height: 50px; }
.bp-nav { display: flex; align-items: center; gap: 28px; }
.bp-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.bp-nav a { position: relative; font-size: .92rem; font-weight: 700; text-decoration: none; }
.bp-nav ul a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--bp-accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.bp-nav ul a:hover::after,
.bp-nav ul .current-menu-item a::after { transform: scaleX(1); }
.bp-header-cta,
.bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  color: #fff;
  background: var(--bp-accent);
  border: 1px solid var(--bp-accent);
  border-radius: 999px;
  box-shadow: 0 9px 25px rgba(217, 75, 43, .22);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}
.bp-header-cta:hover,
.bp-button:hover { color: #fff; background: var(--bp-accent-dark); transform: translateY(-2px); }
.bp-button--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.42); box-shadow: none; }
.bp-button--ghost:hover { background: rgba(255,255,255,.1); }
.bp-nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; background: transparent; border: 0; }
.bp-nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--bp-ink); }

.bp-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 112px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111a22 url("assets/images/hero-autohaus.jpg") center 57% / cover no-repeat;
}
.bp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,17,23,.95) 0%, rgba(10,17,23,.81) 39%, rgba(10,17,23,.18) 75%, rgba(10,17,23,.08) 100%);
}
.bp-hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -38vw;
  width: 64vw;
  height: 64vw;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.bp-hero-content { position: relative; z-index: 1; max-width: 700px; padding: 96px 0 116px; }
.bp-hero .bp-eyebrow { color: #ff876b; }
.bp-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.bp-hero-lead { max-width: 610px; margin: 26px 0 0; color: #d9e0e4; font-size: clamp(1.05rem, 2vw, 1.27rem); }
.bp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.bp-hero-meta { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 46px; color: #d9e0e4; font-size: .88rem; }
.bp-hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.bp-hero-meta span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--bp-ink);
  background: #fff;
  border-radius: 50%;
  font-weight: 900;
}

.bp-trustbar { position: relative; z-index: 2; margin-top: -34px; }
.bp-trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  background: var(--bp-accent);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow);
  overflow: hidden;
}
.bp-stat { padding: 26px 30px; border-right: 1px solid rgba(255,255,255,.2); }
.bp-stat:last-child { border-right: 0; }
.bp-stat strong { display: block; font-size: 1.35rem; line-height: 1.15; }
.bp-stat span { display: block; margin-top: 5px; color: rgba(255,255,255,.82); font-size: .8rem; }

.bp-inventory { padding: 118px 0 105px; background: var(--bp-surface); }
.bp-inventory .mobilede-listings { max-width: none; }
.bp-inventory .mobilede-filter-form { box-shadow: 0 12px 36px rgba(16,24,32,.07); }
.bp-inventory .mobilede-item { box-shadow: 0 8px 30px rgba(16,24,32,.07); }
.bp-inventory .mobilede-item:hover { box-shadow: 0 18px 42px rgba(16,24,32,.14); }

.bp-services { padding: 110px 0; }
.bp-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bp-service-card {
  position: relative;
  min-height: 270px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.bp-service-card:hover { transform: translateY(-5px); box-shadow: var(--bp-shadow); }
.bp-service-icon { display: grid; place-items: center; width: 54px; height: 54px; color: var(--bp-accent); background: #fff0ec; border-radius: 15px; }
.bp-service-icon svg { width: 27px; height: 27px; }
.bp-service-card h3 { margin: 26px 0 10px; font-size: 1.35rem; letter-spacing: -.025em; }
.bp-service-card p { margin: 0; color: var(--bp-muted); }
.bp-service-number { position: absolute; right: 24px; bottom: 12px; color: #edf0f2; font-size: 4.8rem; font-weight: 900; line-height: 1; }

.bp-about { padding: 105px 0; color: #fff; background: var(--bp-ink); }
.bp-about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: 80px; align-items: center; }
.bp-about h2 { margin: 0 0 22px; font-size: clamp(2.3rem, 4.5vw, 3rem); line-height: 1.04; letter-spacing: -.05em; }
.bp-about-copy > p { max-width: 650px; color: #bac4cb; font-size: 1.07rem; }
.bp-about-list { display: grid; gap: 14px; margin-top: 30px; }
.bp-about-list span { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.bp-about-list span::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; background: var(--bp-accent); border-radius: 50%; }
.bp-opening { padding: 34px; color: var(--bp-ink); background: #fff; border-radius: var(--bp-radius); box-shadow: 0 25px 70px rgba(0,0,0,.24); }
.bp-opening h3 { margin: 0 0 20px; font-size: 1.45rem; }
.bp-opening-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--bp-line); }
.bp-opening-row:last-of-type { border-bottom: 0; }
.bp-opening-row span { color: var(--bp-muted); }
.bp-opening-row strong { text-align: right; }
.bp-opening .bp-button { width: 100%; margin-top: 24px; }

.bp-contact { padding: 70px 0; background: var(--bp-accent); color: #fff; }
.bp-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.bp-contact h2 { margin: 0 0 6px; font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.bp-contact p { margin: 0; color: rgba(255,255,255,.82); }
.bp-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bp-contact .bp-button { color: var(--bp-ink); background: #fff; border-color: #fff; box-shadow: none; }
.bp-contact .bp-button:hover { color: var(--bp-ink); background: #f5f5f5; }
.bp-contact .bp-button--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); }

.bp-content { min-height: 55vh; padding: 80px 0; }
.bp-content article { max-width: 840px; margin: 0 auto; }
.bp-entry-content { margin-top: 30px; }
.bp-footer { padding: 64px 0 26px; color: #c6ced3; background: #0a1015; }
.bp-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .9fr; gap: 70px; padding-bottom: 48px; }
.bp-footer .bp-brand { color: #fff; }
.bp-footer .bp-brand-copy span { color: #8e9aa3; }
.bp-footer-about { max-width: 410px; margin: 20px 0 0; color: #8e9aa3; }
.bp-footer h3 { margin: 0 0 18px; color: #fff; font-size: .83rem; letter-spacing: .12em; text-transform: uppercase; }
.bp-footer ul { margin: 0; padding: 0; list-style: none; }
.bp-footer li + li { margin-top: 9px; }
.bp-footer a { text-decoration: none; }
.bp-footer a:hover { color: #fff; }
.bp-footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); color: #75828b; font-size: .79rem; }
.bp-footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .bp-topbar { display: none; }
  .bp-nav-toggle { display: block; }
  .bp-nav {
    position: fixed;
    inset: 79px 0 auto;
    display: none;
    align-items: stretch;
    padding: 26px 20px 32px;
    background: #fff;
    border-top: 1px solid var(--bp-line);
    box-shadow: 0 22px 40px rgba(16,24,32,.12);
  }
  .bp-nav.is-open { display: grid; }
  .bp-nav ul { display: grid; gap: 0; }
  .bp-nav li { border-bottom: 1px solid var(--bp-line); }
  .bp-nav ul a { display: block; padding: 13px 2px; }
  .bp-header-cta { margin-top: 8px; }
  .bp-trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .bp-stat:nth-child(2) { border-right: 0; }
  .bp-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
  .bp-card-grid { grid-template-columns: 1fr 1fr; }
  .bp-service-card:last-child { grid-column: 1 / -1; }
  .bp-about-grid { grid-template-columns: 1fr; gap: 45px; }
  .bp-footer-grid { grid-template-columns: 1.2fr 1fr; }
  .bp-footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .bp-container { width: min(calc(100% - 28px), var(--bp-content)); }
  .admin-bar .bp-header { top: 46px; }
  .bp-header-inner { min-height: 70px; }
  .bp-brand-copy span { display: none; }
  .bp-nav { inset: 71px 0 auto; }
  .bp-hero { min-height: 650px; background-position: 62% center; }
  .bp-hero::before { background: linear-gradient(90deg, rgba(10,17,23,.96), rgba(10,17,23,.75)); }
  .bp-hero-content { padding: 85px 0 105px; }
  .bp-hero h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .bp-hero-meta { display: grid; gap: 12px; margin-top: 34px; }
  .bp-stat { padding: 20px 18px; }
  .bp-stat strong { font-size: 1.1rem; }
  .bp-section-heading { display: block; }
  .bp-section-heading > p { margin-top: 18px; }
  .bp-inventory, .bp-services, .bp-about { padding: 82px 0; }
  .bp-card-grid { grid-template-columns: 1fr; }
  .bp-service-card:last-child { grid-column: auto; }
  .bp-about-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-opening { padding: 26px 22px; }
  .bp-contact-inner { display: block; }
  .bp-contact-actions { margin-top: 26px; }
  .bp-footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .bp-footer-grid > :last-child { grid-column: auto; }
  .bp-footer-bottom { display: block; }
  .bp-footer-bottom p + p { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
