/* --- Auto Popup (Bild) --- */
.popup[hidden] { display: none !important; }

.popup {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}

.popup-dialog {
  position: relative;
  width: min(720px, 92%);
  margin: 10vh auto 0;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 22px;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.popup.is-open .popup-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.popup-title {
  margin: 0 48px 6px 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.popup-subtitle {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.popup-image-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f5f7fa);
}

.popup-image {
  width: 100%;
  height: auto;
  display: block;
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 520px) {
  .popup-dialog { margin-top: 8vh; padding: 18px; }
  .popup-title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .popup-dialog { transition: none; }
}

/* --- Chart Builder (User-Section) --- */
.builder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }
}

.builder-panel,
.builder-preview {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.05);
}

.builder-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.builder-label {
  display: block;
  margin: 14px 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

.builder-input,
.builder-select,
.builder-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #fff;
}

.builder-textarea {
  resize: vertical;
  min-height: 140px;
}

.builder-axis-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 600px) {
  .builder-axis-row {
    grid-template-columns: 1fr;
  }
}

.builder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.builder-hint {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.builder-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.builder-pill {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-muted);
  font-weight: 700;
}

.builder-canvas-wrap {
  height: 280px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f5f7fa);
  overflow: hidden;
}

.builder-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.builder-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
:root {
  --bg: #f6f4f1;
  --bg-dark: #0f172a;
  --bg-muted: #eef1f4;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #5b6472;
  --accent: #e11d48;
  --accent-2: #f97316;
  --border: #dce1e8;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  --radius: 20px;
  --font-sans: "Optima", "Candara", "Lucida Sans", sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-light {
  background: var(--card);
}

.section-dark {
  background: var(--bg-dark);
  color: #e2e8f0;
}

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

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 16px;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-rule {
  height: 4px;
  width: 120px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
}

.section-rule.dark {
  background: linear-gradient(90deg, #3b82f6, #9333ea);
}

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-muted);
}

.section-intro .hint {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.site-nav.nav-compact {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: none;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a,
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links .icon,
.mobile-menu .icon {
  stroke: currentColor;
}

.nav-links a {
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle:focus-visible,
.nav-links a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.3s ease;
}

.site-nav.menu-open .toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav.menu-open .toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.menu-open .toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  background: white;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 16px;
  padding: 18px 20px 22px;
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a {
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-ring {
  position: absolute;
  border: 2px dashed rgba(15, 23, 42, 0.35);
  border-radius: 50%;
  animation: spin 80s linear infinite;
  opacity: 0.28;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.10));
}

.ring-one {
  width: 320px;
  height: 320px;
  top: 80px;
  right: 120px;
}

.ring-two {
  width: 480px;
  height: 480px;
  bottom: 60px;
  left: 60px;
  animation-duration: 90s;
}

.hero-bars {
  position: absolute;
  width: 220px;
  height: 140px;
  left: 50%;
  top: 140px;
  transform: translateX(-50%) rotate(-3deg);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(15, 23, 42, 0.28);
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  animation: float-soft 9s ease-in-out infinite;
  opacity: 0.28;
}

.hero-bar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  border: 1px solid rgba(15, 23, 42, 0.32);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.08));
  transform-origin: bottom;
  animation: bar-pulse 4.6s ease-in-out infinite;
}

.hero-bars .hero-bar:nth-child(1) { height: 55%; animation-delay: 0ms; }
.hero-bars .hero-bar:nth-child(2) { height: 35%; animation-delay: 200ms; }
.hero-bars .hero-bar:nth-child(3) { height: 72%; animation-delay: 400ms; }
.hero-bars .hero-bar:nth-child(4) { height: 46%; animation-delay: 600ms; }
.hero-bars .hero-bar:nth-child(5) { height: 62%; animation-delay: 800ms; }

@keyframes bar-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(0.88); opacity: 0.75; }
}

.hero-flow {
  position: absolute;
  width: 260px;
  height: 150px;
  right: 9vw;
  bottom: 120px;
  border: 1px solid rgba(15, 23, 42, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  animation: float-soft 10s ease-in-out infinite;
  animation-delay: 0.8s;
  opacity: 0.28;
}

.hero-flow::before,
.hero-flow::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}

/* connector lines */
.hero-flow::before {
  top: 44px;
  height: 60px;
  width: 2px;
  background: rgba(15, 23, 42, 0.42);
}

.hero-flow::after {
  top: 98px;
  height: 34px;
  width: 2px;
  background: rgba(15, 23, 42, 0.42);
}

.flow-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(15, 23, 42, 0.5);
  background: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.flow-node.start {
  top: 18px;
  width: 70px;
  height: 22px;
  border-radius: 10px;
}

.flow-node.decision {
  top: 64px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transform: translateX(-50%) rotate(45deg);
}

.flow-node.end {
  bottom: 16px;
  width: 70px;
  height: 22px;
  border-radius: 10px;
}

/* small arrowheads */
.hero-flow .flow-node.decision::before,
.hero-flow .flow-node.end::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 23, 42, 0.35);
  border-bottom: 2px solid rgba(15, 23, 42, 0.35);
}

.hero-flow .flow-node.decision::before {
  top: -18px;
  transform: translateX(-50%) rotate(45deg) rotate(-45deg);
}

.hero-flow .flow-node.end::before {
  top: -18px;
  transform: translateX(-50%) rotate(45deg);
}

/* --- HERO DONUT & SPARK --- */
.hero-donut {
  position: absolute;
  width: 180px;
  height: 180px;
  left: 10vw;
  top: 120px;
  border-radius: 50%;
  opacity: 0.28;
  background:
    conic-gradient(
      rgba(15, 23, 42, 0.55) 0 28%,
      rgba(15, 23, 42, 0.18) 28% 62%,
      rgba(15, 23, 42, 0.42) 62% 100%
    );
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  animation: float-soft 11s ease-in-out infinite;
  animation-delay: 0.3s;
}

.hero-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.hero-spark {
  position: absolute;
  width: 260px;
  height: 120px;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) rotate(2deg);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  opacity: 0.28;
  animation: float-soft 12s ease-in-out infinite;
  animation-delay: 1.2s;
}

.hero-spark::before {
  content: "";
  position: absolute;
  inset: 18px 16px 18px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), transparent),
    linear-gradient(90deg, rgba(15, 23, 42, 0.12) 0 0);
}

.hero-spark::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.18);
}

.spark-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  animation: dot-pop 4.8s ease-in-out infinite;
}

.hero-spark .spark-dot:nth-child(1) { left: 34px;  top: 72px;  animation-delay: 0ms; }
.hero-spark .spark-dot:nth-child(2) { left: 74px;  top: 56px;  animation-delay: 200ms; }
.hero-spark .spark-dot:nth-child(3) { left: 118px; top: 64px;  animation-delay: 400ms; }
.hero-spark .spark-dot:nth-child(4) { left: 160px; top: 42px;  animation-delay: 600ms; }
.hero-spark .spark-dot:nth-child(5) { left: 198px; top: 58px;  animation-delay: 800ms; }
.hero-spark .spark-dot:nth-child(6) { left: 224px; top: 38px;  animation-delay: 1000ms; }

@keyframes dot-pop {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(0.82); opacity: 0.65; }
}

@media (max-width: 900px) {
  .hero-bars {
    top: 120px;
    width: 200px;
    height: 128px;
  }

  .hero-flow {
    right: 6vw;
    bottom: 90px;
    width: 230px;
    height: 140px;
  }
  .hero-donut { left: 6vw; top: 120px; width: 160px; height: 160px; }
  .hero-spark { width: 230px; bottom: 95px; }
}

@media (max-width: 600px) {
  .hero-bars {
    left: 50%;
    top: 110px;
    width: 185px;
    height: 120px;
  }

  .hero-flow {
    right: 50%;
    transform: translateX(50%);
    bottom: 70px;
    width: 210px;
    height: 132px;
  }
  .hero-donut { left: 50%; transform: translateX(-50%); top: 86px; width: 148px; height: 148px; }
  .hero-spark { left: 50%; transform: translateX(-50%) rotate(1deg); bottom: 58px; width: 210px; height: 112px; }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(6px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 6.4rem);
  margin: 24px 0 16px;
}

.hero-gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--bg-dark);
  color: white;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: white;
  border-color: var(--border);
}

.btn-ghost:hover {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.22);
}

.hero-floater {
  position: absolute;
  display: none;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.15);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floater-right {
  right: -20px;
  top: 35%;
}

.floater-left {
  left: -10px;
  top: 30%;
  animation-delay: 1s;
}

.icon-badge {
  width: 36px;
  height: 36px;
  background: var(--bg-muted);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
}

.arrow {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(8px) rotate(45deg); }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-slab {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
  transition: transform 0.25s ease, background 0.25s ease;
}

.info-card:hover .icon-slab {
  transform: rotate(-3deg) scale(1.05);
  background: #ffe4ea;
}

.icon-slab svg,
.chart-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.quote-block {
  margin-top: 56px;
  padding: 32px;
  border-radius: 24px;
  background: #f0f6ff;
  border: 1px solid #d6e4ff;
}

.quote-block h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.quote-highlight {
  margin-top: 16px;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.lead {
  font-size: 1.05rem;
  color: #cbd5f5;
}

.stack {
  display: grid;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start; /* verhindert Stretching der Icons */
}

.feature-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px; /* nicht wachsen/schrumpfen -> bleibt perfekt rund */
  border-radius: 50% !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature:hover .feature-icon {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

.live-card {
  position: relative;
  background: #111c36;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  margin-bottom: 16px;
}

.live-pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.live-chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  background: #0f172a;
  border-radius: 16px;
  padding: 16px;
}

.live-chart .bar {
  width: 100%;
  height: calc(var(--value) * 1%);
  background: linear-gradient(180deg, #38bdf8, #6366f1);
  border-radius: 10px 10px 4px 4px;
  transition: height 0.8s ease, filter 0.3s ease;
}

.live-chart .bar:hover {
  filter: brightness(1.15);
}

.chart-note {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 12px;
}

.live-card .glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.35), transparent 70%);
  opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.live-card:hover .glow {
  opacity: 0.7;
  transform: scale(1.05);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn,
.chart-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.chart-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.filter-btn.active,
.chart-filter-btn.active {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.split-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.split-block h4 {
  margin-top: 0;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--bg-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tag:hover {
  transform: translateY(-2px);
  background: #e9eef5;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 14px;
  background: white;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-list a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.12);
}

.chart-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.toolbar-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: white;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px;
  display: grid;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.chart-mini {
  height: 160px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f5f7fa);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.chart-mini canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chart-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.chart-card:hover .chart-badge {
  transform: rotate(6deg) scale(1.05);
}

.chart-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.chart-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-section {
  background: var(--bg-muted);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e4e9ef;
  font-size: 0.85rem;
}

.chart-section h5 {
  margin: 0 0 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.chart-pros {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chart-example {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-mini.flow {
  display: block;
}

.chart-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translate(-50%, -110%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.chart-card.show-tooltip .chart-tooltip {
  opacity: 1;
  transform: translate(-50%, -120%);
}

.timeline {
  position: relative;
  margin-top: 40px;
  display: grid;
  gap: 32px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
}

.timeline-item.alt {
  direction: rtl;
}

.timeline-item.alt .timeline-card {
  direction: ltr;
}

.timeline-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 18px;
  max-width: 360px;
  justify-self: end;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.timeline-item.alt .timeline-card {
  justify-self: start;
}

.timeline-card h4 {
  margin: 0 0 6px;
  color: var(--accent);
}

.timeline-sub {
  margin: 0 0 10px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.timeline-body {
  color: #cbd5f5;
  font-size: 0.85rem;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid #0b1120;
  margin: 0 auto;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.6);
}

.dot-blue { background: #3b82f6; box-shadow: 0 0 18px rgba(59, 130, 246, 0.6); }
.dot-green { background: #22c55e; box-shadow: 0 0 18px rgba(34, 197, 94, 0.6); }
.dot-purple { background: #a855f7; box-shadow: 0 0 18px rgba(168, 85, 247, 0.6); }

.accent-blue h4 { color: #60a5fa; }
.accent-green h4 { color: #34d399; }
.accent-purple h4 { color: #c084fc; }

.site-footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 48px 0;
  text-align: center;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: white;
  font-family: var(--font-display);
}

.footer-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  font-size: 0.8rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-floater {
    display: inline-flex;
  }

  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .site-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 40px;
  }

  .timeline-item.alt {
    direction: ltr;
  }

  .timeline-dot {
    position: absolute;
    left: 20px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .timeline-card {
    max-width: 100%;
  }
}
