/* =====================================================
   DiscoArres Autoprüfer – Vintage Retro Flex CSS (Mobile-first)
   - Brand colors & fonts
   - Pure Flexbox layouts (no CSS Grid or CSS Columns)
   - Mobile menu + Cookie consent banner
   - Retro/Vintage styling: warm creams, subtle borders, classic patterns
   ===================================================== */

/* -----------------------------
   CSS Reset / Normalize
----------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.1rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { cursor: pointer; background: none; border: 0; font: inherit; }
:focus-visible { outline: 2px solid #1E8E72; outline-offset: 2px; }

/* -----------------------------
   Root Variables (Brand + Retro)
----------------------------- */
:root {
  --color-primary: #0B355B; /* Brand Navy */
  --color-secondary: #1E8E72; /* Brand Teal */
  --color-accent: #F5F7FA; /* Brand Light */
  /* Vintage additions */
  --color-cream: #F6F1E7; /* Warm paper */
  --color-paper: #FBF7EF; /* Pale card */
  --color-ink: #1C1C1C; /* Text dark */
  --color-brown: #6B4E3D; /* Retro brown */
  --color-orange: #C8642C; /* Burnt orange */
  --color-mustard: #D3A94A; /* Mustard */
  --color-rose: #7A3B3F; /* Wine/rose */
  --shadow-1: 0 2px 0 rgba(0,0,0,0.15);
  --shadow-2: 0 6px 0 rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --maxw: 1200px;
}

/* -----------------------------
   Base Typography
----------------------------- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* Body font */
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, Geneva, Tahoma, sans-serif; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; color: var(--color-primary); }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; color: var(--color-primary); }
h3 { font-size: 18px; line-height: 1.3; color: var(--color-brown); }
p { font-size: 16px; margin-bottom: 12px; }
small, .microcopy { font-size: 13px; color: #3a3a3a; }
strong { color: var(--color-primary); }

/* Vintage accents */
hr { border: 0; border-top: 2px dotted rgba(0,0,0,0.15); margin: 16px 0; }

/* -----------------------------
   Containers & Global Layout (Flex-only)
----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: flex; /* Flex for all layout containers */
  flex-direction: column;
  gap: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
section { padding: 32px 0; }

/* Mandatory spacing classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* -----------------------------
   Header & Navigation
----------------------------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-paper);
  border-bottom: 4px solid var(--color-brown);
  box-shadow: var(--shadow-1);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}
.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}
.main-nav a:hover { background: var(--color-accent); }

.header-ctas { display: none; gap: 10px; align-items: center; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #fff;
  box-shadow: var(--shadow-1);
}
.mobile-menu-toggle:hover { filter: brightness(1.05); }

/* Mobile slide-in menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 20%; /* right-side panel covers 80% width */
  background: var(--color-paper);
  border-left: 6px solid var(--color-brown);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 280ms ease;
  z-index: 100;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-secondary); color: #fff;
}
.mobile-nav { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.mobile-nav a {
  display: flex; align-items: center; padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(0,0,0,0.2);
  background: #fff;
  color: var(--color-primary);
}
.mobile-nav a:hover { background: var(--color-accent); }

/* -----------------------------
   Hero Section (vintage stripes subtle)
----------------------------- */
.hero {
  background: var(--color-paper);
  border-bottom: 8px double var(--color-brown);
}
.hero .container { align-items: stretch; }
.hero .content-wrapper { padding: 16px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-1); }
.hero h1 { font-size: 28px; text-transform: uppercase; letter-spacing: 1px; }
.hero p { font-size: 16px; color: #333; }

/* Decorative vintage stripe bar */
.hero .content-wrapper::before {
  content: ""; display: block; height: 8px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--color-mustard), var(--color-mustard) 12px, var(--color-orange) 12px, var(--color-orange) 24px, var(--color-secondary) 24px, var(--color-secondary) 36px);
  border-radius: 6px 6px 0 0;
  margin: -16px -16px 12px -16px;
}

/* -----------------------------
   Buttons
----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  text-transform: uppercase; font-weight: bold; letter-spacing: 0.6px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(0,0,0,0.2); }
.btn.primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn.primary:hover { background: #0d3f6c; }
.btn.secondary { background: var(--color-mustard); border-color: var(--color-brown); color: #212121; }
.btn.secondary:hover { filter: brightness(0.98); }

.cta-group { display: flex; flex-wrap: wrap; gap: 10px; }

/* -----------------------------
   Lists & Utilities
----------------------------- */
.value-props, .stats, .stepper {
  display: flex; flex-direction: column; gap: 8px;
}
.value-props li, .stats li, .stepper li { position: relative; padding-left: 22px; }
.value-props li::before, .stats li::before, .stepper li::before {
  content: "◆"; position: absolute; left: 0; color: var(--color-orange);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px;
  background: var(--color-accent); border: 1px solid var(--color-primary); color: var(--color-primary);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* -----------------------------
   Feature grid & Services
----------------------------- */
.feature-grid, .services, .pricing, .testimonials, .faq, .pricing-table, .addons ul, .comparison ul, footer .content-wrapper, .trust .badges, .contact-details, .footer-nav, .footer-legal {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
}
.feature, .service {
  background: #fff; border: 2px solid rgba(0,0,0,0.08); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-1);
  flex: 1 1 100%;
}
.feature h3, .service h3 { color: var(--color-brown); }

.trust { display: flex; flex-direction: column; gap: 12px; background: var(--color-paper); padding: 16px; border-radius: var(--radius-md); border: 2px dashed rgba(0,0,0,0.2); }
.trust ul { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }
.trust .badges span {
  background: #fff; border: 1px solid var(--color-brown); color: var(--color-brown);
  padding: 6px 10px; border-radius: 20px; font-size: 13px;
}

/* Pricing (simple cards) */
.pricing > div, .pricing-table .row {
  background: #fff; border: 2px solid rgba(0,0,0,0.08); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-1);
  flex: 1 1 100%;
}
.pricing h3, .pricing-table h3 { display: flex; align-items: center; gap: 8px; color: var(--color-primary); }

/* FAQ as cards */
.faq > div {
  background: #fff; border: 2px solid rgba(0,0,0,0.1); border-radius: var(--radius-md);
  padding: 16px; flex: 1 1 100%;
}
.faq h3 { color: var(--color-primary); }

/* Stepper styling */
.stepper { counter-reset: steps; }
.stepper li { padding-left: 36px; }
.stepper li::before {
  counter-increment: steps; content: counter(steps);
  position: absolute; left: 0; top: 0.1em;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-mustard); color: #000; font-weight: bold; border: 1px solid var(--color-brown);
}

/* Testimonials (high contrast light cards) */
.rating-summary { font-weight: bold; color: var(--color-primary); }
.testimonials { align-items: stretch; }
.testimonial-card {
  background: #FFFDF7; border: 2px solid rgba(0,0,0,0.08); border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  flex-direction: column; align-items: flex-start;
  flex: 1 1 100%;
}
.testimonial-card p { color: #222; }
.testimonial-card strong { color: var(--color-brown); }

/* Contact blocks */
.contact-details { background: var(--color-paper); padding: 12px; border: 1px dashed rgba(0,0,0,0.2); border-radius: var(--radius-md); }
.contact-details p { display: flex; align-items: center; gap: 10px; margin: 0; }
.contact-details img { width: 18px; height: 18px; }

.text-section { display: flex; flex-direction: column; gap: 10px; }
.privacy-note, .note, .disclaimer, .legal { color: #4a4a4a; font-size: 14px; }

/* Footer */
footer { background: #fff; border-top: 8px double var(--color-brown); margin-top: 20px; }
footer .content-wrapper { flex-direction: column; padding: 20px 0; }
footer nav a { color: var(--color-primary); padding: 6px 8px; border-radius: var(--radius-sm); }
footer nav a:hover { background: var(--color-accent); }
footer .brand { display: flex; flex-direction: column; gap: 8px; }
footer .brand img { height: 36px; }

/* Header brand block on index footer */
.brand p { color: #333; }

/* -----------------------------
   Page-specific minor helpers
----------------------------- */
.tags strong { color: var(--color-brown); }
.addons h3, .comparison h3 { color: var(--color-brown); }
.microcopy { margin-top: 6px; }

/* -----------------------------
   Responsive Layout (Flex only)
----------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }

  .feature, .service, .faq > div, .pricing > div, .pricing-table .row, .testimonial-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 18px; }

  .feature, .service, .faq > div, .testimonial-card { flex: 1 1 calc(50% - 20px); }
  .pricing > div, .pricing-table .row { flex: 1 1 calc(33.333% - 20px); }

  footer .content-wrapper { flex-direction: row; justify-content: space-between; }
  .footer-nav, .footer-legal, .contact-mini { flex: 1 1 calc(33.333% - 20px); }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  .feature, .service { flex: 1 1 calc(33.333% - 20px); }
  .faq > div { flex: 1 1 calc(33.333% - 20px); }
  .testimonials .testimonial-card { flex: 1 1 calc(33.333% - 20px); }
}

/* -----------------------------
   Links & Hovers
----------------------------- */
a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-orange); }

/* -----------------------------
   Tables or Rows (if any)
----------------------------- */
.row { display: flex; flex-direction: column; gap: 10px; }

/* -----------------------------
   Mobile menu overlay scrim (optional via backdrop)
----------------------------- */
/* If a backdrop element is injected, ensure it covers content */
.mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 280ms ease; }
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }

/* -----------------------------
   Cookie Consent Banner & Modal
----------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--color-paper);
  border-top: 6px solid var(--color-brown);
  box-shadow: 0 -4px 0 rgba(0,0,0,0.08);
  padding: 16px;
}
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 8px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 8px 12px; }
.cookie-actions .accept { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.cookie-actions .reject { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.cookie-actions .settings { background: var(--color-mustard); color: #000; border-color: var(--color-brown); }

.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 130; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.cookie-backdrop.open { opacity: 1; pointer-events: auto; }

.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98);
  width: min(92vw, 560px);
  background: #fff; border: 3px solid var(--color-brown); border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.2);
  z-index: 140; opacity: 0; pointer-events: none; transition: transform 220ms ease, opacity 220ms ease;
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
}
.cookie-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.cookie-modal h3 { color: var(--color-primary); }
.cookie-cats { display: flex; flex-direction: column; gap: 12px; }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; background: var(--color-accent); border-radius: var(--radius-sm); }
.cookie-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Simple toggle (checkbox) style */
.toggle { position: relative; width: 46px; height: 26px; background: #cfcfcf; border-radius: 20px; border: 1px solid #999; transition: background 160ms ease; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 0 rgba(0,0,0,0.2); transition: left 160ms ease; }
.toggle.on { background: var(--color-secondary); }
.toggle.on::after { left: 24px; }

/* -----------------------------
   Forms (basic)
----------------------------- */
input, select, textarea { font: inherit; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid #bbb; background: #fff; }
label { font-weight: bold; }

/* -----------------------------
   Decorative details (subtle)
----------------------------- */
.card-vintage { background: #fff; border: 2px solid rgba(0,0,0,0.12); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.dotted-border { border: 2px dotted rgba(0,0,0,0.25); }
.double-top { border-top: 8px double var(--color-brown); }

/* -----------------------------
   Accessibility & Misc
----------------------------- */
.hidden { display: none !important; }

/* -----------------------------
   Page-specific selectors from HTML
----------------------------- */
/* Ensure these exist and look consistent */
.brand { display: flex; flex-direction: column; gap: 10px; }
.footer-nav, .footer-legal { flex-direction: column; }
.contact-mini { display: flex; flex-direction: column; gap: 10px; }

/* Inline rating & stats clarity */
.rating-summary, .stats { background: var(--color-accent); padding: 10px; border-radius: var(--radius-sm); }

/* Pricing comparison lists */
.comparison ul, .addons ul { padding-left: 18px; }

/* Ensure adequate spacing between all blocks */
section .container .content-wrapper > * + * { margin-top: 6px; }

/* -----------------------------
   Print tweaks (optional)
----------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  a { text-decoration: underline; }
}
