/* General layout */
body {
  margin: 0;
  font-family: Calibri, Arial, sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

/* Header */
header {
  background-color: #e0e0e0;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 2rem; /* Abstand zwischen Name und Navigation */
  flex-wrap: wrap; /* Für kleinere Bildschirme */
}

.header-left h1 {
  margin: 0;
  font-size: 2rem;
  text-align: left;
  color: #333;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-right a {
  margin-right: 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.header-right a:last-child {
  margin-right: 0;
}

.header-right a:hover {
  color: #666;
  text-decoration: underline;
}

/* Main container: sidebar + content */
.container {
  display: flex;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Sidebar (links, sticky) */
.sidebar {
  width: 25%;
  background-color: #f2f2f2;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

/* Navigation Menü in der Sidebar */
.sidebar nav {
  margin-top: 1rem;
}

.sidebar nav a {
  display: block;
  color: #222;
  text-decoration: none;
  padding: 0.5rem 0;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar nav a:hover,
.sidebar nav a:focus {
  background-color: #d0d0d0;
  color: #000;
}

/* Abstand zwischen Info-Text und Links in Sidebar */
.sidebar .info + nav {
  margin-top: 2rem;
}

/* Main content area (rechts) */
.content {
  width: 75%;
  max-width: 700px;
  margin: 0 20% 0 5%;
  padding: 2rem;
  box-sizing: border-box;
  text-align: left;
}

/* Bilder: max 100%, Block-Element */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

/* Main image unten mittig, fixiert */
#mmpjjuggling-image {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  height: auto;
  display: block;
  z-index: 1000;
}

/* Überschriften */
h1, h2, h3 {
  color: #222;
  margin-top: 0;
}

/* Links generell - klassische blaue Farbe */
a {
  color: #0000EE;
  text-decoration: underline;
}

a:hover, a:focus {
  color: #551A8B;
  text-decoration: underline;
}

/* Absätze */
p {
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Für responsive Verhalten auf kleineren Bildschirmen */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar, .content {
    width: 100%;
    height: auto;
    position: relative;
  }

  #mmpjjuggling-image {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 1rem auto 0;
  }

  .centered-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    margin-top: 1rem;
    flex-wrap: wrap;
  }
}
