/* =====================================================
   RetroInvest Autos | Style.css
   Modern Gradient CSS Theme with Flexbox Only Layouts
   ===================================================== */

/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F8F8F6;
  color: #183153;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #183153;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus,
nav a[aria-current="page"] {
  color: #B09B71;
}
ul, ol {
  padding-left: 24px;
}


/* === BRAND COLORS === */
:root {
  --color-primary: #183153;
  --color-secondary: #B09B71;
  --color-accent: #F8F8F6;
  --color-bg-gradient: linear-gradient(135deg, #183153 0%, #376b91 100%);
  --color-bg-section: #f4f6fa;
  --color-btn-gradient: linear-gradient(90deg, #B09B71 0%, #e4c07d 100%);
  --color-shadow: rgba(24,49,83,0.08);
  --color-dark: #183153;
  --color-light: #fff;
  --color-link-hover: #B09B71;
  --color-focus: #B09B71;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, sans-serif;
  margin-bottom: 16px;
  color: #183153;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.08;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

p, li {
  font-size: 1rem;
  color: #183153;
}
strong {
  color: #183153;
}


/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.text-section {
  max-width: 710px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--color-shadow);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 35px;
    padding: 24px 10px;
    border-radius: 12px;
  }
}


/* === HEADER, NAVIGATION & LOGO === */
header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 32px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.18s;
}
.main-nav a[aria-current="page"] {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}

.cta-button {
  background: var(--color-btn-gradient);
  color: var(--color-dark);
  border: none;
  border-radius: 24px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 32px;
  margin-left: 24px;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, color 0.2s, transform 0.12s;
}
.cta-button:hover, .cta-button:focus {
  background: #B09B71;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 8px 16px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 200;
}

@media (max-width: 1024px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.73,0,.32,1);
  z-index: 1000;
  padding-top: 34px;
  padding-left: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.3rem;
  margin: 0 18px 18px 0;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Oswald', Arial, sans-serif;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 3px;
  transition: color 0.18s;
}
.mobile-nav a[aria-current="page"] {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(176,155,113,0.07);
}

@media (max-width: 540px) {
  .mobile-nav {
    padding: 0 16px;
    font-size: 1.1rem;
  }
  .mobile-menu-close {
    font-size: 2rem;
  }
}


/* === HERO SECTIONS === */
.hero-section {
  background: var(--color-bg-gradient);
  color: #fff;
  padding: 64px 0 48px 0;
}
.hero-section .container {
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  max-width: 620px;
  gap: 18px;
}
.hero-section h1,
.hero-section h2, .hero-section p {
  color: #fff;
}
.hero-section .cta-button {
  margin-top: 14px;
  background: var(--color-bg-section);
  color: var(--color-primary);
}
.hero-section .cta-button:hover, .hero-section .cta-button:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 38px 0 28px 0;
  }
  .hero-section .container {
    min-height: 180px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* === CARDS, FEATURES, FLEX LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px 0 rgba(24,49,83,0.13);
  transform: translateY(-2px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #183153;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 8px var(--color-shadow);
  position: relative;
  min-width: 220px;
  max-width: 480px;
}
.testimonial-card strong {
  color: var(--color-primary);
  margin-top: 8px;
  font-size: 1.05rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px var(--color-shadow);
}
.feature-item img {
  width: 36px;
  height: 36px;
}

/* --- feature-grid for index and angebot --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px 20px 22px;
  box-shadow: 0 1px 10px var(--color-shadow);
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.16s, transform 0.17s;
  min-width: 196px;
  max-width: 320px;
}
.feature-grid > div img {
  height: 38px;
  width: 38px;
  margin-bottom: 4px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 26px 0 rgba(24,49,83,0.13);
  transform: translateY(-1px) scale(1.024);
}

/* === CTA SECTION === */
.cta-section {
  background: var(--color-bg-gradient);
  color: #fff;
  padding: 50px 0 52px 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 2px 30px var(--color-shadow);
}
.cta-section .text-section {
  color: #fff;
}
.cta-section .cta-button {
  margin-top: 13px;
  background: #fff;
  color: var(--color-primary);
}
.cta-section .cta-button:hover, .cta-section .cta-button:focus {
  background: var(--color-secondary);
  color: #fff;
}

.cta-section h2, .cta-section p {
  color: #fff;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 28px 0 29px 0;
    border-radius: 0 0 12px 12px;
  }
}

/* === FAQ SECTION === */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}
.faq-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 17px 19px;
  flex: 1 1 340px;
  min-width: 200px;
  max-width: 470px;
}
.faq-list h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
}

/* === CONTACT LIST, MAP === */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #183153;
  font-size: 1rem;
}
.contact-list img {
  width: 21px;
  height: 21px;
}

.map-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 18px 12px;
  margin-top: 12px;
  gap: 5px;
  max-width: 340px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* === FOOTER === */
footer {
  background: #183153;
  color: #fff;
  padding-top: 28px;
  padding-bottom: 24px;
  margin-top: 40px;
  font-size: 1rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
footer .container {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.93;
  transition: color 0.18s, opacity 0.13s;
}
.footer-nav a[aria-current="page"] {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.footer-contact img {
  width: 52px;
  height: 52px;
}
.footer-contact strong {
  color: var(--color-secondary);
}

@media (max-width: 840px) {
  footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .footer-contact {
    margin-bottom: 18px;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #183153;
  box-shadow: 0 -4px 22px 0 rgba(24,49,83,0.10);
  padding: 20px 16px;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(.73,0,.32,1), opacity 0.3s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: 18px;
}
.cookie-banner .cookie-btn {
  padding: 9px 20px;
  background: var(--color-btn-gradient);
  color: #183153;
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  margin: 0 4px;
  box-shadow: 0 1px 8px var(--color-shadow);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #B09B71;
  color: #fff;
}
.cookie-banner .cookie-btn.secondary {
  background: #E6E5E2;
  color: #183153;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 10px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: row;
    gap: 12px;
    margin-left: 0;
  }
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 400px;
  background: #fff;
  color: #183153;
  box-shadow: 0 8px 36px 0 rgba(24,49,83,0.12);
  border-radius: 18px;
  transform: translate(-50%, -70%) scale(1);
  opacity: 1;
  z-index: 1700;
  padding: 27px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.22s, transform 0.22s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -75%) scale(0.94);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 13px;
  background: none;
  border: none;
  color: #183153;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .cookie-modal-close:hover {
  color: #B09B71;
}
.cookie-modal h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  color: #183153;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 15px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1rem;
  color: #183153;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #B09B71;
}
.cookie-category.essential label {
  font-weight: bold;
  color: #183153;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 9px 20px;
  border-radius: 22px;
  border: none;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.13s;
  background: var(--color-btn-gradient);
  color: #183153;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #B09B71;
  color: #fff;
}
.cookie-modal-actions button.secondary {
  background: #E6E5E2;
  color: #183153;
}

@media (max-width: 520px) {
  .cookie-modal {
    padding: 16px 6vw 18px 6vw;
    left: 2vw;
    right: 2vw;
    width: 96vw;
    min-width: 0;
    max-width: 98vw !important;
  }
}

/* === UTILITY AND MICRO-INTERACTIONS === */
[tabindex]:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #798BA3; }
::-moz-placeholder { color: #798BA3; }
:-ms-input-placeholder { color: #798BA3; }
::placeholder { color: #798BA3; }

/* --- spacing between every card/section, enforced --- */
section, .section {
  margin-bottom: 60px !important;
  width: 100%;
}
section:last-child, .section:last-child {
  margin-bottom: 0 !important;
}
.card, .testimonial-card, .feature-item, .feature-grid > div, .faq-list > div {
  margin-bottom: 20px !important;
}

/* === RESPONSIVE LAYOUT === */
@media (max-width: 1000px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .card-container
  { flex-direction: column; }
  .content-grid { flex-direction: column; }
  .footer-contact { flex-direction: column; gap: 15px; }
}
@media (max-width: 650px) {
  .footer-nav { flex-direction: column; gap: 14px; }
  footer .container { gap: 13px; }
  .footer-contact { flex-direction: column; gap: 9px; }
}

/* === ANIMATIONS === */
.cta-button, .cookie-banner .cookie-btn, .cookie-modal-actions button {
  transition: background 0.22s, color 0.22s, box-shadow 0.18s, transform 0.16s;
}
.main-nav a, .mobile-nav a, .footer-nav a {
  transition: color 0.19s, border-bottom 0.15s;
}
.card, .testimonial-card, .feature-grid > div, .faq-list > div {
  transition: box-shadow 0.18s, transform 0.13s;
}

/* === PRINT STYLES (optional, for documents) === */
@media print {
  header, .mobile-menu, .cookie-banner, .cta-section, footer { display: none !important; }
}
