/*!
Theme Name: Kultur Moosburg Theme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.6
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kultur-moosburg-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Kultur Moosburg Theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li>ul,
li>ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	padding: 0 1.5rem 3rem;
	/* Remove top padding, handled by Hero Margin */
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.main-navigation a:hover,
.main-navigation a:focus {
	text-decoration: underline;
}

/* Current menu item highlighting */
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
	text-decoration: underline;
	font-weight: 600;
}

/* Mobile navigation specific styles */
#mobile-primary-menu a {
	padding: 0.5rem 0;
	display: block;
}

#mobile-primary-menu a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	padding-left: 0.5rem;
	transition: all 0.2s ease;
}

@media screen and (min-width: 768px) {
	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}


/*--------------------------------------------------------------
# Event Section Cards & Vereins-Seite
--------------------------------------------------------------*/
.event-section-card {
	background-color: #ffffff;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
	border: 1px solid transparent;
	/* Platzhalter für farbigen Rahmen */
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.event-section-card {
		padding: 48px;
	}
}

/* Themes / Farbige Rahmen */
.event-theme--sommerfestival .event-section-card,
.home-block--sommerfestival .event-section-card {
	border-color: #4C1D95;
	/* Sommerfestival Lila */
}

.event-theme--verein .event-section-card,
.home-block--more-events .event-section-card {
	border-color: #A5037C;
	/* Vereins-Magenta */
}

.event-section-card--join .button {
	text-transform: none;
	font-weight: 600;
	padding: 12px 32px;
	border-radius: 9999px;
}

/* Verein Stats Grid */
.verein-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 2rem;
	text-align: center;
}

@media (min-width: 768px) {
	.verein-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.verein-stat__icon {
	font-size: 3rem;
	margin-bottom: 0.5rem;
	opacity: 0.8;
}

.verein-stat__value {
	font-size: 2.5rem;
	font-weight: 800;
	color: #A5037C;
	line-height: 1.1;
	margin-bottom: 0.25rem;
}

.verein-stat__label {
	font-size: 1.125rem;
	font-weight: 600;
	color: #4B5563;
}

/* Verein Board & Team Lists */
.verein-board-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.verein-board-layout {
		grid-template-columns: 1fr 1fr;
	}
}

.verein-board__list,
.verein-team__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.verein-board__list li,
.verein-team__list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.verein-board__list li:last-child,
.verein-team__list li:last-child {
	border-bottom: none;
}

/* Front Page Blocks */
.home-block {
	margin-bottom: 3rem;
	padding: 0 1rem;
	/* Mobile Padding für Wrapper */
}

@media (min-width: 1024px) {
	.home-block {
		margin-bottom: 4rem;
		padding: 0;
	}
}

.home-block__inner {
	width: 100%;
}

/* Remove default prose margins inside cards for cleaner look */
.event-section-card h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.875rem;
	font-weight: 700;
	color: #111827;
}

/* Map specific override if used in card */
.event-section-card .map-container {
	border-radius: 16px;
	overflow: hidden;
	margin-top: 1.5rem;
}

/*--------------------------------------------------------------
# Custom Hero Buttons
--------------------------------------------------------------*/

/* Basis-Stile fÃ¼r Hero-Buttons */
.hero-cta {
	font-weight: 600;
	border-radius: 9999px;
}

/* PrimÃ¤rer Hero-Button: "Zum Sommerfestival" */
.hero-cta-primary {
	background-color: #ffffff;
	color: #A5037C;
}

.hero-cta-primary:hover,
.hero-cta-primary:focus-visible {
	background-color: #FDF2F8;
}

/* SekundÃ¤rer Hero-Button: "Mehr Ã¼ber den Verein" */
.hero-cta-secondary {
	color: #ffffff !important;
	border-color: #ffffff !important;
	background-color: transparent;
}

/* Hover-/Focus-ZustÃ¤nde fÃ¼r gute Lesbarkeit */
.hero-cta-secondary:hover,
.hero-cta-secondary:focus-visible {
	color: #ffffff !important;
	border-color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.12);
}



/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Custom: Event Timeline
--------------------------------------------------------------*/

.timeline-item {
	position: relative;
}

.timeline-item-dot {
	/* ZusÃ¤tzlicher Hook fÃ¼r Tailwind-Klassen, falls nÃ¶tig.
	   Der eigentliche Style wird durch Tailwind-Klassen
	   im Template gesetzt. Dieser Block dient nur als Fallback. */
	box-shadow: 0 0 0 2px #ffffff;
}

/*--------------------------------------------------------------
# Component: Event Image Strip
--------------------------------------------------------------*/
.event-image-strip {
	position: relative;
	width: 100%;
	/* Optional: z-index niedrig, damit Header drÃ¼ber bleibt */
	z-index: 10;
}

/* Container fÃ¼r die Tracks (Maske) */
.event-image-strip-inner {
	display: flex;
	overflow: hidden;
	width: 100%;
	/* Maskierung fÃ¼r weiche RÃ¤nder links/rechts (optional, aber nice) */
	-webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
	mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Der sich bewegende Track */
.event-image-strip-track {
	display: flex;
	/* WICHTIG: Animation definiert in Keyframes */
	animation: event-image-strip-scroll 45s linear infinite;
	will-change: transform;
}

/* Hover-Pausierung */
.event-image-strip-inner:hover .event-image-strip-track {
	animation-play-state: paused;
}

/* Keyframes fÃ¼r Links-Scroll */
@keyframes event-image-strip-scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		/* Wir schieben den Track um -100% seiner eigenen Breite nach links.
		   Da wir zwei Tracks haben, schiebt sich der zweite genau nach. */
		transform: translateX(-100%);
	}
}

/* Mobile Anpassung: langsamer, wenn nÃ¶tig */
@media (max-width: 640px) {
	.event-image-strip-track {
		animation-duration: 60s;
	}
}

/*--------------------------------------------------------------
# Component: Hero Front Page (Mosaic)
--------------------------------------------------------------*/
.hero-front-page {
	/* Basis-Styling passiert Ã¼ber Tailwind, hier nur Spezifika */
}

/* Initialzustand der Mosaik-Items */
.hero-mosaic-item {
	opacity: 0;
	transform: translateY(10px);
}

/* Animations-Klasse */
.hero-mosaic-item--animate {
	animation: hero-mosaic-fade-in 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes hero-mosaic-fade-in {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Barrierefreiheit: Keine Animation bei Reduced Motion */
@media (prefers-reduced-motion: reduce) {

	.hero-mosaic-item,
	.hero-mosaic-item--animate {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* -------------------------------------------------------------
 * Sticky Header Logic
 * ------------------------------------------------------------- */

/* Basis-Layout für den Site-Header */
/*
	.site-header {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 50;
		background-color: #A5037C !important;
		transition:
			box-shadow 150ms ease,
			transform 150ms ease;
	}
*/

/* Wenn im Adminbereich die Toolbar sichtbar ist: Header darunter platzieren */
body.admin-bar #site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar #site-header {
		top: 46px;
		/* Mobile-Adminbar */
	}
}

/* Zustand bei Scroll: leichter Shadow */
.site-header.is-scrolled {
	box-shadow: 0 10px 25px -20px rgba(15, 23, 42, 0.6);
}

/* Navigation: Immer weiÃe Schrift */
/*
	.site-header__inner,
	.site-header__inner a,
	.site-header__inner button {
		color: #ffffff;
	}

	.site-header__inner a:hover,
	.site-header__inner a:focus-visible {
		color: #ffffff;
		opacity: 0.85;
	}


	.site-header.is-scrolled button.md\:hidden {
		border-color: rgba(255, 255, 255, 0.4);
		color: #ffffff;
	}
	*/
/* Header: Logo nicht höher als Navigation */
#site-header .header-logo,
#site-header .header-logo-link {
	display: inline-flex;
	align-items: center;
}

/* Standard-WP-Logo (the_custom_logo gibt img.custom-logo aus) */
#site-header img.custom-logo,
#site-header .header-logo-img {
	display: block;
	height: auto;
	max-height: 48px;
	/* Desktop */
	width: auto;
}

/* Mobil etwas kleiner */
@media (max-width: 768px) {

	#site-header img.custom-logo,
	#site-header .header-logo-img {
		max-height: 40px;
	}
}

/* Header auf Desktop immer voll sichtbar, keine Einfahr-Animation */
@media (min-width: 1024px) {

	#site-header,
	.site-header,
	#site-header.is-scrolled,
	.site-header.is-scrolled,
	#site-header.is-hidden,
	.site-header.is-hidden {
		position: sticky;
		top: 0;
		transform: none !important;
		margin-top: 0 !important;
		transition: none !important;
		z-index: 50;
	}
}

/* Event: Ticket-Button immer mit weißer Schrift */
.event-ticket-button {
	color: #fff !important;
}

.event-ticket-button:hover,
.event-ticket-button:focus-visible {
	color: #fff !important;
}

.event-ticket-button {
	color: #ffffff !important;
}

.event-ticket-button:hover,
.event-ticket-button:focus-visible {
	color: #ffffff !important;
}

/* Global Hero Spacing (Header GAP) */
.km-page-hero,
.km-hero {
	/* Ensure both classes work */
	margin-top: 2rem;
	/* Reduced from 2.5rem */
	border-radius: 32px;
	/* Explicit roundness */
}

@media (max-width: 768px) {

	.km-page-hero,
	.km-hero {
		margin-top: 1rem;
		/* Reduced from 1.5rem */
		border-radius: 24px;
	}
}

/*--------------------------------------------------------------
# Home Section Cards
--------------------------------------------------------------*/
.home-section {
	max-width: 1100px;
	margin: 0 auto 3rem auto;
	padding: 2.5rem 2.25rem;
	border-radius: 24px;
	background: #ffffff;
	border: 2px solid transparent;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.home-section--festival {
	border-color: #4C1D95;
}

.home-section--events {
	border-color: #A5037C;
}

.home-section--past-artists {
	border: none;
	background: transparent;
	box-shadow: none;
	padding-left: 0;
	padding-right: 0;
}

.home-section--image-strip {
	border: none;
	background: transparent;
	box-shadow: none;
	padding-left: 0;
	padding-right: 0;
}

.home-section--verein {
	border-color: #A5037C;
}

.home-section h2 {
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}

.home-section p {
	margin-bottom: 1.25rem;
}

/*--------------------------------------------------------------
# Page Template: Der Verein
--------------------------------------------------------------*/
.site-main--verein {
	max-width: 1100px;
	margin: 0 auto 3rem auto;
	padding: 1.5rem 1.5rem 3rem;
}

.site-main--verein .km-page-hero {
	margin-bottom: 4rem;
}

@media (max-width: 767px) {
	.site-main--verein .km-page-hero {
		margin-bottom: 2.5rem;
	}
}

/*--------------------------------------------------------------
# Global Hero Button System
--------------------------------------------------------------*/
:root {
	--km-hero-accent-color: #A5037C;
	/* Default / Verein */
}

/* Page Specific Accents */
body.page-template-page-sommerfestival {
	--km-hero-accent-color: #4C1D95;
	/* Sommerfestival Purple as per prompt */
}

/* Hero Button Base */
.km-hero-btn {
	border: 2px solid transparent;
	/* Prepare for border */
}

/* Primary Button (Left): White Filled with Accent Text (Default for Dark BG) */
.km-hero-btn--primary {
	background-color: #ffffff;
	color: var(--km-hero-accent-color);
	border-color: #ffffff;
}

.km-hero-btn--primary:hover,
.km-hero-btn--primary:focus {
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--km-hero-accent-color);
}

/* Page Specific Accents & Gradients */
/* Ensure white text is default for all these dark gradients */

/* 1. VEREIN (Startseite & Verein) - Magenta/Pink -> Purple */
.km-hero--verein {
	background: linear-gradient(135deg, #A5037C 0%, #4C1D95 100%);
	--km-hero-accent-color: #A5037C;
	color: #ffffff;
}

/* Ensure headings in hero inherit white or are forced white */
.km-hero--verein h1,
.km-hero--verein h2,
.km-hero--verein h3 {
	color: #ffffff;
}

/* 2. SOMMERFESTIVAL - Deep Purple -> Lighter Purple */
.km-hero--sommerfestival {
	background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%);
	--km-hero-accent-color: #4C1D95;
	/* Purple Text for Buttons */
	color: #ffffff;
}

.km-hero--sommerfestival h1,
.km-hero--sommerfestival h2,
.km-hero--sommerfestival h3 {
	color: #ffffff;
}

/* 3. VERANSTALTUNGEN - Blue */
.km-hero--veranstaltungen {
	background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
	--km-hero-accent-color: #2563EB;
	color: #ffffff;
}

.km-hero--veranstaltungen h1,
.km-hero--veranstaltungen h2,
.km-hero--veranstaltungen h3 {
	color: #ffffff;
}

/* 4. KONTAKT - Violet */
.km-hero--kontakt {
	background: linear-gradient(135deg, #6D28D9 0%, #A78BFA 100%);
	--km-hero-accent-color: #6D28D9;
	/* For button text inside white button */
	color: #ffffff;
}

.km-hero--kontakt h1,
.km-hero--kontakt h2,
.km-hero--kontakt h3 {
	color: #ffffff;
}

/* 5. VERGANGENHEIT - Gray */
.km-hero--vergangenheit {
	background: linear-gradient(135deg, #4B5563 0%, #9CA3AF 100%);
	--km-hero-accent-color: #4B5563;
	color: #ffffff;
}

.km-hero--vergangenheit h1,
.km-hero--vergangenheit h2,
.km-hero--vergangenheit h3 {
	color: #ffffff;
}

/* Styles for the Global Hero Component (.km-hero) are defined via Tailwind classes in template-helpers.php (flex, gap-8 etc) 
   But we can enforce global layout constraints here if needed */

.km-hero {
	/* Reduced top margin for smaller gap to header */
	margin-top: 1.5rem;
	margin-bottom: 3rem;
	/* Standardized Radius */
	border-radius: 32px;
	padding: 3rem;
	/* Adequate inner padding */
	/* Box Shadow */
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	/* shadow-xl equivalent */
	position: relative;
	overflow: hidden;
}

@media (max-width: 768px) {
	.km-hero {
		border-radius: 20px;
		padding: 2rem 1.5rem;
		margin-top: 1rem;
		margin-bottom: 2rem;
	}
}

/* Button Refinements for Robustness */
.km-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 9999px;
	font-weight: 600;
	transition: all 0.2s ease;
	text-decoration: none;
	font-size: 1rem;
	line-height: 1.5;
}

/* Primary: White BG, Accent Text */
.km-hero-btn--primary {
	background-color: #ffffff !important;
	color: var(--km-hero-accent-color) !important;
	border: 2px solid #ffffff !important;
}

.km-hero-btn--primary:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
}

/* Secondary: Transparent BG, White Border, White Text */
.km-hero-btn--secondary {
	background-color: transparent !important;
	color: #ffffff !important;
	border: 2px solid #ffffff !important;
}

.km-hero-btn--secondary:hover {
	background-color: rgba(255, 255, 255, 0.15) !important;
}

/*--------------------------------------------------------------
# Page Template: Sommerfestival
--------------------------------------------------------------*/
.page-hero--sommerfestival {
	margin: 0 auto 2.5rem;
	border-radius: 24px;
	background: #ffffff;
	padding: 2rem;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-hero--sommerfestival .page-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 960px) {
	.page-hero--sommerfestival .page-hero__inner {
		grid-template-columns: 1fr 0.8fr;
	}
}

.page-hero--sommerfestival .page-hero__kicker {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #EF7D00;
	/* Sommerfestival Orange */
}

.page-hero--sommerfestival .page-hero__title {
	font-size: 2.5rem;
	line-height: 1.1;
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: #111827;
}

.page-hero--sommerfestival .page-hero__intro {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #4b5563;
	margin-bottom: 2rem;
	max-width: 540px;
}

.page-hero--sommerfestival .page-hero__media {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(239, 125, 0, 0.15);
	/* Orange glow */
	aspect-ratio: 4/3;
}

.page-hero--sommerfestival .page-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*--------------------------------------------------------------
# Page Template: Der Verein
--------------------------------------------------------------*/
.page-hero--verein {
	/* Standardized to match Sommerfestival structure */
	margin: 0 auto 2.5rem;
	border-radius: 24px;
	background: #fff;
	/* or light gray? Prompt says Verein uses #A5037C accents */
	/* box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); handled by page-section usually? */
	padding: 2rem;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-hero--verein .page-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 960px) {
	.page-hero--verein .page-hero__inner {
		grid-template-columns: 1fr 0.8fr;
		/* Content wider than image */
	}
}

.page-hero--verein .page-hero__kicker {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #A5037C;
}

.page-hero--verein .page-hero__title {
	font-size: 2.5rem;
	line-height: 1.1;
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: #111827;
	/* Dark text, accents purple */
}

.page-hero--verein .page-hero__title span {
	color: #A5037C;
}

.page-hero--verein .page-hero__intro {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #4b5563;
	margin-bottom: 2rem;
	max-width: 540px;
}

.page-hero--verein .page-hero__actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Button overrides as requested */
.page-hero--verein .btn--primary {
	background-color: #A5037C;
	color: #ffffff;
	border: 2px solid #A5037C;
	/* Ensure border matches */
}

.page-hero--verein .btn--primary:hover {
	filter: brightness(1.05);
	/* or background darken */
	background-color: #8a0268;
	border-color: #8a0268;
}

.page-hero--verein .btn--ghost {
	background: transparent;
	border: 2px solid #A5037C;
	color: #A5037C;
}

.page-hero--verein .btn--ghost:hover {
	background: rgba(165, 3, 124, 0.05);
}

.page-hero--verein .page-hero__media {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(165, 3, 124, 0.15);
	/* Purple glow? */
	aspect-ratio: 4/3;
}

.page-hero--verein .page-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-section {
	margin: 0 auto 1.5rem;
	padding: 2rem 2.25rem;
	border-radius: 20px;
	background: #ffffff;
	border: 1px solid rgba(165, 3, 124, 0.15);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-section h2 {
	font-size: 1.85rem;
	margin-bottom: 1.5rem;
	color: #A5037C;
	font-weight: 700;
}

/* Team Styles */
.page-section--verein-team {
	text-align: center;
}

.page-section--verein-team h2 {
	margin-bottom: 0.75rem;
}

.page-section--verein-team .page-section__intro {
	max-width: 640px;
	margin: 0 auto 1.5rem;
}

.verein-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	justify-items: center;
	margin-bottom: 1.5rem;
}

.verein-team-card {
	max-width: 220px;
	padding: 1.25rem 1rem;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid rgba(165, 3, 124, 0.15);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
	width: 100%;
}

.verein-team-card__avatar {
	margin: 0 auto 0.75rem;
	width: 72px;
	height: 72px;
	border-radius: 999px;
	overflow: hidden;
}

.verein-team-card__image,
.verein-team-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.verein-team-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #A5037C;
	color: #ffffff;
	font-weight: 700;
	font-size: 1.5rem;
}

.verein-team-card__name {
	margin: 0 0 0.25rem;
	font-size: 1rem;
}

.verein-team-card__role {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	color: #6b7280;
}

.verein-team-card__quote {
	margin: 0;
	font-size: 0.85rem;
	color: #4b5563;
}

.verein-team-list {
	text-align: left;
	max-width: 640px;
	margin: 0.5rem auto 0;
}

.verein-team-list h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.verein-team-list ul {
	padding-left: 1.2rem;
	margin: 0;
}

.verein-team-list li {
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------
# Home Marquee (Vergangene Künstler) - Unchanged
-------------------------------------------------------------- */
.home-marquee-wrapper {
	overflow: hidden;
	position: relative;
	width: 100%;
	mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.home-marquee-track {
	display: flex;
	width: max-content;
	gap: 1.5rem;
	/* gap-6 equivalent */
	animation: km-marquee 80s linear infinite;
	padding: 10px 0;
}

.home-marquee-track:hover {
	animation-play-state: paused;
}

@keyframes km-marquee {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

/* Ensure cards in marquee have fixed width to look consistent */
.home-marquee-card {
	width: 280px;
	flex-shrink: 0;
}

/* Mobil quicker/different? Optional */
@media (max-width: 768px) {
	.home-marquee-track {
		animation-duration: 40s;
	}

	.home-marquee-card {
		width: 220px;
	}
}

/* --------------------------------------------------------------
# Impressions Marquee (Auto-Scroll) - Unchanged
-------------------------------------------------------------- */
.impressions-marquee {
	overflow: hidden;
	position: relative;
	/* Optional mask for soft edges */
	mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
	/* Hide Scrollbar */
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
}

.impressions-marquee::-webkit-scrollbar {
	display: none;
}

.impressions-track {
	display: flex;
	gap: 1.5rem;
	width: max-content;
	animation: impressions-scroll 60s linear infinite;
	will-change: transform;
	padding: 10px 0;
}

.impressions-track:hover {
	animation-play-state: paused;
}

.impressions-item {
	flex: 0 0 auto;
	width: 200px;
	height: 140px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease;
}

.impressions-item:hover {
	transform: scale(1.02);
}

.impressions-item__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes impressions-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

/* --------------------------------------------------------------
# Past Artist Card
-------------------------------------------------------------- */
.past-artist-card {
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.past-artist-card__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background-color: #f9fafb;
	height: 100%;
	border-radius: 0 12px 12px 0;
}

.past-artist-card__media {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.past-artist-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.past-artist-card__content {
	flex: 1 1 auto;
	min-width: 0;
}

/* --------------------------------------------------------------
# Verein Facts (Icons)
-------------------------------------------------------------- */
.verein-fact {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.verein-fact__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.verein-fact__content h3 {
	margin: 0 0 0.25rem;
}

.verein-fact__content p {
	margin: 0;
}