/* Geborgenheit · Iron & Brass
   Brand colours are deliberately separate from the data / admin implementation.
   The original logo remains untouched. All car images retain their real content. */
:root {
  --bg: #F2F3F0;
  --surface: #FFFFFF;
  --ink: #262C29;
  --muted: #59625D;
  --line: #CCD1C9;
  --dark: #262C29;
  --accent: #78683B;
  --accent-hover: #5E512E;
  --soft: #E9EBE6;
  --stone: #D6C9A5;
  --brass-light: #E6E0CE;
  --dark-muted: #CDD3CD;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(38, 44, 41, .10);
  --focus: #78683B;
  --header-height: 72px;
}

html { scroll-padding-top: calc(var(--header-height) + 14px); }
body { line-height: 1.5; }
::selection { background: var(--brass-light); color: var(--dark); }
.shell { width: min(var(--max), calc(100% - 48px)); }
.header { background: rgba(255, 255, 255, .97); border-color: var(--line); box-shadow: none; }
.head { height: var(--header-height); }
.nav { gap: clamp(18px, 2.5vw, 32px); font-size: 14px; }
.nav a { opacity: 1; color: var(--muted); padding: 12px 0; }
.nav a:hover, .nav a:focus-visible { color: var(--accent-hover); }
.langs { border-radius: 999px; background: var(--bg); border-color: var(--line); }
.langs button { border-radius: 999px; min-width: 32px; min-height: 34px; padding: 7px 9px; font-size: 11px; }
.langs button.active { background: var(--accent); color: #fff; }
.btn { min-height: 44px; line-height: 1.25; border-radius: 12px; font-size: 14px; font-weight: 720; transition: background .16s, box-shadow .16s, color .16s; }
.ui-icon { flex: 0 0 auto; vertical-align: middle; display: inline-block; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:not(:disabled):hover { background: var(--accent-hover); }
.btn.dark:not(:disabled):hover { background: #3B443E; }
.btn.white:not(:disabled):hover { background: var(--soft); border-color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
.langs button:focus-visible, .btn:focus-visible, .card-arrow:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}

/* Compact, photograph-led introduction, even for a single live vehicle. */
.stock-landing { padding: 22px 0 0; }
.stock-mast {
  min-height: 355px;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  background: var(--dark);
  border: 0;
  border-radius: 26px;
  box-shadow: 0 10px 32px rgba(38, 44, 41, .09);
}
.mast-copy { min-width: 0; padding: clamp(28px, 3.4vw, 48px); }
.eyebrow { font-size: 12px; font-weight: 780; letter-spacing: .13em; color: var(--accent-hover); }
.stock-mast .eyebrow, .brand-panel .eyebrow { color: var(--stone); margin-bottom: 13px; }
.mast-copy h1 {
  font-size: clamp(36px, 4.3vw, 60px);
  line-height: 1.04; letter-spacing: -.043em; font-weight: 760;
  max-width: 17ch; text-wrap: balance; overflow-wrap: anywhere;
}
.mast-copy p:not(.eyebrow) { margin: 15px 0 24px; color: var(--dark-muted); line-height: 1.62; font-size: 15px; }
.mast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mast-browse { border-radius: 999px; padding: 13px 22px; }
.mast-fact { padding: 0; background: transparent; border: 0; color: var(--dark-muted); font-size: 13px; font-weight: 600; }
.mast-media { min-height: 0; background: #303832; border-left: 3px solid var(--accent); }
.mast-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.mast-media:after { background: linear-gradient(0deg, rgba(22, 27, 24, .20), transparent 30%); pointer-events: none; }
.mast-label { bottom: 14px; right: 14px; font-size: 11px; font-weight: 650; padding: 7px 11px; background: rgba(38, 44, 41, .88); }
.mast-media img[src*="no-photo"], .brand-photo img[src*="no-photo"] { background: var(--dark); object-fit: contain; }

/* Make search and sort immediately available; additional filtering stays compact. */
.stock-controls { scroll-margin-top: 8px; }
.filter-panel { grid-template-columns: minmax(210px, 1.55fr) repeat(3, minmax(120px, 1fr)) auto; gap: 8px; padding: 10px; border-radius: 18px; box-shadow: 0 4px 12px rgba(38, 44, 41, .035); }
.control { min-height: 46px; font-size: 14px; background: var(--bg); border-color: var(--line); border-radius: 12px; color: var(--ink); padding: 11px 12px; }
.control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(120, 104, 59, .13); }
.search-wrap input { padding-left: 38px; }
.search-icon { opacity: 1; font-size: 20px; line-height: 1; color: var(--muted); }
.filter-panel #resetFilters { font-size: 13px; padding-inline: 13px; }
.filter-panel #resetFilters:disabled { opacity: .50; }
.filter-chip { color: var(--ink); background: var(--surface); border-color: var(--line); font-size: 13px; }
.filter-chip:hover { border-color: var(--accent); }
.applied-filters { gap: 6px; }
.mobile-filter-toggle { display: none; }

/* A single result is featured horizontally; larger inventories remain a grid. */
.stock-section { padding: 26px 0 48px; }
.section-head { margin-bottom: 16px; align-items: flex-end; }
.section-head h2 { font-size: clamp(30px, 3.3vw, 43px); line-height: 1.08; letter-spacing: -.038em; }
.section-head p:not(.eyebrow) { font-size: 14px; }
.section-head .eyebrow { margin-bottom: 7px; }
.count-pill { display: inline-flex; align-items: center; background: var(--brass-light); color: var(--dark); min-height: 30px; padding: 5px 12px; font-size: 13px; font-weight: 740; }
.count-pill:empty { display: none; }
.cars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cars.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cars.is-single { grid-template-columns: minmax(0, 1fr); }
.car-card { border-radius: 20px; background: var(--surface); border-color: var(--line); }
.car-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 1.5; background: var(--soft); }
.card-media img { object-position: center; }
.status { font-size: 11px; letter-spacing: .05em; background: rgba(38,44,41,.92); padding: 7px 11px; }
.photo-count { font-size: 12px; background: rgba(38,44,41,.88); }
.card-arrow { width: 44px; height: 44px; }
.car-card:focus-within .card-arrow, .car-card:hover .card-arrow { opacity: 1; }
.card-main-hit:focus-visible { outline-offset: -4px; outline-color: #fff; }
.card-body { padding: 19px; min-width: 0; cursor: auto; }
.card-top { gap: 9px 14px; flex-wrap: wrap; }
.card-top > div:first-child { min-width: 0; }
.car-name { font-size: clamp(20px, 1.85vw, 24px); font-weight: 760; line-height: 1.18; overflow-wrap: anywhere; }
.variant { font-size: 14px; line-height: 1.4; }
.price { font-size: 21px; font-weight: 800; color: var(--dark); font-variant-numeric: tabular-nums; }
.card-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-top: 15px; padding-top: 13px; }
.meta-cell small { font-size: 11px; letter-spacing: .045em; }
.meta-cell strong { font-size: 14px; font-weight: 650; white-space: normal; overflow-wrap: anywhere; line-height: 1.32; }
.card-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 16px; padding: 9px 17px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.car-card:hover .card-link { color: #fff; }
.card-link:hover { background: var(--accent-hover); }
.loading-row { font-size: 15px; min-height: 122px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 30px; }

@media (min-width: 761px) {
  .cars.is-single .car-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .cars.is-single .card-media { aspect-ratio: auto; min-height: 248px; }
  .cars.is-single .card-media img { position: absolute; inset: 0; }
  .cars.is-single .card-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
  .cars.is-single .car-name { font-size: clamp(25px, 2.4vw, 34px); }
  .cars.is-single .price { font-size: clamp(24px, 2.7vw, 35px); }
  .cars.is-single .card-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cars.is-single .card-link { align-self: flex-start; }
}

/* An honest, calmer brand story instead of repeating the hero image. */
.brand-section { padding-bottom: 44px; }
.brand-panel { color: #fff; background: var(--dark); border: 0; border-radius: 26px; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.brand-copy { padding: clamp(28px, 4vw, 48px); }
.brand-copy h2 { font-size: clamp(29px, 3.7vw, 46px); line-height: 1.08; letter-spacing: -.038em; }
.brand-copy p:not(.eyebrow) { font-size: 15px; color: var(--dark-muted); line-height: 1.7; }
.principles { gap: 18px; }
.principle { border-color: rgba(214, 201, 165, .35); }
.principle strong { font-size: 14px; font-weight: 700; }
.principle span { font-size: 13px; color: var(--dark-muted); line-height: 1.5; }
.brand-photo { position: relative; min-height: 0; border-left: 3px solid var(--accent); background: #303832; overflow: hidden; }
.brand-photo img { position: absolute; inset: 0; object-fit: cover; display: block; }
.brand-photo:after { content: none; }
.brand-photo[hidden] { display: none; }
.brand-panel.is-text-only { grid-template-columns: minmax(0, 1fr); }
.brand-panel.is-text-only .brand-copy > p:not(.eyebrow) { max-width: 760px; }
.brand-panel.is-text-only .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid { gap: 16px; }
.contact-box { border-radius: 22px; padding: 28px; box-shadow: none; }
.contact-box h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.contact-box p:not(.eyebrow) { font-size: 15px; }
.contact-actions .btn.dark { background: var(--accent); color: #fff; }
.contact-actions .btn.dark:hover { background: var(--accent-hover); }
.contact-actions .btn { max-width: 100%; overflow-wrap: anywhere; }
.contact-secondary { background: var(--surface); color: var(--dark); }
.contact-whatsapp { color: #205B46; border-color: #B2C9BD; }
.contact-whatsapp:hover { color: #174B39; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; color: var(--muted); justify-content: flex-end; overflow-wrap: anywhere; }
.footer-contact a { min-height: 44px; display: inline-flex; align-items: center; }
.location-title { font-size: 12px; }
.footer { padding: 24px 0; background: var(--surface); }
.foot small { font-size: 13px; }
.footer a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Detail pages prioritise inspection, readable specifications and contact. */
.detail-page { padding-top: 23px; }
.back { min-height: 44px; padding: 8px 0; font-size: 15px; color: var(--accent-hover); }
.detail-titlebar h1 { font-size: clamp(35px, 4.6vw, 57px); letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.detail-titlebar .variant { font-size: 16px; }
.detail-price-large { font-size: clamp(29px, 3.2vw, 43px); font-weight: 800; font-variant-numeric: tabular-nums; }
.gallery-mosaic { background: var(--dark); border-radius: 20px; aspect-ratio: 2/1; height: auto; max-height: 540px; }
.gallery-primary, .gallery-side-cell { background: #252A26; }
.gallery-primary img { object-fit: contain; }
.gallery-primary:hover img { transform: none; }
.gallery-primary img { cursor: zoom-in; }
.gallery-side { grid-template-rows: repeat(var(--side-count, 3), minmax(0, 1fr)); }
.gallery-mosaic.is-single { grid-template-columns: minmax(0, 1fr); aspect-ratio: 4/3; }
.gallery-mosaic.is-single .gallery-primary { border-radius: 20px; }
.gallery-mosaic.is-single .gallery-side { display: none; }
.g-arrow { color: var(--dark); }
.g-arrow[hidden] { display: none; }
.thumb.active { border-color: var(--accent); }
.thumb { border-radius: 11px; }
.view-all, .gallery-counter { font-size: 12px; font-weight: 700; min-height: 32px; }
.view-all { min-height: 44px; }
.view-all { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.photo-disclaimer { font-size: 13px; }
.detail-aside { border-radius: 22px; padding: 23px; box-shadow: none; }
.aside-kicker { font-size: 12px; color: var(--accent-hover); }
.core-specs { gap: 8px; }
.spec { border-color: var(--line); background: var(--bg); border-radius: 12px; padding: 12px; min-width: 0; }
.spec small { font-size: 11px; }
.spec strong { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.trust-title { font-size: 17px; }
.trust-item { font-size: 13px; border-color: var(--line); line-height: 1.4; }
.trust-item strong, .data-row strong { overflow-wrap: anywhere; }
.trust-item .not-provided { color: var(--muted); font-weight: 450; }
.trust-card { margin-top: 20px; }
.why-box[hidden] { display: none; }
.why-box strong { font-size: 14px; }
.why-box p { font-size: 14px; color: var(--muted); }
.detail-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-cta .contact-phone { grid-column: 1/-1; background: var(--accent); color: #fff; }
.detail-cta .contact-phone:hover { background: var(--accent-hover); }
.detail-cta .contact-secondary { padding-inline: 8px; }
.share-tools .btn { font-size: 13px; padding-inline: 7px; }
.portal-block-title { font-size: 11px; }
.portal-link { min-height: 44px; font-size: 13px; }
.portal-link:hover { border-color: var(--accent); color: var(--accent-hover); }
.content-card { border-radius: 20px; }
.content-card h3 { font-size: 21px; }
.content-card p { font-size: 15px; color: var(--muted); white-space: pre-line; }
.missing-content { margin: 0; }
.feature { font-size: 13px; color: var(--dark); }
.data-row { font-size: 14px; border-color: var(--line); }
.lightbox { background: rgba(18, 21, 19, .98); }
.lb-top strong, .lb-help { font-size: 13px; color: #fff; }
.lb-icon { min-width: 44px; min-height: 44px; }
.lb-thumb.active { border-color: var(--stone); }
.mobile-cta { background: rgba(255, 255, 255, .98); border-color: var(--line); }
.mobile-cta .contact-phone { background: var(--accent); color: white; }

@media (max-width: 1020px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }
  .stock-mast { min-height: 315px; }
  .mast-copy { padding: 27px; }
  .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
  .filter-panel .sort-control { display: block; }
  .filter-panel #resetFilters { grid-column: auto; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-height: 102px; }
  .shell { width: calc(100% - 24px); }
  .head { min-height: var(--header-height); height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px auto; gap: 0 10px; }
  .head .brand { grid-column: 1; grid-row: 1; }
  .head-actions { grid-column: 2; grid-row: 1; }
  .brand-symbol { width: 38px; height: 38px; }
  .brand-name { font-size: 10px; }
  .brand-name small { display: block; }
  .nav { display: flex; grid-column: 1 / -1; grid-row: 2; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); gap: 8px; }
  .nav a { flex: 1; min-height: 44px; display: flex; justify-content: center; align-items: center; padding: 8px 4px; font-size: 13px; }
  .langs button { min-width: 29px; min-height: 36px; padding: 6px; }
  .stock-landing { padding-top: 12px; }
  .stock-mast { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 21px; }
  .mast-copy { padding: 23px 21px 22px; }
  .mast-copy h1 { font-size: clamp(32px, 9vw, 43px); max-width: 16ch; line-height: 1.06; }
  .mast-copy p:not(.eyebrow) { margin: 11px 0 15px; font-size: 14px; line-height: 1.48; }
  .stock-mast .eyebrow { font-size: 11px; margin-bottom: 9px; }
  .mast-actions { gap: 8px 11px; }
  .mast-browse { padding: 10px 17px; }
  .mast-fact { font-size: 12px; }
  .mast-media { height: clamp(154px, 45vw, 210px); min-height: 0; border-left: 0; border-top: 3px solid var(--accent); }
  .mast-label { font-size: 10px; bottom: 10px; right: 10px; }
  .filter-panel, .filter-panel:not(.is-open), .filter-panel.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 8px; border-radius: 16px; margin-top: 10px; }
  .filter-panel .search-wrap { grid-column: 1 / -1; order: 0; }
  .filter-panel .mobile-filter-toggle { display: flex; grid-column: 1; order: 1; width: 100%; min-height: 46px; margin: 0; padding: 9px 11px; justify-content: space-between; color: var(--ink); }
  .filter-toggle-chevron { transition: transform .15s; }
  .mobile-filter-toggle[aria-expanded="true"] .filter-toggle-chevron { transform: rotate(180deg); }
  .filter-panel .sort-control { grid-column: 2; order: 2; display: block; font-size: 13px; }
  .filter-panel #make, .filter-panel #fuel { order: 3; min-width: 0; font-size: 13px; }
  .filter-panel #resetFilters { grid-column: 1/-1; order: 4; width: 100%; }
  .filter-panel:not(.is-open) #make, .filter-panel:not(.is-open) #fuel, .filter-panel:not(.is-open) #resetFilters { display: none; }
  .search-wrap input { font-size: 16px; }
  .stock-section { padding: 19px 0 36px; }
  .section-head h2 { font-size: 30px; }
  .section-head .eyebrow { font-size: 11px; }
  .cars, .cars.is-single, .cars.is-pair { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .car-card { border-radius: 18px; }
  .card-media { aspect-ratio: 1.48; }
  .card-body { padding: 17px; }
  .card-top { align-items: flex-start; }
  .car-name { font-size: 23px; }
  .price { font-size: 22px; }
  .card-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-arrow { width: 44px; height: 44px; opacity: 1; }
  .card-link { width: 100%; }
  .brand-section { padding-bottom: 30px; }
  .brand-panel, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-panel { border-radius: 21px; }
  .brand-copy { padding: 25px 21px; }
  .principles, .brand-panel.is-text-only .principles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 17px; }
  .brand-photo { height: 205px; border-left: 0; border-top: 3px solid var(--accent); }
  .contact-box { padding: 22px; }
  .contact-actions .btn { width: 100%; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 0; }
  .detail-page { padding-top: 12px; }
  .detail-titlebar h1 { font-size: clamp(32px, 9vw, 44px); }
  .detail-aside { padding: 17px; }
  .gallery-primary { aspect-ratio: 4/3; border-radius: 15px; }
  .gallery-mosaic, .gallery-mosaic.is-single { aspect-ratio: auto; max-height: none; }
  .gallery-mosaic.is-single .gallery-primary { border-radius: 15px; }
  .g-arrow { width: 42px; height: 42px; }
  .view-all { font-size: 11px; padding: 9px 12px; }
  .content-card { padding: 19px; }
  .lb-icon, .lb-arrow { min-width: 44px; min-height: 44px; }
  .detail-page { padding-bottom: calc(110px + env(safe-area-inset-bottom,0px)); }
  .mobile-cta { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .mobile-cta .btn { min-width: 0; min-height: 52px; font-size: 12px; padding: 7px 5px; flex-direction: column; gap: 4px; }
  .mobile-cta .btn .ui-icon { width: 18px; height: 18px; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 20px); }
  .head { gap: 0 6px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 9px; }
  .mast-copy { padding: 20px 17px; }
  .mast-actions { gap: 8px; }
  .mast-browse { padding-inline: 13px; }
  .mast-fact { font-size: 11px; }
  .card-body { padding: 15px; }
}

/* Stock is the first meaningful content on a phone, not a repeated hero photo. */
@media (max-width: 760px) {
  :root { --header-height: 96px; }
  .head { min-height: 0; height: auto; grid-template-rows: 48px 44px; }
  .head .brand { min-width: 0; }
  .brand-symbol { width: 34px; height: 34px; }
  .langs { padding: 0; }
  .langs button { min-width: 38px; min-height: 44px; font-size: 12px; }
  .nav a { font-size: 14px; }
  .stock-landing { padding-top: 10px; }
  .stock-mast { border-radius: 17px; box-shadow: none; }
  .mast-copy { padding: 16px 18px; }
  .stock-mast .eyebrow { margin-bottom: 6px; }
  .mast-copy h1 { font-size: clamp(26px, 7vw, 34px); max-width: none; line-height: 1.14; text-wrap: initial; }
  .mast-copy p:not(.eyebrow) { font-size: 14px; margin: 7px 0 0; line-height: 1.45; }
  .mast-media, .mast-actions { display: none; }
  .filter-panel, .filter-panel:not(.is-open), .filter-panel.is-open { margin-top: 8px; gap: 6px; padding: 7px; }
  .filter-panel .sort-control, .filter-panel #make, .filter-panel #fuel { font-size: 16px; }
  .stock-section { padding-top: 15px; }
  .section-head { margin-bottom: 10px; gap: 8px; }
  .section-head .eyebrow, .section-head p:not(.eyebrow) { display: none; }
  .section-head h2 { font-size: 25px; }
  .count-pill { font-size: 12px; }
  .card-media { aspect-ratio: 1.55; }
  .card-body { padding: 14px; }
  .card-meta { margin-top: 12px; padding-top: 11px; }
  .card-link { margin-top: 12px; }
  .detail-page { padding-top: 8px; }
  .detail-titlebar { gap: 8px; margin-bottom: 10px; }
  .detail-titlebar h1 { font-size: clamp(28px, 8vw, 39px); }
  .detail-price-large { font-size: clamp(25px, 7vw, 33px); }
  .back { margin-bottom: 5px; }
  .g-arrow { width: 44px; height: 44px; }
  .gallery-primary img { object-fit: contain; }
  .trust-item { font-size: 14px; }
  .mobile-cta .btn { font-size: 13px; }
}
.description-language { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
