:root {
  --bg-obsidian: #090a0d;
  --bg-surface: #111318;
  --bg-card: #161920;
  --border-subtle: #27241d;
  --border-gold: rgba(212, 168, 83, 0.45);
  --gold-primary: #d8ad58;
  --gold-bright: #ecc574;
  --text-main: #f3efe6;
  --text-muted: #aba69b;
  --green-soft: #39b56a;
  --amber-soft: #e0a33b;
  --red-soft: #df4c4c;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.amberli-dark {
  margin: 0;
  background: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); }

.amberli-container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.amberli-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

.amberli-kicker {
  color: var(--gold-primary);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
}

.amberli-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 1.4rem;
}

.amberli-section { padding: 4.75rem 0; }
.amberli-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.amberli-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem min(4vw, 3rem);
  background: rgba(9, 10, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.amberli-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-logo-img, .footer-logo {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}

.amberli-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.amberli-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s ease;
}
.amberli-nav a:hover, .amberli-nav a.active { color: var(--gold-bright); }

.amberli-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  color: #111216;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.45rem;
  font-size: 0.94rem;
  cursor: pointer;
}

.amberli-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 173, 88, 0.08);
  color: var(--text-main) !important;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.amberli-text-link { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.amberli-text-link:hover { color: var(--text-main); }

.amberli-hero { padding: 4.5rem 0 3.5rem; }
.hero-grid, .split-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.amberli-hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  line-height: 1.1;
  margin: 0.5rem 0 1.15rem;
}

.gold-italic { color: var(--gold-bright); font-style: italic; }

.amberli-lead {
  color: #cfc9bd;
  font-size: 1.12rem;
  max-width: 54ch;
  margin: 0 0 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.hero-visual, .visual-stack { position: relative; }
.hero-ampel-img, .section-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  display: block;
}

.hero-chat-examples { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.9rem; }
.chat-bubble {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
}
.chat-bubble span { font-size: 0.76rem; color: var(--text-muted); }
.chat-green { border-left: 3px solid var(--green-soft); }
.chat-red { border-left: 3px solid var(--red-soft); }
.ai-media-caption { display: block; text-align: right; font-size: 0.72rem; color: #7c7870; margin-top: 0.4rem; }

.video-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #050608;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.video-frame video { width: 100%; max-height: 580px; display: block; }

.amberli-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.35rem;
}

.ampel-grid, .amberli-kpi-grid, .amberli-news-grid, .amberli-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.ampel-card-green { border-top: 3px solid var(--green-soft); }
.ampel-card-amber { border-top: 3px solid var(--amber-soft); }
.ampel-card-red   { border-top: 3px solid var(--red-soft); }
.amberli-card-gold { border-color: var(--border-gold); }

.context-proof-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
}
.context-proof-box h3 { margin: 0 0 0.45rem; font-size: 1rem; color: var(--gold-bright); }
.context-proof-box p { margin: 0; font-size: 0.94rem; color: #dcd7cc; }

.clean-list { padding-left: 1.15rem; margin: 0; color: #d6d1c6; }
.clean-list li { margin-bottom: 0.55rem; }

.kpi-value { display: block; font-size: 2rem; font-weight: 700; color: var(--gold-bright); }
.kpi-label { font-size: 0.88rem; color: var(--text-muted); }

.amberli-topic-bars {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
}
.topic-title { margin: 0 0 0.6rem; font-weight: 600; color: var(--text-main); }
.topic-row {
  display: grid;
  grid-template-columns: 190px 1fr 70px;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.65rem;
  font-size: 0.88rem;
}
.topic-track { height: 8px; background: #222630; border-radius: 99px; overflow: hidden; }
.topic-fill { height: 100%; background: var(--gold-primary); }
.amberli-meta-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

.amberli-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.news-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-tag { color: var(--gold-primary); font-weight: 700; letter-spacing: 0.06em; }
.news-more { color: var(--gold-bright); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.amberli-news-card h2, .amberli-news-card h3 { margin: 0.3rem 0 0.6rem; font-size: 1.15rem; }
.amberli-news-card h2 a, .amberli-news-card h3 a { color: var(--text-main); text-decoration: none; }
.amberli-news-card h2 a:hover, .amberli-news-card h3 a:hover { color: var(--gold-bright); }

.amberli-filter-bar { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.2rem 0 2rem; }
.amberli-filter-bar a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.amberli-filter-bar a.active, .amberli-filter-bar a:hover {
  border-color: var(--border-gold);
  color: var(--gold-bright);
  background: rgba(216, 173, 88, 0.08);
}

.amberli-backlink { display: inline-block; margin-bottom: 1.2rem; color: var(--gold-bright); text-decoration: none; font-size: 0.92rem; }
.amberli-article { max-width: 78ch; }
.amberli-article-body { color: #dcd7cc; margin-top: 1.4rem; }
.amberli-mini-stats-strip {
  margin-top: 2.5rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.amberli-mini-stats-strip strong { color: var(--gold-bright); }

.cert-header { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 0.75rem; }
.cert-badge { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #0d0f14; padding: 4px; }
.cert-issuer { margin: 0.15rem 0 0; font-size: 0.84rem; color: var(--text-muted); }
.cert-scope { font-size: 0.9rem; color: #d6d1c6; }
.cert-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0.9rem 0; font-size: 0.82rem; }
.cert-meta dt { color: var(--text-muted); }
.cert-meta dd { margin: 0; font-weight: 600; }
.cert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 0.9rem; }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form label:not(.checkbox-row) { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: #d6d1c6; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%;
  background: #0d0f14;
  color: var(--text-main);
  border: 1px solid #323642;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
}
.checkbox-row { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); }
.checkbox-row input { width: auto; margin-top: 0.2rem; }
.hp-field { display: none !important; }
.form-status { margin: 0; font-size: 0.88rem; color: var(--gold-bright); }
.contact-direct { font-size: 0.95rem; color: var(--text-muted); }

.amberli-footer { border-top: 1px solid var(--border-subtle); padding: 1.75rem 0; background: #07080a; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-brand, .footer-links, .footer-certs { display: flex; align-items: center; gap: 1rem; font-size: 0.86rem; color: var(--text-muted); flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-certs img { height: 34px; width: auto; }

.amberli-modal[hidden] { display: none; }
.amberli-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; }
.amberli-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.82); }
.amberli-modal-box { position: relative; z-index: 2; width: min(920px, 100%); background: var(--bg-surface); border: 1px solid var(--border-gold); border-radius: 14px; padding: 1rem; }
.amberli-modal-box video { width: 100%; border-radius: 8px; display: block; }
.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; font-weight: 600; color: var(--gold-bright); }
.modal-close { background: transparent; border: 0; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; }

.amberli-chat-widget { position: fixed; right: 1.35rem; bottom: 1.35rem; z-index: 60; }
.chat-fab {
  width: 60px; height: 60px; border-radius: 16px; padding: 3px;
  background: var(--bg-card); border: 1.5px solid var(--gold-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); cursor: pointer; overflow: hidden;
}
.chat-fab img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.chat-drawer[hidden] { display: none; }
.chat-drawer {
  position: absolute; right: 0; bottom: 74px; width: min(370px, calc(100vw - 2rem));
  background: var(--bg-surface); border: 1px solid var(--border-gold); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75); overflow: hidden;
}
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; background: #171a22; border-bottom: 1px solid var(--border-subtle); }
.chat-title-group { display: flex; align-items: center; gap: 0.65rem; }
.chat-title-group img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.chat-title-group small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.chat-messages { max-height: 300px; overflow-y: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.65rem; }
.chat-msg { padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 0.88rem; }
.chat-bot { background: #1c202a; border: 1px solid #2b303e; }
.chat-user { background: rgba(216, 173, 88, 0.16); border: 1px solid var(--border-gold); align-self: flex-end; }
.chat-cta-link { display: inline-block; margin-top: 0.45rem; color: var(--gold-bright); font-weight: 600; text-decoration: none; }
.chat-form { display: flex; gap: 0.45rem; padding: 0.7rem; border-top: 1px solid var(--border-subtle); background: #101217; }
.chat-form input { flex: 1; background: #090a0d; border: 1px solid #2d3240; border-radius: 8px; color: var(--text-main); padding: 0.55rem 0.7rem; }
.chat-send { padding: 0.55rem 0.95rem; font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero-grid, .split-grid, .contact-grid, .ampel-grid, .amberli-kpi-grid, .amberli-news-grid, .amberli-certs-grid {
    grid-template-columns: 1fr;
  }
  .amberli-nav { gap: 0.75rem; }
  .topic-row { grid-template-columns: 130px 1fr 56px; }
}
