/* ===============================================================
  Strafantic Autoservice – style.css
  Vintage Retro Flexbox-Only Responsive Theme
  =============================================================== */

/* =====================
   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, 
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;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F6F0;
  color: #2D2013;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
a {
  color: #B22D0D;
  text-decoration: none;
  background: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #2D2013;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
}
strong, b {
  font-weight: bold;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
  color: #250909;
  letter-spacing: 1.5px;
  margin-bottom: 0.4em;
  line-height: 1.1;
}

/* HEADINGS: VINTAGE RETRO TYPOGRAPHY */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 1px 2px 0 #FFE2A2, 2px 2px 2px #8A6733;
  margin-bottom: 0.6em;
}
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0.5px 1px 0 #FFE2A2, 1.5px 1.5px 2px #C49761;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}

/* Paragraph & body text styling */
p, li, span {
  font-size: 1rem;
  color: #473013;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 0.7em;
}

/* =========================
   LAYOUT & CONTAINER STYLES
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF9F3;
  border-radius: 22px;
  box-shadow: 0 4px 28px 0 rgba(110,76,32,0.09);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #FFF4E6;
  border: 2px solid #F0C667;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(168,116,34,0.13);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(168,116,34,0.18);
  transform: translateY(-4px) scale(1.015);
}

.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: 18px;
  }
}

/* Feature grid (like on index/leistungen/wartung pages) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #F0E7D8;
  border-radius: 14px;
  padding: 22px 16px 16px 16px;
  box-shadow: 0 2px 12px 0 rgba(202,174,130,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid img {
  width: 42px;
  height: 42px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px 18px 26px;
  background: #FFF2C7;
  border-left: 7px solid #B22D0D;
  font-style: italic;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(194, 145, 70, 0.12);
}
.testimonial-card p {
  color: #45220a;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #9B6125;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Typography hierarchy */
.text-section p, .content-wrapper p {
  font-size: 1.07rem;
  line-height: 1.7;
}

@media (max-width: 560px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.08rem; }
}

/* =====================
   HEADER & NAV STYLES
   ===================== */
header {
  width: 100%;
  background: #FFF6E3;
  border-bottom: 4px double #D6C397;
  box-shadow: 0 3px 12px 0 rgba(195,154,90,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
}
header nav a {
  color: #6A4C16;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  background: none;
  border-radius: 6px;
  padding: 7px 7px;
  transition: color 0.17s, background 0.17s;
}
header nav a:hover, header nav a:focus {
  color: #B22D0D;
  background: #FFECBD;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 10px;
}
header .cta-btn {
  margin-left: 18px;
}

@media (max-width: 1050px) {
  header .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  header nav {
    width: 100%;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  header .container {
    flex-direction: column;
    padding-top: 6px;
    gap: 8px;
  }
  header nav {
    gap: 10px;
  }
  header img {
    height: 44px;
  }
}

/* =====================
   CTA BUTTONS & LINKS
   ===================== */
.cta-btn {
  display: inline-block;
  background: #B22D0D;
  color: #FFF9F5;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  border: none;
  border-radius: 9px;
  box-shadow: 0 3px 14px 0 rgba(178,45,13,0.08);
  padding: 13px 28px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.19s, color 0.12s, transform 0.18s, box-shadow 0.13s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #1F3A93;
  color: #FFE2A2;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px 0 rgba(31,58,147,0.17);
}

/* ============================== 
   MOBILE BURGER MENU STYLING
   ============================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  background: #FFE2A2;
  border: 2px solid #A7813E;
  border-radius: 10px;
  font-size: 2.2rem;
  color: #6A4C16;
  padding: 7px 15px;
  z-index: 40;
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.12s, border 0.14s;
  box-shadow: 0 3px 12px 0 rgba(198,154,74,0.09);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ECD06E;
  color: #B22D0D;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFE2A2;
  box-shadow: 0px 0px 60px 0px rgba(120, 58, 13, 0.14);
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.86, 0.03, 0.16, 0.95);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 20px 12px 0;
  font-size: 2.4rem;
  color: #B22D0D;
  background: none;
  border: none;
  padding: 3px 9px;
  cursor: pointer;
  transition: color 0.17s, background 0.17s;
  border-radius: 7px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #FDE7B6;
  color: #6A4C16;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 36px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #6A4C16;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  padding: 12px 0;
  border-bottom: 2px dotted #E2B04B;
  width: 100%;
  transition: color 0.18s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B22D0D;
  background: #FFEFD0;
  border-radius: 6px;
}

@media (max-width: 960px) {
  header nav, header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 961px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #F5E5B8;
  border-top: 4px double #D6C397;
  color: #79551C;
  padding: 36px 0 14px 0;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer nav a {
  color: #8A622C;
  background: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #B22D0D;
}
footer img {
  height: 41px;
  max-width: 120px;
}
footer div {
  margin-bottom: 6px;
  text-align: center;
}

/* ===========================
   COOKIE CONSENT BANNER & MODAL
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #FFEFB0;
  border-top: 4px double #A7813E;
  box-shadow: 0 -6px 28px 0 rgba(187, 170, 105, 0.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 20px 40px 20px 20px;
  z-index: 20000;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #322109;
  animation: cookieSlideIn 0.7s cubic-bezier(0.86, 0.01, 0.18, 0.99);
}
@keyframes cookieSlideIn {
  from {transform: translateY(80px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 8px;
  border: none;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
  margin-right: 2px;
}
.cookie-accept {
  background: #1F3A93;
  color: #FFEEDD;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #B22D0D;
  color: #FFF9F5;
}
.cookie-reject {
  background: #F3DC88;
  color: #784000;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #B22D0D;
  color: #FFF9F5;
}
.cookie-settings {
  background: #FFD580;
  color: #67431C;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #A7813E;
  color: #FFEEDD;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 12px;
  }
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(64, 34, 3, 0.40);
  z-index: 20500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.33s cubic-bezier(0.8, 0.1, 0.3, 0.99);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF9F0;
  padding: 38px 28px 28px 28px;
  border-radius: 19px;
  min-width: 340px;
  width: 92vw;
  max-width: 480px;
  box-shadow: 0 4px 32px 0 rgba(100,58,14,0.18);
  font-family: 'Montserrat', Arial, sans-serif;
  color: #321B08;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cookie-modal-content label {
  font-size: 1rem;
  padding-left: 6px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #644014;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #B22D0D;
  border-radius: 5px;
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 18px;
  font-size: 1.4rem;
  color: #A7813E;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 5px;
  padding: 2px 7px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFEDBC;
  color: #B22D0D;
}
.cookie-modal-buttons {
  display: flex;
  gap: 17px;
  margin-top: 16px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    min-width: 94vw;
    max-width: 96vw;
    padding: 20px 6vw 20px 6vw;
  }
}

/* ==========================
   COMMON ELEMENTS & FLEX SETUPS
   ========================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===========
   SPACING
   =========== */
section + section {
  margin-top: 35px;
}
@media (max-width: 700px) {
  section + section {
    margin-top: 24px;
  }
}

/* ===========
   VINTAGE RETRO COLOR PALETTE
   =========== */
:root {
  --primary: #1F3A93;
  --secondary: #F6F8FB;
  --accent: #B22D0D;
  --beige-bg: #FFE2A2;
  --retro-caramel: #EDE2C2;
  --retro-brown: #6A4C16;
  --retro-blue: #3D5A99;
  --retro-mustard: #F7D286;
  --retro-offwhite: #FFF9F3;
  --retro-shadow: #B39760;
}

/* Overriding brand colors for retro vintage accents */
body {
  background: var(--retro-offwhite, #F9F6F0);
}

/* ==========================
   FORM ELEMENTS, ICONS, ETC.
   ========================== */
input[type="text"], textarea, input[type="email"] {
  background: #FFF7E6;
  border: 2px solid #FFD580;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #412706;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  width: 100%;
  transition: border 0.2s;
}
input[type="text"]:focus, textarea:focus, input[type="email"]:focus {
  border: 2px solid #B22D0D;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #6A4C16;
  font-size: 1.05rem;
  margin-bottom: 3px;
  display: block;
}

/* ================
   RETRO-INSPIRED DECOR
   ================ */
.section:before {
  content: "";
  position: absolute;
  left: 0; top: -15px;
  width: 56px; height: 10px;
  background: url('../assets/vintage-stripe-top.svg') repeat-x;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: "";
  position: absolute;
  right: 0; bottom: -12px;
  width: 48px; height: 8px;
  background: url('../assets/vintage-stripe-bottom.svg') repeat-x;
  opacity: 0.23;
  z-index: 0;
  pointer-events: none;
}

.section {
  z-index: 1;
}

/* Classic dotted border for some content wrappers */
.content-wrapper {
  border-left: 3px dotted #E8CA99;
  background: rgba(254,241,210,0.01);
  padding-left: 22px;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  .content-wrapper { padding-left: 7px; border-left: none; }
  .section:before, .section:after { display: none; }
}

/* ======================
   ADDITIONAL UTILITIES
   ====================== */
.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 18px !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.rounded { border-radius: 11px !important; }
.shadow {
  box-shadow: 0 4px 28px 0 rgba(168,116,34,0.12) !important;
}

/* ===========================
   TRANSITIONS & ANIMATIONS
   =========================== */
.card,
.card-container > *,
.cta-btn, .mobile-menu-toggle,
.mobile-menu, .mobile-menu-close, .mobile-nav a,
footer nav a,
.feature-grid > div,
.testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s, color 0.15s;
}

/* ==========================
   RESPONSIVE ADJUSTMENTS
   ========================== */
@media (max-width: 650px) {
  .feature-grid {
    gap: 12px;
  }
  .feature-grid > div {
    min-width: 150px;
    padding: 12px 7px 12px 10px;
  }
  .card {
    padding: 11px 8px;
  }
}
@media (max-width: 430px) {
  .card { padding: 6px 3px; }
  .testimonial-card { padding: 12px 4vw 10px 4vw; }
}

/* ==========================
   PRINT OVERRIDES
   ========================== */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; }
}
