/*
 * MAFGA global website stylesheet
 *
 * This file defines the core styling for the one‑page layout. The design
 * takes inspiration from the existing MAFGA and shop sites: deep
 * gradients, sharp cards, and bold typography. Colour variables at the
 * top make it easy to adjust the look and feel without touching the
 * markup or scripts.
 */

:root {
  /* Base colours */
  --color-bg: #0d1933;
  --color-bg-gradient-start: #0d1933;
  --color-bg-gradient-end: #1d2951;
  --color-primary: #ffffff;
  --color-secondary: #c2cce3;
  --color-accent: #e23e57;
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-card-hover: rgba(255, 255, 255, 0.08);
  --color-card-border: rgba(255, 255, 255, 0.15);
  --color-footer-bg: #08122c;
  --container-max-width: 1200px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
  color: var(--color-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

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

/* Container keeps content aligned and centred */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Header styles */
header {
  width: 100%;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 25, 51, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-card-border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Navigation links list styling */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-flex;
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

.language-select {
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-card-border);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  outline: none;
}

/* Fix: Dropdown-Optionen lesbar machen (Windows/Chrome) */
.language-select option {
  background: #0d1933;  /* dunkel */
  color: #ffffff;       /* weiß */
}

/* Optional: wenn du lieber helles Dropdown willst */
.language-select option:checked,
.language-select option:hover {
  background: #1d2951;
  color: #ffffff;
}

/* Menu toggle button styling */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Responsive navigation styles */
@media (max-width: 768px) {
  /* Adjust header content layout on mobile */
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  /* Display menu button */
  .menu-toggle {
    display: block;
  }
  /* Hide the nav by default and overlay it below header when active */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 25, 51, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    display: none;
    border-bottom: 1px solid var(--color-card-border);
    z-index: 99;
  }
  .main-nav.active {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-link {
    width: 100%;
    padding: 0.5rem 0;
  }
  /* Reorder elements within header for mobile layout */
  .menu-toggle {
    order: 1;
  }
  .logo-container {
    order: 2;
  }
  .logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .logo {
    height: 40px;
  }
  .language-select {
    order: 3;
    margin-left: auto;
  }
  /* Hide nav links inside header-content (they will appear in overlay) */
  .main-nav {
    order: 4;
  }
}

/* Hero section */
/* Hero section */
/* Hero section with background image and overlay for readability */
.hero-section {
  padding: 6rem 0 4rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero_background.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #ffffff;
  /* Ensure the hero section occupies more vertical space on larger screens */
  min-height: 30vh;
}

/* The hero content splits into text and image on larger screens. */
/* Center hero content and ensure text is centered on mobile */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: inherit; /* Erbt die Höhe von .hero-section */
  text-align: center;
  gap: 2rem;  /* Abstände beibehalten */
}

/* Text area of the hero. Centered and responsive */
.hero-text {
  max-width: 800px;
}

/* Hero title styling adjusted for dark overlay */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: #ffffff;
}

/* Hero subline styling for dark overlay */
.hero-subline {
  font-size: 1.25rem;
  color: #f0f0f0;
}

/* Remove hero image styling since the new design uses a full background image */

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    flex-basis: 100%;
  }
  .hero-image {
    display: none;
  }
}

/* Manifest section */
.manifest-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg-gradient-end) 0%, var(--color-bg-gradient-start) 100%);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

.manifest-content {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-primary);
}

.manifest-paragraphs p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

/* Transition section */
.transition-section {
  padding: 2rem 0;
  text-align: center;
}

.transition-line {
  font-size: 1.1rem;
  color: var(--color-secondary);
  font-style: italic;
}

/* Expressions section */
.expressions-section {
  padding: 4rem 0;
}

.expressions-content {
  max-width: 1000px;
  margin: 0 auto;
}

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.card:hover {
  background: var(--color-card-hover);
  transform: translateY(-4px);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card-text {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Footer */
footer {
  background: var(--color-footer-bg);
  padding: 2rem 0;
  color: var(--color-secondary);
  border-top: 1px solid var(--color-card-border);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-left {
  max-width: 600px;
}

.footer-legal {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-email {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-email a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-links {
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--color-primary);
  text-decoration: none;
  margin: 0 0.3rem;
  transition: color 0.3s ease;
}

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

.separator {
  color: var(--color-secondary);
  margin: 0 0.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--color-secondary);
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-accent);
}

/* Misc */
.more-card {
  justify-content: center;
  text-align: center;
}

/* New Sections Styling */

/* Story section */
.story-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-content p {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

/* Culture & Memes section */
.culture-section {
  padding: 4rem 0;
}

.culture-content {
  max-width: 1000px;
  margin: 0 auto;
}

.culture-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.culture-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.culture-card:hover {
  background: var(--color-card-hover);
  transform: translateY(-4px);
}

/* Playbook section */
.playbook-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg-gradient-end) 0%, var(--color-bg-gradient-start) 100%);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

.playbook-content {
  max-width: 1000px;
  margin: 0 auto;
}

.playbook-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.playbook-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.playbook-card:hover {
  background: var(--color-card-hover);
  transform: translateY(-4px);
}

/* Voices section */
.voices-section {
  padding: 4rem 0;
}

.voices-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.voices-quotes {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.voices-quotes .quote {
  font-style: italic;
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Involved section */
.involved-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}

.involved-content {
  max-width: 800px;
  margin: 0 auto;
}

.involved-text {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.big-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.big-icons a {
  font-size: 2rem;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

.big-icons a:hover {
  color: var(--color-accent);
}

/* =========================
   Legal / Contact Modals
   ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: min(860px, 100%);
  max-height: min(78vh, 860px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(16, 16, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-title {
  margin: 0;
  padding: 22px 64px 10px 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-body {
  padding: 0 24px 24px;
  overflow: auto;
  max-height: calc(min(78vh, 860px) - 72px);
}

.modal-body h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-body p,
.modal-body li {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.modal-body a {
  color: var(--color-accent);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

.modal-body ul {
  padding-left: 18px;
}

@media (max-width: 520px) {
  .modal-overlay {
    padding: 14px;
  }
  .modal {
    max-height: 82vh;
  }
  .modal-title {
    padding: 20px 56px 10px 18px;
  }
  .modal-body {
    padding: 0 18px 18px;
  }
}
