/* ══════════════════════════════════════════════════
   btBasics Homepage – Stylesheet
   Dark Theme · Glassmorphism · Scroll Animations
   ══════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0A0A0A;
  --bg-card:  rgba(255,255,255,0.04);
  --bg-glass: rgba(255,255,255,0.06);
  --fg:       #E8E8E8;
  --fg-muted: #9CA3AF;
  --fg-dim:   #6B7280;
  --accent:   #1B5E20;
  --accent-l: #2E7D32;
  --accent-xl:#4CAF50;
  --accent-glow: rgba(27,94,32,0.35);
  --red:      #C62828;
  --border:   rgba(255,255,255,0.08);
  --radius:   16px;
  --radius-sm:10px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'JetBrains Mono', 'Consolas', monospace;
  --max-w:    1200px;
  --nav-h:    72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
section[id], [id].subpage { scroll-margin-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-xl); text-decoration: none; transition: color .2s; }
a:hover { color: #66BB6A; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; font-weight: 600; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent-xl) 0%, #81C784 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--fg-muted); }
.text-dim { color: var(--fg-dim); }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 1.4rem; font-weight: 800; color: var(--fg);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: transparent;
}
.nav-logo .logo-icon img {
  width: 100%; height: 100%; object-fit: contain;
}
.nav-logo .logo-bt { color: var(--accent-xl); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--fg-muted); font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 10px 22px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover {
  background: var(--accent-l); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.nav-login {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); color: var(--fg) !important;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.nav-login:hover {
  border-color: var(--accent-xl); background: rgba(76,175,80,.08);
  color: #fff; transform: translateY(-1px);
}
.nav-login svg { width: 15px; height: 15px; }
.nav-toggle { display: none; background: none; border: none; color: var(--fg); font-size: 1.5rem; cursor: pointer; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.3) saturate(0.5);
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,.78) 0%,
    rgba(10,10,10,.60) 40%,
    rgba(10,10,10,.82) 100%
  );
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none; animation: pulse 6s ease-in-out infinite;
  z-index: 1;
}
.hero::after {
  content: ''; position: absolute; bottom: -150px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76,175,80,.12) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none; animation: pulse 8s ease-in-out infinite reverse;
  z-index: 1;
}
@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.hero-content { position: relative; z-index: 2; }
.hero-center {
  text-align: center; max-width: 720px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px; padding: 6px 16px; font-size: .82rem;
  color: var(--accent-xl); font-weight: 500; margin-bottom: 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-xl); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent-xl); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 36px; margin-inline: auto; max-width: 540px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 32px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary:hover {
  background: var(--accent-l); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
  background: transparent; color: var(--fg); padding: 14px 32px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--accent-xl); background: var(--bg-glass); color: #fff; }



.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--fg-dim); font-size: .8rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(10px); }
}

/* ── Section video background (reusable) ── */
.section-video-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.section-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.3) saturate(0.5);
}
.section-video-wrap .section-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,.82) 0%,
    rgba(10,10,10,.65) 40%,
    rgba(10,10,10,.85) 100%
  );
}

/* ── Features Bento Grid ── */
.features { background: var(--bg); position: relative; overflow: hidden; }
.features > .container { position: relative; z-index: 1; }
.features .section-header { text-align: center; margin-bottom: 60px; }
.features .section-header p { color: var(--fg-muted); font-size: 1.1rem; margin-top: 16px; max-width: 600px; margin-inline: auto; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
}
.bento-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-xl));
  opacity: 0; transition: opacity .3s;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76,175,80,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.bento-card:hover::before { opacity: 1; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }

/* ── Dezenter Lichtschein, der dem Cursor folgt (ruhig, kein 3D-Gekippe) ── */
.bento-card { --glow-x: 50%; --glow-y: 50%; }
.bento-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--glow-x) var(--glow-y),
              rgba(76,175,80,.10), transparent 60%);
  opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 0;
}
.bento-card:hover::after { opacity: 1; }
.bento-card > * { position: relative; z-index: 1; }

/* ── Flaggschiff-Karte: edel statt grell ── */
.bento-card.flagship {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(27,94,32,.18) 0%, transparent 55%),
    var(--bg-glass);
  border-color: rgba(76,175,80,.22);
}
.bento-card.flagship::before { opacity: 1; height: 2px; }
.bento-card.flagship:hover {
  border-color: rgba(76,175,80,.38);
  box-shadow: 0 16px 50px rgba(27,94,32,.18);
}
.bento-card.flagship .bento-icon {
  background: rgba(27,94,32,.22);
}
.bento-tag {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-xl); background: rgba(27,94,32,.16);
  border: 1px solid rgba(76,175,80,.28); border-radius: 50px; padding: 4px 12px;
}

/* ── Scroll-Fortschritt oben (dezent) ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-xl));
  z-index: 2000; transition: width .1s linear;
}

/* ── Sehr feine Körnung für Tiefe ── */
.grain {
  position: fixed; inset: 0; z-index: 1500; pointer-events: none;
  opacity: .02; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Rücksicht auf "Animationen reduzieren" ── */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator, .hero::before, .hero::after { animation: none; }
}
.bento-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(27,94,32,.15); display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 20px;
}
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { color: var(--fg-muted); font-size: .95rem; }

/* ── Stats Bar ── */
.stats {
  background: linear-gradient(135deg, rgba(27,94,32,.08), rgba(76,175,80,.04));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center;
}
.stat-item h3 {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-xl), #A5D6A7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item p { color: var(--fg-muted); font-size: .9rem; margin-top: 4px; }

/* ── Pricing ── */
.pricing { background: var(--bg); position: relative; overflow: hidden; }
.pricing > .container { position: relative; z-index: 1; }
.pricing .section-header { text-align: center; margin-bottom: 60px; }
.pricing .section-header p { color: var(--fg-muted); font-size: 1.1rem; margin-top: 16px; max-width: 600px; margin-inline: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,.3);
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(27,94,32,.12), rgba(76,175,80,.04));
}
.price-card.featured::before {
  content: 'Beliebteste Wahl'; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%); background: var(--accent); color: #fff;
  padding: 4px 18px; border-radius: 50px; font-size: .78rem; font-weight: 600;
  white-space: nowrap;
}
.price-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.price-amount { font-size: 2.8rem; font-weight: 800; margin-bottom: 4px; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--fg-muted); }
.price-desc { color: var(--fg-muted); font-size: .9rem; margin-bottom: 28px; }
.price-features { margin-bottom: 32px; }
.price-features li {
  padding: 8px 0; font-size: .93rem; color: var(--fg-muted);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before {
  content: '✓'; color: var(--accent-xl); font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}
.price-btn {
  display: block; width: 100%; text-align: center; padding: 14px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: all .2s;
}
.price-btn.primary {
  background: var(--accent); color: #fff;
}
.price-btn.primary:hover {
  background: var(--accent-l); color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.price-btn.secondary {
  background: var(--bg-glass); color: var(--fg); border: 1px solid var(--border);
}
.price-btn.secondary:hover { border-color: var(--accent-xl); background: rgba(27,94,32,.1); color: #fff; }

/* ── Download / CTA ── */
.download {
  background: linear-gradient(135deg, rgba(27,94,32,.06), transparent);
  border-top: 1px solid var(--border);
}
.download-content { text-align: center; max-width: 600px; margin: 0 auto; }
.download-content p { color: var(--fg-muted); margin: 16px 0 32px; font-size: 1.05rem; }
.download-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #fff; padding: 18px 40px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 1.1rem;
  border: none; cursor: pointer; transition: all .2s;
}
.download-btn:hover {
  background: var(--accent-l); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}
.download-info { margin-top: 24px; color: var(--fg-dim); font-size: .85rem; }
.download-info span { display: block; margin-top: 4px; }

/* ── Footer ── */
.footer {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--fg-dim); font-size: .9rem; margin-top: 12px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--fg-muted); font-size: .9rem; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--fg-dim);
}
.footer-badges { display: flex; gap: 16px; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: 50px; padding: 5px 14px; font-size: .78rem; color: var(--fg-muted);
}

/* ── Kontaktformular ── */
.kontakt-form { min-width: 0; }
.kontakt-form .form-row {
  display: grid; gap: 18px; grid-template-columns: 1fr 1fr;
}
.kontakt-form label { min-width: 0; }
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  width: 100%; min-width: 0; max-width: 100%;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Legal / Subpages ── */
.subpage { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px; position: relative; }
.subpage h1 { margin-bottom: 32px; }
.subpage h1, .subpage h2, .subpage h3 { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }

/* ── Subpage video background ── */
.subpage-video-wrap {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
  overflow: hidden;
}
.subpage-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.15) saturate(0.4);
}
.subpage-video-wrap .subpage-video-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,.88);
}
.subpage h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--accent-xl); }
.subpage p, .subpage li { color: var(--fg-muted); margin-bottom: 12px; }
.subpage ul { padding-left: 20px; }
.subpage ul li { list-style: disc; }
.subpage a { color: var(--accent-xl); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.span-3 { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(16px);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2, .bento-card.span-3 { grid-column: span 1; }
  .bento-tag { top: 20px; right: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .kontakt-form { padding: 24px; }
  .kontakt-form .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
