

body, html {
  font-family: Arial, sans-serif;
    margin: 0px;  /* Abstand rechts und links. */
    padding: 5px; /* Abstand rechts und links. */
    height: 100%;
    line-height: 1.6;
    color: #333;
}

/* Video */
#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    animation: slideUp 1.5s ease-out;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
/* Video Ende */

header {
    display: flex;
    background: #00806c;
    color: #fff;
    padding: 1rem;
    text-align: center;
}
.header-icon {
    width: 50px;                 /* Breite des Icons */
    height: 50px;                /* Höhe des Icons */
    margin-right: 0px;          /* Abstand zum nächsten Element */
}
.header-title {
    flex: 1;
    text-align: center;         /* Zentriert den Text */
    margin: 0;
}
.logo-link {
    display: block;              /* Block-Element für bessere Kontrolle */
}
nav {
    background: #dceaed;
    padding: 0.5rem;
}
nav ul {
   list-style: none;
   padding: 0;
   display: flex;
   justify-content: center;
   background: #94d1c7;
   margin: 0;
}

nav a {
   color: black;
   padding: 0.75rem 1rem;
   text-decoration: none;
   display: block;
}


.dropdown {
   position: relative;
   display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #dcf9cc;
    min-width: 200px;
    z-index: 1;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out; /* Sanftes Ausrollen */
}

.dropdown:hover .dropdown-menu {
    display: block;
    max-height: 500px; /* Endhöhe */
}

.dropdown-menu a:hover {
   background: #a8e3ff;
}

.dropdown-menu a.back-button {
    border-top: 1px solid #ccc;
    background-color: #f0f0f0;
    text-align: center;
}

/* Optional: Animation für das Ausrollen */
@keyframes rollDown {
    from { max-height: 0; }
    to { max-height: 500px; }
}

.dropdown:hover .dropdown-menu {
    animation: rollDown 0.9s ease-out forwards;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center; /* Zentriert die Karten im Container */
    max-width: 1200px;         /* Maximale Breite des Containers */
    margin: 0 auto;           /* Zentriert den Container selbst */
}

.event-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: auto;
    height: auto;
    object-fit: cover;
}

.event-card .event-text {
    padding: 15px;
    background-color: #dceaed;  // Farbe des Kartenhintergrundes
}

.event-card .event-text h3 {
    margin-top: 0;
    color: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

/* Bilderausrichtung: zentriert*/
img {
      display: block;
      margin-left: auto;
      margin-right: auto;
}

/* Textausrichtung: zentriert */
p, h1, hr {
      width: 80%;
      margin-left: auto;
      margin-right: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Bilder im Text verwenden */
.inline-img {
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin: 0 5px;
}
/* Ende */

/* Bilder im Container anzeigen */
.image-container {
            display: flex;
            gap: 20px;
            margin: 20px 0;
            justify-content: center; /* Bilder im Container zentrieren */
        }

        .large-img {
          max-width: 100%;      /* Maximale Breite des Containers nutzen */
          max-height: 400px;   /* Maximale Höhe festlegen */
          width: auto;         /* Breite automatisch anpassen */
          height: auto;        /* Höhe automatisch anpassen */
        }
/* Ende */

/* Task Cards, die breit und flach sind und übereinander stehen. */
.task-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.task-title {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 120px;
    text-align: center;
}

.task-description {
    flex: 1;
}
/* Beispiel

<div class="task-container">
    <div class="task-item">
        <img src="dein-bild.jpg" alt="Aufgabenbild" class="task-image">
        <div class="task-title">Aufgabe 1</div>
        <div class="task-description">
            Hier steht die Beschreibung der Aufgabe. Du kannst hier so viel Text schreiben, wie du möchtest.
        </div>
    </div>
    <div class="task-item">
        <img src="dein-bild2.jpg" alt="Aufgabenbild" class="task-image">
        <div class="task-title">Aufgabe 2</div>
        <div class="task-description">
            Eine weitere Beschreibung für Aufgabe 2.
        </div>
    </div>
</div>

/* Ende */

@media (max-width: 768px) {
   nav ul {
       flex-direction: column;
   }

   .dropdown-menu {
       position: static;
   }
}
