/* =====================================================================
   Autohaus Bredeney GmbH — Stylesheet
   Brand colors derived from the company logo:
     - Blue wordmark  ~ #1A2B72
     - Yellow oval    ~ #F5C518
   Design: modern minimalism, trust & conversion oriented.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --blue-900: #0c1740;
  --blue-800: #122257;
  --blue-700: #1a2b72; /* primary brand blue */
  --blue-600: #233a9a;
  --blue-500: #2e47c7; /* interactive / links */
  --yellow-400: #f5c518; /* brand accent */
  --yellow-500: #e6b400; /* accent hover */
  --yellow-300: #ffd84d;

  /* Neutrals */
  --ink: #0f1729;
  --ink-2: #3a4252;
  --muted: #5b6472;
  --line: #e6e9ef;
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f2f5fa;

  /* Semantic */
  --color-primary: var(--blue-700);
  --color-on-primary: #ffffff;
  --color-accent: var(--yellow-400);
  --color-on-accent: var(--blue-900);

  /* Typography */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(12, 23, 64, 0.06), 0 1px 3px rgba(12, 23, 64, 0.08);
  --shadow-md: 0 6px 16px rgba(12, 23, 64, 0.08), 0 2px 6px rgba(12, 23, 64, 0.06);
  --shadow-lg: 0 18px 50px rgba(12, 23, 64, 0.14);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--blue-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transform: translateY(-72px);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--surface-2); }

.section__head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow-400);
}
.section__head.center .eyebrow { justify-content: center; }

.h-display { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow-400);
  color: var(--color-on-accent);
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.35);
}
.btn--primary:hover { background: var(--yellow-300); }

.btn--dark {
  background: var(--blue-700);
  color: #fff;
}
.btn--dark:hover { background: var(--blue-600); }

.btn--ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: rgba(26, 43, 114, 0.25);
}
.btn--ghost:hover { border-color: var(--blue-700); background: rgba(26, 43, 114, 0.04); }

.btn--on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.18); }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav a.is-active { color: var(--blue-700); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--blue-900); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Logo (original brand wordmark + yellow oval) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo:hover { text-decoration: none; }
.logo__img {
  display: block;
  width: auto;
  height: auto;
}
.logo--header .logo__img { height: 52px; }
.logo--footer .logo__img { height: 60px; }
@media (max-width: 560px) {
  .logo--header .logo__img { height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(46, 71, 199, 0.55) 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-800) 0%, var(--blue-900) 70%);
  overflow: hidden;
}
.hero-emblem { /* subtle yellow brand logo watermark */
  position: absolute;
  right: 24px;
  top: 50%;
  width: min(662px, 61vw);
  height: auto;
  transform: translate(10%, -50%) rotate(-4deg);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 980px) { .hero-emblem { display: none; } }
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(64px, 9vw, 110px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--yellow-400); }
.hero p.lead { color: rgba(255, 255, 255, 0.82); max-width: 50ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-weight: 500;
}
.hero-badge svg { width: 20px; height: 20px; color: var(--yellow-400); flex: none; }

/* Hero side card */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-card h2 {
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-card h2 svg { width: 22px; height: 22px; color: var(--yellow-400); }
.hours-mini { list-style: none; margin: 0; padding: 0; }
.hours-mini li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.97rem;
}
.hours-mini li:last-child { border-bottom: 0; }
.hours-mini .day { color: rgba(255, 255, 255, 0.78); }
.hours-mini .time { font-variant-numeric: tabular-nums; color: #fff; font-weight: 500; }
.hours-mini li.is-today {
  color: var(--yellow-400);
}
.hours-mini li.is-today .day,
.hours-mini li.is-today .time { color: var(--yellow-400); font-weight: 700; }
.hours-mini .closed { color: rgba(255, 255, 255, 0.5); }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 9 cards → clean 3×3, never a lone card */
  gap: 20px;
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-700));
  color: #fff;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.16rem; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Feature / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: stretch;
}
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.18);
  color: var(--yellow-500);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.feature-list .tick svg { width: 18px; height: 18px; }
.feature-list strong { display: block; color: var(--blue-900); font-family: var(--font-display); }
.feature-list span { color: var(--muted); font-size: 0.97rem; }

.stat-card {
  background: linear-gradient(160deg, var(--blue-700), var(--blue-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 280px;
  height: 180px;
  border: 22px solid var(--yellow-400);
  border-radius: 50%;
  transform: rotate(-12deg);
  opacity: 0.18;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 18px;
  position: relative;
  z-index: 1;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--yellow-400);
  line-height: 1;
}
.stat .label { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin-top: 6px; }

/* Über-uns right column: stat card + exterior photo, flush with the text column */
.ueber-side { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.stat-card { flex: 0 0 auto; }
.ueber-photo {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  position: relative; /* the photo fills the leftover height without growing the column */
}
.ueber-photo__fill {
  position: absolute;
  inset: 0;
}
.ueber-photo__card {
  position: relative;
  display: block;
  width: 100%;              /* always edge-to-edge with the blue card above */
  height: 100%;             /* fills the leftover height, flush at the bottom */
  border-radius: var(--radius-lg); /* match the blue stat card's corner rounding */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.26s var(--ease);
}
.ueber-photo__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ueber-photo__card::after { /* subtle inner ring + depth gradient so it reads as a polished card */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 0 0 4px rgba(255, 255, 255, 0.06);
  background: linear-gradient(to top, rgba(12, 23, 64, 0.35), transparent 42%);
  pointer-events: none;
}
@media (max-width: 980px) {
  /* single column: show the photo full width in normal flow */
  .ueber-side { height: auto; }
  .ueber-photo { position: static; flex: 0 0 auto; }
  .ueber-photo__fill { position: static; display: block; }
  .ueber-photo__card { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

/* Über-uns text a touch larger so the column reaches the full-width photo */
#ueber-uns .lead { font-size: 1.22rem; line-height: 1.75; }
#ueber-uns .feature-list { gap: 22px; margin-top: 30px; }
#ueber-uns .feature-list strong { font-size: 1.07rem; margin-bottom: 3px; }
#ueber-uns .feature-list span { font-size: 1.03rem; line-height: 1.5; }

/* ---------- Opening hours (full) ---------- */
.hours-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hours-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.hours-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.hours-card h3 .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface-2); color: var(--blue-700);
  display: grid; place-items: center; flex: none;
}
.hours-card h3 .ic svg { width: 22px; height: 22px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th,
.hours-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 500; color: var(--ink-2); }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hours-table .closed { color: var(--muted); font-weight: 400; }
.hours-table tr.is-today th,
.hours-table tr.is-today td { color: var(--blue-700); font-weight: 700; }
.hours-table tr.is-today {
  background: rgba(245, 197, 24, 0.14);
  box-shadow: inset 3px 0 0 var(--yellow-400);
}
.hours-table tr.is-today th { padding-left: 12px; }
.hours-table tr.is-today td { padding-right: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: stretch; }
.contact-info { display: grid; gap: 14px; }
.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.info-row .ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(26, 43, 114, 0.08); color: var(--blue-700);
  display: grid; place-items: center;
}
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.info-row a, .info-row .val { font-family: var(--font-display); font-weight: 600; color: var(--blue-900); font-size: 1.05rem; }
.info-row a:hover { color: var(--blue-500); }

.map-embed {
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(48px, 7vw, 80px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer p { color: rgba(255, 255, 255, 0.72); }
.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { color: rgba(255, 255, 255, 0.72); }
.footer-links a:hover { color: var(--yellow-400); text-decoration: none; }
.footer-brandcol p { max-width: 34ch; font-size: 0.97rem; margin-top: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.88rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: var(--yellow-400); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 820px;
  margin-inline: auto;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.12rem; margin-top: 1.6em; }
.legal p, .legal address { color: var(--ink-2); }
.legal address { font-style: normal; line-height: 1.9; }
.page-hero {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #fff;
  padding-block: clamp(48px, 7vw, 80px);
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .crumb { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 10px; }
.page-hero .crumb a { color: rgba(255,255,255,0.85); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hover motion only on real pointer devices (no sticky hover on touch) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .service-card:hover { transform: translateY(-4px); }
  .ueber-photo:hover .ueber-photo__card { transform: translateY(-3px) scale(1.01); }
}

/* Gentle left-to-right stagger for the service-card grid entrance */
.card-grid .reveal:nth-child(3n + 2) { transition-delay: 60ms; }
.card-grid .reveal:nth-child(3n + 3) { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-grid .reveal { transition-delay: 0ms; }
  .btn:hover, .service-card:hover, .ueber-photo:hover .ueber-photo__card { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    padding: 16px clamp(20px, 5vw, 40px) 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .header-cta .btn-phone-text { display: none; }
}

@media (max-width: 680px) {
  .hours-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
