/*
Theme Name: TRAIL1
Theme URI: https://trail1.de
Author: TRAIL1 / Smart IT-Systems
Author URI: https://smart-itsystems.de
Description: Custom WordPress theme for TRAIL1 – KI-Beratung für den Mittelstand. AXION-inspired minimalist design. Light theme (default) with dark mode toggle. Monochrome palette, Source Sans 3 typography.
Version: 4.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trail1
*/

/* ========== LOCAL FONTS (DSGVO-konform) ========== */
@font-face {
  font-family: 'Source Sans 3';
  src: url('./assets/fonts/SourceSans3-Latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('./assets/fonts/SourceSans3-LatinExt.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('./assets/fonts/SourceSerif4-Latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('./assets/fonts/SourceSerif4-LatinExt.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ========== DESIGN TOKENS – Light Mode (Default) ========== */
:root {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f0;
  --bg-warm: #eae8e1;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf7;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #57616f;

  /* Accent */
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-text: #92400e;
  --accent-glow: rgba(245, 158, 11, 0.1);

  /* Borders & Shadows */
  --border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 8px 30px rgba(0, 0, 0, 0.15);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06);

  /* Navigation */
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-bg-mobile: rgba(255, 255, 255, 0.98);
  --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

  /* Button Text */
  --btn-primary-text: #ffffff;

  /* Subtle Overlays */
  --overlay-subtle: rgba(0, 0, 0, 0.03);

  /* Accent Opacity Variants */
  --accent-border-hover: rgba(245, 158, 11, 0.25);
  --accent-border-subtle: rgba(245, 158, 11, 0.15);
  --accent-bg-subtle: rgba(245, 158, 11, 0.06);
  --accent-bg-faint: rgba(245, 158, 11, 0.03);

  /* Semantic Colors */
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.08);
  --success-border: rgba(22, 163, 74, 0.2);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.06);
  --error-border: rgba(220, 38, 38, 0.2);
  --purple: #7c3aed;
  --purple-bg: rgba(124, 58, 237, 0.06);
  --purple-border: rgba(124, 58, 237, 0.15);

  /* Always-Dark Scopes (Footer, CTA) */
  --dark-bg: #0f172a;
  --dark-text: #f1f5f9;
  --dark-text-secondary: #94a3b8;
  --dark-text-muted: #7f8ea3;
  --dark-border: rgba(148, 163, 184, 0.12);

  /* Typography & Layout */
  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1280px;
  --section-pad: clamp(100px, 12vw, 160px);

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #131c2e;
  --bg-warm: #1a2436;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #7f8ea3;
  --accent-hover: #fbbf24;
  --accent-text: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --border: rgba(148, 163, 184, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-btn: 0 8px 30px rgba(0, 0, 0, 0.3);
  --card-shadow: none;
  --card-shadow-hover: none;
  --nav-bg: rgba(15, 23, 42, 0.92);
  --nav-bg-mobile: rgba(15, 23, 42, 0.98);
  --nav-shadow: none;
  --overlay-subtle: rgba(255, 255, 255, 0.03);
  --success: #4ade80;
  --success-bg: rgba(34, 197, 94, 0.1);
  --success-border: rgba(34, 197, 94, 0.25);
  --error: #f87171;
  --error-bg: rgba(239, 68, 68, 0.08);
  --error-border: rgba(239, 68, 68, 0.25);
  --purple: #a78bfa;
  --purple-bg: rgba(139, 92, 246, 0.1);
  --purple-border: rgba(139, 92, 246, 0.2);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:not(.no-transition) { transition: background-color 0.3s, color 0.3s; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: auto;
}
[data-theme="dark"] body,
.site-footer,
.cta-section { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ========== LAYOUT ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(24px, 5vw, 48px); }
section { padding: var(--section-pad) 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-warm { background: var(--bg-warm); }

/* ========== TYPOGRAPHY ========== */
.section-label {
  display: inline-block;
  font-size: 0.85rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-sm);
}

.section-eyebrow {
  display: block; font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1; font-weight: 400; margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.section-title em { font-style: normal; color: var(--accent); }

.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 640px; line-height: 1.7;
}

/* ========== 2-COLUMN SECTION HEADER (AXION Pattern) ========== */
.section-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.section-header .section-title { margin-bottom: 0; }
.section-header .section-subtitle { max-width: none; }

.section-header-right {
  padding-bottom: 0.25rem;
}

/* ========== NAVIGATION ========== */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 24px 0; transition: background 0.4s, padding 0.4s, border-color 0.4s, box-shadow 0.4s; background: transparent;
}
.site-nav.scrolled {
  background: var(--nav-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 18px 0;
  box-shadow: var(--nav-shadow);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--text-primary); text-decoration: none;
}

/* Logo: TR[AI]L1 – Klammern rahmen AI ein */
.logo-bracket {
  color: var(--accent);
  font-size: 1.5em;
  font-weight: 300;
  position: relative;
  top: 0.02em;
  margin: 0 -0.05em;
}
.logo-ai { color: var(--accent); }
.logo-1 { color: var(--accent); opacity: 0.6; }

.nav-links { display: flex; gap: 36px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links .current-menu-item a,
.nav-links a.active { color: var(--accent); }

.btn-nav {
  background: var(--text-primary); color: #ffffff !important;
  padding: 10px 28px; border-radius: var(--radius-pill); font-weight: 600;
  font-size: 0.9rem; transition: background 0.3s, transform 0.3s;
}
.btn-nav:hover { background: #1e293b; transform: translateY(-1px); }
[data-theme="dark"] .btn-nav { background: #f1f5f9; color: #0f172a !important; }
[data-theme="dark"] .btn-nav:hover { background: #e2e8f0; }

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* ========== THEME TOGGLE (floating bottom-left) ========== */
.theme-toggle {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-border-subtle); box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: scale(1.08); }
.icon-moon { display: block; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

/* ========== LANGUAGE TOGGLE (inside nav-links) ========== */
.lang-toggle {
  display: flex; align-items: center; gap: 3px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 12px; text-decoration: none;
  font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--text-secondary);
  transition: color 0.3s, border-color 0.3s;
  margin-left: 4px;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent-border-subtle); }
.lang-option { transition: color 0.3s; }
.lang-option.active { color: var(--accent); }
.lang-separator { color: var(--border); font-weight: 300; }

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-primary); color: #ffffff;
  padding: 16px 36px; border-radius: var(--radius-pill); font-weight: 600;
  font-size: 0.95rem; text-decoration: none; transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  border: none; cursor: pointer; font-family: var(--font);
}
.btn-primary:hover {
  background: #1e293b; transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
[data-theme="dark"] .btn-primary { background: #f1f5f9; color: #0f172a; }
[data-theme="dark"] .btn-primary:hover { background: #e2e8f0; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary);
  padding: 16px 36px; border-radius: var(--radius-pill); font-weight: 500;
  font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--border); transition: border-color 0.3s, background 0.3s;
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--overlay-subtle); }

.btn-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
  padding: 180px 0 var(--section-pad); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 360px; height: 360px;
  background: linear-gradient(135deg, transparent 50%, var(--accent-bg-faint) 50%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.page-hero h1 {
  font-family: var(--font-heading); font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1.05; font-weight: 400; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .section-subtitle { max-width: 700px; margin-bottom: 32px; }

/* ========== CARDS ========== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 28px; transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  box-shadow: var(--card-shadow);
}
.card:hover { border-color: var(--accent-border-hover); box-shadow: var(--card-shadow-hover); }

.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }

.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ========== SVG ICONS ========== */
.trail1-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.trail1-icon svg { width: 100%; height: 100%; }

.card-icon { margin-bottom: 16px; }

/* Accent left border on hover */
.card-accent { position: relative; }
.card-accent:hover { box-shadow: inset 3px 0 0 var(--accent); }

/* ========== TAGS ========== */
.tag {
  font-size: 0.75rem; padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--accent-bg-subtle); color: var(--accent); font-weight: 500;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ========== TABLES ========== */
.t1-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.t1-table { width: 100%; border-collapse: collapse; }
.t1-table th {
  text-align: left; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.t1-table td {
  padding: 16px; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; vertical-align: top;
}
.t1-table tr:last-child td { border-bottom: none; }
.t1-table tr:hover td { background: var(--bg-card-hover); }
.t1-table td:first-child { color: var(--text-primary); font-weight: 600; white-space: nowrap; }

/* Simple measure table (no header) */
.measure-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.measure-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; }
.measure-table tr:last-child td { border-bottom: none; }
.measure-table tr:hover td { background: var(--bg-card-hover); }
.measure-table td:first-child { color: var(--text-primary); font-weight: 600; width: 240px; }
.measure-table td:last-child { color: var(--text-secondary); line-height: 1.6; }

/* ========== FAQ / ACCORDION ========== */
.faq-grid { display: flex; flex-direction: column; margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--border); cursor: pointer; transition: all 0.3s; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { padding: 28px 0; display: flex; justify-content: space-between; align-items: center; }
.faq-q h3 { font-size: 1rem; font-weight: 600; padding-right: 20px; }
.faq-toggle { color: var(--text-muted); font-size: 1.3rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--accent); }
.faq-a { display: none; padding: 0 0 28px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; max-width: 800px; }
.faq-item.open .faq-a { display: block; }

/* ========== CTA SECTION (always dark) ========== */
.cta-section {
  background: var(--dark-bg); border-top: 1px solid var(--dark-border); text-align: center;
  color: var(--dark-text);
  --text-primary: var(--dark-text);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --border: var(--dark-border);
}
.cta-section .section-title { max-width: 600px; margin: 0 auto 16px; }
.cta-section .section-subtitle { max-width: 500px; margin: 0 auto 40px; }
.cta-section .btn-primary { background: #f1f5f9; color: #0f172a; }
.cta-section .btn-primary:hover { background: #e2e8f0; }
.cta-details { display: flex; justify-content: center; gap: 40px; margin-top: 32px; }
.cta-detail { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.cta-detail span { color: var(--accent); }

/* ========== FOOTER (always dark) ========== */
.site-footer {
  background: var(--dark-bg); border-top: 1px solid var(--dark-border); padding: 80px 0 48px;
  color: var(--dark-text);
  --text-primary: var(--dark-text);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --border: var(--dark-border);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand .logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.footer-claim { font-style: italic; color: var(--text-muted); font-size: 0.85rem; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-muted); text-decoration: none; padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px; color: var(--text-primary);
  font-family: var(--font); font-size: 0.9rem; transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
[data-theme="dark"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
.form-group select option { background: var(--bg-card); color: var(--text-primary); }

/* ========== UTILITY ========== */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.mt-40 { margin-top: 40px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.gap-64 { gap: 64px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Quote / Highlight */
.highlight-quote {
  font-family: var(--font-heading); font-size: 1.4rem; font-style: normal;
  font-weight: 400; color: var(--text-primary); line-height: 1.5; padding-left: 24px;
  border-left: 2px solid var(--border); margin: 32px 0;
}

/* Quote Bar – full-width statement between sections */
.quote-bar {
  background: var(--dark-bg); color: var(--dark-text); padding: 56px 0;
  --text-primary: var(--dark-text);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  -webkit-font-smoothing: antialiased;
}
.quote-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl);
}
.quote-bar-text {
  font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400; line-height: 1.4; max-width: 600px;
}
.quote-bar-text em { font-style: normal; color: var(--accent); }
.quote-bar-metrics { display: flex; gap: var(--space-xl); flex-shrink: 0; }
.quote-bar-metric { text-align: center; }
.quote-bar-metric .metric-val {
  font-family: var(--font-heading); font-size: 2.4rem; font-weight: 400;
  color: var(--accent); line-height: 1.1;
}
.quote-bar-metric .metric-label { font-size: 0.8rem; color: var(--dark-text-muted); margin-top: 4px; }

/* Large Metric – reusable accent number */
.metric-large {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 400;
  color: var(--accent); line-height: 1.1;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2col { grid-template-columns: 1fr; }
  .section-header { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--nav-bg-mobile); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links .btn-nav { text-align: center; width: 100%; }
  .nav-links .lang-toggle { margin-left: 0; justify-content: center; border: 1px solid var(--border); padding: 8px 16px; font-size: 0.8rem; }
  .theme-toggle { bottom: 16px; left: 16px; }

  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .btn-ctas { flex-direction: column; }
  .cta-details { flex-direction: column; align-items: center; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Quote Bar responsive */
  .quote-bar .container { flex-direction: column; text-align: center; }
  .quote-bar-metrics { justify-content: center; }
  .quote-bar-text { max-width: none; }

  /* Tables: horizontal scroll on mobile */
  .t1-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .t1-table { min-width: 600px; }
  .t1-table td:first-child { white-space: normal; }
  .measure-table td:first-child { width: auto; min-width: 120px; }
  .measure-table td { padding: 12px 14px; font-size: 0.85rem; }
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 999;
  background: var(--text-primary); color: var(--bg-primary);
  padding: 12px 24px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ========== WORDPRESS SPECIFIC ========== */
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.alignwide { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }
