/* ===============================
   CSS RESET & BASE TYPOGRAPHY
=============================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #f5f5f5;
  color: #212A34;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  vertical-align: middle;
}
a {
  color: #212A34;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus { outline: 2px solid #E94525; }
ul, ol { list-style-position: inside; }

/* ===============================
   COLOR SCHEME & BRAND VARIABLES
=============================== */
:root {
  --color-bg: #f5f5f5;
  --color-text: #212A34;
  --color-bg-sec: #fff;
  --color-dark: #000;
  --color-gray: #B0B6BC;
  --color-light-gray: #f0f0f0;
  --color-border: #E1E3E8;
  --color-primary: #212A34;
  --color-secondary: #E94525;
  --color-accent: #f5f5f5;
  --color-focus: #E94525;
  --transition: 0.2s cubic-bezier(.57,.21,.69,1.25);
}

/* ===============================
   TYPOGRAPHY & SCALE
=============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  color: #111;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
h1 { font-size: 2.6rem; margin-bottom: 26px; }
h2 { font-size: 1.8rem; margin-bottom: 22px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; font-weight: 600; }
h4 { font-size: 1rem; }
p, ul, ol { font-size: 1rem; margin-bottom: 18px; color: #212A34; }
strong { font-weight: 700; color: #111; }
.subheadline {
  font-size: 1.15rem;
  color: #494949;
  font-weight: 400;
  margin-bottom: 32px;
}
.category-tag {
  font-size: 0.85rem;
  padding: 3px 11px;
  border-radius: 16px;
  background: #ebebeb;
  color: #444;
  font-family: 'Roboto', sans-serif;
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
blockquote {
  font-style: italic;
  color: #111;
  border-left: 4px solid #E94525;
  background: #f5f5f5;
  padding: 12px 24px 12px 22px;
  margin-bottom: 10px;
}

/* ===============================
   GENERAL LAYOUT & CONTAINERS
=============================== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-sec);
  border-radius: 18px;
  box-shadow: 0 3px 24px 0 rgba(39,39,39,0.07);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===============================
   HEADER & MAIN-NAV
=============================== */
header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  width: 100%;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  padding: 0 20px;
  height: 90px;
  gap: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}
.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #212A34;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:active {
  background: #212A34;
  color: #fff;
}
.cta-button {
  display: inline-block;
  background: #212A34;
  color: #fff;
  padding: 11px 34px;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: 11px;
  margin-left: 30px;
  box-shadow: 0 2px 12px 0 rgba(33,42,52,0.12);
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 10;
}
.cta-button:hover,
.cta-button:focus {
  background: #E94525;
  color: #fff;
  box-shadow: 0 3px 18px 0 rgba(233,69,37,0.17);
  outline: none;
}

/* ===============================
   HAMBURGER & MOBILE NAV
=============================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 25px;
  right: 26px;
  z-index: 131;
  background: #fff;
  border: none;
  color: #212A34;
  font-size: 2.1rem;
  border-radius: 7px;
  width: 48px;
  height: 48px;
  box-shadow: 0 3px 16px 0 rgba(60,60,60,0.09);
  transition: background 0.18s, color 0.2s;
  cursor: pointer;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #E94525;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  z-index: 129;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 26px 0 rgba(30,34,42,0.16);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.5,.77,.3,1.01), opacity 0.28s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 23px 28px 10px 0;
  background: none;
  border: none;
  color: #212A34;
  font-size: 2rem;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 24px 32px 0 42px;
}
.mobile-nav a {
  color: #111;
  font-size: 1.25rem;
  font-family: 'Oswald', Arial, sans-serif;
  padding: 9px 0;
  border-radius: 6px;
  transition: background 0.22s;
  font-weight: 500;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E94525;
  color: #fff;
  padding-left: 13px;
}
/* Hide main-nav and show burger on mobile */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  header .cta-button { display: none; }
}
@media (max-width: 768px) {
  header .container {
    height: 60px;
    padding: 0 10px;
  }
  .container {
    padding: 0 9px;
  }
}

/* ===============================
   HERO SECTION
=============================== */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: #fff;
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 44px;
  justify-content: center;
  padding: 50px 0 40px 0;
}
.hero .container {
  align-items: flex-start;
}
.hero h1 { color: #181818; text-shadow: 0 2px 9px rgba(0,0,0,0.06); }
.hero .cta-button {
  margin-left: 0;
  margin-top: 22px;
}

/* ===============================
   FLEXBOX PATTERNS & CARDS
=============================== */
.feature-grid, .tips-grid, .test-overview-grid, .drive-reports-grid, .story-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 15px;
}
.article-teaser {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px 0 rgba(30, 30, 30, 0.07);
  padding: 34px 22px 25px 24px;
  min-width: 260px;
  flex: 1 1 280px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 8px;
  border: 1px solid #ECECEC;
  transition: box-shadow 0.19s, border 0.22s;
}
.article-teaser:hover {
  box-shadow: 0 6px 32px rgba(33,42,52,0.11);
  border: 1.5px solid #111;
}
.article-teaser a {
  font-family: 'Oswald', sans-serif;
  color: #E94525;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 8px;
  align-self: flex-start;
  border-bottom: 1px solid #E94525;
  padding-bottom: 2px;
  transition: color 0.19s, border 0.19s;
}
.article-teaser a:hover { color: #212A34; border-bottom: 1.5px solid #212A34; }

/* Card container patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  box-shadow: 0 2px 12px 0 rgba(56,56,62,0.09);
  min-width: 240px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.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;
}

/* Feature/Tip/Story/Review Items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 22px 0 rgba(46,46,46,0.08);
  padding: 30px 22px 25px 22px;
  min-width: 220px;
  flex: 1 1 260px;
  max-width: 330px;
  margin-bottom: 20px;
  border: 1px solid #F0F0F0;
  transition: border 0.19s, box-shadow 0.19s;
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-item h3 {
  font-size: 1.19rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #111;
}
.feature-item p {
  color: #494949;
}
.feature-item:hover {
  border: 1.3px solid #212A34;
  box-shadow: 0 8px 28px 0 rgba(33,42,52,0.13);
}

/* ===============================
   TESTIMONIAL CARDS
=============================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fafafa;
  border-radius: 13px;
  box-shadow: 0 2px 11px 0 rgba(0,0,0,0.07);
  margin-bottom: 20px;
  border-left: 4px solid #212A34;
  max-width: 650px;
  transition: box-shadow 0.13s, border 0.18s;
}
.testimonial-card blockquote {
  color: #181818;
  background: transparent;
  border-left: none;
  padding: 0;
  font-size: 1.06rem;
  margin-bottom: 0;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #494949;
  font-size: 0.96rem;
}
.testimonial-card strong {
  color: #212A34;
}
.testimonial-card:hover {
  box-shadow: 0 6px 21px 0 rgba(25,25,28,0.12);
  border-left: 4.5px solid #E94525;
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #fff;
  border-top: 1px solid #e4e4e4;
  padding: 34px 0 12px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
footer img[alt="Leipzig Drive Insider"],
footer img[alt="Leipzig Drive Insider"] + nav,
footer address, footer p {
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #686868;
  font-size: 1rem;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  padding: 7px 9px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover { background: #212A34; color: #fff; }
footer address {
  color: #212A34;
  font-size: 0.99rem;
  font-style: normal;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
footer address img {
  margin-right: 6px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
footer p {
  font-size: 0.95rem;
  color: #9B9B9B;
}

/* ===============================
   FORMS & FILTER BARS
=============================== */
.filter-bar {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin: 32px 0 28px 0;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  font-size: 1rem;
  margin-right: 5px;
}
.filter-bar select {
  font-size: 1rem;
  background: #efefef;
  color: #212A34;
  border: none;
  border-radius: 7px;
  padding: 8px 15px;
  appearance: none;
  font-family: 'Roboto', Arial, sans-serif;
  margin-right: 8px;
  box-shadow: 0 1px 4px 0 rgba(36,40,44,0.08);
  transition: border 0.18s;
}
.filter-bar select:focus {
  outline: 2px solid #E94525;
}

/* ===============================
   FAQ, ACCORDION, LISTS
=============================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-accordion h3 {
  font-size: 1.13rem;
  margin-bottom: 4px;
  color: #212A34;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px dashed #E94525;
  transition: color 0.14s, border 0.18s;
}
.faq-accordion h3:hover {
  color: #E94525;
  border-bottom: 1px solid #E94525;
}
.faq-accordion p {
  font-size: 1rem;
  margin-bottom: 9px;
  color: #494949;
}
ul, ol {
  padding-left: 28px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
}
.text-section {
  margin-bottom: 22px;
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.location-map {
  margin: 20px 0 14px 0;
}

/* ===============================
   CONFIRMATION PAGE
=============================== */
.confirmation-message {
  font-size: 1.15rem;
  color: #212A34;
  background: #fff;
  border-radius: 9px;
  padding: 22px 16px;
  margin-bottom: 29px;
  box-shadow: 0 2px 16px 0 rgba(33,42,52,0.07);
}

/* ===============================
   COOKIE CONSENT BANNER
=============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 241;
  width: 100vw;
  background: #212A34;
  color: #fff;
  padding: 25px 20px 25px 24px;
  box-shadow: 0 -2px 22px 0 rgba(0,0,0,.24);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  transition: bottom 0.35s, opacity 0.30s;
}
.cookie-banner .cookie-text {
  max-width: 720px;
  line-height: 1.5;
  color: #fafafa;
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  padding: 9px 19px;
  border-radius: 7px;
  border: none;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  background: #fff;
  color: #212A34;
  cursor: pointer;
  transition: background 0.16s, color 0.19s, box-shadow 0.19s;
}
.cookie-btn.accept {
  background: #E94525;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #000;
  border: 1px solid #e1e1e1;
}
.cookie-btn.settings {
  background: #212A34;
  color: #fff;
  border: 1.1px solid #fff;
  font-weight: 400;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #111;
  color: #fff;
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0 0 0 0;
  background: rgba(24,24,24,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  padding: 40px 24px 28px 28px;
  box-shadow: 0 6px 41px 0 rgba(33,42,52,0.18);
  min-width: 320px;
  max-width: 95vw;
  max-height: 95vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #212A34;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-popin 0.23s cubic-bezier(.53,.15,.64,1.35);
}
@keyframes cookie-popin {
  0% { transform: scale(0.82); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #212A34;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 17px;
  margin-bottom: 10px;
}
.cookie-switch {
  appearance: none;
  width: 41px;
  height: 24px;
  background: #e6e6e6;
  border-radius: 13px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #E94525;
}
.cookie-switch::before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px 0 rgba(35,34,45,0.09);
  transition: left 0.17s;
}
.cookie-switch:checked::before {
  left: 21px;
  background: #fff;
}
.cookie-modal .close {
  position: absolute;
  top: 17px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #212A34;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
}
.cookie-modal .close:hover {
  background: #e6e6e6;
}
.cookie-modal .category-label {
  font-weight: bold;
  font-size: 1.01rem;
  color: #111;
}
.cookie-modal .category-desc {
  font-size: 0.98rem;
  color: #333;
}
@media (max-width: 700px) {
  .cookie-modal {
    min-width: 78vw;
    padding: 28px 7px 22px 13px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 17px 11px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
}

/* ===============================
   RESPONSIVE DESIGN
=============================== */
@media (max-width: 1100px) {
  .feature-grid, .tips-grid, .test-overview-grid, .drive-reports-grid, .story-previews, .articles {
    gap: 16px;
  }
  .card, .article-teaser, .feature-item {
    min-width: 180px;
    max-width: 98vw;
    padding: 22px 10px 18px 12px;
  }
}
@media (max-width: 850px) {
  .feature-grid, .tips-grid, .test-overview-grid, .drive-reports-grid, .story-previews, .articles {
    flex-direction: column;
    gap: 13px;
  }
  .article-teaser, .feature-item {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .section { padding: 27px 6px; }
  .card, .feature-item, .testimonial-card, .article-teaser {
    padding: 18px 6px 14px 8px;
    margin-bottom: 16px;
    border-radius: 9px;
  }
  .feature-item,
  .article-teaser,
  .testimonial-card {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
  }
  .content-grid,
  .card-container {
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  header .container {
    height: 56px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  .section, .hero {
    padding: 12px 2px;
  }
  .footer-nav a, .main-nav a, .cta-button, .cookie-btn {
    font-size: 0.99rem;
    padding: 8px 9px;
  }
  .feature-item, .article-teaser, .testimonial-card {
    padding: 10px 2px 12px 3px;
    border-radius: 6px;
  }
}

/* ===============================
   ANIMATIONS
=============================== */
.cta-button, .feature-item, .card, .article-teaser, .testimonial-card, .cookie-btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, border 0.18s, opacity 0.2s;
}
.cta-button:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* ===============================
   MISC - ACCESSIBILITY & PRINT
=============================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .section, main { background: #fff !important; box-shadow: none !important; }
}

/* ===============================
   HIGH CONTRAST FOR CRITICAL SECTIONS
=============================== */
.testimonial-card, .testimonial-card blockquote, .testimonial-card p {
  color: #181818 !important;
  background: #fff !important;
}

/* ===============================
   CUSTOM SCROLLBAR
=============================== */
body::-webkit-scrollbar {
  width: 11px;
  background: #eee;
}
body::-webkit-scrollbar-thumb {
  background: #B0B6BC;
  border-radius: 12px;
}
