/*
Theme Name: Automobilzentrum Rhein-Neckar
Theme URI: https://autozrn.de
Author: Automobilzentrum Rhein-Neckar
Author URI: https://autozrn.de
Description: Helles, cleanes und modernes WordPress Theme fuer exklusive Fahrzeuge.
Version: 3.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autozrn
Tags: automotive, clean, modern, luxury, light
*/

:root {
  --bg: #f7f8fa;
  --bg-2: #ffffff;
  --bg-3: #eef2f5;
  --text: #12161c;
  --muted: #6e7782;
  --line: rgba(18,22,28,.10);
  --line-strong: rgba(18,22,28,.18);
  --accent: #111827;
  --accent-soft: #e9eef3;
  --shadow: 0 24px 70px rgba(16,24,40,.08);
  --shadow-soft: 0 12px 30px rgba(16,24,40,.05);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1360px;
  --header-h: 84px;
  --section: clamp(72px, 8vw, 126px);
  --font-ui: 'Roboto', Arial, sans-serif;
  --ease: 280ms cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: linear-gradient(180deg, #fafbfc 0%, #f4f7fa 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea { font: inherit; }
::selection { background: #dce5ee; color: var(--text); }

.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.section-pad { padding: var(--section) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #4d5560;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: #b8c2cc; }
h1, h2, h3, h4, h5, h6 { margin: 0; letter-spacing: -.03em; line-height: 1.02; font-weight: 700; }
p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-size: .94rem;
  font-weight: 600;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-2px); border-color: rgba(17,24,39,.3); box-shadow: 0 16px 36px rgba(16,24,40,.10); }
.btn--primary { background: #12161c; color: #fff; border-color: #12161c; box-shadow: 0 18px 36px rgba(17,24,39,.18); }
.btn--primary:hover { background: #1b2129; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }


#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  width: min(calc(100% - 24px), var(--max)); height: var(--header-h); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 0 22px; border-radius: 22px; border: 1px solid transparent;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
#site-header.scrolled { background: rgba(255,255,255,.92); border-color: var(--line); box-shadow: var(--shadow-soft); }
.header-logo { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.header-logo img, .custom-logo { max-height: 46px; width: auto; }
.logo-text { font-size: .95rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.lang-switch a.active, .lang-switch a:hover { color: var(--text); }
.hamburger {
  width: 50px; height: 50px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 14px; cursor: pointer;
}
.hamburger span { display: block; width: 100%; height: 2px; border-radius: 99px; background: var(--text); transition: transform var(--ease), opacity var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#nav-overlay {
  position: fixed; inset: 0; z-index: 999; background: rgba(245,247,250,.88); backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none; transition: opacity var(--ease);
}
#nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-inner {
  width: min(calc(100% - 32px), 1120px); min-height: min(82vh, 860px); margin: 110px auto 24px;
  border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px,4vw,48px);
  background: rgba(255,255,255,.96); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px;
}
#nav-overlay nav, #nav-overlay nav ul { display: flex; flex-direction: column; gap: 10px; }
#nav-overlay nav a {
  display: block; padding: 16px 18px; border-radius: 18px; font-size: clamp(1.2rem,2vw,2rem); font-weight: 700;
  transition: transform var(--ease), background var(--ease);
}
#nav-overlay nav a:hover { background: var(--accent-soft); transform: translateX(6px); }
.nav-contact { display: grid; gap: 16px; align-content: start; }
.nav-contact-item { padding: 22px; border-radius: 22px; background: #11161d; border: 1px solid rgba(255,255,255,.08); }
.nav-contact-item .label { margin-bottom: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.56); }
.nav-contact-item p, .nav-contact-item a { color: rgba(255,255,255,.82); line-height: 1.7; }
.nav-contact-item a:hover { color: var(--text); }

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 42px; overflow: clip;
}
.hero-media-layer { position: absolute; inset: 0; z-index: 0; }
.hero-video-wrap, .hero-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-video-wrap iframe { transform: scale(1.25); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,248,250,.52) 0%, rgba(247,248,250,.68) 45%, rgba(247,248,250,.96) 100%),
              radial-gradient(circle at 20% 18%, rgba(255,255,255,.72), transparent 28%),
              radial-gradient(circle at 78% 22%, rgba(230,236,242,.78), transparent 22%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 6.4rem); max-width: 900px; }
.hero-copy p { margin-top: 24px; max-width: 720px; font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.75; color: #374151; }
.hero-card { background: rgba(255,255,255,.78); border: 1px solid rgba(17,24,39,.08); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.hero-card span { display: block; margin-bottom: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #596675; }
.hero-card p { color: #435060; line-height: 1.8; }
.hero-stats { position: relative; z-index: 2; margin-top: 26px; }
.hero-stats-inner {
  width: min(calc(100% - 32px), var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.stat-item { padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.82); box-shadow: var(--shadow-soft); }
.stat-num { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; }
.stat-label { margin-top: 6px; font-size: .9rem; color: var(--muted); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(2rem,4vw,3.5rem); max-width: 780px; }
.section-head p { max-width: 520px; color: var(--muted); line-height: 1.8; }

.intro-grid, .about-grid, .contact-grid, .split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px,3vw,34px);
}
.card p { color: #465262; line-height: 1.85; }
.image-card { overflow: hidden; padding: 0; }
.image-card img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.full-image { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.full-image img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card {
  position: relative; min-height: 320px; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  background: #fff;
}
.brand-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.brand-card:hover img { transform: scale(1.05); }
.brand-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(14,18,24,.12) 55%, rgba(14,18,24,.76) 100%);
}
.brand-card-content { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; }
.brand-card-content h3 { font-size: 1.45rem; margin-bottom: 8px; }
.brand-card-content p { font-size: .96rem; line-height: 1.6; color: rgba(255,255,255,.9); }

.text-fill { font-size: clamp(2rem,4.4vw,4rem); line-height: 1.15; letter-spacing: -.04em; max-width: 1100px; color: #bcc6d1; }
.text-fill span { transition: color .35s ease; }
.text-fill span.is-on { color: var(--text); }

.feature-list { display: grid; gap: 14px; }
.feature-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.feature-item-number { font-size: 1.6rem; font-weight: 700; color: #98a4b2; }
.feature-item h3 { font-size: 1.5rem; margin-bottom: 8px; }
.feature-item p { color: var(--muted); line-height: 1.8; }

.showroom-banner { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.showroom-banner img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.showroom-banner .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(18,22,28,.56)); }
.showroom-banner .content { position: absolute; left: 28px; right: 28px; bottom: 28px; color: #fff; }
.showroom-banner .content h2 { font-size: clamp(2rem,4vw,3.5rem); max-width: 760px; }
.showroom-banner .content p { max-width: 760px; margin-top: 14px; line-height: 1.75; color: rgba(255,255,255,.92); }

.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.metric { padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); text-align: center; }
.metric-value { font-size: clamp(2rem,4vw,3.5rem); font-weight: 700; }
.metric-label { margin-top: 8px; color: var(--muted); }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.6); }
.marquee-track { display: flex; gap: 22px; width: max-content; padding: 18px 0; animation: marquee 28s linear infinite; }
.marquee-track span { font-size: clamp(1.3rem,3vw,2.3rem); font-weight: 700; letter-spacing: -.03em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.contact-cta {
  padding: clamp(28px,4vw,40px); background: linear-gradient(180deg,#ffffff,#f8fafc); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.contact-cta h2 { font-size: clamp(2rem,4vw,3.6rem); margin-bottom: 16px; }
.contact-cta p { max-width: 760px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }

.map-frame { overflow: hidden; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 480px; background: #fff; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }
.contact-card { height: 100%; }
.contact-card h3 { font-size: 1.6rem; margin-bottom: 18px; }
.contact-card p, .contact-card a { color: var(--muted); line-height: 1.9; }
.contact-card strong { color: var(--text); }
.contact-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

#contact-strip { padding: 0 0 28px; }
.contact-strip-inner {
  width: min(calc(100% - 32px), var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.contact-block { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); padding: 24px; }
.contact-block-title { margin-bottom: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #5c6775; }
.contact-block address, .contact-block a { font-style: normal; color: var(--muted); line-height: 1.8; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a:hover { color: var(--text); }

#site-footer { padding: 0 0 28px; }
.footer-inner {
  width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 22px 0 0;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; border-top: 1px solid var(--line);
}
.footer-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-logo img { max-height: 38px; width: auto; }
.footer-copy { color: var(--muted); font-size: .94rem; }
.footer-legal { display: flex; gap: 18px; color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

.page-shell { padding-top: 118px; }
.page-hero { padding: 42px 0 14px; }
.page-hero h1 { font-size: clamp(2.3rem,5vw,4.8rem); }
.page-lead { margin-top: 18px; max-width: 820px; font-size: 1.08rem; line-height: 1.8; color: var(--muted); }
.page-content { max-width: 980px; color: #465262; line-height: 1.95; font-size: 1rem; }

@media (max-width: 1100px) {
  .hero-grid, .intro-grid, .about-grid, .contact-grid, .split-grid, .nav-inner, .section-head, .footer-inner { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 800px) {
  :root { --header-h: 74px; }
  #site-header { width: calc(100% - 20px); margin-top: 10px; padding: 0 12px 0 14px; }
  .logo-text { display: none; }
  .hero { min-height: auto; padding: 128px 0 32px; }
  .hero-video-wrap iframe { transform: scale(1.9); }
  .hero-stats-inner, .metrics, .contact-strip-inner, .contact-grid-2 { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .feature-item { grid-template-columns: 56px 1fr; }
  .nav-inner { margin-top: 96px; }
}


/* v3.1 header, mobile hero, partners */
#site-header {
  background: rgba(7,10,14,.92);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
  width: min(calc(100% - 24px), 1440px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  padding: 0 22px;
}
#site-header.scrolled { background: rgba(7,10,14,.97); border-color: rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.26); }
.header-side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header-side--right { justify-content: flex-end; }
.header-mini-link { color: rgba(255,255,255,.78); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.header-mini-link:hover, .lang-switch a:hover, .lang-switch a.active { color: #fff; }
.header-logo--center { justify-self: center; gap: 0; }
.header-logo--center img { max-height: 54px; width: auto; }
.logo-text { display: none; }
.lang-switch { color: rgba(255,255,255,.72); }
.hamburger { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.hamburger span { background: #fff; }
#nav-overlay { background: rgba(4,6,10,.82); }
.nav-inner {
  background: linear-gradient(180deg, rgba(11,14,18,.98), rgba(19,23,29,.98));
  border-color: rgba(255,255,255,.08);
  color: #fff;
}
#nav-overlay nav a {
  background: transparent;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.06);
}
#nav-overlay nav a:hover { background: rgba(255,255,255,.06); transform: translateX(6px); }
.nav-contact-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
}
.nav-contact-item .label { color: rgba(255,255,255,.58); }
.nav-contact-item a { color: #fff; }
.nav-contact-brand { display:flex; align-items:center; justify-content:center; min-height:120px; }
.nav-contact-brand img { max-width: 100%; max-height: 52px; object-fit: contain; }
.hero-mobile-poster {
  position:absolute; inset:0; display:none; background-size:cover; background-position:center; background-repeat:no-repeat;
}
.section-dark {
  background: linear-gradient(180deg, #0b0f14 0%, #141a22 100%);
  color: #fff;
}
.logos-section { padding: 28px 0; }
.logos-panel {
  display:grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items:center; padding: 34px;
  border-radius: 32px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
}
.eyebrow--dark { color: rgba(255,255,255,.74); }
.eyebrow--dark::before { background: rgba(255,255,255,.28); }
.logos-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 14px; }
.logos-copy p { color: rgba(255,255,255,.72); line-height: 1.8; }
.logo-ribbon-main { max-width: 360px; width: 100%; opacity: .98; margin-bottom: 24px; }
.logo-ribbon-brands { display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logo-chip {
  min-height: 92px; display:flex; align-items:center; justify-content:center; padding: 16px;
  border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.logo-chip img { max-width: 100%; max-height: 42px; object-fit: contain; opacity: .96; }
.partner-banner {
  display:grid; grid-template-columns: .92fr 1.08fr; gap: 24px; align-items:center; padding: 26px;
  border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(180deg,#ffffff 0%,#f7fafc 100%); box-shadow: var(--shadow);
}
.partner-banner img { width: 100%; border-radius: 22px; object-fit: cover; }
.partner-banner-copy h2 { font-size: clamp(2rem,4vw,3.3rem); margin-bottom: 14px; }
.partner-banner-copy p { color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.partner-cta { pointer-events:none; }
.footer-logo img { max-height: 38px; width:auto; }
@media (max-width: 980px) {
  #site-header { grid-template-columns: auto 1fr auto; }
  .header-side--left .desktop-only { display:none; }
  .header-logo--center { justify-self: start; margin-left: 4px; }
  .header-logo--center img { max-height: 42px; }
  .logos-panel, .partner-banner { grid-template-columns: 1fr; }
  .logo-ribbon-brands { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .hero-video-wrap { display:none; }
  .hero-mobile-poster { display:block; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,.56) 0%, rgba(244,247,250,.78) 55%, rgba(244,247,250,.98) 100%); }
  .hero { min-height: auto; padding: 132px 0 34px; }
  #site-header { width: calc(100% - 16px); padding: 0 12px; gap: 10px; }
  .header-mini-link { display:none; }
  .lang-switch { display:none; }
  .logo-ribbon-brands { grid-template-columns: repeat(2, 1fr); }
  .partner-banner { padding: 18px; }
}


.omid-grid { align-items: center; }
.omid-image-link { position: relative; }
.omid-image-link img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--ease), filter var(--ease); }
.omid-image-link:hover img { transform: scale(1.02); filter: saturate(1.05); }
.omid-copy p + p { margin-top: 16px; }
