/*
Theme Name: Alnus
Theme URI: 
Author: Daniel Fuchs
Author URI: https://sprache.baumfuchs.de
Description: Ein WordPress-Thema speziell für den ALNUS
Version: 1.1.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alnus
Tags: accessibility-ready
*/

/* TABLE OF CONTENTS

	* VARIABLES
	* ACCESSIBILITY
	* BASIC LAYOUT STRUCTURE AND STACKING (only the features that are independent of styling and layout variant)
	* SKIP LINKS
	* SITE MARGIN
	* EDGES AND POSITION OF HEADINGS NEAR EDGES
	* NAVIGATION BAR AND MAIN MENU
	* HEADER
	* WIDGETS
	* FRONTPAGE WIDGET AREA
	* POSTS AND PAGES
	* FRONTPAGE
	* POST AND PAGE PREVIEWS
	* COMMENTS
	* HOVER EFFECTS
	* SHORTCODES
	* EVENT GENIUS
	* FOOTER
	* BUTTONS AND ICONS (to style special links)
	* SEARCH FORMS
	* COLOR AND DECORATION CLASSES (for background, text and links, can be applied to any elements to force a certain appearance)
	* OTHER GENERAL CHARACTER CLASSES
	* PRINT STYLES
	
*/

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
	
/* Focus indicator */
	--focus-outline-width: 2px;
	--focus-outline-offset: 0px;
	--color-focus: red;

/* Animations */
	--animation-time: 0.15s;	
	
/* Box shadows */
	--shadow-stacking: 0 0 5px 2px rgba(0,0,0,0.5);
	--shadow-page: 0 0 5px 2px rgba(0,0,0,0.5);
	
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Respect user's motion preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   BUTTONS AND ICONS
   ========================================================================== */

/* Any link can be wrapped in a <span class="button">, possibly with an additional color class. */
.button {
	display: inline-block;
	text-align: center;
	line-height: var(--line-height-base);
	list-style: none;
	margin: 0.2em;
	border: 1px solid var(--color-border);
	border-radius: 0.5em;
	user-select: none;
	cursor: pointer;
}

.button:not(.big-button) {
	font-size: 90%;
}

.button a, .button a:hover, .button a:active, .button a:visited {
	color: inherit !important;
	text-decoration: none !important;
	display: inline-block;
	padding: 0.2em 0.4em 0.1em 0.4em;
}

.button:not(.disabled):not(:disabled):not(:hover) {
	background-color: color-mix(in hsl, var(--background-color) 70%, white 30%);	
}

.button:not(.disabled):not(:disabled):hover {
	background-color: color-mix(in hsl, var(--background-color) 95%, black 5%);	
}

.button.disabled, .button:disabled {
	filter: saturate(0);
	cursor: not-allowed;
}

.big-button {
	border-radius: 1.5em;
}

.big-button a, .big-button a:hover, .big-button a:active, .big-button a:visited {
	padding: 0.5em 0.7em 0.4em 0.8em;
}

.icon-button {
	position: relative;
	width: 2.1em;
	padding: 0.5em 0 0.4em 0;
	border-radius: 50%;
}

.icon-button::after {
	content: "\00A0";
}

.icon-button .dashicons {
	position: absolute;
}

/* Big link buttons display an arrow icon after the text. */

.big-button.link-button a, .big-button.link-button a:hover, .big-button.link-button a:active, .big-button.link-button a:visited {
	padding: 0.5em 0.4em 0.4em 0.9em;
}

.big-button.link-button a::after {
	display: inline-block;
	font-family: dashicons;
	line-height: 0;
	font-size: 130%;
	position: relative;
	content: "\f345";
	top: 0.24em;
	margin-left: 0.1em;
}

/* Pagination buttons */

nav.pagination {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.button.page-number {
	font-size: 120%;
	min-width: 2em;
}

.button.page-number.current {
	font-size: 140%;
	font-weight: bold;
	border: 1px solid currentcolor; 
}

/* Special left-aligned icons for some link buttons */

.button a::before {
	display: inline-block;
	content: "";
	font-family: dashicons;
	line-height: 0;
	font-size: 120%;
	position: relative;
}

a.post-edit-link::before {
	content: "\f464";
	top: 0.2em;
	margin-right: 0.2em;
}

a.category-link::before {
	content: "\f318";
	top: 0.15em;
	margin-right: 0.2em;
}

a.tag-link::before {
	content: "\f323";
	top: 0.15em;
	margin-right: 0.2em;
}

/*
time::before {
	content: "\f508";
	font-family: dashicons;
	line-height: 0;
	position: relative;
	top: 0.08em;
	margin-right: 0.25em;
	opacity: 0.5;
} */

.vcard::before {
	content: "\f110";
	font-family: dashicons;
	line-height: 0;
	position: relative;
	top: 0.15em;
	margin-right: 0.15em;
	opacity: 0.5;
}


/* ==========================================================================
   BASIC LAYOUT STRUCTURE AND STACKING
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background-color: var(--color-site-background);
	--offset-top: 0;
	overflow-x: hidden;
	overflow-y: auto;
}

body.admin-bar {
	--offset-top: var(--wp-admin--admin-bar--height);
}

#wpadminbar {
	position: fixed !important;
	max-width: 100vw; 
}

/* ==========================================================================
   SKIP LINKS
   ========================================================================== */

.skip-links {
	position: absolute;
	top: var(--offset-top);
	left: 0;
}

.skip-links ul {
	list-style: none;
}

.skip-link {
	position: absolute;
	top: -10000px;
	left: -10000px;
	width: max-content;
	padding: 0.8em 1em 0.5em;
	font-weight: bold;
	font-size: 1.125rem;
	border: var(--focus-outline-width) solid var(--color-signal-text);
}

.skip-link:focus {
	top: var(--spacing-grid);
	left: var(--spacing-grid);
}


/* ==========================================================================
   MAIN NAVIGATION
   ========================================================================== */

.homebutton-wrapper, .searchform-wrapper, .menubutton-wrapper {
	padding: 0 0.5em;
}

/* Home button */

.home-button, .menu-button {
	width: 2.6rem;
	height: 2.6rem;
	margin: var(--spacing-small);
	padding: 0; 
	border-radius: 50%;
	user-select: none;
	cursor: pointer;
}

.home-button .dashicons {
	position: relative;
	font-size: 180%;
	top: -0.1em;
	left: -0.23em;
}

/* Menu button */

.menu-button .dashicons {
	position: relative;
	font-size: 180%;
	top: 0.25em;
	left: 0.2em;
}

:root:not(.show-menu) .menu-button-show {
	display: block;
}

:root:not(.show-menu) .menu-button-hide {
	display: none;
}

:root.show-menu .menu-button-show {
	display: none;
}

:root.show-menu .menu-button-hide {
	display: block;
}

/* Main navigation */

.navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-flow: row wrap;
}

.navigation li {
	position: relative;
	margin: 0;
	padding: 0;
}

.navigation a {
	display: block;
	margin: 0;
	padding: var(--spacing-paragraph) var(--spacing-grid);
	text-align: center;
	font-weight: bold;
}

.navigation a:focus {
	position: relative;
	z-index: 10000;
}

.navigation li:hover, .navigation li:hover > a,
.navigation .current-menu-item, .navigation .current-menu-item > a,
.navigation .current_page_item, .navigation .current_page_item > a {
	background: var(--color-contrast-background); /* !important; */
	color: var(--color-contrast-text); /* !important; */
}

/* Submenu - Accessible Dropdown */
.navigation .sub-menu {
	display: none;
	flex-flow: column nowrap;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	min-width: 16em;
	padding: 0;
	margin: 0;
	border: 1px solid var(--color-border);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.navigation .sub-menu li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--color-border-bright);
}

.navigation .sub-menu li:last-child {
	border-bottom: none;
} 

.navigation .sub-menu a {
	padding: 0.8em 1.2em 0.8em 1em;
	text-align: left;
}

/* Show submenu on parent focus/hover */
.navigation li:hover > .sub-menu,
.navigation li:focus-within > .sub-menu,
.navigation li.menu-item-has-children > a:focus + .sub-menu,
.navigation li.menu-item-has-children > a[aria-expanded="true"] + .sub-menu {
  display: flex;
}

/* Submenu indicator arrow switched off for the moment
.navigation .menu-item-has-children > a::after {
	content: "\f140";
	font-family: dashicons;
	font-size: 120%;
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	position: relative;
	top: 0.15em;
} */

/* Nested submenus */
.main-navigation .sub-menu .sub-menu {
  top: 4px;
  left: 100%;
}

.main-navigation .sub-menu .menu-item-has-children > a::after {
	content: "\f139";
	font-family: dashicons;
	display: inline-block;
	line-height: 0;
	font-size: 120%;
	text-decoration: none;
	position: absolute;
	right: 0.2em;
	top: 1.3em;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

#header-wrapper {
	container-name: header-wrapper;
	container-type: inline-size;
	position: relative;
}

.site-header {
	height: var(--header-height);
}

.site-header-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
	background-image: var(--header-image);
	background-size: cover;
	background-repeat: no-repeat;
	filter: contrast(var(--header-image-contrast)) brightness(var(--header-image-brightness)) saturate(var(--header-image-saturation)) blur(var(--header-image-blur));
}

.flip-header-image .site-header-background {
	transform: scaleX(-1);
}

.site-branding {
	height: calc( var(--header-height) - 60px );
	display: flex;
	flex-flow: row nowrap;
	color: var(--color-header-text);
	filter: drop-shadow(0 0 3px var(--color-header-shadow));
}

.site-description-wrapper {
	height: 100%;
}

.site-description {
	justify-self: flex-start;
	align-self: center;
	max-width: 40%;
	padding-left: 5%;
	font-size: 120%;
	flex-grow: 0;
	position: relative;
	top: 0.5em;
}

.site-logo {
	position: absolute;
	top: 17%;
	right: 4%;
	height: 60%;
	background: var(--color-header-text);
	user-select: none;
}

.site-logo img {
	height: 100%;
	width: auto;
	object-fit: contain;
	opacity: 0;		/* See the explanation in header.php*/
}

.site-description, .custom-logo-link {
	user-select: none;
}


/* ==========================================================================
   WIDGETS
   ========================================================================== */

.widget {
	padding: 0.9em 1em 1em 1em;
	border-radius: var(--widget-border-radius);
	word-break: break-word;
	hyphens: auto;
}

.widget h2 {
	margin: 0 0 0.3em 0;
}

.widget p {
	margin-bottom: 0.8em;
}

.widget > *:last-child, .textwidget > *:last-child {
	margin-bottom: 0;
}

.widget_media_image .wp-caption {
	margin: 0;
}

.widget_media_image figcaption {
	display: none;
}

/* Annotated sections are similar to widgets but have a small title bar at the top. */

.annotated-section {
	border-radius: var(--widget-border-radius);
}

.section-annotation {
	border-top-left-radius: var(--widget-border-radius);
	border-top-right-radius: var(--widget-border-radius);
	font-size: 90%;
	padding: 0.5em 1em 0.4em 1em;
	user-select: none;
}

.annotated-section-content {
	padding: 1.2em var(--spacing-grid);
	border-bottom-left-radius: var(--widget-border-radius);
	border-bottom-right-radius: var(--widget-border-radius);
}

.annotated-section-content h2 {
	margin: 0 0 0.3em 0;
}

.annotated-section-content > *:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   FRONTPAGE WIDGET AREA
   ========================================================================== */

#frontpage-widgets-wrapper {
	container-name: frontpage-widgets-wrapper;
	container-type: inline-size;
}

.frontpage-widgets {
	display: grid;
	gap: var(--spacing-grid);
	padding: var(--spacing-content);
}

.frontpage-widget {
	position: relative;
}

.frontpage-widgets h1 {
	margin-top: 0.2em;
	margin-bottom: 0.6em;
	text-align: center;
}

.frontpage-widgets .widget_sp_image-description {
	word-break: normal;
	hyphens: manual;
}

.frontpage-widgets .widget_sp_image .post-excerpt {
	word-break: normal;
	hyphens: manual;
	margin-bottom: 1em;
}

.frontpage-widgets .widget_sp_image .post-excerpt-short, .frontpage-widgets .widget_sp_image .post-excerpt-first {
	display: none;
 }

.frontpage-widgets .widget_sp_image img {
	display: block;
	float: left;
	width: 50%;
	max-height: 22em;
	object-fit: cover;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	shape-margin: var(--spacing-grid);
	margin-right: var(--spacing-grid);
	margin-bottom: var(--spacing-paragraph);
}


/* ==========================================================================
   FRONTPAGE
   ========================================================================== */

.frontpage-content-wrapper {
	container-type: inline-size;
}


/* ==========================================================================
   POSTS AND PAGES
   ========================================================================== */

.content-wrapper {
	container-name: content-wrapper;
	container-type: inline-size;
	position: relative;
}

.content a {
	color: var(--color-base-link);
}

.content a:hover, .content a:active {
	color: var(--color-base-link-hover);
}

.content a:visited {
	color: var(--color-base-link-visited);
}

.entry-header {
	margin-bottom: 0.75em;
}

/* Post metadata */

.post-meta {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: center;
	column-gap: 1em; 
}

.entry-meta-content-event {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: center;
	column-gap: var(--spacing-grid); 
}

ol.breadcrumbs {
	list-style: none;
	padding: 0;
	margin: 0;
}

ol.breadcrumbs li {
	display: inline-block;
	margin: 0;
}

.breadcrumb-separator {
	margin: 0 var(--spacing-small);
	opacity: 0.5;
}

/* We don't need the post history ('updated...') at the moment */
.post-history {
	display: none;
}

.post-taxonomy ul.post-categories, .post-taxonomy ul.post-tags {
	display: inline-block;
	margin: 0;
	padding: 0;
}

.alnus-related-posts h2 {
	margin-bottom: var(--spacing-paragraph);
}

.post-taxonomy {
	text-align: center;
}

.edit-post {
	margin-top: var(--spacing-grid);
}


/* ==========================================================================
   PAGE AND POST CONTENT
   ========================================================================== */

/* We cannot query the width of the site-container to extend gallery margins on wide screens 
	because there is a named content-wrapper container between it and the gallery. 
	So we have to take a crude approach and switch margins just once when there is enough space
	for six thumbnails in a row */
@media (min-width: 1400px) {

	.content-narrow .gallery {
		margin-left: -300px;
		margin-right: -300px;
	}

}

@media (min-width: 1600px) {

	.content-narrow .page-preview {
		margin-left: -400px;
		margin-right: -400px;
	}

}

/* ==========================================================================
   PAGE PREVIEWS
   ========================================================================== */

.page-preview {
	container-name: page-preview;
	container-type: inline-size;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	column-gap: var(--spacing-content);
	row-gap: var(--spacing-content);
	margin: var(--spacing-content);
}

.page-preview-item {
	width: 220px;
	text-align: center;
}

.page-thumbnail {
	width: 200px;
	height: 240px;
	object-fit: cover;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.page-preview-title {
	word-break: break-word;
	hyphens: auto;
	margin: 0.5em 0 0.3em 0;
}

.page-preview .post-excerpt-long, .page-preview .post-excerpt-short {
	display: none;
}


/* ==========================================================================
   POST PREVIEWS
   ========================================================================== */

/* Post previews, when annotated, are similar to annotated sections, but with a larger padding and font size. */

.post-wrapper {
	container-name: post-wrapper;
	container-type: inline-size;
	margin-bottom: var(--spacing-grid);
	border-radius: var(--widget-border-radius);
}

.post-wrapper > a > :first-child {
	border-top-left-radius: var(--widget-border-radius);
	border-top-right-radius: var(--widget-border-radius);
}

.post-wrapper > a > :last-child {
	border-bottom-left-radius: var(--widget-border-radius);
	border-bottom-right-radius: var(--widget-border-radius);
}

.post-preview-annotation {
	height: 2em;
	padding: 0 0.4em 0 0.8em;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
}

.post-preview-annotation-icon {
	display: inline-block;
	width: 1.5em;
	text-align: center;
	line-height: 0;
}

.post-preview-item {
	position: relative;
	padding: var(--spacing-grid);
	height: -webkit-fill-available;
	height: 100%;	
}

.post-preview-item .post-thumbnail {
	display: block;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	-webkit-mask-origin: content-box;
	mask-origin: content-box;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	shape-margin: var(--spacing-grid);
}

.post-preview-item .entry-title {
	hyphens: auto;
}

.post-preview-item .post-categories, .post-preview-item .post-tags {
	display: block;
	margin: 0.3em 0;
	padding: 0;
}

.post-preview-item .entry-content p {
	margin: 0;
}

.post-preview-item .post-excerpt-first {
	display: none;
}


/* ==========================================================================
   COMMENTS
   ========================================================================== */

/* Comment form */

.comments-area .required-field-message {
	display: none;
}

.comment-form-comment, .comment-form-author, .comment-form-email, .comment-form-url {
	display: grid;
	grid-template-columns: 10em auto;
}

.comment-form p.form-submit {
	text-align: right;
}

/* Comments list */

ol.comment-list {
	padding: 0;
	margin: 0;
	margin-bottom: var(--spacing-content);
}

ol.children {
	padding-left: var(--spacing-content);
	margin-bottom: var(--spacing-grid);
}

.comment-wrapper {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: var(--spacing-grid);
	margin-bottom: var(--spacing-grid);
}

li.comment {
	list-style: none;
	margin-bottom: var(--spacing-grid);
}

li.comment:last-child {
	margin-bottom: 0;
}

.avatar {
	filter: hue-rotate(220deg);
}

.comment-body {
	position: relative;
}

.comment-arrow {
	position: absolute;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.comment-arrow.left {
	top: 22px;
	left: -1em;
	width: 1em;
	height: 1em;
	-webkit-mask-image: url('css/shapes/balloon-arrow-left.svg');
	mask-image: url('css/shapes/balloon-arrow-left.svg');
}

.comment-meta, .comment-content {
	margin-bottom: var(--spacing-paragraph);
}

.comment-meta-wrapper {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.5em;
}

.comment-author {
/*	color: var(--color-accent-background);
	font-weight: bold; */
}

.comment-edit-link {
	margin: 0; 
}

.comment-awaiting-moderation {
	color: #888888;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer-wrapper {
	container-name: footer-wrapper;
	container-type: inline-size;
}

.site-footer {
	padding: var(--spacing-grid);
}

.footer-widgets {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
	align-content: flex-start;
	gap: var(--spacing-grid);
	margin-bottom: 1em;
}

.site-credit {
	font-size: 90%;
	text-align: center;
}


/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */

/* This version applies hover effects to thumbnails as soon as the surrounding .thumbnail-hover-target container is hovered  */

.thumbnails-expand .thumbnail-hover-target:not(:hover) .hover-effect {
	transform: scale(1);
	transition: all var(--animation-time) ease-in-out;
}

.thumbnails-expand .thumbnail-hover-target:hover .hover-effect {
	transform: scale(1.05);
	transform-origin: center;
	transition: all var(--animation-time) ease-in-out;
}

.thumbnails-colorize .thumbnail-hover-target:not(:hover) .hover-effect {
	filter: sepia(0.5) grayscale(0.5);
	transition: all var(--animation-time) ease-in-out;
}

.thumbnails-colorize .thumbnail-hover-target:hover .hover-effect {
	filter: sepia(0) grayscale(0);
	transition: all var(--animation-time) ease-in-out;
}


/* ==========================================================================
   SHORTCODES
   ========================================================================== */

/* [Beiträge] */

.widget.related-posts p.view-all-posts {
	text-align: right;
	margin-bottom: 0;
}

/* [Archiv] */

.alnus-postarchive-categories {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start; 
	align-items: center;
	gap: var(--spacing-grid);
	margin-bottom: var(--spacing-paragraph);
}

.alnus-postarchive-list .post-meta {
	display: inline-flex;
	margin-left: 1em;
	font-size: 90%;
	opacity: 0.75;
}

/* [Kategorien] */

.category-cloud-wrapper {
	container-name: category-cloud-wrapper;
	container-type: inline-size;
	max-width: 100%;
}

.category-cloud {
	text-align: center;
	background-image: url('css/img/alnus-light.png');
	background-size: 100% auto;
	background-repeat: no-repeat;
}

.category-cloud.log {
	font-size: 90%;
}

.category-cloud-shape {
	opacity: 0;
	pointer-events: none;
}

/* [Logo] */ 

.logo.inline {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
}

.logo.block {
	display: flex;
	flex-flow: row nowrap;
	column-gap: 0.5em;
	align-items: center;
	max-width: var(--widget-width);
	margin-bottom: 0.8em;
}

.logo.block.pos-left {
	justify-content: flex-start;
	text-align: left;
}

.logo.block.pos-right {
	justify-content: flex-end;
	text-align: right;
}

.logo-image {
	display: inline-block;
	flex-grow: 0;
	flex-shrink: 0;
}

.logo-text {
	margin: 0;
	flex-grow: 1;
	flex-shrink: 1;
}

/* [Notiz] */ 

.notice {
	color: currentColor;
	background: #EEEEEE;
	font-size: inherit;
	padding: 1em 1.5em 1em 1em;
	width: fit-content;
	margin-bottom: var(--spacing-paragraph);
	border-radius: 1.5em;
}

.notice::before {
	content: "\f348";
	display: inline-block;
	font-family: dashicons;
	line-height: 0;
	font-size: 180%;
	margin-right: 0.2em;
	vertical-align: middle;
	color: gray;
}

/* [Box] */

.box {
	margin-bottom: 1.1em;
}

.box.alignleft, .box.alignright {
	min-width: 10em;
	width: minmax(auto, var(--widget-width));
	max-width: 50%;
}

.box h1, .box h2, .box h3 {
	margin-top: 0;
} 

.box > *:not(img):empty {
	margin-bottom: 0;
}

.box > :last-child {
	margin-bottom: 0;
}

/* [Flexbox] */

.flexbox {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	column-gap: 3.5em;
	row-gap: 2em;
}

.flexbox > * {
	margin: 0 important;
}

/* [Kategorien] */

.category-cloud-item {
	display: inline-block;
	font-weight: bold;
	text-align: center;
	padding: 0.3rem 0.8rem;
	margin: 0;
	vertical-align: middle;
}

.category-list .category-post-count {
	margin-left: 0.1em;
	opacity: 0.5;
}

.category-cloud .category-post-count {
	font-size: 1rem;
	opacity: 0.5;
}

/* Built-in shortcodes  */

iframe, .mejs-container {
	display: block;
	margin: 0 auto 1em auto;
}


/* ==========================================================================
   EVENT GENIUS
   ========================================================================== */

/* General */

.evge-pagination-top, .evge-pagination-bottom, .evge-no-events-icon, .evge-no-events-message h3, .evge-no-events-actions {
	display: none;
}

.evge-no-events-found {
	margin: 0;
	padding: 0;
	background: unset;
}

.evge-no-events-description {
	margin: 0;
	font-size: 1rem;
	color: unset;
}

/* Common styles for custom templates */

.evge-alnus-icon {
	position: relative;
}

.evge-alnus-icon-calendar {
	top: 0.1em;
	margin-right: 0.1em;
}

.evge-alnus-icon-mapmarker {
	top: 0.15em;
	margin-right: 0.4em;
}

.evge-alnus-icon-calendaradd {
	top: 0.05em;
	margin-right: 0.2em;
}

/* Align the Evge buttons with our button design */

.evge-button, .evge-cta {
	font-family: var(--font-family-base) !important;
	font-size: var(--font-size-base) !important;
	line-height: var(--line-height-base) !important;
	margin:  0.2em !important;
	padding: 0.5em 0.7em 0.4em 0.8em !important;
	border-radius: 1.5em !important;
	user-select: none;
}

.evge-cta {
	background: var(--color-contrast-background) !important;
	color: var(--color-contrast-text) !important;
}

.evge-icon-text {
	column-gap: 0.35em;
}

.evge-icon-text svg {
	position: relative;
	top: -0.05em;
}

.evge-single-about-details, .evge-event-list-cost {
	display: none;
} 

/* Calendar sheets (produced by includes/evge.php:alnus_get_calendar_sheet(), appears in several templates) */

.calendar-sheet-wrapper {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	align-items: center;
	column-gap: 0.5em;
	height: min-content;
}

.calendar-sheet {
	display: grid;
	grid-template-columns: 2.7em;
	grid-template-rows: 1.5em 0.8em;
	height: min-content;
	padding: 0.5em 0.1em 0.3em 0.1em;
	text-align: center;
	border-radius: var(--image-border-radius);
}

.calendar-sheet-day {
	font-size: 150%;
	font-weight: normal;
	line-height: 1;
}

.calendar-sheet-month {
	font-size: 80%;
	font-weight: normal;
	line-height: 1;
	text-transform: uppercase;
}

/* Calendar export button (modified, custom template event-genius/common/calender-export.php) */

.evge-export-list-wrap {
	display: block;
	margin: 0 0 1em 0;
}

.evge-export-options-dropdown {
	font-size: inherit;
	line-height: inherit;
} 

/* Event lists custom template (event-genius/events/calendars/partials/list-item.php) */

.evge-calendar-wrapper.evge-calendar-compact-list .evge-calendar-dynamic-content {
    display: block !important;
}

.evge-calendar-wrapper {
	margin: 0 0 var(--spacing-paragraph) 0;
}

.evge-list-layout {
	font-size: 1em;
}

.evge-alnus-event-list-item {
	display: flex;
	flex-flow: row nowrap;
	gap: 0;
	justify-content: flex-start;
	align-items: center;
	max-width: 100%;
	overflow: hidden;
	margin-bottom: 0.4em;
}

.evge-alnus-event-list-item:last-child {
	margin-bottom: -0.4em;
}

.evge-alnus-event-list-item .calendar-sheet-wrapper {
	gap: 0;
}

.evge-alnus-event-list-item .calendar-sheet {
	padding: 0.1em 0 0 0;
}

.evge-alnus-event-list-title {
	position: relative;
	flex: 1;
	margin: 0 0 0 0.5em;
	padding: 2px;
	line-height: 1.4;
	overflow: hidden;
	hyphens: auto;
	word-break: break-word;
}

/* Maps (appear in various templates */

.evge-alnus-map-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 1em;
}

/* Single event page (custom template) */

.evge-ended-notice, .evge-exclamation-notice {
	color: currentColor;
	background: #EEEEEE;
	font-size: inherit;
	padding: 1em;
	margin-bottom: var(--spacing-paragraph);
	border-radius: 1.5em;
}

.evge-alnus-single-event-meta {
	margin-bottom: var(--spacing-paragraph);
}

.evge-alnus-single-event-meta p {
	margin-bottom: 0.3em;
}

.evge-alnus-single-event-featured-image {
	display: block;
	float: right;
	max-height: 400px;
	max-width: 40%;
	margin: 0 0 var(--spacing-grid) var(--spacing-grid); 
}

.evge-alnus-please-register button {
	margin-right: 1em !important;
}

.evge-closed-message, .evge-filled-message {
	color: unset;
	font-size: unset;
}

.evge-alnus-attendee-list {
	font-size: 90%;
}

.evge-alnus-attendee-list thead {
	font-weight: bold;
}

.evge-alnus-attendee-list th, .evge-alnus-attendee-list td {
	padding: var(--spacing-small);
}

#evge-alnus-download-table td {
	border: none;
	padding: 0.3em 0;
}

#evge-alnus-download-table td:first-child {
	padding: 0.3em 0.5em 0.3em 0;
}

#evge-alnus-download-table .button {
	display: block;
	margin: 0;
}

#evge-alnus-download-table, #evge-alnus-mail-button {
	margin-left: 0.5em;
}

/* Venue page (custom template) */

.evge-alnus-single-venue-featured-image {
	display: block;
	float: right;
	max-height: 400px;
	max-width: 40%;
	margin: 0 0 var(--spacing-grid) var(--spacing-grid); 
}

.evge-single-venue .evge-event-list-compact {
	display: none;
}

.evge-alnus-venue-related-events h2 {
	margin-bottom: var(--spacing-paragraph);
}

.evge-alnus-event-list-compact {
	display: flex;
	flex-flow: column nowrap;
	gap: var(--spacing-grid);
}

.evge-alnus-event-list-compact .evge-event-item {
	gap: var(--spacing-grid);
	padding-bottom: 0.7em;
}

.evge-alnus-event-list-compact .calendar-sheet {
	font-size: 120%;
	padding: 0.5em 0.1em 0.3em 0.1em;
}

.evge-alnus-event-list-compact .evge-event-title {
	margin: 0 0 0.3em 0;
}

.evge-alnus-event-list-compact .evge-event-details {
	padding: 0;
}

.evge-alnus-event-list-compact .evge-date-detail {
	margin-bottom: 0;
}

/* Archive and calendar shortcodes */

.evge-archive-wrap {
	width: auto;
}

.evge-tooltipster-base h3 {
	margin-bottom: 0;
}

/* Modal dialogs */

.evge-modal {
	background-color: var(--color-base-background) !important;
	color: var(--color-base-text) !important;
	padding: var(--spacing-content);
	border-radius: var(--modal-border-radius); 
}

.evge-registration-form-wrap, .evge-cancel-form-wrap {
	background-color: var(--color-base-background) !important;
	color: var(--color-base-text) !important;
	padding: 0 !important;
}

.evge-cols {
	gap: var(--spacing-content);
}

.evge-modal-col h2 {
	margin-top: 0;
}

.evge-modal-col-right {
	width: 100%;
}

/*
.evge-modal-title, .evge-modal-title strong {
	font-family: var(--font-family-headings) !important;
	line-height: var(--line-height-headings) !important;
	font-size: var(--font-size-h1) !important;
	font-weight: normal !important;
	text-transform: var(--text-transform-headings);
	margin: 0 0 0.5em 0 !important;
	padding: 0 !important;
	word-break: break-word;
}

.evge-modal .evge-meta p, .evge-modal p {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	margin: 0 0 0.5em 0;
} */

.evge-modal-event-details {
	margin-bottom: var(--spacing-grid);
}

.evge-alnus-modal-featured-image {
	display: block;
	margin: 0 auto var(--spacing-grid) auto;
}

.evge-alnus-modal-featured-image img {
	width: 100%;
	height: auto; 
}

.evge-already-registered, .evge-no-attendees, .evge-single-event-capacity {
	display: inline-block;
	margin: 0.5em 0;
	white-space: nowrap;
}

.evge-modal-submit-wrapper {
	padding-bottom: 0 !important;
}

#evge-registration-form-modal-submit {
	float: right;
}

.evge-green-button {
	background: var(--color-accent-background) !important;
	color: var(--color-accent-text) !important;
}

/* Calendar pop-up (events/calendars/partials/grid-item.php custom template) */

.evge-event-tooltip {
	background-color: var(--color-base-background) !important;
	color: var(--color-base-text) !important;
	padding: 0 !important;
}

.evge-event-list-details {
	background-color: var(--color-base-background) !important;
	color: var(--color-base-text) !important;
	margin: 0 !important;
	padding: 0.5em !important;
}

.evge-event-list-summary {
	margin-bottom: 0 !important;
}


/* ==========================================================================
   LIGHTBOX WITH PHOTOSWIPE
   ========================================================================== */

.pswp__caption__text {
	font-family: var(--font-family-base);
	font-size: calc(var(--font-size-base) * 1.2);
	line-height: var(--line-height-base);
}

/* ==========================================================================
   SEARCH FORMS
   ========================================================================== */

/* Static search form as created by searchform.php */

.search-form {
	display: grid;
	grid-template-columns: 1fr auto;
	max-width: 30em;
}

.search-field {
	min-width: 0;
}

.search-form .button.search-submit {
	margin: 0 0 0 0.5em;
}

/* Dynamic search form as created by includes/template-functions.php:alnus_get_dynamic_searchform() */

.dynamic-search-form {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	height: 2.6em;
	min-width: 2.6em;
	width: 100%;
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	padding: 0;
	margin: 0;
	border-radius: 1.5em;
	border-style: none;
	background: transparent;
}

.dynamic-search-placeholder {
	width: 1em;
}

input.dynamic-search-input {
	display: block;
	justify-self: end;
	padding-left: 0;
	padding-right: 0;
	margin: 0.05em 0;
	border: none;
	border-top-left-radius: 1.3em;
	border-bottom-left-radius: 1.3em;
	border-top-right-radius: 0.5em;
	border-bottom-right-radius: 0.5em;
	width: 0;
	transition: all var(--animation-time) ease-in-out;
	position: relative;
	z-index: 0;
}

input.dynamic-search-input:focus {
	margin: 0.15em 0;
}

.dynamic-search-form.expanded input.dynamic-search-input {
	width: 15em;
	padding-left: 0.8em;
	padding-right: 2em;
	transition: all var(--animation-time) ease-in-out;
}

.dynamic-search-button, .dynamic-submit-button {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 2.6em; /* auto; */
	/* aspect-ratio: 1 / 0.95; doesn't work in some mobile browsers */
	margin: 0;
	padding: 0;
	border: none;
}

.dynamic-search-button .dashicons, .dynamic-submit-button .dashicons {
	position: absolute;
	font-size: 160%;
	top: 0.35em;
	left: 0.35em;
}

.dynamic-search-button {
	z-index: 20;
}

.dynamic-submit-button {
	z-index: 10;
}

.dynamic-search-form.expanded .dynamic-search-button {
	display: none;
	pointer-events: none;
}


/* ==========================================================================
   COLOR AND DECORATION CLASSES
   ========================================================================== */

/* We have to be very specific here because for : pseudo classes, a parent's class normally takes precedence 
	over the child's class if elements with color classes are nested. I don't know why. */

/* Base colors */

.color-base {
	--background-color: var(--color-base-background);
	color: var(--color-base-text);
	background-color: var(--color-base-background);
}

.color-base.pass-background * {
	background-color: var(--color-base-background);
}

.color-base:not(:has(.color-accent, .color-contrast, .color-signal)) a {
	color: var(--color-base-link);
}

.color-base:not(:has(.color-accent, .color-contrast, .color-signal)) a:visited {
	color: var(--color-base-link-visited);
}

.color-base:not(:has(.color-accent, .color-contrast, .color-signal)) :is(a:hover, a:active) {
	color: var(--color-base-link-hover);
}

.color-base.no-link-visited-color:not(:has(.color-accent, .color-contrast, .color-signal)) a:visited {
	color: var(--color-base-link);
}

.color-base.no-link-colorchange:not(:has(.color-accent, .color-contrast, .color-signal)) :is(a, a:visited, a:hover, a:active) {
	color: var(--color-base-link);
}

/* Accent colors */

.color-accent {
	--background-color: var(--color-accent-background);
	color: var(--color-accent-text);
	background-color: var(--color-accent-background);
}

.color-accent.pass-background * {
	background-color: var(--color-accent-background);
}

.color-accent:not(:has(.color-base, .color-contrast, .color-signal)) a {
	color: var(--color-accent-link);
}

.color-accent:not(:has(.color-base, .color-contrast, .color-signal)) a:visited {
	color: var(--color-accent-link-visited);
}

.color-accent:not(:has(.color-base, .color-contrast, .color-signal)) :is(a:hover, a:active) {
	color: var(--color-accent-link-hover);
}

.color-accent.no-link-visited-color:not(:has(.color-base, .color-contrast, .color-signal)) a:visited {
	color: var(--color-accent-link);
}

.color-accent.no-link-colorchange:not(:has(.color-base, .color-contrast, .color-signal)) :is(a, a:visited, a:hover, a:active) {
	color: var(--color-accent-link);
}

/* Contrast colors */

.color-contrast {
	--background-color: var(--color-contrast-background);
	color: var(--color-contrast-text);
	background-color: var(--color-contrast-background);
}

.color-contrast.pass-background * {
	background-color: var(--color-contrast-background);
}

.color-contrast:not(:has(.color-accent, .color-base, .color-signal)) a {
	color: var(--color-contrast-link);
}

.color-contrast:not(:has(.color-accent, .color-base, .color-signal)) a:visited {
	color: var(--color-contrast-link-visited);
}

.color-contrast:not(:has(.color-accent, .color-base, .color-signal)) :is(a:hover, a:active) {
	color: var(--color-contrast-link-hover);
}

.color-contrast.no-link-visited-color:not(:has(.color-accent, .color-base, .color-signal)) a:visited {
	color: var(--color-contrast-link);
}

.color-contrast.no-link-colorchange:not(:has(.color-accent, .color-base, .color-signal)) :is(a, a:visited, a:hover, a:active) {
	color: var(--color-contrast-link);
}

/* Signal colors */

.color-signal {
	--background-color: var(--color-signal-background);
	color: var(--color-signal-text);
	background-color: var(--color-signal-background);
}

.color-signal.pass-background * {
	background-color: var(--color-signal-background);
}

.color-signal:not(:has(.color-accent, .color-contrast, .color-base)) a {
	color: var(--color-signal-link);
}

.color-signal:not(:has(.color-accent, .color-contrast, .color-base)) a:visited {
	color: var(--color-signal-link-visited);
}

.color-signal:not(:has(.color-accent, .color-contrast, .color-base)) :is(a:hover, a:active) {
	color: var(--color-signal-link-hover);
}

.color-signal.no-link-visited-color:not(:has(.color-accent, .color-contrast, .color-base)) a:visited {
	color: var(--color-signal-link);
}

.color-signal.no-link-colorchange:not(:has(.color-accent, .color-contrast, .color-base)) :is(a, a:visited, a:hover, a:active) {
	color: var(--color-signal-link);
}

/* Color modification classes */

.darker {
	background-color: color-mix(in hsl, var(--background-color) 70%, black 30%);
}

.lighter {
	background-color: color-mix(in hsl, var(--background-color) 70%, white 30%);
}

.color-base .lighter, .color-base.lighter {
	background-color: color-mix(in hsl, var(--background-color) 80%, gray 20%);
}

/* Other color and decoration classes */

/* This class prevents links from getting a different color at all. */
.no-link-color a, .no-link-color a:hover, .no-link-color a:active, .no-link-color a:visited {
	color: inherit !important;
}

/* This class makes links show a text decoration only on hovering (default is to always underline). */
.link-underline-hover a:not(:hover):not(:active) {
	text-decoration: none !important;
}

/* This class prevents links from being underlined at all */
.link-underline-none a, .link-underline-none a:hover, .link-underline-none a:active, .link-underline-none a:visited {
	text-decoration: none !important;
}

/* The wp-backend color class overrides all others. Elements with this class are not supposed to have elements with other color classes inside them. */
.color-wp-backend, .color-wp-backend a, .color-wp-backend a:hover, .color-wp-backend a:active, .color-wp-backend a:visited {
	color: white !important;
	background: #1d2327 !important;
}


/* ==========================================================================
   OTHER GENERAL CLASSES
   ========================================================================== */

.hidden {
	display: none;
}

.small {
	font-size: 90%; 
}

.nowrap {
	white-space: nowrap;
}

.fullwidth {
	width: 100%;
}

.screen-reader-text {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--spacing-small);
  background: var(--color-focus);
  color: var(--color-background);
  font-weight: 700;
}

/* Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* Focus Indicators. The keyboard-navigation class is assigned to the <html> element by a JavaScript event listener 
	(see js/navigation.js) on the first press of the Tab key.  */
:root.keyboard-navigation *:focus {
  outline: var(--focus-outline-width) solid var(--color-focus);
  outline-offset: var(--focus-outline-offset);
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  h2, h3, h4 {
    page-break-after: avoid;
  }
}

