/* =========================================================
   AutoFinder Direkt – Vintage Retro CSS Theme
   Brand: Modern, trustworthy, competent
   Style: Vintage/Retro (retro colors, vintage fonts, nostalgic elements)
   Layout: Flexbox only (no grid/columns)
   ========================================================= */

/* 1. FONT IMPORTS (Vintage/Retro + Brand) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&family=Archivo+Black&family=Quicksand:wght@700&display=swap');

:root {
  /* Brand Colors */
  --primary: #204066;
  --secondary: #F5F5F5;
  --accent: #FFB20F;
  /* Vintage/Retro Palette */
  --retro-red: #C1440E;
  --retro-blue: #3A6EA5;
  --retro-green: #A3B18A;
  --retro-cream: #F9EBC7;
  --retro-brown: #7C5E3C;
  --retro-orange: #F28522;
  --retro-shadow: rgba(32, 64, 102, 0.10);
  /* Typography */
  --font-display: 'Archivo Black', 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-retro: 'Quicksand', 'Montserrat', Arial, sans-serif;
  /* Spacing */
  --section-margin: 60px;
  --section-padding: 40px 20px;
  --card-gap: 24px;
  --card-margin-bottom: 20px;
  --content-gap: 20px;
  --text-image-gap: 30px;
  --testimonial-gap: 20px;
  --feature-gap: 15px;
  /* Effects */
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --radius: 12px;
  --shadow: 0 4px 24px var(--retro-shadow);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-cream);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: repeating-linear-gradient(135deg, var(--retro-cream), var(--retro-cream) 40px, #f7dba7 80px, var(--retro-cream) 120px);
  margin: 0;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* =====================
   LAYOUT CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 0 #fff7e1, 2px 4px 0 #e2c68d;
}
h1 {
  font-size: 2.2rem;
  font-family: var(--font-retro);
  color: var(--retro-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h2 {
  font-size: 1.6rem;
  color: var(--retro-blue);
  font-family: var(--font-display);
  text-transform: uppercase;
}
h3 {
  font-size: 1.2rem;
  color: var(--retro-orange);
  font-family: var(--font-retro);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--primary);
}
p, ul, ol, address, blockquote, table, th, td {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1em;
}
ul, ol {
  padding-left: 1.5em;
}
li {
  margin-bottom: 0.5em;
}
blockquote {
  font-family: var(--font-retro);
  font-size: 1.1rem;
  color: var(--retro-brown);
  background: var(--retro-cream);
  border-left: 6px solid var(--accent);
  padding: 16px 24px;
  margin: 0 0 1em 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(32,64,102,0.06);
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}
a {
  color: var(--retro-blue);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: none;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  background: linear-gradient(90deg, var(--retro-orange) 0%, var(--retro-cream) 100%);
  box-shadow: 0 2px 12px var(--retro-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 16px 16px 0;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
  filter: sepia(0.3) contrast(1.1);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-retro);
  font-size: 1rem;
  color: var(--primary);
  background: transparent;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
}
.button-primary {
  font-family: var(--font-retro);
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(90deg, var(--accent) 60%, var(--retro-orange) 100%);
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  box-shadow: 0 4px 16px var(--retro-shadow);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 12px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: linear-gradient(90deg, var(--retro-orange) 60%, var(--accent) 100%);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 24px var(--retro-shadow);
}

/* =====================
   MOBILE NAVIGATION
   ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 201;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 2px 8px var(--retro-shadow);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:active {
  background: var(--retro-orange);
  transform: scale(0.96);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-cream) 70%, var(--accent) 100%);
  z-index: 200;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 0 100vw rgba(32,64,102,0.15);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--retro-shadow);
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  transform: scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-retro);
  font-size: 1.2rem;
  color: var(--primary);
  background: transparent;
  border-radius: 8px;
  padding: 12px 8px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================
   MAIN CONTENT & FLEX LAYOUTS
   ===================== */
main {
  margin-top: 0;
  margin-bottom: 0;
}
section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.features-grid, .features, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap);
  justify-content: space-between;
}
.features-grid .feature, .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--feature-gap);
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  margin-bottom: var(--card-margin-bottom);
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 2px solid var(--retro-orange);
  position: relative;
}
.features-grid .feature:hover, .feature-item:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  border-color: var(--accent);
}

.card-container {
  gap: var(--card-gap);
}
.card {
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: var(--card-margin-bottom);
  padding: 24px 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.03);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap);
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: var(--text-image-gap);
  flex-wrap: wrap;
}
.text-image-section > div {
  flex: 1 1 220px;
  min-width: 220px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: var(--testimonial-gap);
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
  border-left: 8px solid var(--accent);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-color: var(--retro-orange);
}
.testimonial-card blockquote {
  color: var(--primary);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-retro);
}
.testimonial-card p {
  margin: 0;
  color: var(--retro-brown);
  font-weight: 700;
  font-family: var(--font-retro);
}

/* FAQ Accordion/Blocks */
.faq-accordion > div, .faq-snippets > div {
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
  padding: 18px 20px;
  border-left: 6px solid var(--retro-blue);
}
.faq-accordion h3, .faq-snippets h3 {
  margin-bottom: 0.3em;
  color: var(--retro-blue);
  font-family: var(--font-retro);
}

/* Table Styling (Prices) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #e2c68d;
}
th {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-retro);
  font-size: 1.1rem;
}
tr:last-child td {
  border-bottom: none;
}

/* Gallery (About) */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Footer */
footer {
  background: linear-gradient(90deg, var(--retro-orange) 0%, var(--retro-cream) 100%);
  padding: 0;
  margin-top: 40px;
  box-shadow: 0 -2px 12px var(--retro-shadow);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0 16px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: var(--primary);
  font-family: var(--font-retro);
  font-size: 1rem;
  text-decoration: none;
  background: transparent;
  border-radius: 6px;
  padding: 4px 10px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact img {
  height: 36px;
  width: auto;
  filter: sepia(0.3) contrast(1.1);
}
.footer-contact address {
  font-style: normal;
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--retro-cream) 80%, var(--accent) 100%);
  color: var(--primary);
  box-shadow: 0 -2px 16px var(--retro-shadow);
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookieBannerIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-retro);
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin: 0 2px;
}
.cookie-banner .accept {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--retro-orange);
  color: #fff;
  transform: scale(1.04);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.04);
}
.cookie-banner .settings {
  background: var(--retro-blue);
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.04);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,64,102,0.25);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--retro-blue);
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-retro);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  color: var(--retro-green);
  font-size: 0.95rem;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--accent);
  transform: scale(1.08);
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1024px) {
  .features-grid, .features, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact {
    margin-top: 24px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  .section, section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
  .features-grid .feature, .feature-item, .card {
    min-width: 0;
    width: 100%;
    padding: 18px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 10px 0 10px 0;
  }
  .footer-contact img {
    height: 28px;
  }
  .cookie-modal {
    padding: 18px 8px 16px 8px;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .button-primary {
    font-size: 1rem;
    padding: 10px 18px;
  }
  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* =====================
   MICRO-INTERACTIONS
   ===================== */
.button-primary:active {
  transform: scale(0.98);
}
.features-grid .feature:active, .feature-item:active, .card:active {
  transform: scale(0.98);
}
.mobile-nav a:active {
  background: var(--retro-orange);
  color: #fff;
}

/* =====================
   MISC RETRO ELEMENTS
   ===================== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: -24px;
  top: 24px;
  width: 12px;
  height: 60px;
  background: repeating-linear-gradient(135deg, var(--accent), var(--accent) 6px, var(--retro-orange) 12px, var(--accent) 18px);
  border-radius: 8px;
  opacity: 0.18;
  z-index: 0;
}
.section {
  overflow: hidden;
}

/* Hide retro bar on mobile */
@media (max-width: 768px) {
  .section:before {
    display: none;
  }
}

/* =====================
   ACCESSIBILITY
   ===================== */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* =====================
   PRINT STYLES
   ===================== */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  section, .section {
    box-shadow: none;
    background: #fff;
    padding: 0;
    margin: 0 0 16px 0;
  }
}
