/* =============================
   GlanzSchub Autoexperten - style.css
   Professional Corporate Theme (blue/gray palette)
   Mobile-first, Flexbox-only layouts
   ============================= */

/* ========== CSS RESET & NORMALIZE ========== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: none; background: none; padding: 0; cursor: pointer; }

/* ========== THEME TOKENS ========== */
:root {
  --primary: #0E2233;   /* deep corporate blue */
  --secondary: #2AAE7A; /* confident green */
  --accent: #F4F8FB;    /* light background */
  --text: #0E2233;
  --muted: #5B6B7A;
  --border: #D6DFE6;
  --bg: #FFFFFF;
  --shadow-1: 0 2px 10px rgba(14,34,51,0.06);
  --shadow-2: 0 6px 20px rgba(14,34,51,0.10);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --transition-fast: 160ms ease;
  --transition-med: 240ms ease;
}

/* ========== TYPOGRAPHY ========== */
/* Brand fonts: Inter (body), Oswald (display). Fallbacks ensure robustness. */
body {
  font-family: Inter, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: Oswald, Segoe UI, Arial, Helvetica, sans-serif;
  letter-spacing: 0.2px;
  color: var(--primary);
}

h1 { font-size: 32px; line-height: 1.2; margin-bottom: var(--space-16); }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: var(--space-16); }
h3 { font-size: 18px; line-height: 1.4; margin-bottom: var(--space-8); }

p, li { color: var(--text); }
strong { font-weight: 700; color: var(--primary); }

/* Links */
a { color: var(--primary); transition: color var(--transition-fast), opacity var(--transition-fast); }
a:hover { color: var(--secondary); }
a:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

/* ========== GLOBAL LAYOUT HELPERS (FLEX-ONLY) ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  align-items: flex-start;
}

.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 ========== */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .content-wrapper {
  padding: var(--space-16) 0;
}

.logo { display: flex; align-items: center; gap: var(--space-12); }
.logo-text {
  font-family: Oswald, Segoe UI, Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.tagline { color: var(--muted); font-size: 14px; }

.main-nav { display: none; gap: var(--space-16); align-items: center; }
.main-nav a {
  color: var(--primary);
  padding: 10px 8px;
  border-radius: 6px;
}
.main-nav a:hover { background: var(--accent); }
.main-nav a:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

.header-cta { display: none; gap: var(--space-12); }
.header-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.header-cta a:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); background: #239e6f; }
.header-cta a:active { transform: translateY(0); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-1);
}
.mobile-menu-toggle:hover { background: #eaf2f7; }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ========== MOBILE MENU (OVERLAY, SLIDE-IN) ========== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: var(--space-24);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  box-shadow: var(--shadow-2);
  z-index: 1200;
}
.mobile-menu.open,
.mobile-menu.active,
body.menu-open .mobile-menu,
.mobile-menu[aria-expanded="true"] { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu-close:hover { background: #eaf2f7; }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-12); }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 14px 10px;
  border-radius: 8px;
  color: var(--primary);
  border: 1px solid transparent;
}
.mobile-nav a:hover { background: var(--accent); }
.mobile-nav a:active { opacity: 0.85; }

/* ========== HERO ========== */
.hero {
  background: var(--accent);
  border-bottom: 1px solid var(--border);
}
.hero .content-wrapper { padding: var(--space-32) 0; }
.hero p.text-section { color: var(--muted); }
.hero .text-section a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-right: var(--space-8);
  margin-top: var(--space-8);
  border-radius: 8px;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.hero .text-section a:hover { background: #239e6f; box-shadow: var(--shadow-2); }

/* ========== GENERIC CONTENT ========== */
.text-section { display: flex; flex-direction: column; gap: var(--space-12); color: var(--text); }
.text-section ul, .text-section ol { padding-left: 18px; }
.text-section ul { list-style: disc; }
.text-section ol { list-style: decimal; }
.text-section li { margin-bottom: 8px; color: var(--text); }

/* Cards (utility) */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  padding: var(--space-20);
}

/* Testimonial cards: dark text on light background for readability */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}
.testimonial-card h3 { color: var(--primary); }
.testimonial-card p { color: var(--text); }

/* Feature item */
.feature-item > h3 { margin-bottom: 0; }

/* Lists inside content blocks spacing */
.content-wrapper > .text-section + .text-section { margin-top: var(--space-8); }

/* ========== FOOTER ========== */
footer {
  background: #0f1b26;
  color: #e8eef3;
  margin-top: var(--space-40);
}
footer .content-wrapper {
  padding: var(--space-32) 0;
}
footer .logo-text { color: #e8eef3; font-size: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
footer nav a {
  color: #c8d4de;
  padding: 6px 8px;
  border-radius: 6px;
}
footer nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
footer .text-section p, footer .text-section a { color: #c8d4de; }
footer .text-section a:hover { color: #fff; }

/* ========== BUTTONS (UTILITY) ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.btn-primary { background: var(--secondary); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #239e6f; box-shadow: var(--shadow-2); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--accent); }

/* ========== COOKIE CONSENT ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 16px rgba(14,34,51,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-16);
  z-index: 1100;
  transform: translateY(0);
  transition: transform var(--transition-med), opacity var(--transition-med);
}
.cookie-banner.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.cookie-banner .cookie-actions .accept { background: var(--secondary); color: #fff; }
.cookie-banner .cookie-actions .reject { background: #e9eff4; color: var(--primary); }
.cookie-banner .cookie-actions .settings { border: 1px solid var(--primary); color: var(--primary); }
.cookie-banner .cookie-actions a, .cookie-banner .cookie-actions button { padding: 10px 14px; border-radius: 8px; }

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed; inset: 0; background: rgba(14,34,51,0.5);
  display: none; align-items: center; justify-content: center; z-index: 1300;
}
.cookie-modal-backdrop.open, body.cookie-open .cookie-modal-backdrop { display: flex; }
.cookie-modal {
  background: #fff; width: 96%; max-width: 720px;
  border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: var(--space-16);
  padding: var(--space-24);
}
.cookie-modal .modal-header { display: flex; justify-content: space-between; align-items: center; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: flex-end; }

/* Simple toggle switch */
.switch { position: relative; width: 44px; height: 24px; border-radius: 24px; background: #D6DFE6; transition: background var(--transition-fast); display: inline-flex; align-items: center; padding: 2px; }
.switch input { appearance: none; width: 0; height: 0; margin: 0; }
.switch .knob { width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-1); transition: transform var(--transition-fast); }
.switch input:checked + .knob { transform: translateX(20px); }
.switch input:checked ~ .switch { background: var(--secondary); }

/* ========== ACCESSIBILITY & MICRO INTERACTIONS ========== */
::selection { background: #cfeee2; color: var(--primary); }
[role="button"], a, button { transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); }

/* ========== RESPONSIVE RULES ========== */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero .content-wrapper { padding: var(--space-40) 0; }
}

@media (min-width: 992px) {
  /* Header layout */
  header .content-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
  }
  .tagline { margin-left: auto; margin-right: var(--space-16); }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Footer layout */
  footer .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-24);
  }
}

/* ========== UTILITIES & SPACING ========== */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ========== PAGE-SPECIFIC POLISH ========== */
/* Breadcrumb-like small text in hero paragraphs */
.hero .text-section:first-child, .hero p.text-section:first-child { font-size: 14px; color: var(--muted); }

/* Section separators for clear structure */
main section .container { border-top: 1px solid #eef2f5; padding-top: var(--space-24); }
main section:first-of-type .container { border-top: none; padding-top: 0; }

/* Link groups inside text-section */
.text-section a + a { margin-left: var(--space-8); }

/* Testimonials stacking behavior */
section .testimonial-card + .testimonial-card { margin-top: var(--space-16); }

/* Vehicles list style hint cards */
.text-section .testimonial-card h3 { font-size: 18px; }

/* Prevent overlapping & ensure gaps for any wrapped groups */
.content-grid > * { flex: 1 1 260px; min-width: 260px; }
.card-container > .card, .card-container > * { flex: 1 1 280px; min-width: 280px; }

/* ========== FORMS (minimal; for future forms) ========== */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #bfe8d6; border-color: var(--secondary); }

/* ========== COMPLIANCE & LEGAL PAGES ========== */
/* Make long-form content comfortable to read */
main .content-wrapper .text-section h3 { margin-top: var(--space-16); }
main .content-wrapper .text-section p + h3 { margin-top: var(--space-16); }

/* ========== MISC VISUALS ========== */
/* Subtle divider blocks */
.divider { width: 100%; height: 1px; background: var(--border); }

/* Badges (used in Preise) */
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #eaf6f1; color: #1d8c63; font-weight: 600; font-size: 12px; }

/* Ensure minimum spacing between all content blocks */
section > .container > .content-wrapper > * { margin-bottom: 20px; }
section > .container > .content-wrapper > *:last-child { margin-bottom: 0; }

/* ========== SAFETY: FLEX-ONLY ENFORCEMENT (No grid/columns used) ========== */
/* Note: All layout containers above use display:flex and flex-wrap when needed. */

/* End of stylesheet */
