/* =====================================================================
   TagWerk HTML Akademie — Industrial Modern UI
   Single stylesheet for all pages
   Aesthetic: dark, metallic accents, urban feel
   Mobile-first • Flexbox-only • High contrast • Accessible
   ===================================================================== */

/* ==========================
   0) Reset & Base Normalize
   ========================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Verdana, Arial, sans-serif; color: #E6EDF3; background-color: #0E141A; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: inline-block; }
img { vertical-align: middle; }
a { color: #9ED7CF; text-decoration: none; }
a:hover { color: #BDE5DE; }

/* Focus styles for accessibility */
:focus { outline: 2px dashed #217A72; outline-offset: 3px; }
:focus-visible { outline: 2px dashed #217A72; outline-offset: 3px; }

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ======================================
   1) Theme Tokens (solid industrial look)
   ====================================== */
:root {
  --tw-primary: #0F2A43;   /* deep steel blue */
  --tw-secondary: #217A72; /* industrial teal */
  --tw-accent: #F5FAFF;    /* crisp light */
  --tw-bg: #0E141A;        /* urban charcoal */
  --tw-panel: #131A21;     /* panels */
  --tw-line: #2A3947;      /* metal line */
  --tw-text: #E6EDF3;      /* base text */
  --tw-muted: #A6B3BE;     /* muted text */
  --tw-danger: #C0392B;
}

/* Typography scale — industrial, clear hierarchy */
h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", Tahoma, sans-serif; color: #FFFFFF; margin: 0 0 12px; line-height: 1.2; letter-spacing: 0.5px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p { margin: 0 0 16px; color: var(--tw-text); }
small, .muted { color: var(--tw-muted); }
strong { color: #FFFFFF; font-weight: 700; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}

/* =====================
   2) Layout fundamentals
   ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;            /* FLEXBOX ONLY */
  flex-direction: column;   /* mobile-first */
  gap: 20px;                /* critical spacing */
}

section { margin-bottom: 60px; padding: 40px 0; background: transparent; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.text-section { display: flex; flex-direction: column; gap: 16px; color: var(--tw-text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* MANDATORY SPACING & ALIGNMENT PATTERNS */
.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; }

/* =====================
   3) Header & Navigation
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0C1218;
  border-bottom: 1px solid var(--tw-line);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: flex;            /* wrap header children (container + buttons) */
  flex-direction: column;   /* mobile-first */
}
.site-header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  color: #D3DFE7;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.main-nav a:hover { background: #16212B; color: #FFFFFF; }
.main-nav a[aria-current="page"] { color: #FFFFFF; background: #16212B; }

.header-cta { display: none; align-items: center; gap: 10px; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  position: absolute; /* UI control; allowed */
  right: 16px; top: 14px;
  z-index: 1001;
  background: var(--tw-secondary);
  color: #fff;
  border: 1px solid #1B5E58;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 180ms ease, background-color 180ms ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #279486; }

/* Off-canvas mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: #0E141A;
  border-left: 1px solid var(--tw-line);
  transform: translateX(100%);
  transition: transform 260ms ease;
  z-index: 1002;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 10px; padding: 16px;
}
.mobile-menu.open, .mobile-menu.is-open, body.menu-open .mobile-menu { transform: translateX(0%); }
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #E6EDF3;
  border: 1px solid var(--tw-line);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: flex;
  padding: 14px 10px;
  border-radius: 6px;
  background: #121920;
  border: 1px solid #1E2A35;
  color: #DDE7EE;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.mobile-nav a:hover { background: #17222B; color: #FFFFFF; }
.mobile-nav a[aria-current="page"] { background: #1A2A36; color: #FFFFFF; border-color: #2E3F4E; }

/* Desktop breakpoint for header nav */
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .site-header { flex-direction: column; }
}

/* =====================
   4) Hero Sections
   ===================== */
.hero { background: var(--tw-primary); border-bottom: 1px solid #1E3A56; color: #EAF4FF; }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero .subheadline { color: #DCEAF7; max-width: 60ch; }
.hero nav[aria-label="Breadcrumbs"] { font-size: 14px; color: #C2D6E6; }
.hero nav[aria-label="Breadcrumbs"] a { color: #EAF4FF; text-decoration: underline; }

/* Trust badges */
.trust-badges ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #12263A; border: 1px solid #23425F; border-radius: 8px; color: #D6E7F5; }
.trust-badges img { width: 18px; height: 18px; }

.supporting-note { color: #C9D6E2; font-size: 14px; }

/* =====================
   5) Buttons & Links
   ===================== */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 8px; font-weight: 700; letter-spacing: 0.3px; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--tw-secondary); color: #ffffff; border-color: #1B5E58; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.45); }
.btn-primary:hover { background: #279486; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: transparent; color: #E6EDF3; border-color: #3A4B59; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.btn-secondary:hover { background: #16212B; border-color: #4A5E70; }

/* Inline link emphasis inside text */
.text-section a { color: #9ED7CF; text-decoration: underline; }
.text-section a:hover { color: #BDE5DE; }

/* =====================
   6) Lists & Content Blocks
   ===================== */
ul, ol { padding-left: 20px; }
ul { list-style: disc; }
ol { list-style: decimal; }
.benefit-bullets, .outcome-list, .module-list { display: flex; flex-direction: column; gap: 10px; }
.process-steps { display: flex; flex-direction: column; gap: 8px; }
.tools-stack { display: flex; flex-direction: column; gap: 6px; background: #0F171E; border: 1px solid #223140; border-radius: 10px; padding: 16px; }

/* =====================
   7) Cards & Testimonials
   ===================== */
.card { background: #121920; border: 1px solid #1F2B36; border-radius: 12px; padding: 18px; color: var(--tw-text); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 6px 18px rgba(0,0,0,0.35); transition: transform 200ms ease, box-shadow 200ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 28px rgba(0,0,0,0.5); }

/* Testimonials: light background with dark text for high readability */
.testimonial-card {
  background: var(--tw-accent);
  color: #0F2A43; /* dark text */
  border: 1px solid #D7E6F3;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(8,12,18,0.15);
}
.testimonial-card p { color: #0F2A43; margin: 0; }

/* =====================
   8) Footer
   ===================== */
.site-footer { background: #0A0F14; border-top: 1px solid var(--tw-line); padding-top: 30px; padding-bottom: 30px; }
.site-footer .container { flex-direction: column; gap: 22px; }
.footer-brand, .footer-nav, .footer-legal, .footer-contact, .footer-note { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 38px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: #C7D2DB; }
.site-footer nav a:hover { color: #FFFFFF; }
.footer-note p { color: #A6B3BE; margin: 0; }
.tagline { color: #C7D2DB; }

@media (min-width: 992px) {
  .site-footer .container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .footer-brand { flex: 1 1 260px; }
  .footer-nav, .footer-legal, .footer-contact { flex: 1 1 200px; }
  .footer-note { flex: 1 1 100%; }
}

/* =====================
   9) Page-specific tweaks
   ===================== */
/* Light-on-dark vs dark-on-light contrast handling */
main .container { gap: 24px; }

/* FAQ and Q&A spacing */
.text-section h3 { margin-top: 8px; }

/* Articles on Blog */
.text-section article { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 10px; background: #10171D; border: 1px solid #203040; }
.text-section article + article { margin-top: 8px; }

/* Contact rows with icons */
.text-section p img { margin-right: 8px; filter: brightness(0) invert(1); }

/* =====================
   10) Responsive Alignments
   ===================== */
/* Default mobile: column; enhanced at >=768px */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}

/* =====================
   11) Utility & Helpers
   ===================== */
.hr-line { height: 1px; background: var(--tw-line); width: 100%; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; border: 1px solid #2C3C4B; background: #0F171E; color: #D6E0E8; font-size: 12px; letter-spacing: 0.4px; }
.center { display: flex; align-items: center; justify-content: center; }

/* =====================
   12) Cookie Consent (Banner & Modal)
   ===================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #0F171E;
  color: #E6EDF3;
  border-top: 1px solid #2A3947;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.4);
  padding: 16px 20px;
  z-index: 1100;
  display: none; /* hidden by default */
}
.cookie-banner.show { display: flex; }
.cookie-banner .container { flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 8px; border: 1px solid #36505F; color: #E6EDF3; background: #121A21; cursor: pointer; }
.cookie-btn.primary { background: var(--tw-secondary); border-color: #1B5E58; color: #fff; }
.cookie-btn.danger { background: #1D262D; border-color: #374B5A; color: #FFD7D1; }
.cookie-btn:hover { filter: brightness(1.05); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 1101; display: none; background: rgba(6,8,10,0.7);
  align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  width: 100%; max-width: 720px; background: var(--tw-accent); color: #0F2A43; border: 1px solid #D4E4F2; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 40px rgba(7,11,15,0.25);
}

.cookie-modal-content p, .cookie-modal-content h3, .cookie-modal-content strong {color: #0F2A43 !important;}
.cookie-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 8px; border: 1px solid #CFE0EE; background: #FFFFFF; color: #0F2A43; }
.cookie-option small { color: #2A506E; }
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle input { width: 40px; height: 22px; appearance: none; background: #BCCBD8; border-radius: 999px; position: relative; outline: none; cursor: pointer; transition: background-color 180ms ease; }
.toggle input:checked { background: #3AA096; }
.toggle input::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; left: 2px; top: 2px; transition: transform 180ms ease; }
.toggle input:checked::after { transform: translateX(18px); }
.cookie-actions-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =====================
   13) Tables (if any appear)
   ===================== */
.table { width: 100%; border: 1px solid #2A3947; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.table-row { display: flex; }
.table-row > div { flex: 1; padding: 12px; border-bottom: 1px solid #1E2A35; }
.table-row.header { background: #10171D; color: #E6EDF3; font-weight: 700; }

/* =====================
   14) Forms (not present, basic styles)
   ===================== */
input, select, textarea { background: #0F171E; border: 1px solid #2A3947; color: #E6EDF3; padding: 10px 12px; border-radius: 8px; width: 100%; }
label { color: #D6E0E8; margin-bottom: 6px; display: inline-block; }

/* =====================
   15) Desktop refinements
   ===================== */
@media (min-width: 768px) {
  .container { gap: 28px; }
  .trust-badges ul { gap: 14px; }
}

@media (min-width: 992px) {
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  /* Arrange header nav and cta inline */
  .site-header .container { gap: 20px; }
  .main-nav { gap: 12px; }
}

/* =====================
   16) Visual hierarchy accents
   ===================== */
/* Panel-style sections for non-hero areas */
main > section:not(.hero) .content-wrapper { background: #0F171E; border: 1px solid #223140; border-radius: 14px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,0.35); }

/* =====================
   17) Additional component presets (for future blocks)
   ===================== */
.card--bordered { border: 1px dashed #334759; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #10171D; border: 1px solid #1E2A35; color: #DDE7EE; }

/* =====================
   18) Print basics
   ===================== */
@media print {
  .site-header, .site-footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
  main > section .content-wrapper { border: none; box-shadow: none; }
}

/*
  Flexbox-only verification: No grid or column properties used.
  Spacing meets min 20px gaps. Testimonials use light background with dark text.
*/
