/* ==========================================================================
   site.css – Projekt-eigene Anpassungen über dem KeyMoto/UIkit-Template.
   Ziel: Layout auch OHNE die (unlizenzierten) Demo-Bilder sauber darstellen,
   plus Bausteine, die das Template nicht mitbringt (Marken-Karten,
   Händler-Filter, Artikel-Typografie).
   ========================================================================== */

:root {
  --site-accent: #e63619;      /* KeyMoto-Rot (identisch zum Template-Rot in main.css) */
  --site-dark: #1b1b1f;
  --site-dark-2: #2a2a30;
}

/* ---- Inner-Hero (Unterseiten) ------------------------------------------- */
.section-hero.section-hero--inner .site-hero-bg {
  background-attachment: scroll;
  /* !important, da main.css responsiv ein sehr großes Padding (bis 335px) für sein
     Bild-Hero setzt – für unseren schlanken Breadcrumb-Hero unerwünscht. */
  min-height: 0 !important;
  /* Oben mehr Luft, damit die Überschrift nicht direkt unter der (absoluten,
     ~123px hohen) Menüleiste klebt. */
  padding: 172px 0 64px !important;
  display: flex;
  align-items: center;
}
/* Fallback ohne Bild: dezenter Verlauf (Overlay ::before liegt darüber) */
.section-hero.section-hero--inner .site-hero-bg--gradient {
  background: linear-gradient(115deg, var(--site-dark) 0%, var(--site-dark-2) 55%, #3a1113 100%);
  background-size: cover;
}

/* Hero-Bild als echtes <img> (statt CSS background) – bleibt unter clip-path
   auf HiDPI scharf, anders als ein CSS-Hintergrundbild. Liegt unter dem
   dunklen Overlay (::before, z-index 1) und dem Inhalt (z-index 2). */
.section-hero__bg { position: relative; overflow: hidden; }
.site-hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Marken-Logo (Lockup) in Header, Footer, Offcanvas */
.site-logo { display: block; height: 56px; width: auto; }
/* Header: Logo vertikal mittig zu den Menüpunkten ausrichten */
.page-header__left,
.page-header__left .logo,
.page-header__left .logo__link { display: flex; align-items: center; }
.page-header__left { height: 100%; }
/* Footer-Logo deutlich größer */
.page-footer .site-logo { height: 64px; }
@media (max-width: 640px) { .site-logo { height: 46px; } .page-footer .site-logo { height: 54px; } }
.section-hero__breadcrumb .uk-breadcrumb a,
.section-hero__breadcrumb .uk-breadcrumb > * > span { color: rgba(255, 255, 255, 0.75); }

/* ---- Home-Hero (nutzt die Original-Template-Struktur .section-hero + __bg,
   dadurch: Knick/Clip-Path, dunkles Overlay ::before -> weiße Schrift, Bild) --- */
.section-hero--home .section-hero__bg {
  padding: 175px 0 120px !important; /* main.css setzt bis 335px – für Home moderater */
  background-attachment: scroll;
}
.section-hero--home .section-hero__lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 640px;
  margin: 18px 0 0;
}
.section-hero--home .section-hero__btns {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Bild-Platzhalter (bis eigene Fotos vorhanden sind) ----------------- */
.site-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  width: 100%;
  background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%);
  position: relative;
}
.site-card-placeholder__icon { color: rgba(255, 255, 255, 0.18); }
.site-card-placeholder__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--site-accent);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  z-index: 1;
}

/* ---- Bereichs-/Marken-Karten (Startseite & Übersichten) ----------------- */
.site-tile {
  display: block;
  height: 100%;
  padding: 34px 28px;
  background: #fff;
  border: 1px solid #ececec;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  color: inherit;
}
.site-tile:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09); transform: translateY(-3px); text-decoration: none; border-color: transparent; }
.site-tile__icon { font-size: 34px; color: var(--site-accent); margin-bottom: 14px; }
.site-tile__title { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 20px; margin-bottom: 8px; }
.site-tile__text { color: #777; font-size: 15px; }

.site-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 92px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ececec;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #222;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.site-brand-card:hover { border-color: var(--site-accent); color: var(--site-accent); text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07); }
.site-brand-card__count { display: block; font-size: 12px; color: #aaa; letter-spacing: 0; }

/* ---- Artikel-Typografie ------------------------------------------------- */
.site-article__meta { color: #999; font-size: 14px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.05em; }
.site-content { font-size: 17px; line-height: 1.75; color: #333; }
.site-content h2 { font-family: 'Oswald', sans-serif; text-transform: uppercase; margin: 40px 0 14px; font-size: 26px; }
.site-content h3 { font-family: 'Oswald', sans-serif; margin: 28px 0 10px; font-size: 20px; }
.site-content p { margin: 0 0 18px; }
.site-content ul, .site-content ol { margin: 0 0 18px; padding-left: 22px; }
.site-content li { margin-bottom: 8px; }
.site-content img { max-width: 100%; height: auto; }
.site-content blockquote {
  border-left: 4px solid var(--site-accent);
  margin: 24px 0;
  padding: 6px 0 6px 20px;
  color: #555;
  font-style: italic;
}
.site-content a { color: var(--site-accent); }

/* Tabellen im Fließtext (Vergleiche/Checklisten – auch in Blog-Artikeln) */
.site-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}
.site-content th,
.site-content td {
  border: 1px solid #e4e4e4;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.site-content thead th {
  background: #f7f7f8;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 13px;
  color: #333;
}
.site-content tbody tr:nth-child(even) { background: #fafafa; }
/* Auf schmalen Viewports horizontal scrollbar statt Umbruch-Chaos */
.site-content .site-table-scroll { overflow-x: auto; }

.site-meta-box {
  background: #f7f7f8;
  border: 1px solid #ececec;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.site-meta-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.site-meta-box dt { font-weight: 700; color: #444; }
.site-meta-box dd { margin: 0; color: #666; }

.site-warning {
  background: #fff5f5;
  border: 1px solid #f3c2c2;
  border-left: 4px solid var(--site-accent);
  padding: 14px 18px;
  margin: 22px 0;
  color: #7a2a2a;
}

.site-sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid #ececec; }
.site-sources h2 { font-size: 18px; text-transform: uppercase; font-family: 'Oswald', sans-serif; margin-bottom: 12px; }
.site-sources ol { padding-left: 20px; color: #666; font-size: 14px; }
.site-sources a { color: var(--site-accent); word-break: break-word; }

/* ---- Händler-/Städte-Filter -------------------------------------------- */
.site-filterbar { margin-bottom: 30px; }
.site-filterbar input[type='search'] { max-width: 420px; }
.site-country-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.site-country-tab {
  padding: 10px 20px;
  border: 1px solid #e2e2e2;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #333;
}
.site-country-tab:hover, .site-country-tab.is-active { background: var(--site-accent); border-color: var(--site-accent); color: #fff; text-decoration: none; }

.site-city-list { list-style: none; margin: 0; padding: 0; column-gap: 30px; }
.site-city-list li { margin-bottom: 10px; }
.site-city-list a { display: flex; justify-content: space-between; padding: 10px 14px; border: 1px solid #eee; color: #222; }
.site-city-list a:hover { border-color: var(--site-accent); color: var(--site-accent); text-decoration: none; }
.site-city-list .site-city-count { color: #aaa; }
.site-empty { color: #999; padding: 16px 0; }

/* ---- Dealer-Detail Infobox --------------------------------------------- */
.site-dealer-facts { background: #f7f7f8; border: 1px solid #ececec; padding: 24px; }
.site-dealer-facts h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 18px; margin: 0 0 14px; }
.site-dealer-facts p { margin: 0 0 8px; color: #444; }
.site-dealer-facts a { color: var(--site-accent); }

.site-vehicles-teaser {
  border: 1px dashed #d0d0d0;
  padding: 28px;
  text-align: center;
  color: #999;
  margin-top: 30px;
}

/* ---- Buttons ------------------------------------------------------------ */
/* Template stylt uk-button-default für dunkle Flächen (weißer Text). Wir nutzen
   ihn meist auf hellem Grund → sichtbar machen. */
.uk-button-default {
  color: #222;
  background: transparent;
  border: 1px solid #d8d8d8;
}
.uk-button-default:hover,
.uk-button-default:focus {
  color: #fff;
  background: var(--site-accent);
  border-color: var(--site-accent);
}
.site-tile__icon [uk-icon] > svg,
.site-tile__icon [data-uk-icon] > svg { width: 40px; height: 40px; }

/* ---- Kleinigkeiten ------------------------------------------------------ */
.site-section-title { margin-bottom: 34px; }
.uk-button-small { padding: 0 20px; line-height: 40px; font-size: 12px; }
.site-dealer-card.is-hidden { display: none; }
.site-city-list li.is-hidden { display: none; }
