/* =====================================================
   MAILTORY – Global Stylesheet
   Einheitliches Design-System für alle Seiten.
   Importiert in jede PHP-Datei via:
   <link href="assets/global.css" rel="stylesheet">
   ===================================================== */

/* --- CSS Design Tokens --- */
:root {
  --bg:           #07080f;
  --bg-alt:       #0c0e1a;
  --card:         #111320;
  --card-hover:   #161928;
  --primary:      #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.22);
  --primary-dark: #1e40af;
  --accent:       #6366f1;
  --text:         #e2e8f0;
  --text-light:   #cbd5e1;
  --text-muted:   #64748b;
  --border:       rgba(59, 130, 246, 0.12);
  --border-hover: rgba(59, 130, 246, 0.4);
  --success:      #10b981;
  --warning:      #fbbf24;
  --danger:       #ef4444;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --transition:   all 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
  background: rgba(7, 8, 15, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 8, 15, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover { color: #fff !important; }

@media (min-width: 1400px) {
  .navbar .container { max-width: 1320px; }
}

/* --- Buttons --- */
.btn-primary-main {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px var(--primary-glow);
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary-main:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.45);
  color: #fff;
  text-decoration: none;
}

.btn-outline-main {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--border-hover);
  color: var(--text-light);
  padding: 0.9rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-main:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(59, 130, 246, 0.08);
  text-decoration: none;
}

/* --- Section Labels & Titles --- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

/* --- Hero (Standard-Variante) --- */
.page-hero {
  position: relative;
  padding: 150px 0 90px;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(99,102,241,0.09) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.page-hero h1 {
  position: relative;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.page-hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .lead {
  position: relative;
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* --- Cards --- */
.mlt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: var(--transition);
}

.mlt-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35), 0 0 0 1px var(--border-hover);
}

/* --- Badge "Demnächst" --- */
.badge-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 0.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Info/Highlight Boxes --- */
.info-box {
  background: rgba(59,130,246,0.07);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.97rem;
}

.info-box strong { color: var(--primary); }

.warning-box {
  background: rgba(251,191,36,0.07);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.97rem;
}

.warning-box strong { color: var(--warning); }

.success-box {
  background: rgba(16,185,129,0.07);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.97rem;
}

.success-box strong { color: var(--success); }

/* --- Footer --- */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .page-hero { padding: 120px 1rem 70px; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero .lead { font-size: 1rem; }
  .footer-container { grid-template-columns: 1fr; text-align: center; }
}

/* --- Utility --- */
.text-primary-color { color: var(--primary); }
.text-muted-color   { color: var(--text-muted); }
.text-white         { color: #fff; }
.bg-alt             { background: var(--bg-alt); }
