/* =========================================================
   A.G Automobile – Stylesheet
   Farben & Schriften zentral über die Variablen anpassbar
   ========================================================= */

/* Manrope wird lokal gehostet (DSGVO – keine Google-Server) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-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: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-dark: #0f1722;
  --color-dark-soft: #16202e;
  --color-accent: #e63946;
  --color-accent-hover: #c92b38;
  --color-text: #2b3440;
  --color-muted: #6b7686;
  --color-light: #f5f7fa;
  --color-white: #ffffff;
  --color-border: #e3e8ef;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 34, 0.08);
  --topbar-h: 38px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 12px); }

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

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ===== Topbar (Anschrift & Telefon, immer sichtbar) ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--color-dark);
  color: #c8d2de;
  font-size: 0.82rem;
  z-index: 60;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.topbar__item:hover { color: var(--color-white); }
.topbar__item svg { flex-shrink: 0; color: var(--color-accent); }

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.logo__badge {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  border-radius: 10px;
  font-size: 1rem;
}

.logo__text { color: var(--color-dark); font-weight: 500; }
.logo__text strong { font-weight: 800; }

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover { color: var(--color-accent); background: var(--color-light); }

/* Dropdown (Auswahlmenüs) */
.nav__item--dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown,
.nav__item--dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dropdown a:hover { background: var(--color-light); color: var(--color-accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--color-accent); color: var(--color-white); }
.btn--primary:hover { background: var(--color-accent-hover); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--color-white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--color-white); }

.btn--lg { padding: 0.9rem 1.8rem; font-size: 1rem; }

.header__cta { white-space: nowrap; }

/* Burger (Mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px; height: 2.5px;
  margin-inline: auto;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--topbar-h) + var(--header-h));
  background:
    linear-gradient(120deg, rgba(15, 23, 34, 0.92) 35%, rgba(15, 23, 34, 0.55)),
    /* BILD PFLEGEN: eigenes Hero-Foto als images/hero.jpg ablegen */
    url("../images/hero.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 75% 30%, #2a3a50 0%, var(--color-dark) 60%);
  color: var(--color-white);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: 4rem;
}

.hero__kicker {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(230, 57, 70, 0.16);
  border: 1px solid rgba(230, 57, 70, 0.45);
  color: #ff8a94;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero__title span { color: var(--color-accent); }

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #c9d3df;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.75rem;
}

.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.3rem; font-weight: 800; }
.hero__stats span { color: #9aa7b6; font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--color-light); }
.section--dark { background: var(--color-dark); color: var(--color-white); }

.section__kicker {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section--dark .section__title { color: var(--color-white); }

.section__intro { max-width: 640px; color: var(--color-muted); margin-bottom: 2.5rem; }
.section__cta { text-align: center; margin-top: 2.75rem; }

/* Cards */
.cards { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 34, 0.12); }

.card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--color-accent);
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.25rem; font-weight: 800; color: var(--color-dark); margin-bottom: 0.6rem; }
.card p { color: var(--color-muted); margin-bottom: 1.25rem; }

.card__link { font-weight: 700; color: var(--color-accent); }
.card__link:hover { color: var(--color-accent-hover); }

/* Fahrzeug-Karten */
.vehicle {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 34, 0.12); }

.vehicle__media { aspect-ratio: 16 / 10; background: #dde3ea; }
.vehicle__media img { width: 100%; height: 100%; object-fit: cover; }

.vehicle__body { padding: 1.4rem; }
.vehicle__body h3 { font-size: 1.1rem; font-weight: 800; color: var(--color-dark); margin-bottom: 0.3rem; }
.vehicle__meta { font-size: 0.88rem; color: var(--color-muted); margin-bottom: 0.75rem; }
.vehicle__price { font-size: 1.15rem; font-weight: 800; color: var(--color-accent); }

/* Über uns */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about__text p { color: var(--color-muted); margin-bottom: 1.5rem; }

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checklist { margin-bottom: 2rem; display: grid; gap: 0.7rem; }

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 600;
  color: var(--color-dark);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 1.3rem; height: 1.3rem;
  margin-top: 0.15rem;
  background: rgba(230, 57, 70, 0.12);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.contact__row { margin-bottom: 1.75rem; }
.contact__row h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}
.contact__row p { color: #c9d3df; }

.contact__link { text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.contact__link:hover { color: var(--color-white); }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Zwei-Klick-Karte (DSGVO) */
.map-placeholder {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 2rem;
  background: var(--color-dark-soft);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: #c9d3df;
}

.map-placeholder svg { color: var(--color-accent); }
.map-placeholder__hint { font-size: 0.85rem; color: #8b98a8; max-width: 360px; }
.map-placeholder__hint a { text-decoration: underline; }
.map-placeholder .btn { margin-top: 0.5rem; }

/* Rechtsseiten (Impressum / Datenschutz) */
.legal {
  max-width: 760px;
  padding-top: calc(var(--topbar-h) + var(--header-h) + 3rem);
  padding-bottom: 4.5rem;
}

.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--color-dark); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; color: var(--color-dark); margin: 2.25rem 0 0.6rem; }
.legal h3 { font-size: 1.05rem; color: var(--color-dark); margin: 1.5rem 0 0.4rem; }
.legal p, .legal li { color: var(--color-muted); margin-bottom: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal a { color: var(--color-accent); }
.legal a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer { background: var(--color-dark-soft); color: #aeb9c7; font-size: 0.93rem; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer__list { display: grid; gap: 0.55rem; }
.footer__list a:hover { color: var(--color-white); }

.logo--footer .logo__text { color: var(--color-white); }
.footer__tagline { margin-top: 1rem; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: #7d8a99;
}

/* =========================================================
   Mobile / Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .header__cta { display: none; }
}

@media (max-width: 860px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: calc(var(--topbar-h) + var(--header-h));
    left: 0; right: 0;
    bottom: 0;
    background: var(--color-white);
    padding: 1.25rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin-left: 0;
  }

  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav__link { width: 100%; justify-content: space-between; padding: 0.9rem 1rem; font-size: 1.05rem; }

  .dropdown {
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav__item--dropdown.is-open .dropdown { display: block; }

  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__media { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .hero { min-height: 86vh; }
  .hero__stats { gap: 1.5rem; }

  .section { padding: 4rem 0; }
}

@media (max-width: 520px) {
  .topbar { font-size: 0.74rem; }
  .topbar__item span { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions .btn { width: 100%; }
}
