/* =====================================================
   Voltwerk Dortmund – style.css
   Design style: soft_pastel (pastel colors, gentle, dreamy)
   Brand: primary #0B3C5D, secondary #F5A300, accent #F5F7FA
   Fonts: Trebuchet MS (display), Verdana (body)
   Layout: Mobile-first, ONLY Flexbox (no grid/columns)
   Includes: Mobile menu + Cookie banner/modal
   ===================================================== */

/* ------------------------------
   0) CSS Reset & Base Normalize
   ------------------------------ */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { padding-left: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: 2px dashed rgba(11,60,93,0.5); outline-offset: 2px; }

/* ------------------------------
   1) Theme Variables (with fallbacks)
   ------------------------------ */
:root {
  --brand-primary: #0B3C5D;
  --brand-secondary: #F5A300;
  --brand-accent: #F5F7FA;
  /* Soft pastel support palette */
  --pastel-blue: #EAF6FF;
  --pastel-lavender: #F2EDFF;
  --pastel-mint: #E9F7F1;
  --pastel-blush: #FFE8EF;
  --pastel-peach: #FFEEDB;
  --pastel-lemon: #FFF9E6;
  --ink: #23313A;
  --ink-muted: #465865;
  --surface: #FFFFFF;
  --shadow-1: 0 6px 18px rgba(18, 38, 63, 0.06);
  --shadow-2: 0 10px 30px rgba(18, 38, 63, 0.08);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --container-w: 1180px;
}

/* ------------------------------
   2) Base Typography & Body
   ------------------------------ */
body {
  font-family: Verdana, Geneva, sans-serif;
  color: var(--ink, #23313A);
  background: linear-gradient(180deg, var(--pastel-blue, #EAF6FF) 0%, var(--brand-accent, #F5F7FA) 100%);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--brand-primary, #0B3C5D);
  line-height: 1.25;
}

h1 { font-size: 32px; letter-spacing: 0.2px; margin-bottom: 16px; }
h2 { font-size: 24px; letter-spacing: 0.2px; margin-bottom: 16px; }
h3 { font-size: 18px; letter-spacing: 0.2px; margin: 12px 0 8px; }

p { margin-bottom: 12px; color: var(--ink, #23313A); }
.small { font-size: 14px; color: var(--ink-muted, #465865); }

.tagline {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted, #465865);
  background: var(--pastel-lemon, #FFF9E6);
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.subheadline { font-size: 18px; color: var(--ink, #23313A); margin-bottom: 16px; }

/* ------------------------------
   3) Global Layout Helpers (Flex-only)
   ------------------------------ */
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--container-w, 1180px);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* MANDATORY spacing class (exact values) */
.section { margin-bottom: 60px; padding: 40px 20px; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface, #FFFFFF);
  padding: 24px;
  border-radius: var(--radius-l, 22px);
  box-shadow: var(--shadow-1);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.content-grid > * { flex: 1 1 260px; }

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section .text { flex: 1 1 320px; }
.text-image-section .image { flex: 1 1 320px; }

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface,#fff); border-radius: var(--radius-m); box-shadow: var(--shadow-1); padding: 20px; }

.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Keep min spacing between content blocks */
.content-wrapper > * + * { margin-top: 0; }

/* ------------------------------
   4) Header & Navigation (Flex-only)
   ------------------------------ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(11,60,93,0.06);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 40px; width: auto; }

.main-nav {
  display: none; /* mobile hidden */
  align-items: center;
  gap: 16px;
}
.main-nav a {
  color: var(--brand-primary, #0B3C5D);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.main-nav a:hover { background: var(--pastel-blue, #EAF6FF); }
.main-nav .cta {
  background: var(--brand-secondary, #F5A300);
  color: #1C1C1C;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.main-nav .cta:hover { filter: brightness(0.95); }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--pastel-lavender, #F2EDFF);
  color: var(--brand-primary, #0B3C5D);
  box-shadow: var(--shadow-1);
}
.mobile-menu-toggle:hover { background: var(--pastel-blue, #EAF6FF); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(11,60,93,0.1);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 100;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }

.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  margin: 16px 16px 0 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--brand-primary, #0B3C5D);
  box-shadow: var(--shadow-1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface, #FFFFFF);
  margin: 16px;
  padding: 20px;
  border-radius: var(--radius-l, 22px);
  box-shadow: var(--shadow-2);
}
.mobile-nav a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--ink, #23313A);
  background: var(--brand-accent, #F5F7FA);
}
.mobile-nav a:hover { background: var(--pastel-mint, #E9F7F1); }

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

/* ------------------------------
   5) Hero Sections
   ------------------------------ */
.hero {
  background: var(--pastel-blue, #EAF6FF);
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero .content-wrapper {
  background: linear-gradient(180deg, var(--surface,#fff) 0%, #FEFEFF 100%);
  border: 1px solid rgba(11,60,93,0.06);
}
.actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

/* ------------------------------
   6) Buttons & Links
   ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand-accent, #F5F7FA);
  color: var(--brand-primary, #0B3C5D);
  border: 1px solid rgba(11,60,93,0.12);
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); background: var(--pastel-mint, #E9F7F1); }

.btn-primary {
  background: var(--brand-primary, #0B3C5D);
  color: #FFFFFF;
  border: 1px solid rgba(11,60,93,0.1);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
  background: var(--brand-secondary, #F5A300);
  color: #1C1C1C;
}
.btn-secondary:hover { filter: brightness(0.96); }

/* ------------------------------
   7) Lists, Badges, Metrics
   ------------------------------ */
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; }
.text-section li { color: var(--ink, #23313A); }

.trust-badges ul, .highlight-metrics ul {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding-left: 0;
}
.trust-badges li {
  background: var(--pastel-peach, #FFEEDB);
  color: var(--ink, #23313A);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,60,93,0.08);
}
.highlight-metrics li {
  background: var(--pastel-lavender, #F2EDFF);
  color: var(--ink, #23313A);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,60,93,0.08);
}
.highlight-metrics strong { font-size: 18px; color: var(--brand-primary, #0B3C5D); }

/* ------------------------------
   8) Testimonials (high-contrast on light)
   ------------------------------ */
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px;
  background: var(--surface, #FFFFFF);
  border: 1px solid rgba(11,60,93,0.08);
  border-radius: var(--radius-m, 16px);
  box-shadow: var(--shadow-1);
  color: #1b2a34; /* dark text for readability */
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--ink-muted, #465865); }

/* ------------------------------
   9) Footer
   ------------------------------ */
footer { background: var(--brand-accent, #F5F7FA); border-top: 1px solid rgba(11,60,93,0.06); }
footer .content-wrapper { background: transparent; box-shadow: none; padding: 24px 0; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a {
  padding: 8px 10px; border-radius: 10px; color: var(--brand-primary, #0B3C5D);
  background: var(--surface, #FFFFFF); box-shadow: var(--shadow-1);
}
.footer-nav a:hover { background: var(--pastel-mint, #E9F7F1); }

/* ------------------------------
   10) Utility Classes & Micro-interactions
   ------------------------------ */
.fade-in-up { opacity: 0; transform: translateY(8px); animation: fadeUp 0.6s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.muted { color: var(--ink-muted, #465865); }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--brand-accent,#F5F7FA); }

/* ------------------------------
   11) Responsive Tweaks
   ------------------------------ */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .content-wrapper { padding: 28px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { padding-top: 50px; padding-bottom: 50px; }
  .container { gap: 24px; }
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 992px) {
  h1 { font-size: 44px; }
  .content-wrapper { padding: 32px; }
}

/* ------------------------------
   12) Forms (generic styles if forms added later)
   ------------------------------ */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface, #FFFFFF);
  border: 1px solid rgba(11,60,93,0.15);
  border-radius: 12px;
  color: var(--ink, #23313A);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary, #0B3C5D); }

/* ------------------------------
   13) Cookie Consent Banner & Modal
   ------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface, #FFFFFF);
  border-top: 1px solid rgba(11,60,93,0.12);
  box-shadow: 0 -8px 24px rgba(18,38,63,0.08);
  padding: 16px 20px;
}
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { border-radius: 12px; padding: 10px 14px; }
.cookie-actions .btn-accept { background: var(--brand-primary,#0B3C5D); color: #fff; }
.cookie-actions .btn-reject { background: var(--brand-accent,#F5F7FA); color: var(--brand-primary,#0B3C5D); }
.cookie-actions .btn-settings { background: var(--brand-secondary,#F5A300); color: #1C1C1C; }

/* Cookie modal overlay */
.cookie-modal {
  position: fixed; inset: 0; z-index: 130;
  display: none; /* shown via class or attribute */
  align-items: center; justify-content: center;
  background: rgba(11,60,93,0.2);
  backdrop-filter: blur(6px);
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content {
  width: min(680px, calc(100% - 32px));
  background: var(--surface, #FFFFFF);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switches for cookie categories */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid rgba(11,60,93,0.08); border-radius: 12px; background: var(--brand-accent,#F5F7FA); }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #CBD5E1; transition: background 0.2s ease; display: inline-flex; align-items: center; padding: 3px; }
.switch .knob { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transform: translateX(0); transition: transform 0.2s ease; }
.switch.active { background: var(--brand-primary,#0B3C5D); }
.switch.active .knob { transform: translateX(20px); }

/* ------------------------------
   14) Accessibility helpers
   ------------------------------ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ------------------------------
   15) Page-specific gentle pastel accents
   ------------------------------ */
/* About */
body.about .hero { background: var(--pastel-lavender, #F2EDFF); }
/* Services */
body.services .hero { background: var(--pastel-mint, #E9F7F1); }
/* Industries */
body.industries .hero { background: var(--pastel-peach, #FFEEDB); }
/* Projects */
body.projects .hero { background: var(--pastel-blush, #FFE8EF); }
/* Contact */
body.contact .hero { background: var(--pastel-lemon, #FFF9E6); }

/* If body classes aren't present, base hero pastel is already applied */

/* ------------------------------
   16) Links states
   ------------------------------ */
a:hover { color: var(--brand-primary, #0B3C5D); }
a:focus { outline: 2px dashed var(--brand-secondary, #F5A300); outline-offset: 2px; }

/* ------------------------------
   17) Table (if any appear in legal pages)
   ------------------------------ */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(11,60,93,0.1); }
th { background: var(--brand-accent, #F5F7FA); color: var(--brand-primary, #0B3C5D); }

/* ------------------------------
   18) Ensure no overlap and healthy spacing
   ------------------------------ */
section + section { margin-top: 0; }
.content-wrapper + .content-wrapper { margin-top: 20px; }

/* ------------------------------
   19) Prevent content overlap with fixed UI
   ------------------------------ */
body { padding-bottom: 0; }
@media (max-width: 480px) {
  body { padding-bottom: 80px; } /* space for cookie banner on small screens */
}

/* ------------------------------
   20) Print tweaks for legal pages
   ------------------------------ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section { padding: 0; margin-bottom: 24px; }
  .content-wrapper { box-shadow: none; border: 1px solid #ddd; }
}

/* =====================================================
   END – Only Flexbox used for layouts. No grid/columns.
   ===================================================== */
