@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;
}

/*-----------------------RESPONSIV-----------------------*/

@media (max-width: 768px) {
    /* Header anpassen */
    .header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .menu li {
        font-size: 16px;
    }
    
    /* Alle Menüpunkte bekommen #kasten Style */
    .menu li a {
        display: block;
        padding: 8px 15px;
        border: solid 2px #000000;
    }
	
	#kasten {
	  padding: 0;
	  background-color: none;
	  border: none;
	}
    
    .menu li a:hover,
    .menu li a:active {
        color: #000000;
        border: solid 2px #D979E2;
        background-color: #D979E2;
        text-decoration: none;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Footer anpassen */
    .footer {
        height: 60px;
    }
    
    .footer ul {
        gap: 15px;
        font-size: 14px;
    }
    
    /* Hauptinhalt - vertikal statt horizontal */
    .inhalt {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: 80px;
        display: flex;
        flex-direction: column; /* Wichtig für Reihenfolge */
    }
    
    /* Verabschiedungstext nach oben */
    .verabschiedungstext {
        order: -3; /* Zieht es nach oben */
        height: auto;
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .verabschiedungstext p {
        font-size: 18px;
        padding: 15px;
    }
    
    .beitraege-container {
        width: 100%;
        display: block;
    }
    
    .beitrag-kasten {
        height: 60px;
        width: calc(100% - 40px);
        padding: 15px 20px;
        border: solid 1px #000000;
        margin-right: 0;
        margin-bottom: -1px;
        transition: height 0.3s ease;
        overflow: hidden;
        cursor: pointer; /* Zeigt an, dass man klicken kann */
    }
    
    /* Link-Wrapper um Klick-Verhalten zu kontrollieren */
    .beitrag-kasten > a {
        pointer-events: none; /* Verhindert Klick auf Link im geschlossenen Zustand */
    }
    
    .beitrag-kasten.active > a {
        pointer-events: auto; /* Aktiviert Link wenn geöffnet */
    }
    
    /* Erster Klick: Kasten öffnen */
    .beitrag-kasten.active {
        height: auto;
        min-height: 400px;
        background-color: #D979E2;
        overflow-y: auto;
        max-height: 200vh;
    }
    
    /* Titel horizontal statt vertikal */
    .beitrag-kasten h3 {
        writing-mode: horizontal-tb;
        transform: none;
        position: relative;
        left: 0;
        top: 0;
        height: auto;
        font-size: 20px !important;
        margin: 0;
        pointer-events: none; /* Titel blockiert keine Klicks */
    }
    
    /* Inhalt versteckt bis Klick */
    .beitrag-kasten h4,
    .beitrag-kasten p,
    .beitrag-kasten video,
    .beitrag-kasten img {
        opacity: 0;
        margin-left: 0;
        transition: opacity 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
	
    
    /* Inhalt sichtbar bei aktivem Kasten */
    .beitrag-kasten.active h4,
    .beitrag-kasten.active p,
    .beitrag-kasten.active video,
    .beitrag-kasten.active img {
        opacity: 1;
        max-height: none;
		display: block;
        margin-top: 15px;
    }
    
    .beitrag-kasten.active h4 {
        font-size: 16px;
    }
    
    .beitrag-kasten.active p {
        font-size: 16px;
        margin-bottom: 15px;
		width: 90vw;
    }
    
    .beitrag-kasten.active img,
    .beitrag-kasten.active video {
    	height: auto;
        width: 80vw;
        margin-left: 0;
        margin-right: 0;
        margin-top: 15px;
    }
}