/* ================================================
   CSS RESET & BASE STYLES FOR LUXURY PREMIUM DESIGN
   ElektroVision – Zukunft der Mobilität
   ------------------------------------------------
   Font imports and fallback settings
   ================================================ */
@import url('https://fonts.googleapis.com/css?family=Exo:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --color-primary: #1A2E42;
  --color-secondary: #53A563;
  --color-accent: #F5F7FA;
  --color-background: #FAFBFD;
  --color-gold: #C7A148; /* luxury gold accent */
  --color-light-gold: #E6D2A9;
  --color-grey: #D9DDE0;
  --color-dark: #10121a;
  --color-white: #fff;
  --color-black: #000;
  --color-error: #D9534F;

  --font-display: 'Exo', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ------------------------------------------------
   CSS Reset (normalize)
-------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-background);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
ul, ol {
  padding: 0;
  margin: 0 0 20px 0;
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px 0;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p {
  margin-top: 0;
  margin-bottom: 16px;
}
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: var(--color-gold);
  text-decoration: underline;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* ================================================
   LAYOUT & LUXURY SPACING
=============================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(26,46,66,0.06);
  /* luxury subtle shadow */
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}

@media (min-width: 769px) {
  .content-wrapper {
    gap: 40px;
    justify-content: space-between;
  }
}

/* Feature/Benefit Flex Containers */
.feature-grid, .icon-grid, .feature-icons, .benefit-icons, .eco-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 24px;
}
.logo-grid, .partner-logos, .collaboration-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .feature-grid, .icon-grid, .feature-icons, .benefit-icons, .eco-icons {
    gap: 18px;
    justify-content: center;
  }
  .logo-grid, .partner-logos, .collaboration-logos {
    justify-content: center;
    gap: 12px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(26,46,66,.07);
  position: relative;
  padding: 28px 22px;
  transition: box-shadow .2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px 0 rgba(199,161,72,0.15), 0 2px 12px rgba(26,46,66,.10);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  background: var(--color-accent);
  border-left: 4px solid var(--color-gold);
  border-radius: 13px;
  box-shadow: 0 1px 8px 0 rgba(26,46,66,0.07);
  transition: box-shadow .20s;
  color: var(--color-primary);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-gold);
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(199,161,72,0.13);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ================================================
   NAVIGATION (DESKTOP & MOBILE NAV)
=============================================== */
header {
  background: var(--color-white);
  box-shadow: 0 3px 24px rgba(26,46,66,.035);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--color-primary);
  padding: 5px 0 3px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom .2s, color .2s;
  letter-spacing: .01em;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
header .btn-primary {
  margin-left: 20px;
}

/* ------------ MOBILE NAV STYLES ------------- */
.mobile-menu-toggle {
  display: flex;
  font-size: 2rem;
  color: var(--color-gold);
  background: none;
  border: none;
  padding: 8px 10px;
  margin-left: 0;
  cursor: pointer;
  align-items: center;
  z-index: 1600;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(26,46,66,0.97);
  color: var(--color-gold);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.55,0,.31,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin: 18px 0 22px 28px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-light-gold);
  cursor: pointer;
  align-self: flex-start;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 0 0 36px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 1.32rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  letter-spacing: 0.01em;
  transition: color .22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-gold);
}

@media (min-width: 1000px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 999px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ============== CTA BUTTONS =============== */
.btn, .btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  text-align: center;
  padding: 12px 36px;
  border-radius: 25px;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(26,46,66,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-gold);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 8px 28px rgba(199,161,72,0.19);
}
.btn-secondary {
  background: var(--color-accent);
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 8px 28px rgba(199,161,72,0.14);
}
.btn:active {
  transform: scale(0.97);
}

/* ------------------------------------------
   HERO SECTIONS, HEADERS, SUBHEADLINE
------------------------------------------ */
.hero, .thank-you-section {
  background: linear-gradient(100deg, var(--color-white) 80%, var(--color-gold) 100%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 6px 38px -8px rgba(199,161,72,0.07);
  padding: 52px 0 48px 0;
}
.hero h1 {
  font-size: 2.8rem;
  letter-spacing: .05em;
  margin-bottom: 13px;
  color: var(--color-primary);
}
.hero .subheadline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 30px;
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .hero, .thank-you-section {
    padding: 34px 0 24px 0;
    border-radius: 0 0 22px 22px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
}

/* ============== TABLES ================= */
.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 12px 0;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-accent);
  border-radius: 13px;
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-grey);
}
.comparison-table th {
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-display);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ============== BLOG CARDS =============== */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-grid article {
  background: var(--color-accent);
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(26,46,66,0.07);
  padding: 24px 20px 18px 20px;
  flex: 1 1 250px;
  min-width: 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.blog-grid article:hover {
  box-shadow: 0 8px 36px 0 rgba(199,161,72,0.16);
}
.category-filters {
  display: flex;
  gap: 20px;
  margin: 18px 0 28px 0;
  flex-wrap: wrap;
}
.category-filters span {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-accent);
  padding: 6px 20px;
  border-radius: 40px;
  border: 1px solid var(--color-gold);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.category-filters span:hover, .category-filters span:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}

.highlighted-posts article {
  border: 2px solid var(--color-gold);
  background: var(--color-white);
  box-shadow: 0 5px 32px 0 rgba(199,161,72,0.09);
}

/* ============== CONTACT SECTION =============== */
.contact-info, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-primary);
  font-size: 1.06rem;
  margin-bottom: 20px;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  font-weight: 500;
}

@media (min-width: 600px) {
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* Map placeholder for location section */
.map-placeholder {
  background: var(--color-grey);
  color: var(--color-primary);
  font-size: 1.03rem;
  border-radius: 10px;
  padding: 18px;
  margin-top: 10px;
}

/* ================= FOOTER ==================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 38px 0 20px 0;
  border-radius: 24px 24px 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--color-light-gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-gold);
}
.footer-contact {
  text-align: center;
  font-size: 0.97rem;
  color: var(--color-grey);
  font-family: var(--font-body);
  font-weight: 400;
  gap: 6px;
}

/* ============== PRIVACY/TERMS SECTIONS ============= */
.text-section {
  background: var(--color-white);
  border-radius: 12px;
  padding: 34px 22px 22px 22px;
  margin: 0 auto 0 auto;
  color: var(--color-primary);
  box-shadow: 0 1px 7px 0 rgba(26,46,66,0.04);
}

/* ================================================
   MISCELLANEOUS COMPONENTS & UTILITY CLASSES
=============================================== */
ul.rd-highlights, ul.pros-list, ul.sustainability-facts, .quick-facts ul, .impact-stats ul {
  margin: 0 0 18px 0;
  font-size: 1.08rem;
  color: var(--color-primary);
  font-weight: 500;
  padding-left: 18px;
}
ul li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}
ul li:before {
  content: '\2022';
  color: var(--color-gold);
  position: absolute;
  left: 0;
  font-size: 1.22em;
  top: 0.08em;
}

/**** Infographic blocks (Sustainability) ****/
.infographic-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 0 0;
}
.infographic-blocks > div {
  background: var(--color-light-gold);
  color: var(--color-primary);
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(199,161,72,0.09);
  padding: 18px 16px 16px 16px;
  min-width: 170px;
  flex: 1 1 200px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.infographic-blocks h3 {
  color: var(--color-primary);
  margin-bottom: 7px;
}

/* ============= AUTHOR/NEWSLETTER ============ */
.author-section, .newsletter-signup {
  background: var(--color-accent);
  border-radius: 13px;
  padding: 16px 22px;
  margin-bottom: 12px;
  box-shadow: 0 1px 8px 0 rgba(26,46,66,0.05);
}

/**** Cookie consent banner & modal ****/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 -2px 16px 0 rgba(26,46,66,0.15);
  padding: 26px 24px 20px 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: slideUpCookie 0.48s cubic-bezier(.35,.8,.49,1.5);
}
@keyframes slideUpCookie {
  from { transform: translateY(120%); opacity: 0.1; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-btns {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 20px;
  border: 2px solid var(--color-gold);
  padding: 8px 24px;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-primary);
  margin-right: 12px;
  margin-bottom: 6px;
  transition: background .2s, color .2s;
}
.cookie-btn.accept {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-gold);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-gold);
}
.cookie-btn.reject {
  background: var(--color-white);
  color: var(--color-error);
  border-color: var(--color-error);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-gold);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-error);
  color: var(--color-white);
}

.cookie-modal-backdrop {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,46,66,0.54);
  z-index: 3200;
  align-items: center; justify-content: center;
}
.cookie-modal-backdrop.active {
  display: flex;
  animation: fadeInBackdrop 0.25s;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 16px;
  padding: 38px 24px 28px 24px;
  max-width: 450px;
  width: 95vw;
  box-shadow: 0 4px 32px rgba(26,46,66,0.23);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 3300;
  animation: modalSlideIn .34s cubic-bezier(.51,.99,.53,1.24);
}
@keyframes modalSlideIn {
  from { transform: translateY(40px); opacity: 0.08; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--color-grey);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background .22s;
  flex-shrink: 0;
}
.cookie-toggle.enabled {
  background: var(--color-gold);
}
.cookie-toggle-knob {
  position: absolute;
  left: 3px; top: 2px;
  width: 21px; height: 20px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(26,46,66,0.12);
  transition: left .21s;
}
.cookie-toggle.enabled .cookie-toggle-knob {
  left: 20px;
}
.cookie-modal-footer {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  padding: 8px 24px;
  border-radius: 18px;
  cursor: pointer;
  background: var(--color-gold);
  color: var(--color-primary);
  transition: background .19s, color .19s;
}
.cookie-modal-btn.close {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-gold);
}
.cookie-modal-btn:hover, .cookie-modal-btn:focus {
  background: var(--color-primary);
  color: var(--color-gold);
}

/**** END Cookie styles ****/

/* ======== RESPONSIVE TEXT & LAYOUT ======== */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 999px) {
  .container { max-width: 740px; }
  .feature-grid, .blog-grid, .infographic-blocks, .card-container, .content-grid {
    gap: 16px !important;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .section {
    padding: 26px 7px;
    margin-bottom: 34px;
    border-radius: 12px;
  }
  .footer-nav, .feature-grid, .logo-grid, .blog-grid, .icon-grid, .infographic-blocks, .category-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .footer-nav {
    gap: 11px;
    margin-bottom: 10px;
  }
}

/* ========= MICRO-INTERACTIONS ========== */

/* Card ripple effect (hover highlight) */
.card, .testimonial-card, .blog-grid article {
  position: relative;
  overflow: hidden;
}
.card::before, .testimonial-card::before, .blog-grid article::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(199,161,72,0.07);
  border-radius: 100%;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease;
  z-index: 0;
}
.card:hover::before, .testimonial-card:hover::before, .blog-grid article:hover::before {
  width: 260%;
  height: 160%;
}

/* Subtle image hover */
img:hover, img:focus {
  filter: brightness(0.93) drop-shadow(0 2px 7px rgba(199,161,72,0.06));
  transition: filter .20s;
}

/* Remove double tap highlight on iOS */
.btn, .btn-primary, .btn-secondary, .cookie-btn, .cookie-modal-btn {
  -webkit-tap-highlight-color: transparent;
}

/* ==== LUXURY GOLD EFFECT FOR ICONS ==== */
.feature img, .icon-grid img, .feature-icons img, .benefit-icons img, .eco-icons img {
  height: 46px;
  width: auto;
  filter: grayscale(0.04) drop-shadow(0 1px 2px rgba(199,161,72,0.07));
  border-radius: 7px;
  background: linear-gradient(120deg, var(--color-gold) 12%, transparent 92%);
  padding: 7px;
}

/* Table scroll on mobile */
@media (max-width: 600px) {
  .comparison-table table, .comparison-table th, .comparison-table td {
    font-size: 0.95rem;
  }
}

/* MODALS: Overlay stacking */
@media (max-width: 450px) {
  .cookie-modal {
    max-width: 95vw;
    padding: 22px 2.5vw 20px 2.5vw;
  }
}

/* Accessibility and focus styles */
:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === Special thank you/confirmation === */
.thank-you-section {
  background: linear-gradient(100deg, var(--color-white) 80%, var(--color-light-gold) 100%);
  box-shadow: 0 6px 38px -8px rgba(199,161,72,0.08);
}

/**** END OF CSS ****/
