@media screen and (max-width: 500px) {
   .entry-content {overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
hyphenate-limit-chars: 12 5 5; 
}
}

/* Home */
.aktionswochen-card {
display: flex;
  flex-direction: column;
  height: 100%;
}

.wp-block-read-more {
background-color: var(--wp--preset--color--custom-readmoreback);
  border-radius: 1rem;
  padding: 0 1rem;
color: var(--wp--preset--color--accent-1);
	font-size: var(--wp--preset--font-size--small);
	    margin-top: auto !important;
    align-self: flex-start; /* Verhindert, dass der Link/Button unschön in die volle Breite gestreckt wird */
}


.wp-block-read-more:hover,
.wp-block-read-more:focus,
.wp-block-read-more:active {
background-color: var(--wp--preset--color--accent-4);
}


.aufrufe-2026 .wp-block-read-more {
background-color: #83abe3;
color: var(--wp--preset--color--accent-1);
}

.aufrufe-2026 .wp-block-read-more:hover, .aufrufe-2026 .wp-block-read-more:focus, .aufrufe-2026 .wp-block-read-more:active {
background-color: #618ecd;
}

.aktionswochen-container .aktionswochen-card, .category-solirundreise .wp-block-group.is-horizontal, .category-news .wp-block-group.is-horizontal {
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.aktionswochen-container .aktionswochen-card:hover, .category-solirundreise .wp-block-group.is-horizontal:hover, .category-news .wp-block-group.is-horizontal:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16),
              0 6px 4px rgba(0, 0, 0, 0.12),
              0 0 0 2px rgba(131, 171, 227, 0.35),
              0 8px 18px rgba(131, 171, 227, 0.3) !important;
  	transform: translateY(-2px);
}

.section-name-link a {text-decoration:none}
.section-name-link a:hover, .section-name-link a:focus, .section-name-link:active {text-decoration:underline}

/* EO EVENTS OVERVIEW */
.eo-events-short-overview a {
	text-decoration: none;
}

.eo-events-short-overview p {
	padding: 0;
	margin: 0;
}

.eo-events-short-overview p:last-of-type {
	display: none;
}

.eo-events-short-overview ul.eo-events {
 	padding: 0 !important;
 	margin: 0 !important;

	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	grid-auto-rows: 1fr; 
	gap: 1rem
}

ul.eo-events li {
	background: var(--wp--preset--color--accent-1);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 8px;
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	transition: box-shadow 180ms ease, transform 180ms ease;
	font-size: 18px;
}

ul.eo-events li:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16),
              0 6px 4px rgba(0, 0, 0, 0.12),
              0 0 0 2px rgba(131, 171, 227, 0.35),
              0 8px 18px rgba(131, 171, 227, 0.3) !important;
  	transform: translateY(-2px);
}

.eo-events-top {
	display: flex;
	justify-content: space-between;
	font-weight: bold;
	border-bottom: 1px solid;
  	padding-bottom: 0.5rem;
}

.eo-cats-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	font-weight: bolder;
}

.eo-category-badge {
	height: 20px;
	font-size: 12px;
	line-height: 20px;
	overflow: hidden;
	border-radius: 20px;
	text-align: center;
	padding: 4px 8px;
}

.eo-category-badge a {
	display: block;
	    color: inherit;
    text-decoration: none;
    pointer-events: none; /* Blockiert Klicks komplett */
    cursor: default;       /* Verhindert den Zeigefinger-Cursor */
}

.eo-events-content {
	margin-top: 8px;
	flex-grow: 1;
	display: flex;
}

.eo-events-content a {
	align-content: center;
  	text-align: center;
  	flex-grow: 1;
}

.eo-events-content .event-title {
	font-weight: bolder;
	padding: 4px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size:90%;
}

.read-more {
  position: relative;
}

.read-more-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.preview {
  position: relative;
  max-height: 400px;
  overflow: hidden;
}

.preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40px;
  background: linear-gradient(transparent, white);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.read-more-toggle:checked ~ .preview {
  max-height: none;
}

.read-more-toggle:checked ~ .preview::after {
  display: none;
}

.read-more-label {
  display: inline-block;
  margin-top: 8px;
  color: #1769aa;
  cursor: pointer;
}

.read-more-toggle:checked ~ .read-more-label .more,
.read-more-label .less {
  display: none;
}

.read-more-toggle:checked ~ .read-more-label .less {
  display: inline;
}

.read-more-toggle:focus-visible ~ .read-more-label {
  outline: 2px solid #1769aa;
}
