/* ==========================================================
   Stormy Peak Motorwelten – Vintage Retro Flexbox CSS
   Author: Professional CSS & UI Designer
   ----------------------------------------------------------
   Brand: Stormy Peak Motorwelten
   Style: Vintage Retro – retro colors, vintage fonts, classic patterns
   Flexbox ONLY layout (NO Grid/Columns)
   Responsive, contrast-safe, accessible
   =========================================================== */

/* -------- CSS RESET & NORMALIZE -------- */
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 { scroll-behavior: smooth; }
body { line-height: 1.5; background: #F7F5EF; color: #1A2637; min-height: 100vh; }
button, input, select, textarea { font-family: inherit; font-size: 100%; background: none; border: none; outline: none; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }

/* -------- VINTAGE RETRO COLORS -------- */
:root {
  --color-primary: #1A2637;      /* Deep night blue */
  --color-secondary: #DEE2B7;    /* Powder yellow-green */
  --color-accent: #E06B2C;       /* Vintage orange */
  --color-bg: #F7F5EF;           /* Creamy paper */
  --color-dark: #26251f;         /* Retro brown-black */
  --color-gold: #BBA14F;         /* Old gold */
  --color-red: #BE5143;          /* Classic retro red */
  --color-link: #225C7C;         /* Muted blue link */
  --color-card: #FFF9E3;         /* Light yellow card bg */
  --color-border: #C6B867;       /* Retro brass border */
  --color-shadow: rgba(174, 152, 87, 0.2);
  --color-success: #51743A;
  --color-warning: #C17050;
  --color-input-bg: #FBF5EA;
  --color-footer: #22211D;
  --color-nav-bg: #FCEFC8;
}

/* -------- FONTS: Vintage Style -------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500;700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-dark);
}
.display-font, h1, h2, h3, .footer-brand strong {
  font-family: 'Oswald', 'Arial Black', Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; color: var(--color-primary); text-shadow: 1px 2px 0px #fff8e2, 0 4px 22px var(--color-shadow); }
h2 { font-size: 2rem; margin-bottom: 14px; color: var(--color-red); text-shadow: 0 2px 0 var(--color-secondary); }
h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--color-dark); }
p, li, div, span, address { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; font-weight: 400; color: var(--color-dark); }
strong { font-weight: 700; color: var(--color-primary); }

/* -------- LAYOUT CONTAINERS, FLEXBOX SYSTEM -------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 2px 24px var(--color-shadow);
  border: 2px solid var(--color-border);
}
@media (max-width:1024px) {
  .section { padding: 32px 10px; }
}
@media (max-width:768px) {
  .section { padding: 28px 5px; margin-bottom: 38px; }
}

.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}
.card-container { gap: 24px; }
.content-grid { gap: 20px; }

.card {
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 2px 16px var(--color-shadow);
  border: 2px solid var(--color-border);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 26px 0 var(--color-gold), 0 2px 32px var(--color-shadow);
  transform: translateY(-3px) scale(1.025);
}

.text-image-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 16px; }
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff8e2;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 2px solid var(--color-border);
  color: var(--color-dark);
}
.testimonial-card p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-dark); /* Readable dark text on light bg */
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1rem;
}

/* -------- NAVBAR & HEADER -------- */
header {
  background: var(--color-nav-bg);
  border-bottom: 3px solid var(--color-border);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo-link img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 4px 10px var(--color-gold));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Oswald', 'Arial Black', Impact, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-radius: 6px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-red);
  outline: 0;
}
.main-nav .cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-weight: bold;
  padding: 8px 22px;
  margin-left: 12px;
  border-radius: 30px;
  box-shadow: 0 2px 10px var(--color-shadow);
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.16s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--color-red);
  color: #fff7e4;
  box-shadow: 0 4px 20px var(--color-gold);
}

/* -------- MOBILE NAVIGATION -------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 10px;
  padding: 5px 16px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.17s, color 0.17s;
  z-index: 101;
}
.mobile-menu-toggle:focus { outline: 3px solid var(--color-gold); }

@media (max-width:1024px) {
  .main-nav { gap: 18px; }
}
@media (max-width: 850px) {
  .main-nav { gap: 13px; }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* ---- Mobile menu overlay ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 85vw; max-width: 410px;
  height: 100vh;
  background: var(--color-footer);
  color: #fff;
  box-shadow: 4px 0 34px var(--color-shadow);
  transform: translateX(-110%);
  transition: transform 0.36s cubic-bezier(0.77,0.2,0.05,1.0);
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  color: #fff;
  border: none;
  margin: 16px 16px 10px 0;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-gold);
  outline: 0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 25px 30px 0 28px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Oswald', 'Arial Black', Impact, sans-serif;
  font-size: 1.25rem;
  color: #FFF9E3;
  padding: 10px 0 10px 0;
  border-bottom: 1.5px dotted var(--color-card);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus { background: var(--color-gold); color: var(--color-dark); border-radius: 7px; }

@media (max-width: 500px) {
  .mobile-menu { width: 100vw; max-width: none; }
}

/* -------- FOOTER -------- */
footer {
  background: var(--color-footer);
  color: #fff9e3;
  padding: 38px 0 13px 0;
  border-top: 4px solid var(--color-gold);
}
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-nav,
.footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a, .footer-legal-nav a {
  color: #fff9e3;
  font-family: 'Oswald', sans-serif;
  font-size: 1.01rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-legal-nav a:hover { color: var(--color-gold); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 6px;
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand .brand-info {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  color: #FFF9E3;
}
@media (max-width: 768px){
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* -------- BUTTONS & LINKS -------- */
.cta-btn, .cta-btn:visited {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 33px;
  padding: 13px 28px;
  box-shadow: 0 2px 10px var(--color-shadow);
  border: 2px solid var(--color-border);
  margin-top: 14px;
  transition: background 0.15s, color 0.15s, box-shadow 0.14s, transform 0.18s;
  cursor: pointer;
  outline: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-red);
  color: var(--color-secondary);
  box-shadow: 0 4px 16px var(--color-gold);
  transform: translateY(-2px) scale(1.03);
  outline: 0;
}
a {
  transition: color 0.12s, border-bottom 0.12s;
}
a:hover, a:focus { color: var(--color-link); border-bottom: 1.5px solid var(--color-gold); outline: none; }

/* -------- PATTERNS & DECORATIVE ELEMENTS -------- */
.section {
  background-image: repeating-linear-gradient(135deg, #F5EFD3 0, #F5EFD3 8px, #FFF9E3 8px, #FFF9E3 24px);
  background-size: 24px 24px;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .section { background-size: 14px 14px; }
}

/* -------- FAQ Accordion Style -------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0;
}
.faq-accordion h3 {
  cursor: pointer;
  background: var(--color-gold);
  color: var(--color-dark);
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 1.18rem;
  transition: background 0.14s, color 0.13s;
  margin-bottom: 6px;
}
.faq-accordion h3.active,
.faq-accordion h3:focus {
  background: var(--color-accent);
  color: #fff;
}
.faq-accordion div {
  background: var(--color-card);
  border-left: 4px solid var(--color-border);
  border-radius: 0 11px 11px 0;
  padding: 13px 18px 10px 18px;
  margin-bottom: 10px;
  display: none;
}
.faq-accordion h3.active + div { display: block; }

/* -------- LISTS & ICONS -------- */
ul {
  padding-left: 0;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  color: var(--color-dark);
  font-family: 'Roboto', sans-serif;
}
ul li img {
  position: absolute;
  left: 0; top: 3px;
  height: 20px; width: 20px;
  filter: drop-shadow(0 4px 8px var(--color-gold));
}
ul li strong { text-transform: uppercase; color: var(--color-red); font-size: 1.04rem; }

/* --------- TYPOGRAPHY SCALE ----------- */
@media (max-width:1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}
@media (max-width:768px) {
  h1 { font-size: 1.45rem; margin-bottom: 9px; }
  h2 { font-size: 1.1rem; margin-bottom: 7px; }
}

/* --- RESPONSIVE FLEX LAYOUT ADJUSTMENTS --- */
@media (max-width:1024px) {
  .card-container, .content-grid {
    gap: 20px;
  }
  .card { flex: 1 1 260px; padding: 16px 10px; }
}
@media (max-width:768px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card { flex: 1 1 98vw; }
}

/* ----------- COOKIE BANNER ----------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-card);
  border-top: 3px solid var(--color-gold);
  box-shadow: 0 -4px 14px var(--color-shadow);
  z-index: 3000;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  gap: 18px;
  animation: cookieFadeIn 0.5s;
}
@keyframes cookieFadeIn { from { opacity:0; transform:translateY(40px);} to { opacity:1; transform:translateY(0);} }
.cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 5px;
}
.cookie-banner button {
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  padding: 7px 16px;
  margin: 0 2px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background 0.16s, color 0.14s, box-shadow 0.15s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-red);
  color: #fffbee;
  box-shadow: 0 3px 12px var(--color-gold);
}
.cookie-banner .settings-btn {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner .settings-btn:hover {
  background: var(--color-red);
}

/* ------ Cookie Settings Modal ------ */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,21,10, 0.65);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open { opacity: 1; pointer-events: auto; }

.cookie-modal-dialog {
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 6px 40px var(--color-shadow);
  border: 3px solid var(--color-gold);
  padding: 32px 26px 24px 26px;
  min-width: 320px; max-width: 96vw;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieDialogIn 0.35s;
}
@keyframes cookieDialogIn { from { transform: translateY(64px) scale(0.95); opacity:0;} to { transform:none; opacity:1;} }

.cookie-modal-dialog h2 {
  font-size: 1.22rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-preference {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 6px;
  border-bottom: 1px dotted var(--color-border);
}
.cookie-preference:last-child { border-bottom: none; }
.cookie-modal-close {
  align-self: flex-end;
  background: transparent;
  color: var(--color-dark);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--color-red); }
.cookie-modal-toggle {
  width: 50px;
  height: 28px;
  border-radius: 24px;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  margin-left: 12px;
  position: relative;
  transition: background 0.14s;
}
.cookie-modal-toggle[data-active="true"] {
  background: var(--color-gold);
}
.cookie-modal-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 19px;
  transition: left 0.19s, background 0.13s;
}
.cookie-modal-toggle[data-active="true"]::before {
  left: 23px;
  background: var(--color-accent);
}

/* ---------- FORMS (Kontakt) ----------- */
input, textarea, select {
  border-radius: 7px;
  background: var(--color-input-bg);
  border: 1.8px solid var(--color-border);
  font-size: 1rem;
  padding: 12px 16px;
  margin-bottom: 20px;
  width: 100%;
  color: var(--color-primary);
  transition: border 0.14s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 2px solid var(--color-gold);
  box-shadow: 0 2px 12px var(--color-shadow);
}
label {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

/* ----------- MISC UTILITIES ----------- */
::-webkit-input-placeholder { color: #bfa95e; opacity: 1; }
::-moz-placeholder { color: #bfa95e; opacity: 1; }
:-ms-input-placeholder { color: #bfa95e; opacity: 1; }
::placeholder { color: #bfa95e; opacity: 1; }

/* Decorative horizontal rule */
hr {
  border: none;
  border-top: 2.5px dashed var(--color-gold);
  margin: 30px 0 18px 0;
}

/* ----------- ANIMATIONS & HOVER ----------- */
.card, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 34px var(--color-gold), 0 2px 30px var(--color-shadow);
  transform: scale(1.008);
}
.cta-btn, .footer-nav a, .footer-legal-nav a, .main-nav a, .mobile-nav a {
  transition: background 0.13s, color 0.13s, border 0.12s;
}

/* ----------- ERROR, SUCCESS, INFO ----------- */
.alert-success {
  color: var(--color-success);
  background: #f7ffe9;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1.5px solid #b1dfa1;
}

.alert-error {
  color: var(--color-red);
  background: #ffe9e7;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1.5px solid #eeb5ad;
}

/* ----------- PRINT OPTIMIZATION ----------- */
@media print {
  nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
}

/* ----------- HIGH CONTRAST ACCESSIBILITY ----------- */
:focus {
  outline: 2.3px dashed var(--color-accent);
  outline-offset: 2px;
}

/* ----------- Z-INDEX MANAGEMENT ----------- */
header { z-index: 20; }
.mobile-menu { z-index: 400; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 4000; }

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