/* ===================================================================
   Microscara Ausbauprofis – tech_futuristic theme (Flexbox only)
   Mobile-first, brand-aligned, high-contrast, accessible
   =================================================================== */
/* ------------------------------
   Reset & Normalize
   ------------------------------ */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { margin: 0; padding-left: 20px; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 12px 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; padding: 0; cursor: pointer; }
address { font-style: normal; }

/* ------------------------------
   Root variables (with fallbacks)
   ------------------------------ */
:root {
  --color-primary: #24364B;      /* brand primary */
  --color-secondary: #8E4B2B;    /* brand warm accent */
  --color-accent: #F3F6F9;       /* brand light */
  --color-bg: #0E1622;           /* deep tech background */
  --color-bg-2: #111B2A;         /* section alt */
  --color-text: #DDE7F5;         /* body text on dark */
  --color-muted: #9CB0C9;        /* muted text */
  --color-neon: #00E6FF;         /* neon cyan */
  --color-neon-2: #7A5CFF;       /* neon violet */
  --color-success: #2EE59D;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 18px 50px rgba(0,0,0,0.45);
  --maxw: 1220px;
  --gap-8: 8px; --gap-12: 12px; --gap-16: 16px; --gap-20: 20px; --gap-24: 24px; --gap-32: 32px; --gap-40: 40px;
}

/* ------------------------------
   Base & Typography
   ------------------------------ */
body {
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  background-color: var(--color-bg);
  background-image: linear-gradient(180deg, rgba(122,92,255,0.06), rgba(0,230,255,0.04));
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  letter-spacing: 0.2px;
  color: #FFFFFF;
}

h1 { font-size: 32px; line-height: 1.2; margin-bottom: 14px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h3 { font-size: 18px; line-height: 1.35; margin: 8px 0 8px; }
p, li { font-size: 16px; color: var(--color-text); }
small { font-size: 14px; color: var(--color-muted); }

/* Responsive type scale */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ------------------------------
   Layout Containers (Flex only)
   ------------------------------ */
.container {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--gap-20);
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 20px;
}
.content-wrapper {
  display: flex; flex-direction: column; flex-wrap: wrap; gap: var(--gap-20);
}

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

/* General section styling */
main section {
  margin-bottom: 60px; padding: 40px 0; position: relative;
  display: flex; flex-direction: column; align-items: stretch;
}
main section:nth-of-type(odd) { background-color: var(--color-bg); }
main section:nth-of-type(even) { background-color: var(--color-bg-2); }

/* ------------------------------
   Header & Navigation
   ------------------------------ */
header {
  position: sticky; top: 0; z-index: 1000; background: rgba(18,28,42,0.85);
  border-bottom: 1px solid rgba(0,230,255,0.18);
  backdrop-filter: saturate(140%) blur(8px);
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--gap-20); padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; filter: drop-shadow(0 0 6px rgba(0,230,255,0.25)); }

.main-nav { display: none; }
.main-nav a {
  color: var(--color-text); opacity: 0.9; padding: 10px 12px; border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.main-nav a:hover, .main-nav a:focus { background: rgba(0,230,255,0.08); color: #fff; }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; color: #fff;
  background: linear-gradient(180deg, rgba(0,230,255,0.18), rgba(122,92,255,0.18));
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.mobile-menu-toggle:active { transform: translateY(0); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200; background: rgba(8,12,20,0.95);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap-20);
  padding: 20px; transform: translateX(100%); transition: transform .35s ease;
}
.mobile-menu[aria-hidden="false"], .mobile-menu.is-open { transform: translateX(0%); }
.mobile-menu-close {
  align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; color: #fff; background: rgba(0,230,255,0.18);
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 12px; color: #fff; background: rgba(36,54,75,0.55);
  border: 1px solid rgba(0,230,255,0.15); box-shadow: var(--shadow-sm);
  transition: background-color .2s ease, transform .2s ease;
}
.mobile-nav a:hover { background: rgba(36,54,75,0.75); transform: translateX(2px); }

/* Desktop nav */
@media (min-width: 992px) {
  .main-nav { display: flex; flex-direction: row; align-items: center; gap: 8px; }
  .mobile-menu-toggle { display: none; }
}

/* ------------------------------
   Hero section (tech glow)
   ------------------------------ */
.hero { padding: 60px 0; background-color: var(--color-primary); background-image: linear-gradient(135deg, rgba(0,230,255,0.12), rgba(122,92,255,0.10)); }
.hero .container { gap: var(--gap-20); }
.hero .content-wrapper {
  padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid rgba(0,230,255,0.22);
  background: linear-gradient(180deg, rgba(16,28,44,0.65), rgba(16,28,44,0.35));
  box-shadow: 0 0 0 1px rgba(122,92,255,0.08) inset, var(--shadow-md);
}
.hero p { color: #DDE7F5; max-width: 70ch; }

/* Decorative neon baseline */
.hero .content-wrapper::after {
  content: ""; position: relative; display: block; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--color-neon), var(--color-neon-2));
  border-radius: 2px; margin-top: 8px; opacity: 0.8;
}

/* ------------------------------
   Text & lists, content blocks
   ------------------------------ */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul, .content-wrapper ul, .content-wrapper ol { display: flex; flex-direction: column; gap: 8px; }
.text-section li, .content-wrapper li { color: var(--color-text); }

/* Futuristic bullet accent */
.text-section li::marker, .content-wrapper li::marker { color: var(--color-neon); }

/* Emphasis */
em { color: #fff; font-style: italic; }
strong { color: #fff; font-weight: 700; }

/* ------------------------------
   CTA Links as buttons in content
   ------------------------------ */
/* Button-like anchors inside main content */
.content-wrapper > a, .text-section > a, .hero a {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px; font-weight: 700; letter-spacing: 0.3px;
  color: #08121F; background: #00E6FF; /* neon primary */
  box-shadow: 0 0 14px rgba(0,230,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.15);
  border: 1px solid rgba(0,230,255,0.5);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.content-wrapper > a:hover, .text-section > a:hover, .hero a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0,230,255,0.6), var(--shadow-sm);
}
.content-wrapper > a:active, .text-section > a:active, .hero a:active { transform: translateY(0); }

/* Secondary button variant when two CTAs in a row */
.text-section > a + a, .content-wrapper > a + a {
  background: var(--color-secondary); color: #fff; border-color: rgba(255,255,255,0.14);
  box-shadow: 0 0 12px rgba(142,75,43,0.35);
}
.text-section > a + a:hover { box-shadow: 0 0 18px rgba(142,75,43,0.55), var(--shadow-sm); }

/* Footer links remain text-like */
footer .text-section a { padding: 0; background: transparent; border: none; box-shadow: none; color: var(--color-accent); font-weight: 600; }
footer .text-section a:hover { text-decoration: underline; }

/* ------------------------------
   Cards & Testimonials (light for contrast)
   ------------------------------ */
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px;
  background: rgba(243,246,249,0.9); color: #0E1622;
  border: 1px solid rgba(0,0,0,0.06); box-shadow: var(--shadow-sm);
}

.testimonial-card {
  background: #FFFFFF; color: #0E1622; border-radius: 14px; border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.testimonial-card p { color: #0E1622; }
.testimonial-card strong { color: #0B1320; }

/* ------------------------------
   Address & Contact details
   ------------------------------ */
address p { color: var(--color-text); }

/* ------------------------------
   Footer
   ------------------------------ */
footer {
  background: #0B1320; border-top: 1px solid rgba(0,230,255,0.18);
}
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { gap: 10px; }
footer p { color: #C7D5EA; }
footer img { height: 30px; width: auto; opacity: 0.95; }

/* ------------------------------
   Forms (not present – base styles)
   ------------------------------ */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(0,230,255,0.22); background: rgba(16,28,44,0.6); color: var(--color-text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-neon); outline-offset: 1px; }

/* ------------------------------
   Accessibility & Interactions
   ------------------------------ */
:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 2px; }
[role="button"], a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }

/* ------------------------------
   Utility spacing
   ------------------------------ */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; } .mb-20 { margin-bottom: 20px !important; }

/* ------------------------------
   Responsive adjustments
   ------------------------------ */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; align-items: center; }
  .content-grid { justify-content: space-between; }
}

@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  /* Allow multi-column-like layouts via flex-wrap only */
  .content-wrapper.row-on-desktop { flex-direction: row; flex-wrap: wrap; }
}

/* ------------------------------
   Lists and ordered blocks
   ------------------------------ */
ol { counter-reset: item; }
ol > li { position: relative; padding-left: 6px; }

/* ------------------------------
   Icons inside text lines
   ------------------------------ */
.text-section img { display: inline; vertical-align: middle; margin-right: 8px; }

/* ------------------------------
   Mobile Menu Animations (assist)
   ------------------------------ */
@keyframes slideInMenu { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutMenu { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* ------------------------------
   Cookie Consent Banner & Modal
   ------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
  display: flex; flex-direction: column; gap: 14px; align-items: stretch;
  background: #FFFFFF; color: #0E1622; border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.25);
  padding: 16px 18px; transform: translateY(100%); opacity: 0; pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.show, .cookie-banner[aria-hidden="false"] {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.cookie-accept { background: #0BD7F2; color: #08121F; border: 1px solid rgba(0,0,0,0.08); }
.cookie-reject { background: #E9EEF5; color: #0E1622; border: 1px solid rgba(0,0,0,0.12); }
.cookie-settings { background: var(--color-secondary); color: #fff; }
.cookie-accept:hover { box-shadow: 0 0 12px rgba(11,215,242,0.45); }
.cookie-settings:hover { box-shadow: 0 0 12px rgba(142,75,43,0.45); }

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed; inset: 0; z-index: 1500; background: rgba(3,6,12,0.65);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal-backdrop.show { opacity: 1; pointer-events: auto; }
.cookie-modal {
  width: 100%; max-width: 720px; background: #FFFFFF; color: #0E1622; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.08);
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
  transform: translateY(12px); transition: transform .3s ease;
}
.cookie-modal-backdrop.show .cookie-modal { transform: translateY(0); }
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .cookie-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.cookie-modal .cookie-row:last-child { border-bottom: none; }
.cookie-toggle { width: 46px; height: 28px; position: relative; border-radius: 999px; background: #C9D5E6; transition: background-color .2s ease; }
.cookie-toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); transition: transform .2s ease; }
.cookie-toggle.on { background: #0BD7F2; }
.cookie-toggle.on::after { transform: translateX(18px); }
.cookie-modal .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .btn { padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.cookie-save { background: #0BD7F2; color: #08121F; }
.cookie-cancel { background: #E9EEF5; color: #0E1622; }

/* ------------------------------
   Tables (rare; flex wrapper emulation)
   ------------------------------ */
.table-flex { display: flex; flex-direction: column; gap: 10px; }
.table-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 10px; border: 1px solid rgba(0,230,255,0.12); border-radius: 8px; }

/* ------------------------------
   Shadows & subtle hover on sections
   ------------------------------ */
main section .content-wrapper {
  border: 1px solid rgba(0,230,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(16,28,44,0.35);
}

/* Keep testimonials readable on light backgrounds */
main section .testimonial-card { background: #FAFCFF; }

/* ------------------------------
   Desktop refinements
   ------------------------------ */
@media (min-width: 992px) {
  .hero { padding: 90px 0; }
  .hero .content-wrapper { padding: 36px; }
  header .container { padding-top: 16px; padding-bottom: 16px; }

  /* Align multi-block content more evenly with flex */
  .content-wrapper.multi { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .content-wrapper.multi > .text-section { flex: 1 1 320px; }
}

/* ------------------------------
   Color helpers
   ------------------------------ */
.bg-primary { background: var(--color-primary); }
.bg-accent { background: var(--color-accent); color: #0E1622; }
.text-muted { color: var(--color-muted); }

/* ------------------------------
   Prevent overlaps and ensure spacing
   ------------------------------ */
main section > .container { gap: var(--gap-20); }
main section + section { margin-top: 0; }
.content-grid > * { margin-bottom: 0; }

/* ------------------------------
   Print minimal
   ------------------------------ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ------------------------------
   Brand-specific micro accents
   ------------------------------ */
.neon-divider { height: 2px; background: linear-gradient(90deg, var(--color-neon), var(--color-neon-2)); border-radius: 2px; }

/* ------------------------------
   Ensure flex usage across main blocks
   ------------------------------ */
header, main, footer { display: flex; flex-direction: column; }
main > section > .container > .content-wrapper > .text-section { display: flex; flex-direction: column; }

/* ------------------------------
   High-contrast in testimonial & review sections (explicit)
   ------------------------------ */
section:has(.testimonial-card) { background: var(--color-accent); }
section:has(.testimonial-card) h2, section:has(.testimonial-card) p, section:has(.testimonial-card) li { color: #0E1622; }

/* Fallback for browsers without :has support - directly style testimonial cards already light */

/* ------------------------------
   End of stylesheet
   ------------------------------ */
