:root {
  --bg: #fafaf8;
  --white: #ffffff;
  --navy: #1a2b4a;
  --navy-light: #2a3f66;
  --text: #1a2b4a;
  --muted: #5c6b82;
  --gold: #c9a227;
  --gold-light: #f5ecd4;
  --green: #25d366;
  --green-dark: #1da851;
  --line: #e4e8ef;
  --cream: #f7f5f0;
  --error: #c0392b;
  --success: #1a7f4b;
  --modal-bg: rgba(26, 43, 74, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: #fff;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 16px;
  gap: 12px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.top-europa {
  font-size: 0.78rem;
  opacity: 0.85;
  flex: 1;
  text-align: center;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* Page */
.page {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.brand {
  text-align: center;
  margin-bottom: 20px;
}

.brand-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.brand-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto 0;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.hero-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
}

.pill svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* Cards */
.assistant-card,
.stock-card,
.model-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 43, 74, 0.06);
  margin-bottom: 16px;
}

.assistant-card {
  padding: 20px;
}

.assistant-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.assistant-info h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.desc {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.wa-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.wa-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.wa-btn:hover {
  background: #f0fdf4;
}

/* Stock card */
.stock-card {
  padding: 20px;
  border-top: 3px solid var(--navy);
}

.stock-card h3 {
  margin: 0 0 14px;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy);
}

.stock-form {
  display: grid;
  gap: 10px;
}

#tickerInput {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  padding: 14px 16px;
  font-size: 1rem;
  transition: border-color 0.15s;
}

#tickerInput:focus {
  outline: none;
  border-color: var(--navy);
}

#tickerInput::placeholder {
  color: #9aa5b5;
}

.analyze-btn {
  border: 0;
  border-radius: 10px;
  padding: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.analyze-btn:hover:not(:disabled) {
  background: var(--navy-light);
}

.analyze-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.stock-message {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.stock-message.error { color: var(--error); }
.stock-message.success { color: var(--success); }

.ticker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pick-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pick-chip:hover {
  border-color: var(--navy);
  background: var(--white);
}

.status-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.82rem;
}

.status-label {
  color: var(--muted);
}

.status-value {
  color: var(--navy);
  font-weight: 500;
}

.status-value.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.verified-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gold-light);
  color: #8a6d12;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Analysemodell */
.model-section {
  padding: 20px;
}

.model-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.model-card {
  text-align: center;
  padding: 12px 8px;
}

.model-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: var(--gold);
}

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

.model-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.model-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Footer */
.site-footer {
  text-align: center;
  padding-top: 8px;
}

.disclaimer {
  margin: 0 0 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.footer-trust div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-trust svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
  opacity: 0.7;
}

.flag-strip {
  display: flex;
  height: 3px;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.flag-strip span:nth-child(1) { flex: 1; background: #000; }
.flag-strip span:nth-child(2) { flex: 1; background: #dd0000; }
.flag-strip span:nth-child(3) { flex: 1; background: #ffce00; }

/* FAB */
.fab-wrap {
  display: block;
  position: fixed;
  bottom: 16px;
  right: 14px;
  z-index: 400;
}

.fab-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.fab-wa svg { width: 22px; height: 22px; }
.fab-wa small { display: block; font-size: 0.6rem; font-weight: 600; opacity: 0.9; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--modal-bg);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(400px, 100%);
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.modal[hidden] {
  display: none;
}

.modal-loading {
  border: 1px solid rgba(45, 212, 191, 0.4);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.15), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-success {
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.15), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.progress-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 5;
}

.ring-fg {
  fill: none;
  stroke: #2dd4bf;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: 213.6;
  animation: ringProgress 2.4s ease-in-out forwards;
}

@keyframes ringProgress {
  to { stroke-dashoffset: 0; }
}

.modal h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-ticker {
  margin: 8px 0 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.checklist li.active {
  color: #fff;
}

.checklist li.active::before {
  background: #2dd4bf;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
}

.checklist li.done {
  color: rgba(255, 255, 255, 0.85);
}

.checklist li.done::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: #2dd4bf;
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.4);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #fff;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.success-desc {
  margin: 10px 0 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.message-preview {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  line-height: 1.5;
  margin-bottom: 16px;
}

.success-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s;
}

.success-wa-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.success-wa-btn:hover {
  background: var(--green-dark);
}

.success-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 720px) {
  .page { padding-bottom: 88px; }
  .top-europa { display: none; }
  .model-grid { grid-template-columns: 1fr; gap: 16px; }
  .model-card { display: flex; gap: 12px; text-align: left; padding: 0; }
  .model-icon { margin: 0; flex-shrink: 0; }
  .footer-trust { grid-template-columns: 1fr; gap: 16px; }
}

@media (min-width: 900px) {
  .fab-wrap { display: none; }
}
