/* ========================================
   AutoPro-Location.ch — Base Styles
   Mobile-first, lightweight, semantic
   ======================================== */

:root {
  --color-primary: #007ac2;
  --color-primary-dark: #005a8e;
  --color-accent: #fcd34d;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-bg: #ffffff;
  --color-bg-light: #f7f8fa;
  --color-bg-dark: #0f172a;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --color-footer-bg: #0f172a;
  --color-footer-text: #cbd5e1;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: 1.875rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.625rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-accent:hover {
  background: #f5c518;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
}

.logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo img {
    height: 40px;
  }
}

.main-nav {
  display: none;
}

.main-nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 0;
  }

  .main-nav a {
    padding: 8px 14px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.lang-switcher-btn:hover {
  border-color: var(--color-primary);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown.active {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition);
}

.lang-dropdown a:hover {
  background: var(--color-bg-light);
}

.lang-dropdown a.current {
  color: var(--color-primary);
  font-weight: 600;
}

/* Mobile Menu Toggle */

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: background var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform var(--transition);
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active span::after {
  transform: rotate(-45deg);
  top: 0;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .logo img {
  height: 32px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-footer-text);
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--color-footer-text);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--color-footer-text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.footer-legal a {
  color: var(--color-footer-text);
  font-size: 0.8125rem;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-lang {
  display: flex;
  gap: 12px;
  list-style: none;
}

.footer-lang a {
  color: var(--color-footer-text);
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-lang a:hover,
.footer-lang a.current {
  color: #fff;
}

.footer-email {
  margin-bottom: 0;
}

.footer-email a {
  color: var(--color-footer-text);
  font-size: 0.875rem;
}

.footer-email a:hover {
  color: #fff;
}

/* Disclaimer */

.disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  margin-top: 0;
}

.disclaimer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- Cookie Consent ---- */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 20px 0;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ---- Sections ---- */

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }
}

.section-light {
  background: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Utility ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---- Breadcrumb ---- */

.breadcrumb {
  padding: 12px 0;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.breadcrumb li::after {
  content: '›';
  margin-left: 6px;
  color: var(--color-text-light);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.seo-text ul {
  margin: 0 0 1rem 1.5rem;
  line-height: 1.8;
}

.seo-text li {
  margin-bottom: 6px;
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* ---- Hero Section ---- */

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #007ac2 100%);
  color: #fff;
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 0 64px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 100px 0 80px;
  }
}

.hero h1 {
  color: #fff;
  font-size: 2rem;
  max-width: 740px;
  margin: 0 auto 16px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

.hero-tagline {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 1.1875rem;
  }
}

/* ---- Booking Widget ---- */

.booking-section {
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

.widget-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ---- Trust Bar ---- */

.trust-bar {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-success);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Category Cards ---- */

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.category-card .btn {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ---- Feature / Why Section ---- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ---- FAQ Accordion ---- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-light);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ---- SEO Content ---- */

.seo-text {
  max-width: 800px;
}

.seo-text h2 {
  margin-bottom: 16px;
}

.seo-text p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---- Info Sections (Airport, Vans, Switzerland, etc.) ---- */

.info-content {
  max-width: 800px;
}

.info-content h2 {
  margin-bottom: 16px;
}

.info-content p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.info-cta {
  margin-top: 24px;
}

/* ---- Legal Pages ---- */

.legal-text h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-text h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-text h3 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-text p,
.legal-text li {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-text ul {
  margin: 0 0 1rem 1.5rem;
}

.legal-text li {
  margin-bottom: 6px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
}

.legal-table th {
  background: var(--color-bg-light);
  font-weight: 600;
  color: var(--color-text);
}

.legal-table td {
  color: var(--color-text-light);
}

.legal-table tr:nth-child(even) td {
  background: var(--color-bg-light);
}
