/* =========================================================
   Beyond Reality Entertainment - styles.css (refactored)
   Goal: fully responsive without changing desktop appearance.
   ========================================================= */

/* ---------- Base / Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Utilities ---------- */
.highlight{
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.highlights{
  font-weight: bold;
  color: #000000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Common CTA button (used in multiple pages) */
.cta-button{
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}
.cta-button:hover{ background-color: #0056b3; }

/* Reveal-on-scroll helpers */
.hidden{
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hidden.show{
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   Navigation
   ========================================================= */
nav {
  background-color: #000000;
  padding: 0.5rem 1rem; /* Leichtes seitliches Padding hinzugefügt */
  position: relative;
  z-index: 1000;
  
  /* NEU: Macht die Nav zum Flex-Container für die zwei Listen */
  display: flex;
  justify-content: space-between; /* Drückt Listen nach links und rechts außen */
  align-items: center;
}

/* Gilt für BEIDE Listen (links und rechts) */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  margin: 0 5px;
}

/* Style für die Links (Button-Basis) */
nav ul li a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  overflow: hidden;
  background: transparent;
}

/* Der "Active" Status (z.B. für Home) - optionaler Style */
nav ul li a.active {
  border-bottom: 2px solid #ffffff;
  border-radius: 4px 4px 0 0; 
}

nav ul li a:hover {
  color: #ffffff;
  /*text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);*/
  transform: translateY(-2px);
  background-color: #ffffff1f; /* Dunkles Space-Lila */
    
  background-size: 10px 10px, 20px 20px, 15px 15px;
  background-position: 0 0, 0 0, 0 0;
}

/* Responsive Anpassung: Auf Handys untereinander */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================================
   Home: Hero
   ========================================================= */
.hero{
  text-align: center;
  color: #fff;
  padding: 5rem 2rem;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Images/BodyBackground2w_short&lower.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  height: 530px;
  overflow: hidden;
}

.hero h1{
  font-size: 2.5rem;
  animation: slideInLeft 1.5s ease-in-out forwards;
  opacity: 0;
}

.hero p{
  font-size: 1.2rem;
  margin-top: 1rem;
  animation: slideInRight 1.5s ease-in-out 0.5s forwards;
  opacity: 0;
}

@keyframes slideInLeft{
  from{ transform: translateX(-100px); opacity: 0; }
  to{ transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight{
  from{ transform: translateX(100px); opacity: 0; }
  to{ transform: translateX(0); opacity: 1; }
}

/* =========================================================
   Home: Info Cards
   ========================================================= */
.info-cards{
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 4rem 2rem;
}

.card{
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 30%;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card h2{
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.card p{
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  background: #007bff;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-link:hover {
  background: #007bff;
  transform: translateY(-2px);
}


/* =========================================================
   Testimonials (Home)
   ========================================================= */
.testimonials{
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  margin: 0;
}

.testimonials h2{ color: #000; }

.testimonial{ margin-bottom: 2rem; }

.testimonial p{
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #000;
}

.testimonial h4{
  font-size: 1rem;
  color: #000;
}

/* =========================================================
   Footer (shared)
   ========================================================= */
.footer{
  background-color: #050505;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  /* removed fixed height to prevent mobile cut-offs */
}

.footer-content{
  max-width: 800px;
  margin: 0 auto;
}

.footer p{
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links li{ display: inline; }

.footer-links a{
  text-decoration: none;
  color: #aaa;
  transition: color 0.3s ease;
}
.footer-links a:hover{ color: #fff; }

/* Optional social links if you add them later */
.social-media a{
  text-decoration: none;
  color: #aaa;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}
.social-media a:hover{ color: #fff; }

/* =========================================================
   About page
   ========================================================= */
.about-header{
  text-align: center;
  padding: 5rem 2rem;
  color: #333;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Images/Innovation_short&lower.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
}

.about-header h1{
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.about-header p{
  font-size: 1.2rem;
  color: #fff;
}

.about-content{
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text{
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.about-text:nth-child(even){ flex-direction: row-reverse; }

.about-text h2{
  font-size: 2rem;
  color: #000;
  margin-bottom: 1rem;
}

.about-text p{
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
}

/* =========================================================
   Team section (About)
   ========================================================= */
.team-section{
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.team-section h2{
  font-size: 2rem;
  margin-bottom: 2rem;
}

.team-grid{
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.team-member{
  text-align: center;
  max-width: 200px;
}

.team-member img{
  width: 100%;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member h3{
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.team-member p{
  font-size: 1rem;
  color: #555;
}

/* =========================================================
   Login page
   ========================================================= */
.login-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Images/BodyBackground2w.webp") no-repeat center;
  background-size: cover;
}

.login-form{
  width: 400px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.login-form h1{
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.login-form .input-box{
  position: relative;
  margin-bottom: 20px;
  max-width: 350px;
}

.login-form .input-box input{
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

.login-form .input-box input::placeholder{ color: rgba(255, 255, 255, 0.7); }

.login-form .input-box i{
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.login-form .remember-forgot{
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.login-form .btn{
  width: 100%;
  padding: 10px 0;
  background: #007bff;
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.login-form .btn:hover{ background-color: #0056b3; }

.login-form .register-link{
  text-align: center;
  margin-top: 10px;
}

.login-form .register-link a{
  color: #007bff;
  text-decoration: none;
}
.login-form .register-link a:hover{ text-decoration: underline; }

.remember-forgot a{ color: blue; }
.remember-forgot a:active{ color: purple; }

.login-form .input-box input:focus{
  outline: none;
  border: 1px solid #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.login-form .input-box input:focus-visible{ border: 2px solid #007bff; }

/* =========================================================
   Contact page
   ========================================================= */
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}
@-webkit-keyframes fadeIn{
  from{ opacity: 0; -webkit-transform: translateY(20px); }
  to{ opacity: 1; -webkit-transform: translateY(0); }
}

.contact-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  min-height: 80vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Images/BodyBackground2w_short&lower.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.contact-form{
  background-color: #00000054;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.144);
  width: 100%;
  max-width: 600px;

  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
  -webkit-animation: fadeIn 1s ease-out forwards;
  -webkit-animation-delay: 0.3s;
}

.contact-form h1{
  margin-bottom: 20px;
  font-size: 28px;
  text-align: center;
  color: #fff;
}

.error{
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.success{
  background-color: #d4edda;
  color: #155724;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.input-box{
  position: relative;
  margin-bottom: 20px;
  max-width: 550px;
}

.input-box input,
.input-box textarea{
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid #dbdbdba1;
  background-color: #00000085;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  color: #fff;
}

.input-box input:focus,
.input-box textarea:focus{
  border-color: #007bff;
  outline: none;
}

.input-box i{
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #007bff;
  font-size: 20px;
}

.input-box textarea{
  resize: vertical;
  min-height: 100px;
}

.btn{
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#btn_contact_formular{ border-radius: 25px; }

.btn:hover{ background-color: #0056b3; }

/* =========================================================
   Services page
   ========================================================= */
.services-content{
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services-header{
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Images/BodyBackground5_short&lower.webp");
  background-position: center 20%;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
}

.service-item{
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
  flex-direction: column;
}

.service-item div{ max-width: 600px; }

.service-item h2{
  font-size: 2rem;
  color: #000;
  margin-bottom: 1rem;
}

.service-item p{
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
}

/* =========================================================
   Reset page
   ========================================================= */
.reset-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #f5f5f5;
  padding: 20px;
}

.reset-form{
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.reset-form h1{
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
  text-align: center;
}

.reset-form .input-box{
  position: relative;
  margin-bottom: 20px;
}

.reset-form .input-box input{
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #cccccc;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
  background-color: #00000085;
}

.reset-form .input-box input::placeholder{ color: #fff; }

.reset-form .input-box input:focus{
  border-color: #66afe9;
  outline: none;
}

.reset-form .input-box i{
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #888;
  font-size: 20px;
}

.reset-form .btn{
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reset-form .btn:hover{ background-color: #0056b3; }

.reset-form .login-link{
  text-align: center;
  margin-top: 15px;
}

.reset-form .login-link a{
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}
.reset-form .login-link a:hover{ color: #0056b3; }

/* =========================================================
   Projects page (slider)
   ========================================================= */
.intro-section{
  padding-top: 30px;
  padding-bottom: 60px;
  margin-bottom: 50px;
  text-align: center;
  background: #fff;
  max-height: 200px;
}

.intro-section h1{
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.intro-section p{
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 10px auto;
  color: #555;
}

.projects-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.projects-title{
  font-size: 32px;
  margin-bottom: 40px;
  color: #0b0b0b;
}

.project-container{
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 550px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.1);
  background-color: #fff;
}

.project-slide{
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
  text-decoration: none;
}

.project-slide.active{
  display: block;
  opacity: 1;
}

.project-slide.inactive{ opacity: 0; }

.project-image{
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.project-description{
  padding: 10px;
  font-size: 18px; /* fixed typo from 18spx */
  color: #000;
  height: 40%;
  overflow-y: auto;
}

.project-description p{ padding-bottom: 30px; }

/* Slider arrows */
.nav-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.nav-arrow:hover{ background-color: rgba(255,255,255,1); }
.nav-arrow.left{ left: 10px; }
.nav-arrow.right{ right: 10px; }
.nav-arrow i{ font-size: 20px; color: #333; }

/* Testimonials section (if used on other pages) */
.testimonials-section{
  background: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}
.testimonials-section .section-title{
  font-size: 2rem;
  margin-bottom: 40px;
}
.testimonials-container{
  max-width: 800px;
  margin: 0 auto;
}
.testimonials-section .testimonial{
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonials-section .testimonial cite{
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
  color: #555;
}

/* =========================================================
   Imprint page
   ========================================================= */
.imprint-header{
  padding: 2rem 2rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("Images/BodyBackground2w.webp");
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
  background-position: center 50%;
}

/* =========================================================
   Responsive (mobile only) — Desktop remains unchanged
   ========================================================= */

/* Tablets / smaller laptops */
@media (max-width: 1024px){
  .card{ width: 32%; }
}

/* Mobile/tablet breakpoint */
@media (max-width: 768px){
  /* IMPORTANT for iOS Safari: fixed background often looks broken/janky */
  .hero,
  .contact-wrapper{
    background-attachment: scroll;
  }

  /* Navigation: allow wrapping and reduce spacing */
  nav ul{
    padding-right: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
  nav ul li{ margin: 6px 8px; }
  nav ul li a{ font-size: 1.05rem; padding: 0.4rem 0.75rem; }

  /* Hero: let height adapt */
  .hero{
    height: auto;
    padding: 3.5rem 1.25rem;
  }
  .hero h1{ font-size: 2rem; }
  .hero p{ font-size: 1.05rem; }

  /* Home cards stack */
  .info-cards{
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 1.25rem;
  }
  .card{ width: 100%; }

  /* About: stack blocks nicely */
  .about-content{ padding: 3rem 1.25rem; }
  .about-text{
    flex-direction: column !important;
    text-align: center;
    gap: 1rem;
  }
  .about-text p{ text-align: left; }

  /* Team grid: smaller cards */
  .team-member{ max-width: 180px; }

  /* Services spacing */
  .services-content{ padding: 3rem 1.25rem; }
  .services-header{ padding: 3rem 1.25rem; }

  /* Projects slider: reduce height */
  .project-container{ height: 500px; }
  .project-description{ font-size: 16px; }
}

/* Small phones */
@media (max-width: 600px){
  .intro-section h1{ font-size: 2rem; }
  .projects-title{ font-size: 28px; }

  .nav-arrow{ width: 35px; height: 35px; }
  .nav-arrow i{ font-size: 18px; }

  /* Forms */
  .login-form{ width: 100%; max-width: 420px; margin: 0 12px; }
  .contact-form{ padding: 28px 18px; }
}

/* Very small devices */
@media (max-width: 480px){
  nav{ padding: 0.85rem; }
  nav ul li a{ font-size: 1rem; padding: 0.35rem 0.6rem; }

  .about-header{ padding: 4rem 1.25rem; }
  .about-header h1{ font-size: 2rem; }
  .about-header p{ font-size: 1.05rem; }

  .reset-form{ padding: 30px 20px; }
  .reset-form h1{ font-size: 20px; }
  .reset-form .btn{ font-size: 14px; }

  .footer{ padding: 1.5rem 1rem; }
}

@media (max-width: 768px){
  .hero,
  .about-header,
  .services-header,
  .imprint-header{
    min-height: 360px;
    background-size: cover;
    background-position: center center;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
