/* Edelweiß Lochbühl – Volltreffer-Design */

:root {
	--ew-tanne: var(--wp--preset--color--tanne, #0F2A1F);
	--ew-gold: var(--wp--preset--color--gold, #F5B83D);
	--ew-radius: 24px;
	--ew-rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23F5B83D' stroke-width='2'%3E%3Ccircle cx='200' cy='200' r='195' stroke-opacity='.10'/%3E%3Ccircle cx='200' cy='200' r='155' stroke-opacity='.15'/%3E%3Ccircle cx='200' cy='200' r='115' stroke-opacity='.2'/%3E%3Ccircle cx='200' cy='200' r='75' stroke-opacity='.28'/%3E%3Ccircle cx='200' cy='200' r='38' stroke-opacity='.36'/%3E%3C/g%3E%3Ccircle cx='200' cy='200' r='12' fill='%23F5B83D'/%3E%3C/svg%3E");
	--ew-rings-dunkel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%230F2A1F' stroke-width='3' stroke-opacity='.18'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Ccircle cx='200' cy='200' r='140'/%3E%3Ccircle cx='200' cy='200' r='90'/%3E%3Ccircle cx='200' cy='200' r='45'/%3E%3C/g%3E%3Ccircle cx='200' cy='200' r='14' fill='%230F2A1F'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* Kopfzeile */
.ew-header { position: sticky; top: 0; z-index: 50; }
.ew-header .wp-block-navigation a:hover { color: var(--ew-gold); }
.ew-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ew-tanne); color: #F6F2E9; }
.ew-header .wp-block-site-logo img { border-radius: 999px; }

/* Badge */
p.is-style-badge {
	display: inline-block;
	background: var(--ew-gold);
	color: var(--ew-tanne);
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.4em 1em;
	border-radius: 999px;
	transform: rotate(-2deg);
	width: fit-content;
}

/* Karten */
.wp-block-group.is-style-karte,
.wp-block-group.is-style-karte-dunkel {
	border-radius: var(--ew-radius);
	padding: clamp(1.25rem, 3vw, 1.9rem);
	transition: transform .25s ease, box-shadow .25s ease;
	position: relative;
	overflow: hidden;
}
.wp-block-group.is-style-karte { background: #fff; box-shadow: 0 1px 3px rgba(15,42,31,.12); }
.wp-block-group.is-style-karte-dunkel { background: var(--ew-tanne); color: #F6F2E9; }
.wp-block-group.is-style-karte-dunkel :where(h1,h2,h3,h4,a) { color: #F6F2E9; }
.wp-block-group.is-style-karte:hover,
.wp-block-group.is-style-karte-dunkel:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 18px 40px rgba(15,42,31,.22); }

/* ganze Karte klickbar: Link in der Überschrift */
.ew-klickbar h3 a::after, .ew-klickbar h4 a::after { content: ""; position: absolute; inset: 0; }
.ew-klickbar h3 a, .ew-klickbar h4 a { text-decoration: none; }

/* Zielscheibe als Deko */
.wp-block-group.is-style-zielscheibe { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-group.is-style-zielscheibe::before {
	content: "";
	position: absolute;
	width: min(760px, 120vw);
	aspect-ratio: 1;
	right: -12%;
	top: -18%;
	background: var(--ew-rings) center / contain no-repeat;
	z-index: -1;
	pointer-events: none;
}
.has-gold-background-color.is-style-zielscheibe::before { background-image: var(--ew-rings-dunkel); width: 420px; right: -110px; top: auto; bottom: -110px; }

/* Schräge Kanten */
.wp-block-group.is-style-schraeg-unten { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%); padding-bottom: calc(var(--wp--preset--spacing--60) + 5vw) !important; }
.wp-block-group.is-style-schraeg-oben { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--wp--preset--spacing--60) + 5vw) !important; }

/* Gekippte Bilder */
.wp-block-image.is-style-gekippt-links img,
.wp-block-image.is-style-gekippt-rechts img { border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.30); transition: transform .3s ease; }
.wp-block-image.is-style-gekippt-links img { transform: rotate(-4deg); }
.wp-block-image.is-style-gekippt-rechts img { transform: rotate(4deg); }
.wp-block-image.is-style-gekippt-links:hover img,
.wp-block-image.is-style-gekippt-rechts:hover img { transform: rotate(0) scale(1.02); }

/* Laufband */
p.is-style-laufband {
	background: var(--ew-gold);
	color: var(--ew-tanne);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(1.1rem, 2.2vw, 1.6rem);
	white-space: nowrap;
	overflow: hidden;
	padding: 0.7rem 0;
	margin-top: -2.5rem !important;
	margin-left: -4vw !important;
	margin-right: -4vw !important;
	transform: rotate(-2deg);
	position: relative;
	z-index: 2;
	max-width: none !important;
}
p.is-style-laufband > * , p.is-style-laufband { --ew-dauer: 28s; }
.ew-laufband-inhalt { display: inline-block; animation: ew-lauf var(--ew-dauer) linear infinite; }
@keyframes ew-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Buttons */
.wp-block-button__link { transition: transform .2s ease, background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px) scale(1.03); }
.wp-block-button.is-style-umriss-hell .wp-block-button__link { background: transparent; color: #F6F2E9; border: 2px solid rgba(246,242,233,.55); }
.wp-block-button.is-style-umriss-hell .wp-block-button__link:hover { border-color: var(--ew-gold); color: var(--ew-gold); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; }

/* Große Zahlen */
.ew-zahl { font-family: var(--wp--preset--font-family--display); font-weight: 800; line-height: .9; letter-spacing: -0.03em; }

/* Ehrentafel */
.wp-block-table.is-style-ehrentafel table { border-collapse: separate; border-spacing: 0 6px; }
.wp-block-table.is-style-ehrentafel td, .wp-block-table.is-style-ehrentafel th { border: 0; padding: .6rem .9rem; }
.wp-block-table.is-style-ehrentafel thead th { background: var(--ew-tanne); color: #F6F2E9; text-align: left; }
.wp-block-table.is-style-ehrentafel tbody tr { background: #fff; }
.wp-block-table.is-style-ehrentafel tbody td:first-child { font-family: var(--wp--preset--font-family--display); font-weight: 800; color: #9A6A12; width: 5.5rem; }
.wp-block-table.is-style-ehrentafel figcaption { text-align: left; }

/* Fußzeile */
.ew-footer a { color: #C9D4CD; font-weight: 600; }
.ew-footer a:hover { color: var(--ew-gold); }

/* Termine-Kalender (The Events Calendar) an Farben anpassen */
:root {
	--tec-color-accent-primary: #0F2A1F;
	--tec-color-accent-primary-hover: #23543F;
	--tec-color-button-primary: #0F2A1F;
	--tec-font-family-sans-serif: Manrope, system-ui, sans-serif;
	--tec-border-radius-default: 14px;
}

/* Fokus sichtbar */
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--ew-gold); outline-offset: 3px; }

/* Bewegung reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 781px) {
	.wp-block-image.is-style-gekippt-links img, .wp-block-image.is-style-gekippt-rechts img { transform: rotate(-2deg); }
	p.is-style-laufband { margin-top: -1.5rem !important; }
}

@media (max-width: 899px) { .ew-nur-desktop { display: none !important; } }

.ew-klickbar.wp-block-cover h3 { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
.wp-block-cover :where(h1,h2,h3,h4,a) { color: #F6F2E9; }
.wp-block-cover a:hover { color: var(--ew-gold); }
@media (max-width: 781px) {
	.wp-block-group.is-style-zielscheibe::before { right: -55%; top: -10%; opacity: .55; }
	.wp-block-group.is-style-karte-dunkel.is-style-zielscheibe::before { right: -70%; top: 35%; }
	.has-gold-background-color.is-style-zielscheibe::before { right: -200px; bottom: -200px; }
}
