@charset "UTF-8";
/* CSS Document */

body {
	margin: 0px;
	padding: 0px;
	font-family: "hanken-grotesk", sans-serif;
	background-color: #F8F4DF;
}
a {
	text-decoration: none;
	color: inherit;
}
.menu a:hover, .footer a:hover, .filter a:hover {
	text-decoration: underline 2px #D979E2;
	color: #D979E2;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: solid 2px #000000;
}

.menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: center;  /* Das ist der wichtige Teil! */
}

.filter ul,
.menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.filter li,
.menu li {
  font-size: 18px;
  color: #000000;
}

.menu li:hover {
  color: #D979E2;
}

.logo img {
  height: 50px;
  display: block;
}

#kasten {
  padding: 10px 20px;
  background-color: none;
  border: solid 2px #000000;
}

#kasten:hover {
	color: #000000;
	border: solid 2px #D979E2;
  background-color: #D979E2;
}

#kasten a:hover {
	color: #000000;
}

.footer {
  position: fixed;
  bottom: 0px;
  height: 70px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.inhalt {
	height: calc(100vh - 160px); /* Höhe minus Header/Footer */
	overflow-x: auto;
	overflow-y: hidden;
  }

.beitraege-container {
	width: max-content;
	display: flex;
}

.beitrag-kasten {
	height: calc(100vh - 202px);
	width: 30px; /* Schmale Breite im Normalzustand */
    position: relative;
    transition: width 0.3s ease; /* Sanfte Animation */
    overflow: hidden;
    white-space: nowrap;
  	padding: 20px;
	border: solid 1px #000000;
	margin-right: -1px;
	margin-top: -2px;
	display: flex;
    flex-direction: column;
	justify-content: flex-end; /* Inhalt unten anheften */
}

.beitrag-kasten:hover {
    width: 700px; /* Breite beim Hovern - anpassen nach Bedarf */
	background-color: #D979E2;
	overflow-y: auto;
}

.beitrag-kasten h3 {
    writing-mode: vertical-rl; /* Text hochkant */
    transform: rotate(180deg); /* Damit der Text von oben nach unten lesbar ist */
    position: absolute;
    left: 20px;
    top: 20px;
    margin: 0;
    height: calc(100% - 40px);
    white-space: nowrap;
	font-size: 24px;
}

/* Container für den Hover-Inhalt */
.beitrag-kasten h4,
.beitrag-kasten p,
.beitrag-kasten a,
.beitrag-kasten video,
.beitrag-kasten img {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 55px;
}

.beitrag-kasten:hover h4,
.beitrag-kasten:hover p,
.beitrag-kasten:hover a,
.beitrag-kasten:hover video,
.beitrag-kasten:hover img {
    opacity: 1;
}

.beitrag-kasten h4 {
    margin-bottom: 10px;
    white-space: normal;
}

/* Text (p) */
.beitrag-kasten p {
    margin-bottom: 0px;
    white-space: normal;
	font-size: 20px;
}

/* Button/Link (a) */
.beitrag-kasten a {
    margin-bottom: 20px;
    display: inline-block;
    white-space: normal;
	color: #000000;
}

/* Bild ganz unten, volle Breite */
.beitrag-kasten img, .beitrag-kasten video {
    width: calc(100% - 80px); /* Volle Breite minus Margins */
    height: auto;
    object-fit: cover;
    margin-left: 55px;
    margin-right: 20px;
    margin-bottom: 0;
	margin-top: 20px;
    float: none;
    padding: 0;
}

.verabschiedungstext {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: calc(100vh - 160px);
}

.verabschiedungstext p {
    margin: 0;
    padding: 20px;
    font-size: 24px;
    white-space: normal;
}

/* ============================================
   MEDIA QUERIES FÜR KLEINE GERÄTE
   ============================================ */

@media screen and (max-width: 768px) {
  
  /* Header anpassen */
  .header {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }
  
  /* Logo verkleinern */
  .logo img {
    height: 35px;
  }
  
  /* Menü untereinander statt nebeneinander */
  .menu ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .filter ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .filter li,
  .menu li {
    font-size: 16px;
  }
  
  /* Kasten-Button anpassen */
  #kasten {
    padding: 8px 16px;
    font-size: 16px;
  }
  
  /* Footer anpassen */
  .footer {
    height: auto;
    padding: 15px 10px;
  }
  
  .footer ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
  }
  
  /* Inhalt-Bereich anpassen */
  .inhalt {
    height: auto;
    min-height: calc(100vh - 200px);
    overflow-x: auto;
    overflow-y: auto;
  }
  
  /* Beiträge-Container */
  .beitraege-container {
    flex-direction: column;
    width: 100%;
  }
  
  /* Beitrag-Kasten für Mobile */
  .beitrag-kasten {
    width: calc(100% - 40px);
    height: auto;
    min-height: 60px;
    margin-right: 0;
    margin-bottom: -1px;
    padding: 15px;
  }
  
  /* Titel horizontal statt vertikal */
  .beitrag-kasten h3 {
    writing-mode: horizontal-tb;
    transform: none;
    position: relative;
    left: 0;
    top: 0;
    height: auto;
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  /* Hover-Effekt für Mobile anpassen */
  .beitrag-kasten:hover {
    width: calc(100% - 40px);
    height: auto;
  }
  
  /* Inhalt immer sichtbar auf Mobile */
  .beitrag-kasten h4,
  .beitrag-kasten p,
  .beitrag-kasten a,
  .beitrag-kasten video,
  .beitrag-kasten img {
    opacity: 1;
    margin-left: 0;
  }
  
  .beitrag-kasten p {
    font-size: 16px;
  }
  
  /* Bilder und Videos für Mobile */
  .beitrag-kasten img, 
  .beitrag-kasten video {
    width: 100%;
    max-height: 50vh;
    margin: 15px 0 0 0;
  }
  
  /* Verabschiedungstext */
  .verabschiedungstext {
    height: auto;
    min-height: calc(100vh - 200px);
    padding: 20px;
  }
  
  .verabschiedungstext p {
    font-size: 18px;
    padding: 10px;
  }
}

/* Für sehr kleine Geräte (unter 480px) */
@media screen and (max-width: 480px) {
  
  .header {
    padding: 10px 15px;
  }
  
  .logo img {
    height: 30px;
  }
  
  .menu li,
  .filter li {
    font-size: 14px;
  }
  
  .beitrag-kasten h3 {
    font-size: 18px;
  }
  
  .beitrag-kasten p {
    font-size: 14px;
  }
  
  .verabschiedungstext p {
    font-size: 16px;
  }
  
  #kasten {
    padding: 6px 12px;
    font-size: 14px;
  }
}