body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fceaca;
}

header {
    background-color: #0077b6;
    color: white;
    padding: 20px;
    text-align: center;
}

.horizontal-nav {
    background-color: #023e8a; 
	background-color: #023e8a;
    position: sticky;
    top: 0;
    z-index: 1000; /* damit sie über anderen Elementen bleibt */
}

.horizontal-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Für Handyansicht */
}

.horizontal-nav li {
    margin: 0;
}

.horizontal-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    transition: background-color 0.3s ease;
}

.horizontal-nav a:hover {
    background-color: #0096c7;
}

.container {
    display: grid;
    grid-template-areas:
        "header header header"
        "nav section aside"
        "footer footer footer";
    grid-template-columns: 200px 1fr 150px;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
}

header {
    grid-area: header;
    background-color: #006699;
    color: white;
    padding: 1rem;
    text-align: center;
}

nav {
    grid-area: nav;
    background-color: #fceaca;
    padding: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    margin-bottom: 1rem;
}

nav a {
    text-decoration: none;
    color: #003366;
}

section {
    grid-area: section;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fceaca;
}

section img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid #ccc;
}

aside {
    display: flex;
    flex-wrap: wrap;         /* <-- erlaubt Umbruch */
    flex-direction: row;     /* Bilder nebeneinander */
    justify-content: center; /* zentriert die Bilder */
    gap: 10px;
	background-color: #fceaca;
}

aside img {
    width: 80px;             /* passt gut auf kleine Bildschirme */
    height: auto;
}

/* Thumbnails im Handy vertikal umbrechen */
@media (max-width: 600px) {
    aside {
        flex-direction: column;
        align-items: center;
    }

    aside img {
        width: 80%;  /* oder 100% je nach gewünschter Bildgröße */
        max-width: 200px;
    }
}

aside img {
    width: 100px;
    height: auto;
    cursor: pointer;
    border: 1px solid #888;
    transition: transform 0.2s;
}

aside img:hover {
    transform: scale(1.05);
}

footer {
    grid-area: footer;
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 0.5rem;
}

h2 {
    font-size: 24px !important;
    color: dodgerblue !important;
    text-align: center !important;
}
@media (max-width: 1000px) {
    .container {
        display: grid;
        grid-template-areas:
            "header"
            "horizontal-nav"
            "nav"
            "section"
            "aside"
            "footer";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    nav, section, aside {
        padding: 0.5rem;
    }

    section img {
        max-height: 50vh;
    }
}
.language-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.language-switcher select {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}
.language-flags {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: white;
  border-radius: 8px;
  padding: 5px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 8px;
  align-items: center;
}

.language-flags img {
  width: 32px;
  height: 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.language-flags img:hover {
  transform: scale(1.1);
}
video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1; /* Wenn es im Hintergrund sein soll */
}

