/* =============================
   Gaumenpfade - Professional Corporate Theme
   Single stylesheet for all pages
   Requirements:
   - Mobile-first, flexbox-only layouts
   - Professional corporate aesthetic (blue/gray) blended with brand accents
   - Business typography: Georgia (display) + Arial (body)
   - Mobile menu & cookie consent banner
   - Strong accessibility & contrast
   ============================= */

/* -------- CSS Reset & Normalize (light) -------- */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
/* Remove default link underline; we'll control it */
a {
  text-decoration: none;
  color: inherit;
}

/* -------- Design Tokens -------- */
:root {
  /* Brand colors */
  --brand-primary: #275842; /* Gaumenpfade primary (deep green) */
  --brand-secondary: #C65A3A; /* warm accent */
  --brand-accent: #FAF5E9; /* soft background accent */

  /* Corporate blue/gray palette */
  --blue-900: #0F2A43; /* header/footer deep navy */
  --blue-700: #1F4A6E;
  --blue-600: #2E6A9A;
  --blue-100: #E6EEF6;

  --gray-900: #1F2933; /* base text */
  --gray-800: #323F4B;
  --gray-700: #3E4C59;
  --gray-600: #52606D;
  --gray-500: #7B8794;
  --gray-300: #CBD2D9;
  --gray-200: #E5E7EB;
  --gray-100: #F5F7FA;
  --white: #FFFFFF;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 42, 67, 0.06);
  --shadow-md: 0 6px 16px rgba(15, 42, 67, 0.10);
  --shadow-lg: 0 10px 30px rgba(15, 42, 67, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Typography scale */
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
}

/* -------- Base Typography & Body -------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  color: var(--gray-900);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #5c7993;
}

h1 { font-size: var(--fs-32); line-height: 1.2; letter-spacing: 0.2px; }
h2 { font-size: var(--fs-28); line-height: 1.25; margin-bottom: 12px; }
h3 { font-size: var(--fs-20); line-height: 1.3; }
h4 { font-size: var(--fs-18); }

p { color: #92aac0; }
small { font-size: var(--fs-14); color: var(--gray-600); }

/* Accessible focus */
a, button, [role="button"], .btn-like {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

/* -------- Layout Helpers (Flex-only) -------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* MANDATORY SPACING AND ALIGNMENT PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.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; background: var(--gray-100); border: 1px solid var(--gray-200); border-left: 4px solid var(--brand-primary); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Default section spacing for pages (in addition to .section helper) */
main section { padding: 40px 0; }
main section + section { padding-top: 10px; }

/* -------- Header & Navigation -------- */
header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: relative; z-index: 50; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.main-nav {
  display: none; /* mobile-first: hidden */
  align-items: center;
  gap: 14px;
}
.main-nav a {
  color: var(--gray-800);
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color 200ms ease, color 200ms ease;
}
.main-nav a:hover { background: var(--gray-100); color: var(--blue-900); }
/* Emphasize last nav item (Jetzt buchen) */
.main-nav a:last-child {
  color: var(--white);
  background: var(--brand-primary);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.main-nav a:last-child:hover { background: #1f4735; }

/* Mobile Menu Toggle */
.mobile-menu-toggle, .mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--blue-900);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}
.mobile-menu-toggle:hover, .mobile-menu-close:hover { background: var(--gray-200); }
.mobile-menu-toggle:active, .mobile-menu-close:active { transform: scale(0.98); }

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 280ms ease;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0%); }
.mobile-menu-close { align-self: flex-end; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  color: var(--gray-900);
  background: var(--gray-100);
}
.mobile-nav a:hover { background: var(--gray-200); }
/* In mobile list, emphasize booking link if present */
.mobile-nav a[href*="buchen"] {
  background: var(--brand-primary);
  color: var(--white);
  border-color: transparent;
}

/* -------- Hero Sections -------- */
.hero { background: var(--brand-accent); border-bottom: 1px solid var(--gray-200); }
.hero .content-wrapper { gap: 16px; }
.hero h1 { color: var(--blue-900); }
.hero p { font-size: var(--fs-18); color: var(--gray-800); }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--blue-900);
}
.cta-group a:hover { background: var(--gray-100); transform: translateY(-1px); }
.cta-group a:nth-child(1) { background: var(--brand-primary); color: var(--white); border-color: transparent; }
.cta-group a:nth-child(1):hover { background: #1f4735; }

/* Info blocks (search, filters, badges, highlights) */
.search-bar, .quick-filters, .filter-summary-chips, .region-search, .category-tabs, .supporting-stats, .highlight-strip, .rating-summary, .contact-options, .opening-hours, .editor-note, .popular-tags, .map-filter-controls, .date-range-picker, .support-contact-snippet, .cancellation-policy-summary, .price-breakdown, .secure-payment-note, .customer-service-quote, .live-chat-teaser, .order_reference_note, .estimated_response_time, .response-time-note, .map-embed, .media-mentions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}
.rating-summary { display: inline-flex; align-items: center; gap: 10px; background: var(--blue-100); border-color: #cfe0f0; color: var(--blue-900); font-weight: 600; }
.rating-summary img { width: 18px; height: 18px; }
.trust-badges img { width: 18px; height: 18px; margin-right: 6px; }

/* USP bullets */
.usp-bullets { display: flex; flex-direction: column; gap: 10px; padding-left: 18px; }
.usp-bullets li { position: relative; color: var(--gray-800); }

/* -------- Reusable Cards & Lists -------- */
/* Grid-like lists using flex-only */
.feature-grid, .listing-cards, .region-cards, .category-cards, .featured-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
/* Items within these containers */
.feature-grid > .text-section,
.listing-cards > article,
.region-cards > article,
.category-cards > .text-section,
.featured-posts-grid > article {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 260px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-grid > .text-section:hover,
.listing-cards > article:hover,
.region-cards > article:hover,
.category-cards > .text-section:hover,
.featured-posts-grid > article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Specialized lists */
ul, ol { margin-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.process-steps, .progress-steps { counter-reset: step; margin-left: 0; }
.process-steps li, .progress-steps li { list-style: none; display: flex; align-items: flex-start; gap: 10px; }
.process-steps li::before, .progress-steps li::before {
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--blue-100);
  color: var(--blue-900);
  border-radius: 50%;
  font-weight: 700;
}

.included-list li { border-left: 4px solid var(--brand-primary); padding-left: 10px; }
.excluded-list li { border-left: 4px solid var(--gray-300); padding-left: 10px; }

.tour-date-listings li { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 12px; }

/* Testimonials: keep dark text on light background (contrast requirement) */
.testimonial-card p { color: var(--gray-900); font-style: italic; }
.testimonial-card .text-section { color: var(--gray-700); font-weight: 600; }

/* Footer blocks */
.brand-blurb p { color: var(--gray-100); opacity: 0.9; }
.address-block { color: inherit; font-style: normal; }

/* -------- Footer -------- */
footer section { background: var(--blue-900); color: #E7EEF5; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
footer .quick-links, footer .legal-links { display: flex; flex-wrap: wrap; gap: 12px; }
footer .quick-links a, footer .legal-links a { color: #E7EEF5; background: rgba(255,255,255,0.06); padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
footer .quick-links a:hover, footer .legal-links a:hover { background: rgba(255,255,255,0.12); }
footer .newsletter-signup { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); padding: 14px 16px; }

/* -------- Links in content -------- */
main p a, .text-section a {
  color: var(--brand-primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
main p a:hover, .text-section a:hover { color: #1f4735; border-color: #1f4735; }

/* -------- Utilities -------- */
.text-section { display: flex; flex-direction: column; gap: 8px; }
.content-grid > * { flex: 1 1 260px; }
.align-center { display: flex; align-items: center; justify-content: center; }
.chips, .filter-summary-chips span { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 999px; }

/* -------- Page-specific tweaks -------- */
/* Magazine featured posts and categories already covered by card rules */

/* Contact page blocks */
.contact-details-block, .opening-hours { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }

/* Tables not present; if added, keep corporate style using flex wrappers if needed */

/* -------- Cookie Consent Banner & Modal -------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 260ms ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--gray-300); background: var(--gray-100); color: var(--blue-900); font-weight: 600; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.cookie-btn:hover { background: var(--gray-200); }
.cookie-btn--primary { background: var(--brand-primary); border-color: transparent; color: var(--white); }
.cookie-btn--primary:hover { background: #1f4735; }
.cookie-btn--danger { background: #ECECEC; color: var(--gray-900); }

.cookie-backdrop {
  position: fixed; inset: 0; background: rgba(15,42,67,0.45); z-index: 1190; opacity: 0; pointer-events: none; transition: opacity 240ms ease;
}
.cookie-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.cookie-modal {
  position: fixed;
  left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98);
  width: calc(100% - 32px); max-width: 720px;
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  z-index: 1210;
  opacity: 0; pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
}
.cookie-modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }

/* -------- Mobile-first Responsive Rules -------- */
/* Already mobile-first; add enhancements for larger screens */
@media (min-width: 600px) {
  h1 { font-size: var(--fs-40); }
  h2 { font-size: var(--fs-32); }
  .hero p { font-size: var(--fs-18); }
}

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

  .content-wrapper { gap: 24px; }

  /* Multi-column-like layout using flex */
  .feature-grid > .text-section, .listing-cards > article, .region-cards > article, .category-cards > .text-section, .featured-posts-grid > article { flex: 1 1 calc(50% - 12px); }

  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  footer .brand-blurb { flex: 1 1 240px; }
  footer .quick-links { flex: 1 1 320px; }
  footer .newsletter-signup { flex: 1 1 320px; }
  footer .legal-links, footer .address-block { flex: 1 1 100%; }
}

@media (min-width: 1024px) {
  .feature-grid > .text-section, .listing-cards > article, .region-cards > article, .category-cards > .text-section, .featured-posts-grid > article { flex: 1 1 calc(33% - 16px); }
}

/* -------- Text-Image Section Alignment Rules -------- */
.text-image-section { align-items: center; }
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* -------- Z-index & Safety -------- */
header { z-index: 100; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 1200; }
.cookie-modal { z-index: 1210; }
.cookie-backdrop { z-index: 1190; }

/* -------- Icon sizing consistency -------- */
.text-section img[alt], p img[alt], .contact-options img, .opening-hours img, .support-contact-snippet img, .estimated_response_time img, .response-time-note img {
  width: 18px; height: 18px; object-fit: contain;
}

/* -------- Prevent overlaps with adequate spacing -------- */
main .content-wrapper > * + * { margin-top: 0; }
section .container { gap: 24px; }

/* -------- Subtle animations for UX -------- */
.btn-like, .cta-group a, .main-nav a:last-child, .mobile-nav a[href*="buchen"], .listing-cards > article, .region-cards > article, .featured-posts-grid > article, .category-cards > .text-section {
  will-change: transform, box-shadow;
}

/* -------- Accessibility color contrast in testimonials & ratings -------- */
/* Ensured by light backgrounds and dark text above */

/* -------- Additional classes from legal/utility pages -------- */
.policy-sections-overview, .data-controller-details, .contact-for-privacy, .third-country-transfers-note, .how-to-exercise-rights, .complaint-authority-info, .processing-register-summary, .data-protection-officer-details, .encryption-note, .access-control-measures, .cookie_preferences_manager, .opt_in_out_controls, .proof_of_consent_note, .definitions_list, .scope_of_use, .user_obligations, .liability_disclaimer, .booking_terms, .payment_terms, .cancellation_terms, .dispute_resolution_note, .what_happens_next_list, .case-snippets, .story-timeline, .founders-note, .value-statements, .quality-promises, .safety-standards, .sustainability-commitments, .local-partnerships-list, .partner-types, .selection-criteria-list, .region-coverage-list, .quality-labels, .strictly_necessary_list, .performance_list, .functional_list, .marketing_list, .articles-reference-list, .data-categories-list, .purposes-list, .legal-basis-list, .retention-periods-list, .rights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* -------- Buttons in content (non-CTA) -------- */
/* Style inline call-to-action links to resemble buttons when alone in a paragraph */
main p > a:only-child {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  background: var(--white);
}
main p > a:only-child:hover { background: var(--gray-100); }

/* -------- Header spacing for dense navs -------- */
.main-nav a { font-size: var(--fs-16); }

/* -------- Ensure minimum margin between content cards -------- */
.listing-cards > * { margin-bottom: 20px; }
.region-cards > * { margin-bottom: 20px; }
.category-cards > * { margin-bottom: 20px; }
.featured-posts-grid > * { margin-bottom: 20px; }

/* -------- Prevent absolute positioning on content cards (not used) -------- */
/* Only decorative/fixed used above for mobile menu & cookie banner */

/* -------- End of stylesheet -------- */
