/* ============================================================
   ALUMIA AI — ÖSTERREICH (AT) DESIGN SYSTEM
   Theme: Alpine Forest Emerald & Burnished Gold
   Namespace: .aat-*
   ============================================================ */

:root {
  --aat-pine-900: #071e16;
  --aat-pine-800: #0b2920;
  --aat-pine-700: #103c2f;
  --aat-emerald: #059669;
  --aat-emerald-light: #10b981;
  --aat-gold-500: #d97706;
  --aat-gold-400: #f59e0b;
  --aat-gold-300: #fbbf24;
  --aat-gold-subtle: #fef3c7;
  --aat-bg: #f4f7f5;
  --aat-card: #ffffff;
  --aat-border: #e2e8f0;
  --aat-text: #0f172a;
  --aat-text-muted: #64748b;
  --aat-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --aat-font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --aat-radius-sm: 8px;
  --aat-radius-md: 12px;
  --aat-radius-lg: 18px;
  --aat-shadow-sm: 0 2px 8px rgba(7, 30, 22, 0.05);
  --aat-shadow-md: 0 10px 25px -5px rgba(7, 30, 22, 0.08), 0 8px 10px -6px rgba(7, 30, 22, 0.04);
  --aat-shadow-lg: 0 20px 40px -10px rgba(7, 30, 22, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--aat-bg);
  color: var(--aat-text);
  font-family: var(--aat-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--aat-emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--aat-pine-700);
}

.aat-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- NAVBAR --- */
.aat-navbar {
  background: var(--aat-pine-900);
  border-bottom: 2px solid var(--aat-gold-500);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.aat-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.aat-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.aat-brand img {
  height: 48px;
  width: auto;
}

.aat-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aat-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.aat-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: aatPulse 1.8s infinite;
}

@keyframes aatPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.aat-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--aat-gold-400) 0%, var(--aat-gold-500) 100%);
  color: #071e16;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--aat-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  text-decoration: none;
}

.aat-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, var(--aat-gold-300) 0%, var(--aat-gold-400) 100%);
  color: #071e16;
}

/* --- MAIN LAYOUT GRID --- */
.aat-main-wrap {
  padding: 36px 0 60px;
}

.aat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

/* --- ARTICLE COLUMN --- */
.aat-article-col {
  background: var(--aat-card);
  border-radius: var(--aat-radius-lg);
  padding: 40px;
  border: 1px solid var(--aat-border);
  box-shadow: var(--aat-shadow-sm);
}

.aat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aat-emerald);
  margin-bottom: 14px;
}

.aat-headline {
  font-family: var(--aat-font-serif);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.22;
  color: var(--aat-pine-900);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.aat-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--aat-text-muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--aat-border);
  margin-bottom: 26px;
}

.aat-byline-sep {
  color: #cbd5e1;
}

.aat-editor-note {
  background: #f0fdf4;
  border-left: 4px solid var(--aat-emerald);
  padding: 16px 20px;
  border-radius: 0 var(--aat-radius-sm) var(--aat-radius-sm) 0;
  font-size: 0.94rem;
  color: #14532d;
  line-height: 1.6;
  margin-bottom: 30px;
}

.aat-editor-note strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aat-emerald);
  margin-bottom: 4px;
}

.aat-media-wrap {
  margin: 0 0 32px 0;
  border-radius: var(--aat-radius-md);
  overflow: hidden;
  border: 1px solid var(--aat-border);
  background: #071e16;
}

.aat-media-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.aat-media-caption {
  font-size: 0.82rem;
  color: var(--aat-text-muted);
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--aat-border);
  font-style: italic;
}

.aat-body p {
  font-size: 1.06rem;
  line-height: 1.78;
  color: #1e293b;
  margin-bottom: 22px;
}

.aat-body strong {
  color: var(--aat-pine-900);
  font-weight: 700;
}

.aat-body h2 {
  font-family: var(--aat-font-serif);
  font-size: 1.68rem;
  font-weight: 800;
  color: var(--aat-pine-900);
  margin: 40px 0 18px;
  line-height: 1.3;
}

.aat-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--aat-pine-800);
  margin: 28px 0 14px;
}

/* Feature bullets */
.aat-advantage-card {
  background: #fbfdfc;
  border: 1px solid #d1fae5;
  border-radius: var(--aat-radius-md);
  padding: 20px 24px;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.aat-adv-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  color: var(--aat-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.aat-adv-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aat-pine-900);
  margin-bottom: 4px;
}

.aat-adv-desc {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.6;
}

/* Pullquote */
.aat-pullquote {
  margin: 36px 0;
  padding: 24px 30px;
  background: linear-gradient(135deg, #0b2920 0%, #071e16 100%);
  color: #ffffff;
  border-radius: var(--aat-radius-md);
  border-left: 6px solid var(--aat-gold-400);
  box-shadow: var(--aat-shadow-md);
}

.aat-pullquote-text {
  font-family: var(--aat-font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #f1f5f9;
}

.aat-pullquote-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--aat-gold-300);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Comparison Table */
.aat-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--aat-border);
  border-radius: var(--aat-radius-md);
}

.aat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.aat-table th {
  background: var(--aat-pine-900);
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}

.aat-table th:last-child {
  background: var(--aat-emerald);
  color: #ffffff;
}

.aat-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--aat-border);
  color: #334155;
}

.aat-table tr:last-child td {
  border-bottom: none;
}

.aat-table tr:nth-child(even) td {
  background: #f8fafc;
}

.aat-table td:last-child {
  font-weight: 700;
  color: var(--aat-emerald);
}

/* Inline In-Article Form Card */
.aat-lead-card {
  margin: 44px 0 32px;
  background: #ffffff;
  border: 2px solid var(--aat-gold-400);
  border-radius: var(--aat-radius-lg);
  padding: 34px;
  box-shadow: var(--aat-shadow-md);
  position: relative;
}

.aat-lead-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--aat-gold-500);
  color: #071e16;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.aat-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.aat-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aat-form-group.full-width {
  grid-column: span 2;
}

.aat-form-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--aat-pine-900);
}

.aat-form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.98rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--aat-radius-sm);
  background: #ffffff;
  color: var(--aat-text);
  font-family: inherit;
  transition: all 0.2s ease;
}

.aat-form-input:focus {
  outline: none;
  border-color: var(--aat-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.aat-form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--aat-gold-400) 0%, var(--aat-gold-500) 100%);
  color: #071e16;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--aat-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.aat-form-submit:hover {
  background: linear-gradient(135deg, var(--aat-gold-300) 0%, var(--aat-gold-400) 100%);
  transform: translateY(-1px);
}

.aat-form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.aat-form-hint {
  font-size: 0.78rem;
  color: var(--aat-text-muted);
  text-align: center;
  margin-top: 10px;
}

.aat-form-notify {
  display: none;
  padding: 12px 16px;
  border-radius: var(--aat-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
}

.aat-form-notify.is-success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #047857;
}

.aat-form-notify.is-error {
  display: block;
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

/* --- COMMENTS SECTION --- */
.aat-comments-wrap {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 2px solid var(--aat-border);
}

.aat-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.aat-comments-title {
  font-family: var(--aat-font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--aat-pine-900);
}

.aat-comment-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--aat-emerald);
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: 999px;
}

.aat-comment-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.aat-comment-item:last-child {
  border-bottom: none;
}

.aat-comment-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--aat-gold-400);
}

.aat-comment-content {
  flex: 1;
}

.aat-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.aat-comment-author {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--aat-pine-900);
}

.aat-comment-time {
  font-size: 0.8rem;
  color: var(--aat-text-muted);
}

.aat-comment-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.62;
}

/* --- SIDEBAR --- */
.aat-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aat-widget {
  background: var(--aat-card);
  border-radius: var(--aat-radius-md);
  padding: 24px;
  border: 1px solid var(--aat-border);
  box-shadow: var(--aat-shadow-sm);
}

.aat-widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aat-pine-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Calculator Widget */
.aat-calc-widget {
  border: 2px solid var(--aat-pine-800);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfc 100%);
}

.aat-calc-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.aat-calc-chip {
  padding: 8px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: var(--aat-radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.aat-calc-chip.is-active,
.aat-calc-chip:hover {
  background: var(--aat-pine-900);
  color: #ffffff;
  border-color: var(--aat-pine-900);
}

.aat-calc-slider {
  width: 100%;
  margin: 12px 0 18px;
  accent-color: var(--aat-emerald);
  cursor: pointer;
}

.aat-calc-res-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--aat-radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.aat-calc-res-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #166534;
  margin-bottom: 4px;
}

.aat-calc-res-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--aat-emerald);
  font-family: monospace, sans-serif;
}

/* Live Feed Widget */
.aat-feed-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: hidden;
  position: relative;
}

.aat-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--aat-radius-sm);
  font-size: 0.86rem;
  animation: aatFadeIn 0.4s ease;
}

@keyframes aatFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.aat-feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aat-feed-badge.buy {
  background: #ecfdf5;
  color: #059669;
}

.aat-feed-badge.sell {
  background: #eff6ff;
  color: #2563eb;
}

.aat-feed-user {
  font-weight: 600;
  color: #1e293b;
}

.aat-feed-asset {
  font-family: monospace;
  font-weight: 800;
  color: #0f172a;
}

/* Trust / Reg Card */
.aat-trust-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--aat-text-muted);
}

.aat-trust-flag {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

/* --- FOOTER --- */
.aat-footer {
  background: var(--aat-pine-900);
  color: #94a3b8;
  padding: 56px 0 36px;
  border-top: 3px solid var(--aat-gold-500);
  margin-top: 60px;
}

.aat-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.aat-footer-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.aat-footer-brand span {
  color: var(--aat-gold-400);
}

.aat-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.aat-footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
}

.aat-footer-links a:hover {
  color: var(--aat-gold-400);
}

.aat-footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #94a3b8;
}

.aat-footer-copyright {
  margin-top: 24px;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

/* --- MODAL DIALOG --- */
.aat-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 30, 22, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aat-modal-backdrop.is-active {
  display: flex;
}

.aat-modal-card {
  background: #ffffff;
  border-radius: var(--aat-radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 30px;
  box-shadow: var(--aat-shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid var(--aat-gold-400);
  animation: aatModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aatModalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.aat-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.aat-modal-close:hover {
  background: #e2e8f0;
  color: var(--aat-pine-900);
}

/* --- COOKIE BANNER --- */
.aat-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  max-width: 410px;
  margin: 0;
  background: var(--aat-pine-900);
  color: #ffffff;
  padding: 20px 24px;
  border-radius: var(--aat-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--aat-gold-500);
  z-index: 900;
  font-size: 0.86rem;
  line-height: 1.5;
  display: none;
}

.aat-cookie-banner.is-active {
  display: block;
}

.aat-cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.aat-btn-cookie {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--aat-radius-sm);
  cursor: pointer;
  border: none;
}

.aat-btn-cookie.accept {
  background: var(--aat-gold-400);
  color: #071e16;
}

.aat-btn-cookie.reject {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .aat-grid {
    grid-template-columns: 1fr;
  }
  .aat-sidebar {
    position: static;
  }
  .aat-article-col {
    padding: 26px 20px;
  }
  .aat-headline {
    font-size: 1.95rem;
  }
  .aat-form-grid {
    grid-template-columns: 1fr;
  }
  .aat-form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .aat-navbar-inner {
    height: 64px;
  }
  .aat-brand img {
    height: 40px;
  }
  .aat-live-pill {
    display: none;
  }
  .aat-headline {
    font-size: 1.65rem;
  }
  .aat-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
