/* ================================================
   LernenXanders – Shared Styles
   Wird von allen Seiten eingebunden
   ================================================ */

/* Google Fonts wird erst nach Cookie-Zustimmung via cookie-consent.js geladen */

:root {
  --navy:         #0a1628;
  --blue-dark:    #1a1a4e;
  --blue-mid:     #2c6fad;
  --blue-light:   #4a90d9;
  --blue-pale:    #e8f4fd;
  --accent:       #f59e0b;
  --accent-light: #fcd34d;
  --white:        #ffffff;
  --gray:         #64748b;
  --gray-light:   #f8fafc;
  --text:         #1e293b;
  --border:       #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ---- NAV ------------------------------------------------ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 64px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem; font-weight: 900;
  color: white; text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo .x { color: var(--accent); font-size: 1.15em; }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-weight: 700; font-size: 0.92rem; transition: color 0.2s;
}
.nav-links a:hover { color: white; }
.nav-links .nav-btn {
  background: var(--accent); color: var(--navy) !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 800 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-links .nav-btn:hover { background: var(--accent-light) !important; transform: translateY(-1px); }

.nav-links .nav-home-btn {
  background: rgba(255,255,255,0.1);
  color: white !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 800 !important;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-links .nav-home-btn:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.6) !important;
  color: white !important;
}

/* ---- FOOTER --------------------------------------------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.45);
  padding: 48px 32px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-size: 1.3rem; font-weight: 900;
  color: white; text-decoration: none;
}
.footer-logo .x { color: var(--accent); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  color: rgba(255,255,255,0.45); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.8rem; }

/* ---- HELPERS -------------------------------------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

.section-label {
  display: block;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--blue-mid); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900;
  color: var(--navy); line-height: 1.2; margin-bottom: 14px;
}
.section-sub { font-size: 1.05rem; color: var(--gray); line-height: 1.75; }

/* ---- BUTTONS -------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  border: none; cursor: pointer; transition: all 0.2s;
  border-radius: 12px; padding: 14px 32px; font-size: 1rem;
}
.btn-primary {
  background: var(--accent); color: var(--navy);
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,0.45); }

.btn-blue {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: white; box-shadow: 0 4px 15px rgba(74,144,217,0.35);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(74,144,217,0.45); }

.btn-outline {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* ---- CONTENT / LEGAL PAGES ------------------------------ */
.content-page { padding-top: 64px; min-height: 100vh; }
.content-header {
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: white; padding: 64px 32px; text-align: center;
}
.content-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; }
.content-header p { opacity: 0.55; margin-top: 8px; }
.content-body {
  max-width: 800px; margin: 0 auto; padding: 64px 32px 96px;
}
.content-body h2 {
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
  margin: 44px 0 12px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.content-body h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin: 24px 0 8px; }
.content-body p  { color: var(--gray); margin-bottom: 14px; line-height: 1.85; }
.content-body a  { color: var(--blue-mid); }
.content-body ul { padding-left: 22px; color: var(--gray); margin-bottom: 14px; }
.content-body ul li { margin-bottom: 6px; line-height: 1.75; }
.content-body strong { color: var(--text); font-weight: 800; }
.info-box {
  background: var(--blue-pale); border-left: 4px solid var(--blue-mid);
  border-radius: 8px; padding: 16px 20px; margin: 24px 0;
}
.info-box p { margin: 0; color: var(--blue-dark); }

/* ---- MOBILE --------------------------------------------- */
@media (max-width: 768px) {
  .site-nav { padding: 0 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links  { justify-content: center; }
  .container { padding: 0 16px; }
}
