/* test/public_html/css/home.css */
/* test/public_html/css/home.css */
/* CSS-Inhalt direkt von main.html übernommen und Pfade angepasst */

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
}

/* Header (Navigationsleiste): Diese Regeln definieren das Aussehen des fixierten Navigationsbereichs,
   der über das main_layout.php und partials/header.php geladen wird. */
.site-header-main-html {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5); /* Hintergrund der Navigationsleiste */
    backdrop-filter: blur(4px);
}

.site-header-main-html .general-site-navigation { /* Die Nav, die im Partial ist */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    color: white; 
}

.site-header-main-html .general-site-navigation .logo-img { /* Angepasst von .Logo zu .logo-img */
    height: 60px; 
    width: auto;
}

.site-header-main-html .general-site-navigation .menu-link {
    color: white;
    text-decoration: none;
    margin-left: 16px;
}

.site-header-main-html .general-site-navigation .menu-link:hover {
    text-decoration: underline;
}

.site-header-main-html .general-site-navigation .button { 
  background-color: rgb(189, 49, 49);
  padding: 8px 30px;
  color: black !important; 
  border-radius: 8px;
  box-shadow: 5px 2px 15px rgba(0, 0, 0, 0.8);
}
.site-header-main-html .general-site-navigation .button:hover {
    text-decoration: none; 
}

.site-header-main-html .general-site-navigation .dropdown {
  position: relative;
  display: inline-block;
}

.site-header-main-html .general-site-navigation .dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: rgb(189, 49, 49);
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 1001;
  padding: 10px 0;
}

.site-header-main-html .general-site-navigation .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.site-header-main-html .general-site-navigation .dropdown-content a:hover {
  background-color: rgb(196, 196, 196);
}

.site-header-main-html .general-site-navigation .dropdown:hover .dropdown-content {
  display: block;
}

.hero-background { /* Renamed for clarity, or just keep .header */
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  /* Remove position: absolute; and z-index: 1; */
}

.headline {
  position: absolute;
  left: 50px;
  top: 300px;
  color: white;
  font-size: 70px;
  width: 500px;
  text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.8);
  z-index: 2; 
}

.red { 
  color: rgb(189, 49, 49);
}

.highlights-section {
  padding: 60px 100px;
  background-color: rgb(189, 49, 49);
  text-align: center;
  position: relative; 
  margin-top: 100vh; /* Beginnt nach dem Hero-Header */
  color: white; 
}

.highlights-section h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: white;
}

.highlights-section p { 
  font-size: 18px;
  color: #cfcfcf;
  margin-bottom: 40px;
}

.highlight-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.highlight-gallery img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.highlight-gallery img:hover {
  transform: scale(1.05);
}

.gallery-button {
  display: inline-block;
  background-color: white;
  color: rgb(189, 49, 49);
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
}

.gallery-button:hover {
  background-color: rgb(228, 228, 228);
}

.NextEvent-section { 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.event-overlay {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 40px 60px;
  border-radius: 12px;
  color: white; 
}

.event-overlay h2 {
  font-size: 36px;
  margin-bottom: 16px;
  color: rgb(189, 49, 49);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  font-size: 18px;
  color: #333; 
}

.event-list li {
  margin: 12px 0;
  background-color: #ffffffcc;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-button { 
  display: inline-block;
  background-color: rgb(189, 49, 49);
  color: white;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
}

.event-button:hover {
  background-color: rgb(228, 228, 228); 
  color: rgb(189, 49, 49);
}

.Aboutus { 
  display: flex;
  background-color: white;
  padding: 60px 100px;
  gap: 40px;
  min-height: 600px;
}

.Aboutus img { 
  flex-shrink: 0;
  width: 60%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.Aboutus-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgb(61, 61, 61);
}

.Aboutus-text h2 {
  font-size: 60px;
  margin-bottom: 20px;
}

.Aboutus-text p {
  font-size: 30px;
  line-height: 1.3;
  text-align: left;
}

.aboutus-button { 
  display: inline-block;
  margin-top: 30px;
  padding: 8px 20px;
  background-color: rgb(189, 49, 49);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.aboutus-button:hover {
  background-color: rgb(228, 80, 80);
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .highlights-section, .Aboutus {
        padding: 40px 50px;
    }
    .Aboutus {
        flex-direction: column;
    }
    .Aboutus img {
        width: 100%;
        margin-bottom: 20px;
    }
    .Aboutus-text h2, .headline {
        font-size: 40px; 
    }
    .Aboutus-text p {
        font-size: 20px;
    }
    /* .container {  Moved to .site-header-main-html .general-site-navigation for styling */
    /* padding: 12px 20px; */
    /* font-size: 20px; */
    /* } */
     .NextEvent-section .event-overlay {
        padding: 30px 40px;
    }
    .NextEvent-section .event-overlay h2 { font-size: 30px; }
    .NextEvent-section .event-list { font-size: 16px; }
}

@media (max-width: 768px) {
    /* .container {  Moved to .site-header-main-html .general-site-navigation for styling */
    /* flex-direction: column; */
    /* align-items: flex-start; */
    /* } */
    .site-header-main-html .general-site-navigation {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-header-main-html .general-site-navigation > div { 
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
    }
    .site-header-main-html .general-site-navigation .menu-link { margin-bottom: 5px; }

    .headline {
        font-size: 30px;
        width: 90%;
        left: 5%;
        top: 200px; 
    }
    .highlights-section, .Aboutus {
        padding: 30px 20px;
        margin-top: 0; 
    }
     .highlights-section { margin-top: 100vh; } 

    .highlight-gallery img {
        width: calc(50% - 10px); 
    }
    .Aboutus-text h2 { font-size: 32px; }
    .Aboutus-text p { font-size: 18px; }

    .NextEvent-section { height: auto; min-height: 70vh; padding: 40px 20px;}
    .NextEvent-section .event-overlay { padding: 20px 30px; width: 80%; }
    .NextEvent-section .event-overlay h2 { font-size: 26px; }
    .NextEvent-section .event-list { font-size: 15px; }
}

@media (max-width: 480px) {
    /* .container {  Moved to .site-header-main-html .general-site-navigation for styling */
    /* font-size: 18px; padding: 10px 15px;} */
    .site-header-main-html .general-site-navigation { font-size: 18px; padding: 10px 15px;}
    .site-header-main-html .general-site-navigation .logo-img { height: 30px; }
    .site-header-main-html .general-site-navigation .menu-link.button { padding: 6px 15px; }
    .site-header-main-html .general-site-navigation .dropdown-content {min-width: 150px;}
    .site-header-main-html .general-site-navigation .dropdown-content a {padding: 10px 12px; font-size: 0.9em;}

    .headline { top: 150px; font-size: 24px; }

    .highlights-section { padding: 20px 10px; }
    .highlights-section h2 { font-size: 22px; }
    .highlights-section p { font-size: 14px; }
    .highlight-gallery img { width: 100%; } 
    .gallery-button { padding: 8px 16px; font-size: 0.9em;}

    .Aboutus { padding: 20px 10px; }
    .Aboutus-text h2 { font-size: 26px; }
    .Aboutus-text p { font-size: 16px; }
    .aboutus-button {padding: 7px 14px; font-size: 0.9em;}

    .NextEvent-section .event-overlay { padding: 20px; width: 90%;}
    .NextEvent-section .event-overlay h2 { font-size: 20px; }
    .NextEvent-section .event-list { font-size: 14px; }
    .event-button {padding: 8px 16px; font-size: 0.9em;}
}

/* Diese Regel bleibt hier, da sie für die Startseite spezifisch ist und auf das body-Tag zugreift. */
body.home-body > #page-container {
    padding-top: 0; /* Keine Polsterung, da der Header im Hintergrund ist */
}