/* ====================================================================== */
/* Soft Jolt Europa-Reisen - style.css                                    */
/* Soft Pastel UI, mobile-first, flexbox-only layouts                      */
/* ====================================================================== */

/* 1) Reset & base normalize */
html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Verdana, Geneva, sans-serif; font-size: 16px; line-height: 1.65; color: #25445C; background: #FAFCFE; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
ul, ol { padding-left: 20px; }
figure { margin: 0; }

/* 2) Color system (CSS custom properties with fallbacks in rules) */
:root {
  --sj-primary: #0D3B66;     /* deep navy */
  --sj-secondary: #2B7A78;   /* teal */
  --sj-accent: #F4F8FB;      /* soft accent */
  --sj-ink: #25445C;         /* body text */
  --sj-muted: #6C8799;       /* muted text */
  --sj-border: #E3ECF3;      /* soft border */
  --sj-white: #FFFFFF;
  --sj-bg: #FAFCFE;          /* page bg */
  /* Pastel tints */
  --pastel-sky: #EAF4FF;     /* hero/sections */
  --pastel-mint: #E6F4F1;
  --pastel-blush: #FFEFF3;
  --pastel-lilac: #F3EEFF;
  --pastel-peach: #FFF3E9;
  --shadow-1: 0 2px 10px rgba(13,59,102,0.06);
  --shadow-2: 0 8px 24px rgba(13,59,102,0.08);
}

/* 3) Typography */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif; color: #0D3B66; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; color: #2B7A78; }
.subheadline { font-size: 16px; color: #3F6175; margin: 8px 0 0; max-width: 70ch; }

p { margin: 0 0 16px; }
small, .small { font-size: 14px; color: #6C8799; }

/* Links */
a { color: #0D3B66; text-decoration: underline; text-underline-offset: 2px; transition: color 0.25s ease; }
a:hover { color: #2B7A78; }
a.btn { text-decoration: none; }

/* Focus visibility */
:focus-visible { outline: 2px dashed #2B7A78; outline-offset: 3px; }

/* 4) Layout helpers - Flexbox only */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* Global sections spacing */
section { margin-bottom: 60px; }

/* MANDATORY SPACING/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: #FFFFFF; border: 1px solid #E3ECF3; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.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: #FFFFFF; border: 1px solid #E3ECF3; border-radius: 16px; box-shadow: var(--shadow-1); color: #0D3B66; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* 5) Header */
header { background: var(--sj-accent); border-bottom: 1px solid var(--sj-border); position: relative; z-index: 50; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo img { height: 42px; width: auto; }
.brand-tagline { color: #4F6D7A; font-size: 14px; background: #FFFFFF; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow-1); }

/* Main navigation (desktop) */
.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 12px; color: #0D3B66; border: 1px solid transparent; transition: background-color 0.2s ease, border-color 0.2s ease; }
.main-nav a:hover { background: #FFFFFF; border-color: #D7E6F0; }

/* Header CTAs */
.cta-group { display: flex; flex-wrap: wrap; gap: 10px; }

/* Mobile menu button */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #D7E6F0; background: #FFFFFF; color: #0D3B66; font-size: 20px; box-shadow: var(--shadow-1); transition: background 0.2s ease; }
.mobile-menu-toggle:hover { background: #F7FBFF; }

/* 6) Mobile menu overlay (covers full screen) */
.mobile-menu { position: fixed; inset: 0; background: #FFFFFF; display: flex; flex-direction: column; gap: 20px; padding: 20px; transform: translateX(100%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; z-index: 1000; }
.mobile-menu.open { transform: translateX(0); opacity: 1; }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #E3ECF3; background: #FFFFFF; color: #0D3B66; font-size: 20px; box-shadow: var(--shadow-1); }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 12px; background: #F7FBFF; color: #0D3B66; border: 1px solid #E3ECF3; font-size: 18px; }
.mobile-nav a:hover { background: #EAF4FF; }

/* 7) Hero */
.hero { background: var(--pastel-sky); border-bottom: 1px solid var(--sj-border); padding: 30px 0; }
.hero .content-wrapper { flex-direction: column; align-items: flex-start; gap: 16px; }
.hero h1 { font-size: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Trust badges */
.trust-badges ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges li { display: flex; align-items: center; gap: 10px; background: #FFFFFF; padding: 10px 12px; border-radius: 12px; border: 1px solid #E3ECF3; box-shadow: var(--shadow-1); color: #25445C; }
.trust-badges img { width: 20px; height: 20px; }

/* Text blocks */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.text-section a { color: #2B7A78; font-weight: 600; }

/* Address / icon lists */
.text-section li { display: flex; align-items: center; gap: 10px; }
.text-section li img { width: 18px; height: 18px; }

/* 8) Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; letter-spacing: 0.2px; box-shadow: var(--shadow-1); transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.primary { background: #0D3B66; color: #FFFFFF; border-color: #0D3B66; }
.btn.primary:hover { background: #11508F; border-color: #11508F; }
.btn.secondary { background: #FFFFFF; color: #0D3B66; border-color: #D7E6F0; }
.btn.secondary:hover { background: #EAF4FF; border-color: #BFD8E8; }

/* 9) Sections variety backgrounds to support soft pastel style */
main section:nth-of-type(2n) { background: #FFFFFF; }
main section:nth-of-type(3n) { background: var(--pastel-mint); }
main section:nth-of-type(5n) { background: var(--pastel-blush); }
/* Ensure comfortable spacing inside pastel sections */
main section .container { padding-top: 20px; padding-bottom: 20px; }

/* 10) Testimonials (contrast ensured) */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-left: auto; color: #2B7A78; }

/* 11) Footer */
footer { background: #0D3B66; color: #FFFFFF; padding: 30px 0; }
footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { color: #E6F0F7; }
.footer-nav { display: flex; flex-direction: column; gap: 20px; }
.footer-nav .text-section { background: transparent; padding: 0; }
.footer-nav a { color: #FFFFFF; text-decoration: none; padding: 6px 0; opacity: 0.92; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact h3, .footer-nav h3, .newsletter h3, .social-links h3 { color: #FFFFFF; }
.newsletter p { color: #E6F0F7; }
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-links a { color: #FFFFFF; text-decoration: none; opacity: 0.92; }
.social-links a:hover { opacity: 1; text-decoration: underline; }

/* 12) Cookie consent banner & modal */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: #FFFFFF; color: #25445C; border: 1px solid #E3ECF3; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-2); transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform 0.35s ease, opacity 0.35s ease; z-index: 1100; }
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-banner .btn { padding: 10px 16px; }
.cookie-banner .btn.accept { background: #2B7A78; color: #FFFFFF; border-color: #2B7A78; }
.cookie-banner .btn.accept:hover { background: #2F8C8A; border-color: #2F8C8A; }
.cookie-banner .btn.reject { background: #FFFFFF; color: #0D3B66; border-color: #D7E6F0; }
.cookie-banner .btn.settings { background: #EAF4FF; color: #0D3B66; border-color: #BFD8E8; }

.cookie-modal { position: fixed; inset: 0; background: rgba(13,59,102,0.2); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 1200; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-content { width: 100%; max-width: 680px; background: #FFFFFF; border: 1px solid #E3ECF3; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-2); }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #EAF1F7; border-radius: 12px; background: #F9FCFF; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* 13) Utilities & micro-interactions */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E3ECF3; color: #2B7A78; font-weight: 700; font-size: 13px; }
.muted { color: #6C8799; }
.soft-surface { background: #FFFFFF; border: 1px solid #E3ECF3; border-radius: 16px; box-shadow: var(--shadow-1); padding: 16px; }

/* 14) Responsive rules */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .subheadline { font-size: 17px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 40px; }
  main .content-wrapper { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  main .content-wrapper > .text-section { flex: 1 1 320px; }
  .trust-badges li { padding: 12px 14px; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .content-wrapper { gap: 16px; }
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-nav { flex-direction: row; gap: 40px; }
  .brand-tagline { font-size: 14px; }
}

/* 15) Ensuring adequate spacing between elements */
.text-section + .text-section { margin-top: 12px; }
.content-wrapper > * { margin-bottom: 0; }

/* 16) Prevent overlaps & z-index context */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 100; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 1100; }
.cookie-modal { z-index: 1200; }

/* 17) Forms (generic, for future inputs) */
input, select, textarea { font-family: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #D7E6F0; border-radius: 10px; background: #FFFFFF; color: #25445C; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input:focus, select:focus, textarea:focus { border-color: #2B7A78; box-shadow: 0 0 0 3px rgba(43,122,120,0.15); outline: none; }
label { font-weight: 700; color: #0D3B66; }

/* 18) Cards for destinations or features (not strictly in HTML but available) */
.destination-card, .feature-card { background: #FFFFFF; border: 1px solid #E3ECF3; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); }
.destination-card:hover, .feature-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* 19) Strong visual hierarchy within lists */
.text-section li strong { color: #0D3B66; }

/* 20) Hero variants by page (subtle tints) */
.kleingruppenreisen .hero, body:has(title:contains("Kleingruppenreisen")) .hero { background: var(--pastel-mint); }
.reiseziele .hero, body:has(title:contains("Reiseziele")) .hero { background: var(--pastel-lilac); }
.nachhaltigkeit .hero, body:has(title:contains("Nachhaltigkeit")) .hero { background: var(--pastel-mint); }
.ueber-uns .hero, body:has(title:contains("Über Uns")) .hero { background: var(--pastel-blush); }
.kontakt .hero, body:has(title:contains("Kontakt")) .hero { background: var(--pastel-peach); }
/* Note: The :has() selector is progressive enhancement; base hero has pastel-sky. */

/* 21) Accessibility: high-contrast testimonials & review text */
/* Ensured via dark text on white/light backgrounds in testimonial-card */

/* 22) Print styles (light) */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { color: #000; text-decoration: underline; }
}

/* 23) Compliance: no CSS grid or columns used; flexbox-only layouts */
/* End of file */
