/* =========================
   Pulsar Poolklar - Vintage Retro Stylesheet
   Mobile-first, flexbox-only layouts
   Fonts: Trebuchet MS (display), Verdana (body)
   ========================= */

/* -------- RESET & BASE -------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
button { font: inherit; cursor: pointer; background: transparent; border: none; }
:focus { outline: 3px dotted #C9A227; outline-offset: 2px; }

/* -------- THEME TOKENS -------- */
:root {
  --primary: #0B5D6B; /* brand primary */
  --secondary: #19B5C6; /* brand secondary */
  --accent: #F2FBFD; /* brand accent */
  /* Vintage supporting tones */
  --paper: #FBF7ED; /* warm paper background */
  --ink: #2A2A2A;
  --brown: #6B4E3D;
  --rust: #B5654A;
  --gold: #C9A227;
  --sage: #8AA39B;
  --cream: #F7F3E8;
  --muted-line: #D7CDBB;
  --shadow: rgba(25, 30, 35, 0.12);
  --shadow-strong: rgba(25, 30, 35, 0.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

/* -------- TYPOGRAPHY SCALE -------- */
h1, h2, h3 { font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif; color: var(--primary); margin: 0 0 16px; letter-spacing: 0.6px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; color: #184D57; }

p { margin: 0 0 14px; font-size: 16px; }
.small, .fine-print { font-size: 14px; color: #4B4B4B; }
.subheadline { color: var(--brown); font-size: 18px; }
strong { color: #1F2C2F; }

/* -------- VINTAGE DECOR UTILITIES -------- */
.vintage-border {
  border: 2px solid var(--muted-line);
  box-shadow: 0 2px 0 0 var(--muted-line) inset, 0 6px 12px var(--shadow);
  border-radius: 10px;
}
.vintage-double {
  border: 4px double var(--muted-line);
  border-radius: 8px;
  box-shadow: 0 8px 20px var(--shadow);
}
.vintage-stripes {
  position: relative;
}
.vintage-stripes::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(11,93,107,0.06) 0, rgba(11,93,107,0.06) 8px, transparent 8px, transparent 16px);
  pointer-events: none; z-index: 0;
}
.vintage-paper { background-color: var(--cream); }

/* -------- GLOBAL LAYOUT CONTAINERS (FLEX ONLY) -------- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* Mandatory spacing patterns */
.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; }

/* Default section spacing for all pages */
main section { margin-bottom: 60px; padding: 40px 0; }

/* -------- HEADER & NAV -------- */
header { position: sticky; top: 0; z-index: 1000; background: var(--paper); box-shadow: 0 2px 8px var(--shadow); border-bottom: 4px double var(--muted-line); }
header > .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 42px; }

.main-nav { display: none; gap: 14px; align-items: center; }
.main-nav a { font-size: 14px; padding: 10px 12px; color: var(--primary); border-radius: 6px; border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--accent); color: #0A3F48; transform: translateY(-1px); }
.main-nav a:focus { outline: 2px dashed var(--gold); outline-offset: 2px; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--muted-line); background: var(--cream); color: var(--primary); transition: background-color .2s; }
.mobile-menu-toggle:hover { background: var(--accent); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0 0 0 0; background: rgba(20,25,28,0.5);
  display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch;
  transform: translateX(100%); transition: transform .35s ease; z-index: 1200;
}
.mobile-menu .mobile-nav-panel { display: flex; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu > nav.mobile-nav {
  width: 85%; max-width: 360px; height: 100%; background: var(--paper);
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-left: 6px double var(--muted-line);
}
.mobile-menu-close {
  align-self: flex-end; margin: 12px 12px 0 auto; width: 40px; height: 40px;
  border: 1px solid var(--muted-line); border-radius: 8px; background: var(--cream);
  color: var(--primary); transition: background-color .2s ease; 
}
.mobile-menu-close:hover { background: var(--accent); }
.mobile-nav a { font-size: 16px; padding: 12px 10px; border-radius: 6px; border: 1px solid transparent; color: var(--primary); }
.mobile-nav a:hover { background: var(--accent); border-color: var(--muted-line); }

/* Show desktop nav */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -------- HERO -------- */
.hero { position: relative; }
.hero .container { gap: 10px; }
.hero .content-wrapper { padding: 24px; background: var(--cream); border-radius: 12px; border: 4px double var(--muted-line); box-shadow: 0 10px 20px var(--shadow); }
.hero.accent .content-wrapper { background: var(--accent); }
.hero h1 { font-size: 28px; }
.hero .subheadline { margin-top: -6px; }

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

/* Decorative stripe band for accent sections */
.accent { background-color: var(--accent); position: relative; }
.accent::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--gold), var(--gold) 10px, transparent 10px, transparent 20px);
  opacity: .35; pointer-events: none;
}

/* -------- CTA BUTTONS -------- */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-group a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 10px; border: 2px solid var(--primary);
  background: var(--secondary); color: #083840; font-weight: 700; text-transform: none;
  box-shadow: 0 4px 0 0 #107A89 inset, 0 6px 12px var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.cta-group a:nth-child(2) { background: var(--cream); color: var(--primary); border-color: var(--muted-line); box-shadow: 0 4px 0 0 #E7DDC9 inset; }
.cta-group a:hover { transform: translateY(-2px); box-shadow: 0 3px 0 0 #0D6E7C inset, 0 10px 16px var(--shadow-strong); }
.cta-group a:active { transform: translateY(0); }

/* -------- BADGES / TRUST -------- */
.trust-badges { display: flex; flex-direction: column; gap: 10px; }
.trust-badges .text-section { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.trust-badges p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--muted-line); font-size: 14px; }
.trust-badges img { width: 18px; height: 18px; }

/* -------- GENERIC TEXT BLOCKS -------- */
.text-section { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--paper); border: 1px solid var(--muted-line); border-radius: 10px; box-shadow: 0 6px 12px var(--shadow); }
.text-section a { color: var(--primary); text-decoration: underline; }
.text-section a:hover { color: #083840; }

/* -------- SERVICE / FEATURE / PRICING CARDS -------- */
.service-cards, .feature-grid, .price-teasers, .price-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.service-cards .text-section, .feature-grid .text-section, .price-teasers .text-section, .price-cards .text-section {
  flex: 1 1 100%; min-width: 260px; background: var(--cream);
}

/* Retro header stripe on cards */
.service-cards .text-section::before, .feature-grid .text-section::before, .price-cards .text-section::before {
  content: ""; display: block; height: 6px; border-radius: 6px 6px 0 0;
  background-image: repeating-linear-gradient(90deg, var(--rust), var(--rust) 12px, var(--gold) 12px, var(--gold) 24px, var(--sage) 24px, var(--sage) 36px);
  margin: -16px -16px 8px -16px;
}

/* Pricing helpers */
.pricing .fine-print { opacity: 0.9; }
.price-factors-list, .usps-list, .client-types-list, .industry-segments-list, .next-steps-list, .kpi-counters { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; margin: 10px 0 0; }
.price-factors-list li, .usps-list li, .client-types-list li, .industry-segments-list li, .next-steps-list li {
  background: var(--paper); border: 1px dashed var(--muted-line); border-radius: 8px; padding: 8px 12px; font-size: 14px; box-shadow: 0 4px 10px var(--shadow);
}

/* KPIs */
.kpi-counters li { padding: 12px 16px; background: var(--accent); border: 2px solid var(--muted-line); border-radius: 10px; font-weight: 700; color: var(--primary); box-shadow: 0 6px 12px var(--shadow); }
.kpi-counters li strong { font-size: 20px; color: #102F35; }

/* -------- PROCESS / STEPS -------- */
.process .step-list, .features ol { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0 20px; }
.process .duration-note { font-style: italic; color: #3F4B4E; }

/* -------- TESTIMONIALS -------- */
.testimonials .content-wrapper, .testimonials.accent .content-wrapper { gap: 20px; }
.testimonial-card {
  background: #FFFFFF; /* ensure light background for contrast */
  border: 2px solid var(--muted-line);
  border-radius: 12px;
  box-shadow: 0 8px 16px var(--shadow);
}
.testimonial-card p { margin: 0; }
.rating-summary { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #19373D; }
.rating-summary img { width: 18px; height: 18px; }

/* -------- FAQ -------- */
.faq .text-section { background: #FFF; }
.faq a { color: var(--primary); text-decoration: underline; }

/* -------- CONTACT -------- */
.contact .content-wrapper { gap: 20px; }
.contact .text-section p, .contact .text-section li { font-size: 16px; }
.contact .text-section img { width: 18px; height: 18px; margin-right: 6px; }
.contact a { color: var(--primary); text-decoration: underline; }

/* -------- STATS / ABOUT / LEGAL -------- */
.stats .content-wrapper, .about .content-wrapper, .legal .content-wrapper { gap: 20px; }
.legal .text-section { background: #FFF; }

/* -------- CTA SECTION -------- */
.cta .content-wrapper { background: var(--cream); border: 4px double var(--muted-line); border-radius: 12px; padding: 24px; box-shadow: 0 10px 18px var(--shadow); }
.cta.accent .content-wrapper { background: var(--accent); }

/* -------- FOOTER -------- */
footer { background: var(--paper); border-top: 6px double var(--muted-line); padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 20px; }
footer .text-section { flex: 1 1 220px; background: transparent; border: none; box-shadow: none; padding: 0; }
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* -------- RESPONSIVE LAYOUTS -------- */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .service-cards .text-section, .feature-grid .text-section, .price-teasers .text-section, .price-cards .text-section { flex: 1 1 calc(33% - 14px); }
  .content-wrapper.row { flex-direction: row; }
}

/* Ensure mobile column layout */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* -------- LINKS & INTERACTIONS -------- */
a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .15s ease; }
a:hover { color: #0A3F48; }

/* -------- GENERIC CARD STYLE (optional classes used across pages) -------- */
.card { background: var(--paper); border: 1px solid var(--muted-line); border-radius: 10px; box-shadow: 0 8px 16px var(--shadow); padding: 16px; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 18px var(--shadow-strong); }

/* -------- LIST TWEAKS FOR RETRO BULLETS -------- */
ul li { position: relative; }
ul li::marker { color: var(--gold); }

/* -------- TABLE-LESS GRIDS (FLEX ONLY) -------- */
/* Provided via .content-grid, .card-container etc. All use flexbox. */

/* -------- ACCESSIBILITY CONTRAST ENFORCEMENT -------- */
.testimonials, .testimonials.accent { color: #1E2224; }
.testimonials .testimonial-card { background: #FFF; color: #1C1C1C; }

/* -------- MOBILE MENU ANIMATIONS -------- */
@keyframes slideInMenu { from { transform: translateX(100%);} to { transform: translateX(0);} }
@keyframes slideOutMenu { from { transform: translateX(0);} to { transform: translateX(100%);} }
.mobile-menu.open nav.mobile-nav { animation: slideInMenu .35s ease both; }

/* -------- COOKIE CONSENT -------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  display: none; /* hidden by default, add .show to display */
  background: var(--paper);
  border-top: 6px double var(--muted-line);
  box-shadow: 0 -10px 20px var(--shadow);
}
.cookie-banner.show { display: flex; }
.cookie-banner .banner-inner { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; width: 100%; }
.cookie-banner p { margin: 0; font-size: 14px; color: #253034; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.cookie-btn { padding: 10px 14px; border-radius: 8px; border: 2px solid var(--primary); background: var(--secondary); color: #083840; font-weight: 700; }
.cookie-btn.secondary { background: var(--cream); border-color: var(--muted-line); color: var(--primary); }
.cookie-btn.link { background: transparent; border-color: transparent; color: var(--primary); text-decoration: underline; }
.cookie-btn:hover { transform: translateY(-1px); }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(20,25,28,0.5); display: none; align-items: center; justify-content: center; z-index: 1600; }
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  width: 92%; max-width: 640px; background: var(--paper);
  border: 6px double var(--muted-line); border-radius: 12px; padding: 20px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 14px 28px var(--shadow-strong);
}
.cookie-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--muted-line); border-radius: 8px; background: #FFF; }
.cookie-row .label { font-weight: 700; color: var(--primary); }
.cookie-switch { display: inline-flex; align-items: center; gap: 8px; }
.cookie-switch input[type="checkbox"] { appearance: none; width: 44px; height: 24px; border-radius: 999px; background: #C9D5D8; position: relative; outline: none; border: 1px solid #AEB7BA; transition: background-color .2s ease; }
.cookie-switch input[type="checkbox"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #FFF; top: 2px; left: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.cookie-switch input[type="checkbox"]:checked { background: var(--secondary); }
.cookie-switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* -------- UTILITY FLEX HELPERS -------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* -------- PAGE-SPECIFIC MINOR TWEAKS -------- */
/* Index specific groups */
.features.accent .feature-grid .text-section, .pricing .price-teasers .text-section { background: #FFF; }

/* Referenzen lists */
.industry-segments-list li { background: #FFF; }

/* Thank you page */
.expected-response-time, .support-contact-hint { display: flex; align-items: center; gap: 8px; }
.expected-response-time img { width: 18px; height: 18px; }

/* -------- DESKTOP ENHANCEMENTS -------- */
@media (min-width: 992px) {
  .content-wrapper { gap: 24px; }
  .hero .content-wrapper { padding: 32px; }
  footer .content-wrapper { justify-content: space-between; }
}

/* -------- PRINT SAFETY -------- */
@media print { .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; } header { position: static; box-shadow: none; } }
