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

/* Grundstyling für das Accordion */
.accordion-item {
  border-bottom: 1px solid #e0e0e0;
  max-width: 600px; /* Optional: Breite begrenzen */
  margin-bottom: 5px;
}

/* Den Standard-Pfeil des Browsers verstecken */
.accordion-header {
  list-style: none;
  padding: 15px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #2c5e2e; /* Hofmann-Grün-Stil */
  transition: background 0.3s ease;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background-color: #f5f5f5;
}

/* Das Icon-Styling und die Rotation */
.icon {
  margin-right: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

details[open] .icon {
  transform: rotate(90deg); /* Dreht den Pfeil nach unten */
}

/* DER ANIMATIONS-TRICK: Grid mit 0fr auf 1fr */
.content {
  display: grid;
  grid-template-rows: 0fr; /* Startzustand: Höhe Null */
  transition: grid-template-rows 0.3s ease-out; /* Hier passiert die Magie */
}

details[open] .content {
  grid-template-rows: 1fr; /* Zielzustand: Volle Höhe des Inhalts */
}

/* Damit der Inhalt nicht ruckelt, muss das innere Div overflow: hidden haben */
.content-inner {
  overflow: hidden;
}

/* Styling für den Text im Inneren */
.content-inner p {
  padding: 0 15px 15px 40px; /* Einrückung passend zum Icon */
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* Der Container wird zum Flex-Layout */
.accordion-container {
  display: flex;
  flex-wrap: wrap; /* Erlaubt das Umbrechen, wenn der Platz nicht reicht */
  gap: 20px;       /* Abstand zwischen den Kacheln */
  align-items: flex-start; /* Verhindert, dass alle Items gleich hoch gezogen werden */
}

/* Standard: Volle Breite auf dem Handy */
.accordion-item {
  flex: 1 1 100%; 
  border: 1px solid #e0e0e0; /* Optional: Rahmen rundherum sieht nebeneinander besser aus */
  box-sizing: border-box;
}

/* AB HIER: Anpassung für große Bildschirme (Desktop) */
@media (min-width: 768px) {
  .accordion-item {
    /* Hier definieren wir, wie viele nebeneinander stehen sollen.
       Beispiel: 2 Spalten -> calc(50% - 10px) 
       Beispiel: 3 Spalten -> calc(33.33% - 14px) */
    flex: 0 1 calc(50% - 10px); 
  }
}

/* Optional für noch größere Monitore (3 Spalten ab 1200px) */
@media (min-width: 1200px) {
  .accordion-item {
    flex: 0 1 calc(33.33% - 14px);
  }
}
