html {
  scroll-behavior: smooth;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-color: #fff;
	background-clip: border-box;
	border: 0px solid rgba(0, 0, 0, 0.125);
	border-radius: 0.25rem;
}

.cardfeierlichkeit {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	background-clip: border-box;
	border: 0px solid rgba(0, 0, 0, 0.125);
	border-radius: 0.25rem;
}

.mit-rand {
	border: 2px solid white;
	margin: 10px; /* oder wie viel Platz du willst */
  }

.g-owlcarousel-item-title a {
	font-size: 0.8em;
	line-height: 1.8em;
	
	color: white;
	
	margin: 0 0 20px 0;
	padding: 20px;
	
	background: rgba(0,0,0,0.5);
	background-color: rgba(0, 0, 0, 0.5);
	background-position-x: 0%;
	background-position-y: 0%;
	background-repeat: repeat;
	background-attachment: scroll;
	background-image: none;
	background-size: auto;
	background-origin: padding-box;
	background-clip: border-box;
}


.g-main-nav .g-toplevel > li > .g-menu-item-container {
    font-family: 'Verdana', sans-serif; 
    font-size: 1.0rem;                    
    font-weight: 600;                     
}


.g-main-nav .g-sublevel > li > .g-menu-item-container {
    font-size: 0.9rem;
}


/* 1. CONTAINER-STYLING ANPASSEN */
.accordion-container {
  /* Flexbox entfernen und durch Columns ersetzen */
  display: block; 
  column-gap: 20px;
}

/* 2. ITEM-STYLING ANPASSEN */
.accordion-item {
  /* WICHTIG: Verhindert, dass ein Item mitten drin auf zwei Spalten aufgeteilt wird */
  break-inside: avoid-column; 
  display: block;
  margin-bottom: 20px; /* Abstand nach unten zum nächsten Item in der Spalte */
  background-color: #fff;
  border: 1px solid #e0e0e0 !important; 
  border-radius: 0.5rem;
  box-sizing: border-box;
}

/* Falls ein Framework das border-top beim 2. Item entfernt, holen wir es hier zurück */
.accordion-item:not(:first-of-type) {
  border-top: 1px solid #e0e0e0 !important;
}

/* Den Header als Spalte ausrichten */
.accordion-header {
  list-style: none;
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column; 
  gap: 10px;
  color: #2c5e2e;
}

/* Kleiner visueller Effekt: Bild wird beim Hover etwas heller */
.accordion-header:hover .header-image img {
  opacity: 0.9;
}

/* Standard-Browser-Pfeile überall entfernen */
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::marker { content: ""; }

.icon {
  margin-right: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

details[open] .icon {
  transform: rotate(90deg);
}

/* 4. ANIMATIONS-LOGIK (Grid-Trick) */
.content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

details[open] .content {
  grid-template-rows: 1fr;
}

.content-inner {
  overflow: hidden;
}

.content-inner p {
  padding: 0 15px 15px 40px; 
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* 5. RESPONSIVE ANPASSUNGEN (Spaltenanzahl steuern) */
@media (min-width: 768px) {
  .accordion-container {
    column-count: 2; /* 2 Spalten ab Tablet */
  }
}

@media (min-width: 1200px) {
  .accordion-container {
    column-count: 3; /* 3 Spalten ab Desktop */
  }
}

/* Titel-Styling */
.header-top {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: left; /* Oder center, falls gewünscht */
}

/* Bild-Container und responsives Bild */
.header-image img {
  width: 100%;      /* Füllt die Breite des Accordion-Items aus */
  height: auto;     /* Verhindert Verzerrungen */
  display: block;
  border-radius: 4px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.more_to {
    font-weight:bold;
    color: #339733;
    text-transform: uppercase;
    font-size: 0.8em;
    border-top: 1px solid #e0e0e0 !important; 
}
