/* ============================================================
   GLOBAL STYLES — web-erhebung.de
   Dark theme inspired by finsight.framer.ai
   Black / White / Shades of Blue
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #0a0e1a;
  color: #9ca3af;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #93c5fd;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #f9fafb;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- SVG Icons Base --- */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.btn--outline:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e2d45;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f9fafb;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo:hover {
  color: #f9fafb;
}

.nav-logo-accent {
  color: #3b82f6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #9ca3af;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f9fafb;
}

/* Mobile menu toggle (CSS-only) */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.25rem;
}

.nav-toggle-label:hover {
  color: #f9fafb;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: #111827;
    border-bottom: 1px solid #1e2d45;
    padding: 1rem 0;
    z-index: 99;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid #1e2d45;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }
}

/* --- FOOTER --- */
footer {
  background-color: #070b14;
  border-top: 1px solid #1e2d45;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: #6b7280;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #9ca3af;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid #1e2d45;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #4b5563;
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #374151;
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-blue { color: #3b82f6; }
.text-muted { color: #6b7280; }
.text-secondary { color: #9ca3af; }
.text-white { color: #f9fafb; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge--blue {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge--gold {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--green {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* --- STARS --- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* --- SECTION SPACING --- */
section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 2.5rem 0;
  }
}

/* --- TABLE BASE --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #1e2d45;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 600px;
}

thead {
  background-color: #1a2235;
}

thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid #1e2d45;
  transition: background-color 0.15s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: rgba(26, 34, 53, 0.4);
}

tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

tbody td {
  padding: 1rem 1.25rem;
  color: #9ca3af;
  vertical-align: middle;
}

tbody td:first-child {
  color: #f9fafb;
  font-weight: 500;
}

/* --- FAQ / DETAILS --- */
details {
  border-bottom: 1px solid #1e2d45;
}

details:first-of-type {
  border-top: 1px solid #1e2d45;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  color: #f9fafb;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.25s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: #9ca3af;
  line-height: 1.7;
}

/* --- CARDS --- */
.card {
  background-color: #111827;
  border: 1px solid #1e2d45;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.07);
}

/* --- Pro/Con lists --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

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

.pro-item, .con-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pro-item {
  color: #10b981;
}

.con-item {
  color: #ef4444;
}

.pro-item span, .con-item span {
  color: #9ca3af;
}
