/* ================================================
   Dynamo Glow Ausbau — Modern Bold UI (Flex-only)
   Author: Senior CSS Dev & UI Designer
   Notes: Mobile-first, high-contrast, bold typography
   Fonts: Trebuchet MS (display), Verdana (body)
   Flexbox only — no CSS Grid or Columns
   ================================================ */

/* ------------------------------
   Reset & Base
------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #0F172A;
  background: #F8FAFC;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #D97706; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; border: none; background: transparent; cursor: pointer; }
:focus { outline: 3px solid #D97706; outline-offset: 2px; }

/* ------------------------------
   CSS Custom Properties
------------------------------ */
:root {
  --primary: #0F172A; /* Ink / Primary */
  --secondary: #D97706; /* Amber / Accent */
  --accent: #F8FAFC; /* Paper */
  --ink: #0F172A;
  --ink-70: rgba(15, 23, 42, 0.7);
  --ink-40: rgba(15, 23, 42, 0.4);
  --muted: #64748B; /* slate-500-ish */
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --success: #16A34A;
  --danger: #DC2626;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 220ms ease;
}

/* ------------------------------
   Typography — Modern Bold Scale
------------------------------ */
h1, h2, h3, h4 { font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; margin: 0 0 12px; color: var(--primary); letter-spacing: -0.02em; }
h1 { font-size: 40px; line-height: 1.15; font-weight: 800; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 800; }
p { margin: 0 0 12px; font-size: 16px; }
small { font-size: 14px; color: var(--muted); }
strong { font-weight: 800; }

/* Responsive type */
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
  p { font-size: 18px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 64px; }
  h2 { font-size: 40px; }
  h3 { font-size: 24px; }
}

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

/* Mandatory spacing/alignment patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius); padding: 20px; }
.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; }

/* Ensure mobile column layout for text-image sections */
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* ------------------------------
   Header & Navigation
------------------------------ */
header { background: var(--surface); border-bottom: 4px solid var(--primary); position: sticky; top: 0; z-index: 1000; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
header img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { font-weight: 800; color: var(--primary); padding: 10px 12px; border-radius: 10px; transition: background var(--transition), color var(--transition), transform var(--transition); }
.main-nav a:hover { background: var(--surface-alt); transform: translateY(-1px); text-decoration: none; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 20px; transition: transform var(--transition), background var(--transition); }
.mobile-menu-toggle:hover { transform: scale(1.03); background: #111B33; }

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

/* CTA buttons in nav */
.cta-primary { background: var(--secondary); color: #fff; font-weight: 900; padding: 12px 18px; border-radius: 14px; border: 3px solid var(--secondary); display: inline-flex; align-items: center; justify-content: center; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; background: #B45309; border-color: #B45309; }
.cta-secondary { background: #fff; color: var(--primary); font-weight: 800; padding: 12px 16px; border-radius: 14px; border: 3px solid var(--primary); display: inline-flex; align-items: center; justify-content: center; transition: transform var(--transition), background var(--transition), color var(--transition); }
.cta-secondary:hover { transform: translateY(-2px); background: var(--surface-alt); text-decoration: none; }

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

/* ------------------------------
   Mobile Menu (overlay)
------------------------------ */
.mobile-menu {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: #fff;
  display: flex; flex-direction: column; gap: 20px; padding: 20px;
  transform: translateX(-100%);
  transition: transform 300ms ease;
  z-index: 1200;
}
.mobile-menu .mobile-menu-close { align-self: flex-end; font-size: 22px; color: #fff; background: rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu .mobile-menu-close:hover { background: rgba(255,255,255,0.18); }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { color: #fff; font-weight: 800; font-size: 18px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
/* Open states (multiple selectors to be JS-friendly) */
.mobile-menu.is-open,
.mobile-menu.open,
body.menu-open .mobile-menu { transform: translateX(0); }

/* ------------------------------
   Hero Sections
------------------------------ */
.hero { background: var(--primary); color: #fff; position: relative; }
.hero .container { padding-top: 32px; padding-bottom: 32px; }
.hero .content-wrapper { gap: 16px; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero p { color: #E2E8F0; }
/* Geometric accent bar */
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; height: 8px; width: 100%; background: var(--secondary);
}

/* Trust and badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges span { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid #fff; padding: 8px 12px; border-radius: 999px; font-weight: 800; }

/* Service icons row */
.service-icons-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.service-icons-row img { width: 40px; height: 40px; filter: brightness(1.2); }

/* Phone / Email highlight */
.phone-highlight, .email-highlight {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; color: var(--primary);
  border: 3px solid var(--primary); border-radius: 14px; padding: 10px 14px; font-weight: 800;
}
.phone-highlight img, .email-highlight img { width: 20px; height: 20px; }
.phone-highlight a, .email-highlight a { color: var(--primary); font-weight: 900; }

/* Breadcrumbs in some heroes */
[aria-label="breadcrumb"] { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #CBD5E1; }
[aria-label="breadcrumb"] a { color: #F8FAFC; text-decoration: underline; }

/* CTA sections */
section.cta { background: var(--secondary); color: #fff; border-top: 6px solid #B45309; border-bottom: 6px solid #B45309; }
section.cta h2, section.cta p { color: #fff; }
section.cta .cta-secondary { border-color: #fff; color: #fff; background: transparent; }
section.cta .cta-secondary:hover { background: rgba(255,255,255,0.12); }

/* ------------------------------
   Feature grids, services, steps
------------------------------ */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid > div {
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-grid > div:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-grid img { width: 40px; height: 40px; }

.service-overview { display: flex; flex-wrap: wrap; gap: 20px; }
.service-overview > div { flex: 1 1 260px; background: var(--surface); border: 3px solid var(--primary); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.service-overview a { font-weight: 900; }

.service-cta-strip { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--primary); border-radius: var(--radius); }
.service-cta-strip .cta-primary { background: #fff; color: var(--primary); border-color: #fff; }
.service-cta-strip .cta-primary:hover { background: var(--surface-alt); }

.step-list, ol, ul { padding-left: 18px; }
.step-list { display: flex; flex-direction: column; gap: 10px; }

.certifications-list, .values-list, .stats-list, .industries-served, .reassurance, .project-types, .segments {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0;
}
.certifications-list li, .values-list li, .stats-list li, .industries-served li, .reassurance li, .project-types span, .segments span {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 999px; padding: 8px 12px; font-weight: 800; color: var(--primary);
}

.rating-summary { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 3px solid var(--primary); border-radius: var(--radius); padding: 10px 14px; font-weight: 900; color: var(--primary); }
.rating-summary img { width: 20px; height: 20px; }

/* ------------------------------
   Testimonials (light cards, high contrast)
------------------------------ */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card {
  flex: 1 1 280px; background: #FFFFFF; color: var(--primary);
  border: 3px solid var(--primary); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 20px; box-shadow: none; transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-card span { color: var(--muted); font-weight: 800; }

/* ------------------------------
   Tables (pricing)
------------------------------ */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 3px solid var(--primary); border-radius: var(--radius); overflow: hidden; display: block; }
table caption { text-align: left; font-weight: 900; padding: 12px; color: var(--primary); }
thead, tr { display: flex; width: 100%; }
th, td { flex: 1; padding: 12px; border-bottom: 1px solid var(--surface-alt); display: flex; align-items: center; }
tr:nth-child(odd) td { background: #FAFAFA; }
th { background: var(--primary); color: #fff; font-weight: 900; border-bottom: 2px solid #0B1224; }

/* ------------------------------
   FAQ lists
------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.faq-list li { background: var(--surface); border: 3px solid var(--primary); border-radius: var(--radius); padding: 14px; }

/* ------------------------------
   Contact blocks
------------------------------ */
.contact-info-block, .contact-details {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 3px solid var(--primary); border-radius: var(--radius); padding: 16px;
}
.contact-details address, .contact-info-block address { font-style: normal; color: var(--primary); font-weight: 800; }
.contact-details div, .contact-info-block div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.map-placeholder { display: flex; align-items: center; justify-content: center; padding: 30px; border: 3px dashed var(--primary); border-radius: var(--radius); color: var(--muted); background: var(--surface-alt); font-weight: 800; }
.form-note { font-size: 14px; color: var(--muted); background: var(--surface-alt); border: 2px solid var(--primary); border-radius: var(--radius); padding: 12px; }
.contact-info-block img{max-width: 80px;}
/* ------------------------------
   Cross-page utilities
------------------------------ */
.outcomes, .metrics, .quality-controls, .timeline-expectations, .timeline-short, .no-hidden-fees, .travel-policy, .cross-sell-benefits {
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px;
}
.no-hidden-fees { display: flex; align-items: center; gap: 10px; }
.no-hidden-fees img { width: 20px; height: 20px; }

/* ------------------------------
   Footer
------------------------------ */
footer { background: var(--primary); color: #fff; padding: 32px 0; margin-top: 40px; border-top: 6px solid #111B33; }
footer .container { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-brand img { height: 36px; filter: brightness(100); }
.footer-nav, .footer-legal { display: flex; flex-wrap: wrap; gap: 10px 16px; }
footer a { color: #fff; font-weight: 800; padding: 6px 8px; border-radius: 10px; }
footer a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact > div { display: flex; align-items: center; gap: 10px; }
footer address { font-style: normal; }

/* ------------------------------
   Chips, Badges, Pills
------------------------------ */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--primary); background: var(--surface); font-weight: 800; }

/* ------------------------------
   Shadows & Elevation
------------------------------ */
.card-elevate { box-shadow: var(--shadow); }

/* ------------------------------
   Responsive adjustments
------------------------------ */
@media (min-width: 768px) {
  .container { gap: 24px; }
  .content-wrapper { gap: 24px; }
  .feature-grid > div, .service-overview > div, .testimonial-card { padding: 24px; }
}
@media (min-width: 1024px) {
  .service-overview > div { flex: 1 1 calc(33% - 20px); }
  .feature-grid > div { flex: 1 1 calc(33% - 20px); }
  .testimonial-card { flex: 1 1 calc(50% - 20px); }
}

/* ------------------------------
   Tables responsive (flex rows already above)
------------------------------ */
@media (max-width: 560px) {
  th, td { font-size: 14px; padding: 10px; }
}

/* ------------------------------
   Accessibility states
------------------------------ */
[role="button"], a, button { transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition); }
button:active, a:active { transform: translateY(1px); }

/* ------------------------------
   Page-specific fine-tuning
------------------------------ */
/* Referenzen chips */
.project-types span, .segments span { background: var(--surface); color: var(--primary); }
/* Pricing captions spacing */
caption { font-weight: 900; }
/* Safety note on index */
.safety-note { color: var(--muted); font-weight: 800; }

/* ------------------------------
   Mobile Navigation Helpers (z-index and body lock)
------------------------------ */
body.menu-open { overflow: hidden; }

/* ------------------------------
   Cookie Consent Banner & Modal
------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--primary); color: #fff; padding: 14px 16px; border-top: 4px solid var(--secondary);
  transform: translateY(100%);
  transition: transform 300ms ease; z-index: 1300;
}
.cookie-banner .cookie-text { flex: 1 1 240px; min-width: 200px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 12px; font-weight: 900; }
.cookie-accept { background: var(--secondary); color: #fff; border: 3px solid var(--secondary); }
.cookie-accept:hover { background: #B45309; border-color: #B45309; }
.cookie-reject { background: #fff; color: var(--primary); border: 3px solid #fff; }
.cookie-reject:hover { background: var(--surface-alt); }
.cookie-settings { background: transparent; color: #fff; border: 3px solid #fff; }
.cookie-settings:hover { background: rgba(255,255,255,0.12); }
.cookie-banner.visible { transform: translateY(0); }

/* Cookie modal */
.cookie-modal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.8); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1400; }
.cookie-modal.visible { display: flex; }
.cookie-modal .modal-card { background: #fff; color: var(--primary); border: 4px solid var(--primary); border-radius: var(--radius-lg); width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; padding: 20px; box-shadow: var(--shadow); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-alt); border: 2px solid var(--primary); border-radius: var(--radius); padding: 10px 12px; }
.cookie-toggle { display: inline-flex; width: 48px; height: 28px; background: #CBD5E1; border-radius: 999px; position: relative; transition: background var(--transition); }
.cookie-toggle::after { content: ""; width: 22px; height: 22px; background: #fff; border: 2px solid var(--primary); border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: transform var(--transition); }
.cookie-toggle.on { background: var(--secondary); }
.cookie-toggle.on::after { transform: translateX(20px); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ------------------------------
   Decorative separators
------------------------------ */
.separator { height: 4px; background: var(--primary); border-radius: 2px; }

/* ------------------------------
   Prevent overlap & ensure spacing
------------------------------ */
section > .container > .content-wrapper > * + * { margin-top: 0; }
section > .container { gap: 20px; }

/* ------------------------------
   Edge cases & Misc
------------------------------ */
.hero .reassurance { color: #fff; }
.hero .reassurance li { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

/* Ensure adequate touch targets */
nav a, .mobile-nav a, .cta-primary, .cta-secondary, .cookie-btn { min-height: 44px; }

/* Geometric card accents */
.feature-grid > div { position: relative; }
.feature-grid > div::after { content: ""; position: absolute; right: 16px; bottom: 16px; width: 32px; height: 4px; background: var(--secondary); border-radius: 2px; }

/* --------------------------------
   Print basics (optional safety)
---------------------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
