/* ============================================
   Buchta AI Systems - Stylesheet
   Design: "The Engineered Node"
   Palette: Deep Navy #0F172A + Sky Blue #0EA5E9
   Font: Inter
   ============================================ */

/* Self-hosted fonts (DSGVO: no third-party data transfer) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/inter-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/montserrat-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/montserrat-800.woff2') format('woff2');
}

:root {
  --primary: #0f172a;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.15);
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --pill-bg: #f1f5f9;
  --pill-text: #0ea5e9;
  --success: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Dark Mode (System Preference)
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #e2e8f0;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border: #334155;
    --pill-bg: #1e293b;
    --pill-text: #38bdf8;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.3);
  }

  /* Hero */
  .hero {
    background: linear-gradient(170deg, #0a0f1e 0%, #131c2e 40%, #0a0f1e 100%);
  }

  .hero-badge {
    background: #1e3a2f;
    color: #4ade80;
  }

  .hero-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: #475569;
  }

  .hero-card h3 {
    color: #f1f5f9;
  }

  .hero-card p {
    color: #cbd5e1;
  }

  .pill-accent {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
  }

  /* Device frame stroke in dark mode */
  .card-icon svg rect[stroke="#0F172A"],
  .card-icon svg rect[stroke="#0f172a"],
  .service-icon svg rect[stroke="#0F172A"],
  .service-icon svg rect[stroke="#0f172a"] {
    stroke: #e2e8f0;
  }

  /* Header */
  .site-header {
    background: #0f172a;
  }

  /* Form inputs */
  .form-group input,
  .form-group textarea,
  .form-group select {
    background: #0f172a;
    color: #e2e8f0;
  }

  /* Comparison table */
  .comparison-table thead th {
    background: #1e293b;
  }
  .comparison-table thead th:last-child {
    background: var(--accent);
    color: #0f172a;
  }

  /* Footer */
  .site-footer {
    background: #020617;
  }

  /* Cookie banner */
  .cookie-banner {
    background: #1e293b;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }
  .cookie-btn-essential {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
  }

  /* Image borders */
  .about-photo img,
  .hero-card-profile img {
    border-color: #334155;
  }

  /* Form status */
  .form-status.success {
    background: #1e3a2f;
    color: #4ade80;
    border-color: #166534;
  }
  .form-status.error {
    background: #3b1318;
    color: #fca5a5;
    border-color: #991b1b;
  }

  /* Inline SVG icon colors */
  .card-icon svg circle[fill="#0F172A"],
  .card-icon svg circle[fill="#0f172a"],
  .service-icon svg circle[fill="#0F172A"],
  .service-icon svg circle[fill="#0f172a"] {
    fill: #e2e8f0;
  }
  .card-icon svg path[stroke="#0F172A"],
  .card-icon svg path[stroke="#0f172a"],
  .service-icon svg path[stroke="#0F172A"],
  .service-icon svg path[stroke="#0f172a"] {
    stroke: #e2e8f0;
  }

  /* Calendly placeholder */
  .calendly-placeholder {
    background: #1e293b;
    border-color: #475569;
  }
}

@media print {
  #hero-particles { display: none; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Language Toggle
   ============================================ */
.lang-en { display: none; }
body.en .lang-de { display: none; }
body.en .lang-en { display: initial; }
span.lang-de { display: inline; }
span.lang-en { display: none; }
body.en span.lang-de { display: none; }
body.en span.lang-en { display: inline; }
div.lang-en, p.lang-en, li.lang-en, h1.lang-en, h2.lang-en, h3.lang-en,
td.lang-en, th.lang-en, option.lang-en, label.lang-en, a.lang-en, small.lang-en {
  display: none;
}
body.en div.lang-de, body.en p.lang-de, body.en li.lang-de, body.en h1.lang-de,
body.en h2.lang-de, body.en h3.lang-de, body.en td.lang-de, body.en th.lang-de,
body.en option.lang-de, body.en label.lang-de, body.en a.lang-de, body.en small.lang-de {
  display: none;
}
body.en div.lang-en, body.en p.lang-en, body.en li.lang-en, body.en h1.lang-en,
body.en h2.lang-en, body.en h3.lang-en, body.en td.lang-en, body.en th.lang-en,
body.en option.lang-en, body.en label.lang-en, body.en a.lang-en, body.en small.lang-en {
  display: block;
}
body.en span.lang-en { display: inline; }
body.en a.lang-en { display: inline; }
body.en small.lang-en { display: inline; }
body.en label.lang-en { display: block; }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo with PNG icon + text */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo-icon {
  height: 44px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: 'Montserrat', var(--font);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.logo-sub {
  font-family: 'Montserrat', var(--font);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Shared Elements
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
  font-weight: 400;
}

.pill {
  display: inline-block;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill-accent {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: transparent;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   Hero Section - Dashboard Layout (Mockup2)
   ============================================ */
.hero {
  padding: 60px 24px 70px;
  background: linear-gradient(170deg, #ffffff 0%, #f0f9ff 40%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-content {
  padding-top: 16px;
}

.hero-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
  font-weight: 400;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* Right side: Service cards + profile card grid */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.25s;
}

.hero-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.hero-card .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.hero-card .card-icon svg {
  width: 100%;
  height: 100%;
}

.hero-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  font-weight: 400;
}

/* Profile card spanning full width */
.hero-card-profile {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.hero-card-profile img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-alt);
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.profile-info .role {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-pills .pill {
  font-size: 0.68rem;
  padding: 2px 9px;
  font-weight: 600;
}

/* ============================================
   Services Detail Section
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-wrapper {
  margin-top: 40px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  text-align: left;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table thead th:last-child {
  background: var(--accent);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--primary);
}

.comparison-table tbody td:last-child {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   About / Trust Section
   ============================================ */
.about-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 40px;
}

.about-photo {
  flex: 0 0 220px;
  text-align: center;
}

.about-photo img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-alt);
  box-shadow: var(--shadow-md);
}

.about-content {
  flex: 1;
}

.about-content p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 400;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.about-tags .pill {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-size: 0.75rem;
}

.experience-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.experience-list li {
  font-size: 0.85rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  font-weight: 400;
}

.experience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================
   Philosophy
   ============================================ */
.philosophy-content {
  max-width: 700px;
  margin-top: 24px;
}

.philosophy-content blockquote {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.philosophy-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.philosophy-points li {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
  font-weight: 400;
}

.philosophy-points li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-group .captcha-question {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-family: var(--font);
}

.captcha-group input {
  width: 80px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.consent-group {
  margin-bottom: 18px;
}

.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
}

.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 12px;
  display: none;
}

.form-status.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.8;
}

.contact-info-card a:hover {
  color: var(--accent);
}

.calendly-placeholder {
  background: var(--pill-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}

.calendly-placeholder h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.calendly-placeholder p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 36px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.78rem;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 18px 24px;
  z-index: 1000;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 280px;
}

.cookie-inner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: all 0.2s;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--accent-hover);
}

.cookie-btn-essential {
  background: var(--pill-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-btn-essential:hover {
  background: var(--border);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cards {
    max-width: 520px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo { flex: none; }

  .experience-list {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section { padding: 56px 16px; }
  .hero { padding: 40px 16px 50px; }
  .hero h1 { font-size: 1.65rem; }
  .section-title { font-size: 1.5rem; }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    justify-content: center;
    margin-top: 8px;
  }

  .contact-form { padding: 22px 18px; }
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-page h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-page .legal-date {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* ============================================
   Dark Mode Overrides (after main rules for specificity)
   ============================================ */
@media (prefers-color-scheme: dark) {
  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-content::before {
    content: '';
    position: absolute;
    inset: -40px -60px;
    background: radial-gradient(ellipse at 30% 40%, rgba(10, 15, 30, 0.85) 0%, rgba(10, 15, 30, 0.5) 50%, transparent 75%);
    z-index: -1;
    border-radius: 32px;
    pointer-events: none;
  }

  .hero h1 {
    color: #ffffff;
  }

  .hero-subtitle {
    color: #e2e8f0;
  }
}
