/* RESET & GLOBALS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'ABeeZee', sans-serif;
  color: white;
}

body {
  background-color: black;
}

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

/* HEADER / HERO SECTION */
.heroSection {
  height: 100vh;
  background: url(assets/heroImage.jpeg) center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 10vh;
  padding-right: 10%;
  position: relative;
}

.logo {
  position: absolute;
  top: 0;
  left: 0;
  height: 200%;
  object-fit: contain;
}

.menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.menu a {
  color: #e61b21;
  text-decoration: none;
  font-size: 1.5rem;
}

.hamburger-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 30px;
  gap: 6px;
}

.bar {
  width: 30px;
  height: 2px;
  background-color: #e61b21;
}

.heroTextContainer {
  display: flex;
  align-items: flex-end;
  height: 90vh;
  padding-left: 5%;
}

.heroText {
  font-family: 'Tilt Warp', cursive;
  font-size: 8rem;
  color: #e61b21;
}

/* ABOUT US SECTION */
.about-us {
  display: flex;
  justify-content: center;
  padding: 5% 0;
}

.inhalt {
  display: flex;
  width: 70%;
  gap: 5%;
}

.left,
.right {
  flex: 1;
}

.cont {
  margin-bottom: 2rem;
}

h2 {
  color: #e61b21;
  font-size: 2rem;
  font-family: 'Tilt Warp', cursive;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* EVENTS SECTION */
.events {
  display: flex;
  justify-content: center;
  padding: 5% 0;
}

table {
  width: 70%;
  border-collapse: collapse;
  background-color: #111;
  border: 2px solid #e61b21;
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 1rem;
  text-align: left;
  font-size: 1.125rem;
}

th {
  background-color: #1a1a1a;
  color: #e61b21;
  border-bottom: 2px solid #e61b21;
}

td {
  border-bottom: 1px solid #333;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: #222;
  transition: background-color 0.2s ease;
}

/* MOBILE MENU */
.menu-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: red;
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-list-mobile {
  list-style: none;
  text-align: center;
}

.menu-list-mobile a {
  font-size: 3rem;
  color: white;
  text-decoration: none;
  display: block;
  margin: 1rem 0;
}

.cross-container {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 50px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bar-cross1,
.bar-cross2 {
  width: 40px;
  height: 2px;
  background-color: white;
  position: absolute;
}

.bar-cross1 {
  transform: rotate(45deg);
}

.bar-cross2 {
  transform: rotate(-45deg);
}

@media (max-width: 1150px) {
  .menu {
    display: none;
  }

  .hamburger-icon {
    display: flex;
  }

  .inhalt {
    flex-direction: column-reverse;
    align-items: center;
    width: 90%;
  }

  .left,
  .right {
    width: 100%;
  }

  .heroText {
    font-size: 6rem;
  }

  table {
    width: 90%;
  }
}

/* Buttons, Links, Navigation */
.menu a,
.menu-list-mobile a {
  position: relative;
  transition: color 0.3s ease;
}

.menu a::after,
.menu-list-mobile a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #e61b21;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.menu a:hover,
.menu-list-mobile a:hover {
  color: #ff4d4d;
}

.menu a:hover::after,
.menu-list-mobile a:hover::after {
  width: 100%;
}

/* Hero Text Animation */
.heroText {
  transition: transform 0.3s ease, color 0.3s ease;
}

.heroText:hover {
  transform: scale(1.02);
  color: #ff2f2f;
}

/* About Section */
.cont {
  background-color: #111;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.cont:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(230, 27, 33, 0.4);
}

/* Table Verbesserung */
table {
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

tr:hover {
  background-color: #1c1c1c;
  box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.1);
}

/* Logo Hover Effekt */
.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Hamburger Icon Interaktion */
.hamburger-icon {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hamburger-icon:hover {
  transform: scale(1.1);
}

/* Menü mobil Background optimiert */
.menu-mobile {
  background: linear-gradient(135deg, #e61b21, #a30000);
}

/* Mobile Transition smooth */
.menu-mobile,
.cross-container {
  transition: all 0.3s ease;
}

/* ===== RESPONSIVE OPTIMIERUNGEN ===== */

@media (max-width: 1150px) {
  /* Tablet & kleine Desktops */
  .menu {
    display: none;
  }

  .hamburger-icon {
    display: flex;
  }

  .inhalt {
    flex-direction: column-reverse;
    align-items: center;
    width: 90%;
    gap: 3rem;
  }

  .left,
  .right {
    width: 100%;
  }

  .heroText {
    font-size: 6rem;
    line-height: 1.1;
  }

  table {
    width: 90%;
  }

  .logo {
    height: 150%;
  }
}

@media (max-width: 768px) {
  /* Mittelgroße Mobile */
  .heroText {
    font-size: 4.5rem;
  }

  .heroTextContainer {
    padding-left: 7%;
    padding-bottom: 10%;
  }

  h2 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1.1rem;
  }

  .cont {
    padding: 1.25rem;
  }

  .navigation {
    padding-right: 15%;
  }

  .logo {
    width: 40%;
    height: auto;
    max-height: 80px;
  }
}

@media (max-width: 600px) {
  /* Kleine Mobile */
  .heroText {
    font-size: 3.5rem;
  }

  .menu-list-mobile a {
    font-size: 2.5rem;
  }

  /* Verbesserte Tabellenansicht für Mobile */
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.75rem;
  }

  td {
    padding: 0.5rem 0.5rem 0.5rem 50%;
    position: relative;
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    font-weight: bold;
    color: #e61b21;
    width: 45%;
  }

  /* Bessere Abstände für kleine Screens */
  .about-us,
  .events {
    padding: 10% 0;
  }
}

@media (max-width: 480px) {
  /* Sehr kleine Mobile */
  .heroText {
    font-size: 2.8rem;
  }

  .menu-list-mobile a {
    font-size: 2rem;
    margin: 0.75rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .logo {
    max-height: 60px;
  }

  .cross-container {
    top: 3%;
    right: 7%;
  }

  /* Tabellen-Zellen mit weniger Padding */
  td {
    padding-left: 40%;
  }

  td::before {
    width: 35%;
  }
}

/* ===== SPEZIELLE MOBILE OPTIMIERUNGEN ===== */

/* Hero-Section Höhe für Mobile anpassen */
@media (max-height: 700px) and (max-width: 768px) {
  .heroSection {
    height: auto;
    min-height: 100vh;
  }
}

/* Querformat-Optimierung */
@media (max-height: 500px) {
  .heroText {
    font-size: 3rem !important;
    padding-bottom: 2rem;
  }

  .navigation {
    height: 15vh;
  }

  .heroTextContainer {
    height: auto;
    padding-bottom: 5%;
  }
}

/* ===== BESSERE ÜBERGÄNGE ===== */
/* Alle animierten Elemente sollten diese Basis haben */
.menu a,
.menu-list-mobile a,
.cont,
.logo,
.hamburger-icon,
table,
.heroText {
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== PERFORMANCE OPTIMIERUNGEN ===== */
/* Schriftgrößen mit vw für skalierbare Typographie */
@media (max-width: 480px) {
  .heroText {
    font-size: 10vw;
  }

  h2 {
    font-size: 6.5vw;
  }

  .menu-list-mobile a {
    font-size: 8vw;
  }
}
