/* ==========================================================
   Vibrant Watt Ausbau - Geometric Structured UI (Flexbox Only)
   Author: Senior CSS Developer & UI Designer
   Notes: Mobile-first, accessible, no CSS Grid/Columns, strong geometry
   ========================================================== */

/* --------------------------
   CSS RESET & NORMALIZE
--------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
:focus { outline: 2px solid #0A7EA4; outline-offset: 2px; }

/* --------------------------
   THEME TOKENS (with fallbacks)
--------------------------- */
:root {
  --brand-primary: #1E293B; /* slate */
  --brand-secondary: #0A7EA4; /* teal-blue */
  --brand-accent: #F8FAFC; /* light */
  --ink: #0f172a; /* darkest text */
  --ink-muted: #334155; /* muted text */
  --line: #E2E8F0; /* lines */
  --surface: #ffffff;
  --surface-alt: #F1F5F9;
  --accent-soft: #E6F7FB; /* soft secondary tint */
  --success: #047857;
  --warning: #B45309;
  --error: #B91C1C;
}

/* --------------------------
   BASE TYPOGRAPHY
--------------------------- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--brand-accent);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3, h4, h5 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  color: var(--brand-primary);
}
h1 { font-size: 32px; letter-spacing: 0.5px; }
h2 { font-size: 24px; margin-bottom: 16px; letter-spacing: 0.4px; }
h3 { font-size: 18px; margin-bottom: 12px; letter-spacing: 0.3px; }
p { margin-bottom: 12px; color: var(--ink); }
small { font-size: 12px; color: var(--ink-muted); }
strong { font-weight: 700; }

/* Geometric section title accent */
.section-title, h2 {
  position: relative;
  padding-left: 18px;
}
.section-title::before, h2::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 6px; background: var(--brand-secondary);
}

/* --------------------------
   LAYOUT PRIMITIVES (Flex Only)
--------------------------- */
.container {
  display: flex; flex-direction: column; gap: 20px;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 16px;
}
section { margin-bottom: 60px; padding: 40px 0; }

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

/* Avoid overlap & ensure spacing between items */
.card, .feature-card, .case-study, .testimonial-card, .articles li, .resources li {
  margin-bottom: 20px;
}

/* --------------------------
   HEADER & NAVIGATION
--------------------------- */
header {
  background: var(--surface);
  border-bottom: 3px solid var(--brand-primary);
  position: sticky; top: 0; z-index: 50;
}
.brand-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.brand-bar img { height: 36px; width: auto; }
.tagline { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.4px; }

/* Primary nav */
header nav {
  display: none; /* Hidden on mobile */
  align-items: center; justify-content: flex-start; gap: 14px;
  padding: 10px 20px; flex-wrap: wrap;
}
header nav a {
  color: var(--brand-primary);
  padding: 10px 12px;
  border: 1.5px solid transparent;
  text-transform: uppercase; letter-spacing: 0.8px; font-size: 12px; font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
header nav a:hover { color: var(--brand-secondary); border-color: var(--brand-secondary); transform: translateY(-1px); }

/* CTAs in header */
header nav .cta-primary, .cta-primary {
  background: var(--brand-secondary); color: #fff;
  border: 2px solid var(--brand-secondary);
  padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
header nav .cta-primary:hover, .cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(10,126,164,0.2); background: #096689; }

header nav .cta-secondary, .cta-secondary {
  background: transparent; color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
  padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-size: 13px;
}
header nav .cta-secondary:hover, .cta-secondary:hover { background: var(--accent-soft); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 10px 20px;
  color: var(--surface); background: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  font-size: 20px; border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mobile-menu-toggle:hover { background: #162231; transform: translateY(-1px); }

/* Mobile menu (overlay) */
.mobile-menu {
  position: fixed; inset: 0; background: var(--brand-primary);
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(-100%);
  transition: transform 0.35s ease; z-index: 100;
  padding: 16px 20px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 44px; height: 44px;
  color: #fff; font-size: 20px; border: 2px solid #fff; border-radius: 4px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a {
  color: #fff; padding: 12px 10px; border: 1px solid rgba(255,255,255,0.18);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: 13px;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); }

/* Desktop breakpoint: show nav, hide toggle */
@media (min-width: 992px) {
  header nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* --------------------------
   HERO SECTION
--------------------------- */
.hero {
  background: var(--surface);
  border-top: 6px solid var(--brand-secondary);
  position: relative;
}
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--brand-primary), var(--brand-primary) 24px, transparent 24px, transparent 48px);
  opacity: 0.08; pointer-events: none;
}
.hero .content-wrapper { gap: 18px; }
.hero p { color: var(--ink-muted); }

/* Trust badges & quick contact */
.trust-badges, .quick-contact-strip, .contact-short, .phone-fallback-cta, .phone-cta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.trust-badges span {
  background: var(--surface-alt); color: var(--ink);
  border: 1.5px solid var(--line); padding: 8px 10px; font-size: 13px; font-weight: 700;
}
.quick-contact-strip, .contact-short, .phone-cta {
  background: var(--accent-soft); border: 2px solid var(--brand-secondary);
  padding: 10px 12px; font-weight: 700; color: var(--brand-primary);
}
.quick-contact-strip a, .contact-short a, .phone-cta a { color: var(--brand-primary); text-decoration: underline; }
.hours-badge, .opening-hours-badge { background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; font-size: 12px; }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------
   FEATURE GRID & SERVICE LISTS
--------------------------- */
.feature-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
}
.feature-card {
  flex: 1 1 260px; min-width: 260px;
  background: var(--surface); border: 2px solid var(--brand-primary);
  padding: 18px; position: relative;
}
.feature-card::after {
  content: ""; position: absolute; right: -2px; top: -2px; width: 28px; height: 28px;
  border-left: 2px solid var(--brand-primary); border-bottom: 2px solid var(--brand-primary);
  background: var(--brand-secondary);
}
.feature-card h3 { margin-top: 6px; }
.feature-card a { color: var(--brand-secondary); font-weight: 700; text-decoration: underline; }

.features ul, .services ul, .values ul, .team ul, .partners ul, .statistics ul, .articles ul, .resources ul, .faq dl, .case-study ul, .locations ul {
  display: flex; flex-direction: column; gap: 10px; margin-top: 6px;
}

/* Geometric bullets */
ul li {
  list-style: none; position: relative; padding-left: 18px;
}
ul li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px;
  background: var(--brand-secondary); transform: rotate(45deg);
}

/* Micro FAQ blocks */
.micro-faq { display: flex; flex-direction: column; gap: 10px; background: var(--surface-alt); border: 1px solid var(--line); padding: 12px 14px; }

/* --------------------------
   PROCESS & STEPPER
--------------------------- */
.stepper {
  display: flex; flex-direction: column; gap: 10px;
  border-left: 4px solid var(--brand-secondary); padding-left: 12px;
}
.stepper li { font-weight: 700; color: var(--brand-primary); }

/* --------------------------
   STATISTICS / KPI
--------------------------- */
.kpi-list {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-start;
}
.kpi-list li {
  background: var(--surface); border: 2px solid var(--brand-primary);
  padding: 12px 14px; font-weight: 800; letter-spacing: 0.5px;
}
.guarantees { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-muted); }

/* --------------------------
   CASE STUDIES / ARTICLES
--------------------------- */
.case-study {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 2px solid var(--brand-primary); padding: 16px;
}
.case-study h3 { color: var(--brand-primary); }
.case-study a { color: var(--brand-secondary); font-weight: 700; text-decoration: underline; }

.articles li { display: flex; flex-direction: column; gap: 6px; }
.articles a { color: var(--brand-primary); font-weight: 800; text-decoration: underline; }

.project-filters, .service-nav, .category-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.project-filters a, .service-nav a, .category-filters a {
  padding: 8px 10px; border: 1px solid var(--line);
  text-transform: uppercase; font-size: 12px; letter-spacing: 0.7px; color: var(--brand-primary);
}
.project-filters a:hover, .service-nav a:hover, .category-filters a:hover { border-color: var(--brand-secondary); color: var(--brand-secondary); }

/* --------------------------
   TESTIMONIALS (contrast: light bg + dark text)
--------------------------- */
.testimonials { background: var(--brand-accent); }
.testimonial-card {
  background: var(--surface); border: 2px solid var(--brand-primary);
}
.testimonial-card blockquote { color: var(--ink); font-style: italic; }
.testimonial-meta { color: var(--ink-muted); font-size: 14px; }
.rating-summary { margin-top: 10px; padding: 10px; border: 1px dashed var(--brand-secondary); color: var(--brand-primary); font-weight: 700; }

/* --------------------------
   FORMS: Search, Newsletter
--------------------------- */
.search-bar { display: flex; gap: 10px; align-items: stretch; }
.search-bar input {
  flex: 1 1 auto; border: 2px solid var(--brand-primary); padding: 10px 12px; background: var(--surface);
}
.search-bar button { width: 46px; border: 2px solid var(--brand-primary); background: var(--brand-secondary); }
.search-bar button img { filter: brightness(0) invert(1); }

.newsletter form { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 2px solid var(--brand-primary); padding: 14px; }
.newsletter button { background: var(--brand-secondary); color: #fff; padding: 10px 14px; border: 2px solid var(--brand-secondary); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.newsletter button:hover { background: #096689; }

/* --------------------------
   LEGAL PAGES
--------------------------- */
.legal .content-wrapper { gap: 12px; }
.legal h1 { font-size: 28px; }
.legal h2 { margin-top: 12px; }

/* --------------------------
   LOCATIONS & MAP
--------------------------- */
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--surface); border: 2px dashed var(--brand-primary); padding: 16px;
}
.map-placeholder a { color: var(--brand-secondary); text-decoration: underline; }

/* --------------------------
   FOOTER
--------------------------- */
footer { background: var(--brand-primary); color: #fff; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
footer a { color: #fff; text-decoration: underline; }
footer .quick-links, footer .legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
footer .contact-details { display: flex; flex-direction: column; gap: 6px; }
footer section { margin-bottom: 0; padding: 30px 0; }

/* --------------------------
   CTA SECTIONS
--------------------------- */
.cta { background: var(--surface); border-top: 3px solid var(--brand-primary); border-bottom: 3px solid var(--brand-primary); }
.cta .content-wrapper { gap: 14px; }
.cta nav { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------
   RESPONSIVE RULES
--------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
}
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  .feature-card { flex: 1 1 30%; }
  .kpi-list li { margin-right: 6px; }
}

/* --------------------------
   INTERACTIVE STATES & MICRO-ANIMATIONS
--------------------------- */
*:hover { transition: all 0.15s ease; }
a:hover { color: var(--brand-secondary); }
.cta-primary:active, .cta-secondary:active { transform: translateY(0); }

/* --------------------------
   ACCESSIBILITY & UTILITY
--------------------------- */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.muted { color: var(--ink-muted); }

/* --------------------------
   COOKIE CONSENT (Banner & Modal)
--------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--surface); border-top: 3px solid var(--brand-primary);
  box-shadow: 0 -6px 14px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; gap: 12px; padding: 14px 16px;
}
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; border: 2px solid var(--brand-primary); }
.cookie-accept { background: var(--brand-secondary); border-color: var(--brand-secondary); color: #fff; }
.cookie-reject { background: var(--surface); color: var(--brand-primary); }
.cookie-settings { background: var(--surface-alt); }

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(30,41,59,0.6); z-index: 300; display: none; align-items: center; justify-content: center;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: var(--surface); border: 3px solid var(--brand-primary);
  width: 92%; max-width: 720px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.cookie-modal h3 { font-size: 20px; }
.cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); padding: 10px; }
.cookie-row .badge { padding: 4px 8px; border: 1px solid var(--brand-primary); font-size: 12px; font-weight: 700; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* --------------------------
   PAGE-SPECIFIC FINISHING TOUCHES
--------------------------- */
.address-block { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 2px solid var(--brand-primary); padding: 14px; }
.brand-blurb { display: flex; align-items: center; gap: 14px; }
.brand-blurb img { width: 48px; height: 48px; }
.quick-links, .legal-links { align-items: center; }

/* About page text block */
.about .text-section { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 2px solid var(--brand-primary); padding: 16px; }

/* Elements badges */
.phone-fallback-cta, .opening-hours-badge { align-items: center; }

/* --------------------------
   PRINT (simple)
--------------------------- */
@media print {
  .mobile-menu-toggle, .mobile-menu, header nav .cta-primary, header nav .cta-secondary, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  a { text-decoration: underline; color: #000; }
}

/* --------------------------
   SAFETY: NO GRID/COLUMN PROPERTIES USED
--------------------------- */
/* All layout containers use display:flex; verified above. */
