/* ==============================================================================
   MartialDo — Teaser & Portal Design System
   Bright, Clean, Tesla 3-E Principle (Brand Red #E21C21)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --brand-red: #E21C21;
  --brand-red-hover: #ff3338;
  --brand-red-glow: rgba(226, 28, 33, 0.28);
  --brand-red-subtle: rgba(226, 28, 33, 0.08);

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-light: rgba(226, 232, 240, 0.95);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background-color: var(--brand-red);
  color: #ffffff;
}

.font-display {
  font-family: var(--font-display);
}

/* Background Atmosphere */
.hero-glow-light {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 540px;
  background: radial-gradient(circle, rgba(226, 28, 33, 0.09) 0%, rgba(248, 250, 252, 0.02) 65%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #E21C21 0%, #b81216 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(226, 28, 33, 0.28);
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-title span {
  color: var(--brand-red);
}

.nav-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  background: var(--brand-red-subtle);
  color: var(--brand-red);
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 28, 33, 0.18);
}

/* Badges & Buttons */
.badge-teaser {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid rgba(226, 28, 33, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(226, 28, 33, 0.08);
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 0 0 rgba(226, 28, 33, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(226, 28, 33, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(226, 28, 33, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(226, 28, 33, 0); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #E21C21 0%, #c91419 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(226, 28, 33, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff2e34 0%, #d4171c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(226, 28, 33, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: #fff;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Feature Cards */
.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 28, 33, 0.35);
  box-shadow: 0 18px 36px -10px rgba(15, 23, 42, 0.08), 0 0 24px -4px rgba(226, 28, 33, 0.12);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--brand-red-subtle);
  border: 1px solid rgba(226, 28, 33, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

/* Legal Container (Impressum & Datenschutz) */
.legal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-top: 36px;
  margin-bottom: 72px;
}

.legal-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 28px 0;
}

/* Footer */
.footer-main {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--brand-red);
}
