/* =======================================================
   CSS RESET & BASELINE NORMALIZATION
   ======================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F7FB;
}
ol, ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
/* =======================================================
   VARIABLES (FALLBACKS FOR NON-SUPPORTING BROWSERS)
======================================================= */
:root {
  --color-primary: #143057;
  --color-secondary: #F2F7FB;
  --color-accent: #2150b2;
  --color-white: #fff;
  --color-grey100: #e7eef5;
  --color-grey200: #dde7f1;
  --color-grey300: #c3d2de;
  --color-dark: #143057;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --radius: 12px;
  --shadow-small: 0 2px 8px rgba(20,48,87,0.06);
  --shadow-md: 0 4px 24px rgba(20,48,87,0.08);
  --shadow-card: 0 2px 16px rgba(33,80,178,0.07);
}

/* Fallbacks for custom props */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #143057;
  background: #F2F7FB;
}

/* =======================================================
   TYPOGRAPHY SCALE & HEADERS
   ======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: #143057;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.18;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, li, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.7;
  color: #273957;
}
p {
  margin-bottom: 18px;
}
em {
  font-style: italic;
  color: #2150b2;
}
strong {
  font-weight: 600;
}
a:hover, a:focus {
  color: #2150b2;
  text-decoration: underline;
}

/* =========================
   LAYOUT CONTAINERS
   ========================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
}

.content-wrapper,
.text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 320px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus {
  box-shadow: 0 6px 32px rgba(33,80,178,0.12);
  transform: translateY(-4px) scale(1.023);
  z-index: 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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

/* =============================
   BUTTONS & CTA
   ============================= */
.cta-btn,
button, input[type="button"], input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.063rem;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-small);
  transition: background 0.17s, color 0.17s, transform 0.13s;
  outline: none;
  margin-top: 6px;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus {
  background: #143057;
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}
/* Secondary button (for cookie banner, settings) */
.btn-secondary {
  background: #fff;
  color: #143057;
  border: 1px solid #c3d2de;
  margin-left: 12px;
  transition: background 0.15s, border-color 0.13s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #dde7f1;
  border-color: #2150b2;
  color: #143057;
}
/* Danger button */
.btn-danger {
  background: #fff;
  color: #c00;
  border: 1px solid #ffbcbc;
  margin-left: 12px;
}
.btn-danger:hover {
  background: #fff0f0;
  border-color: #c00;
  color: #a00;
}

/* ===============================
   NAVIGATION (Desktop & Mobile)
   =============================== */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(20,48,87,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
  padding: 12px 20px;
}
header img[alt="Lucent Systeme"] {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #143057;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F2F7FB;
  color: #2150b2;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #143057;
  cursor: pointer;
  transition: color 0.17s;
  margin-left: auto;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #2150b2;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #F2F7FB;
  box-shadow: 0 6px 32px rgba(20,48,87,0.17);
  transform: translateX(-105%);
  transition: transform 0.27s var(--transition);
  z-index: 1010;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #143057;
  position: absolute;
  top: 20px;
  right: 28px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 84px 32px 32px 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #143057;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 12px 2px;
  border-radius: 6px;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #dde7f1;
  color: #2150b2;
}

@media (max-width: 1024px) {
  header .container {
    gap: 12px;
  }
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  header .cta-btn {
    display: none;
  }
}

/* =======================
   HERO SECTION & CTA
   ======================= */
section:first-of-type {
  background: #f7fafc;
  box-shadow: 0 1px 0 rgba(33, 80, 178, 0.03);
  border-radius: 0 0 24px 24px;
  margin-bottom: 56px;
}
section .content-wrapper, section .text-section {
  padding: 14px 0;
}

/* ===============================
   CARDS, TESTIMONIALS, FEATURES
   =============================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 26px 26px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(20,48,87,0.11);
  border-radius: var(--radius);
  margin-bottom: 24px;
  min-width: 250px;
  max-width: 480px;
  flex: 1 1 340px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.testimonial-card p {
  color: #143057;
  font-size: 1.12rem;
  font-style: italic;
  letter-spacing: 0.01em;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #2150b2;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 38px rgba(33,80,178,0.13);
  transform: scale(1.016); 
}

/* Card container for demo purposes */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

/* ==========================
   LISTS & TEXT SECTIONS
   ========================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0.5em;
  color: #273957;
}
ul li::marker, ol li::marker {
  color: #2150b2;
}

/* Features / Bullet points styling for Scandinavian look */
ul li {
  padding-left: 0.4em;
  border-left: 3px solid #dde7f1;
  border-radius: 2px;
}
ul li strong {
  color: #143057;
}

/* ====================
   FOOTER
   ==================== */
footer {
  background: #fff;
  border-top: 1px solid #e7eef5;
  margin-top: 60px;
  box-shadow: 0 -2px 12px rgba(33,80,178,0.04);
}
footer .container {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding: 34px 20px 24px 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-navigation {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-navigation a {
  color: #143057;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.9;
  transition: color 0.15s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: #2150b2;
  text-decoration: underline;
}
.impressum {
  color: #909faa;
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.social-links {
  display: flex;
  gap: 14px;
}
.social-links img {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #e7eef5;
  padding: 3px;
  transition: background 0.13s, filter 0.13s;
  cursor: pointer;
}
.social-links img:hover {
  background: #2150b2;
  filter: brightness(1.18);
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .footer-navigation {
    gap: 14px;
  }
  footer .container {
    gap: 18px;
    padding: 24px 10px 16px 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 30px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper, .text-section {
    gap: 18px;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
  .testimonial-card {
    padding: 14px 11px 14px 10px;
    max-width: 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.05rem; }
  .footer-navigation { gap: 6px; }
}
@media (max-width: 520px) {
  .section { padding: 16px 1.5vw; }
  h1, h2, h3 { margin-bottom: 10px; }
  .testimonial-card, .card {
    padding: 10px 4vw 13px 4vw;
    font-size: 1rem;
  }
}

/* ====================
   COOKIE CONSENT BANNER
   ==================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 20px 20px;
  background: #fff;
  color: #143057;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 1200;
  box-shadow: 0 -2px 24px rgba(20,48,87,0.15);
  border-radius: 18px 18px 0 0;
  min-height: 60px;
  gap: 14px;
  animation: fadeInBanner 0.6s cubic-bezier(0.61, 0, 0.7, 1);
}
@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #143057;
  margin-bottom: 0;
  font-size: 1.01rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 6px 10px 8px;
    font-size: 0.97rem;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(20, 48, 87, 0.28);
  z-index: 1220;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModalBg 0.23s;
}
@keyframes fadeInModalBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 36px rgba(33,80,178,0.14);
  padding: 34px 24px;
  min-width: 330px;
  max-width: 95vw;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInModal 0.32s cubic-bezier(.65,0,.37,1);
}
@keyframes slideInModal {
  from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-switch {
  min-width: 42px;
  min-height: 24px;
  border-radius: 12px;
  background: #e7eef5;
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.16s;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch-slider {
  height: 18px;
  width: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(33,80,178,0.10);
  position: absolute;
  left: 2px;
  top: 3px;
  transition: left 0.20s;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked + .cookie-switch-slider {
  left: 22px;
  background: #2150b2;
}
.cookie-modal .cookie-category.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 450px) {
  .cookie-modal { padding: 20px 8px; }
}

/* ===============================
   ANIMATIONS
   =============================== */
.cta-btn, .btn-secondary, .btn-danger, button, a {
  transition: background .14s, color .13s, box-shadow .18s, transform .15s;
}
section, .card, .testimonial-card {
  transition: box-shadow 0.22s, background 0.25s;
}

/* ===============================
   FOCUS STATES
   =============================== */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #1A73E9;
  outline-offset: 2px;
}


/* ===============================
   UTILITY CLASSES (for spacing/width)
   =============================== */
.mt-0   { margin-top: 0 !important; }
.mt-16  { margin-top: 16px !important; }
.mt-24  { margin-top: 24px !important; }
.mt-40  { margin-top: 40px !important; }
.mb-0   { margin-bottom: 0 !important; }
.mb-16  { margin-bottom: 16px !important; }
.mb-24  { margin-bottom: 24px !important; }

.w-100  { width: 100% !important; }
.max-w-600 { max-width: 600px; }

/* ===============================
   PRINT
   =============================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  footer {
    border: none;
  }
}
