/* ==========================================================
   LÉLEKHÍD MASSZÁZSSZALON – fő stíluslap (egységesített színezéssel)
========================================================== */

/* ----------------------------------------------------------
   1. ALAPBEÁLLÍTÁSOK + SZÍNRENDSZER
-----------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Alapszínek */
  --lila: #8b5cf6;
  --arany: #f5b642;
  --feher: #f8fafc;
  --ezust: #d8dee9;
  --hatter-sotet: #d1a4d2;
  --hatter-mely: #e0c2e1;

  /* Áttetsző és kiegészítő árnyalatok */
  --hatter-fekete: rgba(15, 15, 35, 0.85);
  --hatter-fekete-halvany: rgba(15, 15, 35, 0.25);
  --lila-hatter: rgba(139, 92, 246, 0.08);
  --lila-hatter-sotetebb: rgba(139, 92, 246, 0.15); /* új – mezők alapszíne */
  --lila-hatter-erosebb: rgba(139, 92, 246, 0.12);
  --lila-shadow: rgba(139, 92, 246, 0.35);
  --lila-border: rgba(139, 92, 246, 0.35); /* erősebb kontúr a mezőkhöz */
  --arany-feny: rgba(245, 158, 11, 0.4);
  --arany-halvany: rgba(245, 158, 11, 0.15);
  --arany-hatter: rgba(245, 158, 11, 0.1);
  --arnyek: rgba(0, 0, 0, 0.3);
  --arnyek-belso: rgba(0, 0, 0, 0.15); /* új – belső árnyék */

  /* Gradiensek */
  --arany-gradient: linear-gradient(90deg, #d6a30c, #ffd972, #fff2b0, #ffe890, #d6a30c);
  --hatter-gradient: radial-gradient(circle at center, var(--hatter-sotet) 0%, var(--hatter-mely) 100%);
  --szlogen-gradient: linear-gradient(135deg, #f6c65e, #fff5c9);
  --menu-underline: linear-gradient(90deg, var(--arany), var(--lila));
  --section-title-gradient: linear-gradient(135deg, #fff9ff, #d4a9ff);

  /* Szöveg-árnyalatok */
  --text-fo: #f1e6f4;         /* fő szöveg – világos, de nem vakító */
  --text-alt: #e3d4e8;        /* másodlagos – általános bekezdés */
  --text-halvany: #d6c4da;    /* halványabb részek, pl. form placeholder */
  --text-cim: #ede3ff;        /* címsorok, hero-title */
}


/* ----------------------------------------------------------
   2. ALAP TESTSTÍLUS
-----------------------------------------------------------*/
body {
  font-family: 'Raleway', sans-serif;
  background: var(--hatter-gradient);
  color: var(--text-fo);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ----------------------------------------------------------
   3. FIX HÁTTÉR
-----------------------------------------------------------*/
.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--hatter-gradient);
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

.bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  background: var(--hatter-fekete-halvany);
}

/* ----------------------------------------------------------
   4. FEJLÉC + LOGÓ BLOKK
-----------------------------------------------------------*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--hatter-fekete);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lila-border);
  z-index: 1000;
}

.main-header {
  position: relative;
  width: 100%;
  padding-top: 40px;
  text-align: center;
  background: transparent;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-single {
  display: block;
  width: clamp(180px, 30vw, 380px);
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 15px var(--lila-shadow));
  opacity: 0.98;
}

.main-header .logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  background: var(--arany-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.logo-dekor {
  display: block;
  width: 95%;
  margin: 0 auto 1px;
  transform: scaleY(0.7); /* 0.7 → 70% magasság, elegánsabb */
  transition: all 0.3s ease;
  opacity: 0.99;
}

/* ----------------------------------------------------------
   5. NAVIGÁCIÓ
-----------------------------------------------------------*/
nav {
  width: 100%;
  background: transparent;
  transition: all 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-bottom: 15px;
}

nav a {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-alt);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--menu-underline);
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;               /* 35 → 42px */
  margin-bottom: 15px;
}

nav ul a:hover,
nav ul a.active {
  color: var(--feher);
  text-shadow: 0 0 10px var(--lila);
}

nav ul a:hover::after,
nav ul a.active::after {
  width: 100%;
}

/* Hamburger ikon */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--arany);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ----------------------------------------------------------
   6. HERO SZEKCIÓ
-----------------------------------------------------------*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 1px;           /* közvetlenül a header alatt kezdődik */
  padding-top: 90px;         /* biztos távolság a fix menü alatt */
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;                /* videó fölött maradjon */
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-cim);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px var(--lila-shadow);
}

.subtitle {
  font-size: 1.6rem;
  background: var(--szlogen-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  text-shadow: 0 0 10px var(--arany-feny);
}

.hero-intro {
  font-size: 1.2rem;
  color: var(--ezust);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  position: relative;
  z-index: 3;
}

.launch-btn {
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, var(--arany), var(--lila));
  color: var(--hatter-mely);
  padding: 18px 45px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.launch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--arany-feny);
}

.launch-btn.secondary {
  background: transparent;
  color: var(--arany);
  border: 2px solid var(--arany);
}

.launch-btn.secondary:hover {
  background: var(--arany);
  color: var(--hatter-mely);
  box-shadow: 0 0 25px var(--arany-feny);
}

/* Görgetés gomb */
.scroll-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: floaty 3s ease-in-out infinite;
  z-index: 5; /* videó fölött legyen */
}

.scroll-btn-inner {
  width: 60px;
  height: 60px;
  border: 2px solid var(--arany);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.scroll-btn-inner:hover {
  background: var(--arany-halvany);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--arany);
}

.scroll-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--arany);
  z-index: 6; /* biztonsági */
}

@keyframes floaty {
  0%,100% { transform: translate(-50%,0) }
  50% { transform: translate(-50%,-10px) }
}

/* ----------------------------------------------------------
   HERO – háttérvideó verzió
-----------------------------------------------------------*/
.video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;               /* videó a háttérben */
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.7) blur(2px);
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Mobilon kicsit nagyobb szélesség, hogy ne legyen fekete sáv */
@media (max-width: 768px) {
  .video-bg video {
    width: 180vw;
    object-position: center top;
  }
}

/* Overlay a videó fölött */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 35, 0.3);
  backdrop-filter: blur(2px);
  z-index: -1;               /* videó fölött, de tartalom alatt */
}

/* ----------------------------------------------------------
   7. TARTALMI SZEKCIÓK + BOXOK
-----------------------------------------------------------*/
section {
  background: transparent;
  padding: 120px 50px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
background: var(--section-title-gradient);  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.about-card,
.mission-card {
  background: var(--lila-hatter);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid var(--lila-border);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-card::before,
.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--arany-halvany), transparent);
  transition: left 0.5s ease;
}

.about-card:hover::before,
.mission-card:hover::before { left: 100%; }

.about-card:hover,
.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px var(--lila-shadow);
  border-color: var(--arany);
  background: var(--lila-hatter-erosebb);
}

.about-card h4,
.mission-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--arany);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-card p,
.mission-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ezust);
}

/* =============================================
   LONG CARD OVERLAY (Olvass tovább… tartalmak) - JAVÍTOTT
============================================= */
#long_card_overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(15, 10, 30, 0.98); /* sötétebb háttér jobb olvashatósághoz */
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: flex-start; /* VISSZA: felülről indul */
  padding: 20px; /* CSÖKKENTETT padding */
  overflow-y: auto;
}

#long_card_overlay:not(.hidden) {
  display: flex;
}

#long_card_overlay_content {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--lila-border);
  border-radius: 20px;
  padding: 40px 50px; /* BELSŐ padding marad */
  color: var(--text-fo);
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  line-height: 1.8;
  animation: fadeIn 0.5s ease forwards;
  position: relative;
  margin: 40px 0; /* MARGIN a felső és alsó részekhez */
  overflow: visible !important;
  max-height: none !important;
}

/* Az X gomb fixen marad a jobb felső sarokban */
#long_card_overlay_close {
  position: fixed;
  top: 25px;
  right: 35px;
  border: none;
  background: none;
  color: var(--arany);
  font-size: 2.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9600;
}

#long_card_overlay_close:hover {
  color: var(--feher);
  text-shadow: 0 0 8px var(--arany);
}

/* =============================================
   KÉPEK MÉRETEZÉSE AZ OVERLAY-BEN
============================================= */

/* Alap stílusok minden overlay képhez */
#long_card_overlay_content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Desktop nézet - képek legfeljebb 80%-a az overlay szélességének */
@media (min-width: 769px) {
  #long_card_overlay_content img {
    max-width: min(80%, 700px);
  }

  /* Kisebb képek a szövegben */
  #long_card_overlay_content .card-figure img {
    max-width: min(70%, 600px);
  }
}

/* Mobil nézet - képek legfeljebb 95%-a a viewport szélességének */
@media (max-width: 768px) {
  #long_card_overlay_content img {
    max-width: min(95%, 400px);
    margin: 1rem auto;
  }

  /* Kisebb képek a szövegben mobilon */
  #long_card_overlay_content .card-figure img {
    max-width: min(85%, 350px);
  }
}

/* Card figure specifikus stílusok */
#long_card_overlay_content .card-figure {
  text-align: center;
  margin: 2rem 0;
}

#long_card_overlay_content .card-figure figcaption {
  font-style: italic;
  color: var(--text-halvany);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Képek hover effektus (opcionális) */
#long_card_overlay_content img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#long_card_overlay_content img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.25);
}

/* ----------------------------------------------------------
   8. KAPCSOLAT FORM
-----------------------------------------------------------*/
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--lila-hatter);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 50px;
  border: 1px solid var(--lila-border);
  box-shadow: 0 20px 40px var(--arnyek);
  transition: all 0.4s ease;
}

.contact-form:hover {
  box-shadow: 0 25px 60px var(--lila-shadow);
  border-color: var(--arany);
}

.form-group { margin-bottom: 30px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px;
  background: var(--lila-hatter-sotetebb);
  border: 2px solid var(--lila-border);
  border-radius: 12px;
  color: var(--feher);
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 8px var(--arnyek-belso);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--arany);
  box-shadow: 0 0 20px var(--arany-feny), inset 0 0 10px var(--arany-halvany);
  background: var(--arany-halvany);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ezust);
  opacity: 0.7;
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .button-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* ----------------------------------------------------------
   9. LÁBLÉC
-----------------------------------------------------------*/
footer {
  background: var(--hatter-fekete);
  border-top: 1px solid var(--lila-border);
  padding: 60px 50px 40px;
  margin-top: 120px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h3 {
  color: var(--arany);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; color: var(--ezust); }

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--lila-border);
  color: var(--feher);
  font-size: 0.9rem;
  padding-top: 30px;
  line-height: 1.6;
}

.footer-links {
  margin-top: 6px;
}

.footer-links a {
  color: var(--feher);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover {
  color: var(--arany);
  text-shadow: 0 0 8px var(--arany-feny);
}

.footer-links a + a::before {
  content: " | ";
  color: var(--feher);
  opacity: 0.5;
  margin: 0 6px;
}

/* ----------------------------------------------------------
   10. SOCIAL MEDIA IKONOK
-----------------------------------------------------------*/
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  list-style: none;
  padding: 0;
}

.social-links li {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a img {
  width: 28px;
  height: 28px;
  filter: brightness(1) invert(0);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px var(--arany));
  opacity: 1;
}

@media (max-width: 768px) {
  .social-links {
    gap: 12px;
  }

  .social-links a img {
    width: 22px;
    height: 22px;
  }
}

/* ----------------------------------------------------------
   11. ANIMÁCIÓK + FADE-EFFEKTEK
-----------------------------------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Impresszum / Adatvédelem Overlay
========================================================== */

#legalOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 10, 30, 0.96);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 80px 20px;
}

.legal-content {
  max-width: 900px;
  max-height: none !important;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lila-border);
  border-radius: 20px;
  padding: 40px 50px;
  color: var(--text-fo);
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  line-height: 1.8;
  animation: fadeIn 0.5s ease forwards;
  overflow: visible !important;
}

/* Bezáró ikon (hamburger stílusú X) */
.legal-close {
  position: fixed;
  top: 25px;
  right: 35px;
  width: 35px;
  height: 35px;
  /*cursor: pointer;*/
  z-index: 10000;
}

.legal-close span {
  position: absolute;
  top: 16px;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--arany);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.legal-close span:first-child { transform: rotate(45deg); }
.legal-close span:last-child { transform: rotate(-45deg); }

.legal-close:hover span {
  background: var(--feher);
  box-shadow: 0 0 8px var(--arany);
}

/* Szöveg formázás */
#legalText {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Fade animáció */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   12. MOBILNÉZET
-----------------------------------------------------------*/
@media (max-width: 768px) {
  .main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
  }

  .logo-single {
    width: 65%;
    max-width: 260px;
    margin: 0 auto 5px;
  }

  .main-header .logo-text {
    font-size: 1.1rem;
    margin: 5px 0;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .logo-dekor { display: none; }

  .nav-menu {
    position: absolute;
    top: 85px;
    right: 15px;
    width: 220px;
    background: var(--hatter-fekete);
    border-radius: 10px;
    box-shadow: 0 5px 25px var(--arnyek);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active { max-height: 320px; }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 15px;
  }

  nav ul li {
    padding: 10px 0;
    text-align: center;
  }

  .hero-title { font-size: 2.2rem; }
  .subtitle { font-size: 1.1rem; }

  section { padding: 80px 25px; }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .launch-btn {
    padding: 14px 35px;
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 30px 25px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  footer {
    padding: 40px 25px 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-section h3 { font-size: 1.1rem; }
  .footer-bottom { font-size: 0.8rem; }
  .bg-blur {
    backdrop-filter: blur(8px);  /* eddigi 20 helyett */
    background: rgba(15, 15, 35, 0.2); /* kicsit halványabb overlay */
  }

  .bg-image {
    opacity: 0.45; /* picit erősebb legyen a kép láthatósága */
  }
  #legalOverlay {
    align-items: flex-start;
    padding: 20px 10px 60px;
  }

  .legal-content {
    padding: 25px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-word;
    max-width: 95%;
  }

  .legal-close {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 28px;
    height: 28px;
  }

  .legal-close span {
    width: 28px;
  }

  #long_card_overlay {
    align-items: flex-start;       /* mobilon felülről induljon */
    padding: 20px 10px 60px;
  }

  #long_card_overlay_content {
    padding: 25px 20px;
    font-size: 0.9rem;             /* automatikus méretcsökkentés */
    line-height: 1.6;
    word-break: break-word;
    max-width: 95%;
  }

  #long_card_overlay_close {
    position: fixed;               /* fix maradjon viewporthoz */
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    z-index: 99999;
  }

  /* opcionális – enyhébb blur, jobb teljesítmény */
  #long_card_overlay {
    backdrop-filter: blur(8px);
  }

}

/* ==========================================================
   CDSS EXTENSIONS – dinamikus tartalom integráció
   (Lélekhíd vizuális rendszerrel harmonizálva)
========================================================== */

/* --- Dinamikusan betöltött szekciók --- */
.cdss-section {
  padding: 120px 50px;
  position: relative;
  width: 100%;
  background: transparent;
  color: var(--text-fo);
  z-index: 2;
}
.cdss-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Smooth scroll --- */
html { scroll-behavior: smooth; }

/* --- Kártyák short/full állapothoz --- */
.about-card,
.mission-card {
  position: relative;
}
.cdss-readmore {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--arany), var(--lila));
  color: var(--feher);
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cdss-readmore:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--arany-feny);
}

/* --- Overlay a hosszú tartalmakhoz --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 30, 0.9);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}
.overlay.hidden { display: none; }

.overlay-content {
  background: var(--lila-hatter);
  border: 1px solid var(--lila-border);
  border-radius: 20px;
  padding: 50px;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 40px var(--arnyek);
  color: var(--feher);
  position: relative;
}

.overlay-close {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: none;
  color: var(--arany);
  font-size: 2.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.overlay-close:hover {
  color: var(--feher);
  text-shadow: 0 0 8px var(--arany);
}

/* =============================================
   Kártya overlay (Olvass tovább...)
============================================= */
#cardOverlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 10, 30, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 80px 20px;
}

#cardOverlay:not(.hidden) {
  display: flex;
}

#cardOverlayContent {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--lila-border);
  border-radius: 20px;
  padding: 40px 50px;
  color: var(--text-fo);
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  line-height: 1.8;
  animation: fadeIn 0.5s ease forwards;
  position: relative;
}

#cardOverlayClose {
  position: absolute;
  top: 25px;
  right: 35px;
  border: none;
  background: none;
  color: var(--arany);
  font-size: 2.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
#cardOverlayClose:hover {
  color: var(--feher);
  text-shadow: 0 0 8px var(--arany);
}

