/* RESET & BASE STYLES ======================= */
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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;  padding: 0;  border: 0;  font-size: 100%;  font: inherit;  vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; font-family: 'Roboto', Arial, Helvetica, sans-serif; background: #FDF6F0; color: #243B55; -webkit-font-smoothing: antialiased; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: 10px; }
button, input, select, textarea { font-family: inherit; font-size: 100%; outline: none; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; color: #243B55; font-weight: 700; letter-spacing: -.5px; }
p, li, label, input, textarea { font-family: 'Roboto', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }
.subheadline { font-size: 1.2rem; color: #7B5632; font-weight: 500; margin-bottom: 28px; }

/* FLEXBOX LAYOUT CONTAINERS ======================= */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }

.section { margin-bottom: 60px; padding: 40px 20px; background: #fff; border-radius: 20px; box-shadow: 0 8px 32px rgba(220,177,134,.12), 0 1.5px 6px rgba(200,140,50,0.07); }

.features-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start; margin-bottom: 8px; }
.feature { background: #F8EFED; border-radius: 18px; box-shadow: 0 2px 8px rgba(232,76,61, 0.08); padding: 26px 22px; min-width: 240px; max-width: 320px; flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; transition: box-shadow .18s, transform .18s; border: 1.5px solid #EED8CC; }
.feature:hover, .feature:focus-visible { box-shadow: 0 4px 20px 2px rgba(232,76,61,.16); transform: translateY(-4px) scale(1.025); }
.feature img { width: 46px; height: 46px; margin-bottom: 10px; border-radius: 12px; background: rgba(232,76,61,0.08); padding: 5px; }

.text-section, .contact-details, .content-grid { margin-bottom: 20px; }
.text-section ul, .text-section ol { margin-left: 22px; margin-bottom: 12px; }
.text-section ul li, .text-section ol li { margin-bottom: 8px; font-size: 16px; color: #614427; }

.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: stretch; gap: 20px; }
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: #fff; border-radius: 16px; margin-bottom: 20px; padding: 30px 24px; box-shadow: 0 2px 8px rgba(36,59,85,0.09); position: relative; min-width: 220px; flex: 1 1 220px; transition: box-shadow .17s, transform .15s; }
.card:hover, .card:focus-visible { box-shadow: 0 8px 32px rgba(232,76,61,.12); transform: translateY(-2px) scale(1.012); z-index: 1; }

.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

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

/* TESTIMONIALS ======================= */
.testimonials { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 12px; }
.testimonial-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px; padding: 26px 22px; background: #fff7f4; border-radius: 16px; box-shadow: 0 2px 8px rgba(200,144,59,.10); max-width: 360px; flex: 1 1 280px; border-left: 5px solid #E84C3D; border-top: 1.5px solid #F6D3BF; position: relative; }
.testimonial-card p { color: #31313B; font-size: 1.09rem; margin-bottom: 3px; }
.testimonial-footer { color: #99552a; font-weight: 500; font-size: .97rem; }

/* HEADER & NAVIGATION ======================= */
header { background: #fff; box-shadow: 0 1.5px 8px rgba(220,165,111,.07);
  position: sticky; top: 0; z-index: 90; transition: box-shadow .18s; }
header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
header img[alt="Nova Device Autohaus"] { width: 165px; height: auto; margin-right: 16px; }

.main-nav { display: flex; align-items: center; gap: 26px; font-size: 1rem; font-family: 'Montserrat', Arial, sans-serif; }
.main-nav a { color: #243B55; transition: color .17s; padding: 7px 7px; border-radius: 7px; }
.main-nav a:hover, .main-nav a:focus-visible { color: #E84C3D; background: #FFF3ED; }

.cta-button { background: #E84C3D; color: #fff; font-family: 'Montserrat', Arial, sans-serif; font-size: 1.09rem; border: none; border-radius: 999px; padding: 12px 34px; font-weight: 600; box-shadow: 0 3px 14px rgba(232,76,61,.13); transition: background .18s, box-shadow .17s, transform .13s; margin-left: 18px; cursor: pointer; text-align: center; display: inline-block; line-height: 1.2; }
.cta-button:hover, .cta-button:focus-visible { background: #C22D1A; color: #fff; box-shadow: 0 8px 32px rgba(232,76,61,.22); transform: translateY(-2px) scale(1.048); }

/* MOBILE NAVIGATION ======================= */
.mobile-menu-toggle {
  display: none;
  background: #E84C3D;
  color: #fff;
  font-size: 2.1rem;
  border-radius: 14px;
  padding: 2px 14px 2px 10px;
  margin-left: 14px;
  border: none;
  cursor: pointer;
  transition: background .16s;
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible {
  background: #C22D1A;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,59,85,.96);
  transform: translateX(-100vw);
  transition: transform .4s cubic-bezier(.82, .05, .45, .98);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  box-sizing: border-box;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  margin: 24px 20px 0 0;
  align-self: flex-end;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus-visible { background: #E84C3D; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 40px;
  padding-left: 34px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 5px 9px 0;
  border-radius: 8px;
  transition: background .15s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible {
  background: #E84C3D;
  color: #fff7f4;
}

@media (max-width: 1024px) {
  .main-nav, .footer-nav {
    gap: 18px;
    font-size: 0.98rem;
  }
  .cta-button { padding: 11px 27px; margin-left: 10px; font-size: 1rem; }
  header img[alt="Nova Device Autohaus"] { width: 138px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 14px; font-size: 0.98rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 480px) {
  header img[alt="Nova Device Autohaus"] { width: 120px; }
  .section { padding: 22px 5px; }
}

/* MAIN ======================= */
main { min-height: 60vh; background: none; }
section { margin-bottom: 0; padding: 0; background: none; border: none; box-shadow: none; }

@media (max-width: 768px) {
  .features-grid, .testimonials, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* CONTACT SECTIONS ======================= */
.contact-details {
  background: #FAE6D8;
  padding: 20px 18px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #492E14;
  font-family: 'Roboto', Arial, sans-serif;
}
.contact-details a {
  color: #E84C3D;
  font-weight: 500;
}
.contact-details a:hover, .contact-details a:focus-visible { text-decoration: underline; }

.contact-short {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 13px rgba(232,76,61,.08);
  padding: 28px 17px;
  align-items: center;
}
.contact-short .cta-button { margin: 0 0 0 18px; }
@media (max-width: 768px) {
  .contact-short { flex-direction: column; align-items: stretch; gap: 20px; }
  .contact-short .cta-button { margin: 0; align-self: flex-start; }
}

/* FOOTER ======================= */
footer {
  background: #243B55;
  color: #fff;
  padding: 44px 0 22px;
  font-size: 1rem;
  margin-top: 38px;
}
footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-nav, .footer-legal, .footer-contact, .footer-social {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-nav a, .footer-legal a {
  color: #FFE5D7;
  transition: color .15s;
  font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem;
}
.footer-nav a:hover, .footer-legal a:hover, .footer-nav a:focus-visible, .footer-legal a:focus-visible {
  color: #E84C3D;
}
.footer-contact {
  color: #FFD7C5;
  font-size: .99rem;
  font-weight: 400;
}
.footer-social { flex-direction: row; gap: 17px; }
.footer-social img {
  width: 37px; height: 37px; background: #fff2ed; border-radius: 13px; transition: box-shadow .18s, transform .14s; }
.footer-social a:hover img, .footer-social a:focus-visible img { box-shadow: 0 4px 14px rgba(232,76,61,.19); transform: scale(1.09); }

@media (max-width: 1024px) {
  footer .container { gap: 22px; font-size: 0.98rem; }
  footer { padding: 26px 0 16px; }
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* BUTTONS ======================= */
button, .cta-button {
  cursor: pointer;
  outline: none;
  transition: background .16s, color .16s, box-shadow .12s, transform .13s;
}
button:active, .cta-button:active { transform: scale(0.97); }

/* UTILS & HELPERS ======================= */
.show { display: block !important; }
.hide { display: none !important; }

strong { font-weight: 700; color: #C22D1A; }

/* COOKIE CONSENT BANNER ======================= */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999; display: flex; flex-direction: column; align-items: center;
  background: rgba(255,243,237,.99);
  box-shadow: 0 -2px 18px rgba(232,76,61,.08), 0 -1px 2px rgba(36,59,85,.05);
  padding: 24px 14px 16px 14px;
  gap: 16px; border-top: 2px solid #EED8CC; transition: transform .38s cubic-bezier(.82, .05, .45, .96);
}
.cookie-banner.closed {transform: translateY(120%); pointer-events: none; }
.cookie-banner .cookie-banner-main {
  color: #4C2E11; font-size: 1.08rem; margin-bottom: 10px; max-width: 550px; text-align: left;
}
.cookie-banner .cookie-buttons {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px;
}
.cookie-banner .cookie-btn {
  background: #E84C3D; color: #fff; border-radius: 999px; padding: 8px 26px; font-family: 'Montserrat'; font-size: 1rem; font-weight: 600;
  border: none; transition: background .16s;
}
.cookie-banner .cookie-btn.settings {
  background: #fff; color: #E84C3D; border: 1.5px solid #E84C3D;
}
.cookie-banner .cookie-btn.reject {
  background: #f3decf; color: #C22D1A; border: 1.5px solid #C22D1A;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus-visible {
  background: #C22D1A; color: #fff;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus-visible {
  background: #FFF3ED; color: #C22D1A;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus-visible {
  background: #FFEDE4; color: #C22D1A;
}

/* COOKIE MODAL ======================= */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(36,59,85,0.22);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  transition: background .33s;
}
.cookie-modal {
  background: #fff;
  border-radius: 23px;
  max-width: 480px;
  width: 98vw;
  box-shadow: 0 12px 34px rgba(232,76,61,.13);
  padding: 42px 32px 26px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h3 {
  color: #E84C3D;
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.cookie-modal .cookie-categories {
  display: flex; flex-direction: column; gap: 17px; margin-bottom: 14px;
}
.cookie-category {
  display: flex; align-items: center; gap: 16px; font-size: 1.06rem;
}
.cookie-category input[type=checkbox] {
  accent-color: #E84C3D;
  width: 21px; height: 21px;
  border-radius: 6px;
}
.cookie-modal .close-cookie-modal {
  position: absolute; right: 22px; top: 14px; font-size: 2.0rem;
  color: #E84C3D; background: none; border: none; cursor: pointer; padding: 3px;
  border-radius: 7px;
  transition: background .15s;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus-visible { background: #FFF3ED; }
.cookie-modal .save-btn {
  margin-top: 18px;
  background: #E84C3D; color: #fff; border-radius: 999px; border: none; font-family: 'Montserrat'; font-weight: 600; font-size: 1rem; padding: 9px 32px; align-self: flex-end; }
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus-visible { background: #C22D1A; }
@media (max-width: 540px) {
  .cookie-modal { padding: 27px 9px 18px 12px; }
}

/* RESPONSIVE TYPOGRAPHY / MOBILE HEADINGS ======================= */
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.09rem; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.13rem; }
}

/* SPACING ======================= */
.section,
.card, .testimonial-card, .feature, .contact-details, .cookie-modal {
  margin-bottom: 24px;
}
.card-container, .features-grid, .content-grid, .testimonials {
  gap: 20px;
}
.features-grid, .testimonials, .content-grid {
  margin-bottom: 18px;
}

/* SCROLLBAR FOR OVERLAY ======================= */
.mobile-menu, .cookie-modal {
  scrollbar-width: thin;
  scrollbar-color: #E84C3D #f7e1d4;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar {
  width: 8px;
  background: #faf3ee;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb {
  background: #E84C3D;
  border-radius: 8px;
}

/* ANIMATIONS ======================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.section, .features-grid, .testimonial-card, .cta-button, .cookie-banner, .cookie-modal, .mobile-menu {
  animation: fadeUp .7s cubic-bezier(.8,.2,.2,1) 0.02s both;
}

/* MICRO-INTERACTIONS =============== */
a, button, .cta-button, .cookie-btn {
  transition: background .19s, color .19s, box-shadow .15s, transform .12s;
}
a:focus-visible, button:focus-visible, .cta-button:focus-visible {
  outline: 2px dashed #C22D1A;
  outline-offset: 2px;
}

/* HELPERS ======================= */
@media (max-width: 480px) {
  .testimonials, .features-grid, .card-container { gap: 10px; }
  .feature, .testimonial-card, .card { padding: 18px 8px; }
}
