/* ==============================
   Grundlayout
============================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f9f9f9;
  color: #333;
}

/* ==============================
   Header
============================== */
header {
  background-color: #000000;
  color: white;
  padding: 15px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img.logo {
  width: 200px;
  height: auto;
}

header img.gif {
  width: 100px;
  height: auto;
}

header h1 {
  margin: 0;
  padding: 0 20px;
  font-size: 1.5em;
  text-align: center;
}

/* ==============================
   Navigation
============================== */
nav {
  display: flex;
  justify-content: center;
  background-color: #d9ff00;
  padding: 10px;
  position: relative;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav li {
  position: relative;
  margin: 0 10px;
}

nav a {
  text-decoration: none;
  color: black;
  padding: 10px 20px;
  font-weight: bold;
}

nav a:hover {
  background-color: #000000;
  color: #d9ff00;
}

/* ==============================
   Dropdown-Menü
============================== */
.submenu {
  display: none;
  position: absolute;
  background-color: #d9ff00;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.submenu li a {
  padding: 10px 20px;
  display: block;
  color: black;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #000000;
  color: #d9ff00;
}

nav li:hover > .submenu {
  display: block;
}

/* ==============================
   Hauptbereich
============================== */
main {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* <== Text untereinander statt nebeneinander */
  align-items: flex-start;
}

.main-image {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Layout für Abschlussarbeiten */
.arbeit {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.arbeit-img {
  width: 110px;
  height: auto;
  border-radius: 6px;
}

.arbeit p {
  flex: 1;
  margin: 0;
  font-size: 1rem;
}

.arbeit a {
  color: #003366;
  text-decoration: none;
}

.arbeit a:hover {
  text-decoration: underline;
}

/* Mobile Ansicht */
@media (max-width: 700px) {
  .arbeit {
    flex-direction: column;
    text-align: center;
  }
  .arbeit-img {
    width: 60%;
    margin: auto;
  }
}

.arbeit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.arbeit-img {
  width: 75px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.arbeit p {
  margin: 0;
  font-size: 1em;
}


/* ==============================
   Tabellen & Listen
============================== */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.responsive-table {
  text-align: left;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

td {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

ul {
  padding-left: 20px;
}

/* ==============================
   Bilder in Literatur-Elementen
============================== */
.literatur-item img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

/* ==============================
   Abschnitt mit gestapeltem Layout
============================== */
.section-stacked {
  display: block;
  padding: 20px;
}

.section-stacked img {
  display: block;
  margin: 0 auto 20px auto;
}

/* ==============================
   Footer
============================== */
footer {
  background-color: #000000;
  color: white;
  padding: 10px;
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  margin: 5px 0;
}

/* ==============================
   Responsive Design
============================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header h1 {
    padding: 10px 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin: 5px 0;
  }

  main {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: left;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer p {
    margin: 5px 0;
  }
}
