/* ============================
   LumenGate Stadtblick – style.css
   Design: geometric_structured (geometric shapes, structured grids, angular fonts, precise layouts)
   Mobile-first, flexbox-only, accessible, responsive
   ============================ */

/* ----------------------------
   0) CSS Reset / Normalize
---------------------------- */
* { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font: inherit; cursor: pointer; }
:focus { outline: 2px solid #2E7D6A; outline-offset: 2px; }

/* ----------------------------
   1) Root Variables + Fallbacks
---------------------------- */
:root {
  --primary: #16324F; /* deep urban blue */
  --secondary: #2E7D6A; /* teal */
  --accent: #F4F7FB; /* light background */
  --text: #0E1F2E; /* near-black for high contrast */
  --muted: #6E7A87; /* muted text */
  --line: #D7DFE9; /* subtle divider */
  --white: #FFFFFF;
  --shadow: 0 6px 16px rgba(12, 28, 44, 0.08);
  --radius: 6px; /* angular but slightly softened */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --maxw: 1200px;
  --fast: 180ms;
  --slow: 280ms;
}

/* ----------------------------
   2) Base Typography
---------------------------- */
body {
  color: #0E1F2E; color: var(--text);
  background: #FFFFFF; background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #16324F; color: var(--primary);
  line-height: 1.25;
  letter-spacing: 0.02em; /* precise, structured */
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; margin-bottom: var(--space-16); }
h3 { font-size: 20px; font-weight: 700; margin-top: var(--space-16); margin-bottom: var(--space-8); }
h4 { font-size: 18px; font-weight: 700; margin-top: var(--space-16); margin-bottom: var(--space-8); }

p { margin-bottom: var(--space-16); color: var(--text); }

.subheadline { color: #6E7A87; color: var(--muted); font-size: 18px; margin-top: var(--space-12); margin-bottom: var(--space-20); }

/* Structured links */
a { color: var(--secondary); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

/* List styling – geometric bullets */
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: var(--space-8); margin: var(--space-12) 0 var(--space-16); }
.text-section ul li, .text-section ol li { position: relative; padding-left: 20px; }
.text-section ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--secondary); transform: rotate(45deg); }
.text-section ol { counter-reset: item; }
.text-section ol li::before { counter-increment: item; content: counter(item) "."; position: absolute; left: 0; top: 0; color: var(--secondary); font-weight: 700; }

/* ----------------------------
   3) Layout Containers (Flex-only)
---------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-20); display: flex; flex-direction: column; gap: var(--space-20); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); }
section { border-top: 1px solid var(--line); }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Mandatory spacing containers (provided in brief) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: var(--space-12); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-20); box-shadow: var(--shadow); }
.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(--accent); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure minimum spacing between content blocks */
section .testimonial-card + .testimonial-card { margin-top: var(--space-16); }

/* ----------------------------
   4) Header & Navigation (Flex)
---------------------------- */
header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 2px solid var(--primary); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); padding: var(--space-16) 0; }
.logo img { height: 28px; }

.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em; /* angular, precise */
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  transition: color var(--fast) ease, border-color var(--fast) ease;
}
.main-nav a:hover { color: var(--secondary); border-color: var(--secondary); }

.header-cta { display: none; align-items: center; gap: var(--space-12); }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 4px;
  color: var(--white); background: var(--primary);
  box-shadow: var(--shadow);
  transition: background var(--fast) ease, transform var(--fast) ease;
}
.mobile-menu-toggle:hover { background: var(--secondary); transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; background: var(--white);
  transform: translateX(100%);
  transition: transform var(--slow) ease;
  display: flex; flex-direction: column; gap: var(--space-20);
  padding: var(--space-20);
  z-index: 1100;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--accent); color: var(--primary); }
.mobile-nav { display: flex; flex-direction: column; gap: var(--space-12); }
.mobile-nav a {
  padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.mobile-nav a:hover { border-color: var(--secondary); color: var(--secondary); }

/* ----------------------------
   5) Hero Section – geometric accent
---------------------------- */
.hero { background: var(--accent); position: relative; overflow: hidden; }
.hero .content-wrapper { padding: var(--space-32) 0; }
/* Decorative geometric bar (non-content) */
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  background: var(--secondary); opacity: 0.06; transform: rotate(45deg);
  pointer-events: none; z-index: 0;
}
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }

.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); }

/* ----------------------------
   6) Buttons – angular, structured
---------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 4px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; transition: background var(--fast) ease, color var(--fast) ease, transform var(--fast) ease, box-shadow var(--fast) ease; }
.btn.primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow); }
.btn.primary:hover { background: var(--secondary); transform: translateY(-1px); }
.btn.secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn.secondary:hover { color: var(--white); background: var(--primary); }
.btn:active { transform: translateY(0); }

/* ----------------------------
   7) Content Sections
---------------------------- */
.text-section { display: flex; flex-direction: column; gap: var(--space-12); color: var(--text); }
.text-section p + ul, .text-section p + ol { margin-top: var(--space-8); }

/* Testimonial – ensure strong readability */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--primary); }

/* Footer */
footer { background: var(--accent); border-top: 2px solid var(--primary); margin-top: var(--space-32); }
footer .content-wrapper { flex-direction: column; gap: var(--space-20); padding: var(--space-24) 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.footer-nav a { padding: 6px 10px; border-radius: 4px; border: 1px solid var(--line); color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-nav a:hover { border-color: var(--secondary); color: var(--secondary); }

/* ----------------------------
   8) Utilities
---------------------------- */
.divider { height: 1px; background: var(--line); width: 100%; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; background: var(--accent); border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--primary); }
.muted { color: var(--muted); }

/* ----------------------------
   9) Cookie Consent – Banner & Modal
---------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: var(--white); color: var(--text);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -6px 16px rgba(12, 28, 44, 0.08);
  transform: translateY(110%);
  transition: transform var(--slow) ease;
}
.cookie-banner.show, .cookie-banner.open { transform: translateY(0); }
.cookie-banner .container { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.cookie-row { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.cookie-btn { padding: 10px 14px; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cookie-accept { background: var(--secondary); color: var(--white); }
.cookie-reject { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.cookie-settings { background: var(--accent); color: var(--primary); border: 1px solid var(--line); }
.cookie-btn:hover { filter: brightness(0.95); }

/* Cookie Modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(22, 50, 79, 0.5); display: none; align-items: center; justify-content: center; z-index: 1300; }
.cookie-modal-overlay.open { display: flex; }
.cookie-modal { width: min(92%, 680px); background: var(--white); border: 2px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-16); transform: translateY(10px); transition: transform var(--slow) ease; }
.cookie-modal-overlay.open .cookie-modal { transform: translateY(0); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.cookie-modal-body { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-category { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; }
.cookie-switch { display: inline-flex; width: 46px; height: 26px; border: 2px solid var(--primary); border-radius: 26px; position: relative; }
.cookie-switch::after { content: ""; width: 18px; height: 18px; background: var(--primary); border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: left var(--fast) ease; }
.cookie-switch.on { background: var(--accent); }
.cookie-switch.on::after { left: 23px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: flex-end; }

/* ----------------------------
   10) Responsive Rules
---------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
}

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

  /* Typography scale */
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }

  /* Layout tightening */
  .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  /* Most sections have simple text; keep column on narrow, allow row if needed */
  .hero .content-wrapper { flex-direction: column; align-items: flex-start; }

  /* Text-image standard */
  .text-image-section { flex-direction: row; align-items: center; }

  /* Footer */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .logo img { height: 32px; }
}

/* ----------------------------
   11) Additional Cards / Features (for future use)
---------------------------- */
.card--outlined { background: var(--white); border: 2px solid var(--primary); }
.card--accent { background: var(--accent); }
.card h3 { margin-bottom: var(--space-8); }
.card .card-actions { display: flex; gap: var(--space-12); }

/* ----------------------------
   12) Forms (if added later)
---------------------------- */
.input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--white);
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
}
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(46, 125, 106, 0.15); }

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

/* ----------------------------
   14) Micro-interactions
---------------------------- */
.fade-in { opacity: 0; transform: translateY(6px); transition: opacity var(--slow) ease, transform var(--slow) ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ----------------------------
   15) Icon alignment in lists
---------------------------- */
.text-section li img { width: 18px; height: 18px; margin-right: 8px; display: inline-block; vertical-align: middle; }
.text-section li { display: flex; align-items: flex-start; gap: 8px; padding-left: 0; }
.text-section li::before { display: none; }

/* ----------------------------
   16) Section spacing consistency
---------------------------- */
main > section { padding: var(--space-24) 0; }
main > section + section { margin-top: var(--space-20); }

/* Ensure minimum 20px spacing between stacked cards/sections */
.testimonial-card, .card, .feature-item, .text-section { margin-bottom: 20px; }

/* ----------------------------
   17) Precise geometric accents on headings
---------------------------- */
.content-wrapper > h2 { position: relative; padding-left: 14px; }
.content-wrapper > h2::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 24px; background: var(--secondary); transform: skew(-6deg); }

/* ----------------------------
   18) Prevent overlaps
---------------------------- */
* + * { scroll-margin-top: 90px; }

/* End of stylesheet */
