/* styles.css - StickGuard Homepage, Dark/Orange Theme */
:root {
  --bg: #0d0f12;
  --bg-alt: #12151a;
  --card: #171b21;
  --border: #262b33;
  --text: #eceff2;
  --text-dim: #9aa1ab;
  --accent: #f6a300;
  --accent-2: #ffcf6b;
  --accent-dim: #b97900;
  --radius: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,15,18,0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; overflow: visible; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; position: relative; z-index: 1; overflow: visible; }
.brand img { width: 128px; height: 128px; object-fit: contain; flex-shrink: 0; transform: translateY(14px); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--text-dim); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #14171c !important;
  padding: 9px 18px; border-radius: 999px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 92px; left: 0; right: 0; background: var(--bg-alt);
    flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.25s ease; opacity: 0;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: #14171c; box-shadow: 0 10px 30px rgba(246,163,0,0.25); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero { padding: 180px 0 100px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 0 0 20px; }
.hero-sub { color: var(--text-dim); font-size: 17px; max-width: 520px; margin-bottom: 32px; }
.tester-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(246, 163, 0, 0.08);
  border: 1px solid rgba(246, 163, 0, 0.35);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  margin: -10px 0 24px;
  max-width: 620px;
}
.tester-note-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
.tester-note p {
  margin: 0;
  color: #f4f6f8;
  font-size: 14px;
}
.tester-note strong {
  color: var(--accent-2);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.floating-badge {
  position: absolute; background: var(--card); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: float 4s ease-in-out infinite;
}
.badge-1 { top: 10%; left: -4%; }
.badge-2 { bottom: 12%; right: -6%; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Sections --- */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-dim); max-width: 560px; margin: 0 auto 50px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: 22px; }
.split p { color: var(--text-dim); }

/* --- Features --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 20px; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #14171c; margin: 0 auto 16px;
}
.step h3 { margin: 0 0 8px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; display: flex; flex-direction: column; position: relative;
}
.plan-card.highlight { border-color: var(--accent); box-shadow: 0 20px 60px rgba(246,163,0,0.15); transform: scale(1.03); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14171c; padding: 5px 16px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.plan-card h3 { margin: 0 0 6px; font-size: 20px; }
.plan-price { font-size: 34px; font-weight: 800; color: var(--accent); margin: 10px 0 2px; }
.plan-price small { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.plan-note { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-dim); }
.plan-features li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.loading-hint { text-align: center; color: var(--text-dim); grid-column: 1 / -1; }

.hardware-note {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.hardware-note-icon { font-size: 26px; line-height: 1; }
.hardware-note strong { display: block; margin-bottom: 4px; }
.hardware-note p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* --- FAQ --- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 18px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 22px; color: var(--text-dim); font-size: 14px; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; color: var(--accent); font-size: 20px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; color: var(--text-dim); display: flex; flex-direction: column; gap: 10px; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row.two-col { flex-direction: row; gap: 16px; }
.form-row.two-col > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; color: var(--text-dim); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text); font-size: 14px; font-family: inherit;
}
.form-feedback { margin-top: 14px; font-size: 14px; }
.form-feedback.success { color: #3ecf8e; }
.form-feedback.error { color: #e5484d; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner .brand img { width: 64px; height: 64px; }
.footer-inner p { color: var(--text-dim); font-size: 13px; margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* --- Legal pages (Impressum / Datenschutz / AGB) --- */
.legal-page { padding: 150px 0 100px; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal-page .legal-updated { color: var(--text-dim); font-size: 13px; margin-bottom: 40px; }
.legal-page h2 { font-size: 20px; margin: 40px 0 12px; color: var(--accent); }
.legal-page h3 { font-size: 16px; margin: 24px 0 8px; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15px; line-height: 1.75; }
.legal-page ul { padding-left: 20px; }
.legal-page a.inline-link { color: var(--accent); text-decoration: underline; }
.legal-page .legal-back { display: inline-block; margin-bottom: 30px; color: var(--text-dim); text-decoration: none; font-size: 14px; }
.legal-page .legal-back:hover { color: var(--accent); }
.legal-page strong { color: var(--text); }

/* --- Checkout Modal --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.modal-overlay[hidden] {
  display: none;
  opacity: 0;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--text);
}
.modal-box h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
