/*
Theme Name:   Stadt Obermoschel
Theme URI:    https://obermoschel.de/
Description:  Child-Theme von Twenty Twenty-Five für die Stadt Obermoschel: Stadtblau, Luftbild-Header mit Wappen, Schnellzugriffe, Neuigkeiten und Footer mit Pflichtlinks.
Author:       Stadt Obermoschel
Template:     twentytwentyfive
Version:      1.2.0
Requires at least: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  obermoschel
*/

/* ---------- Kalender (The Events Calendar) im Stadtblau ---------- */
:root {
	--tec-color-accent-primary: #1D4E89;
	--tec-color-accent-primary-hover: #143A66;
	--tec-color-accent-primary-active: #143A66;
	--tec-color-button-primary: #1D4E89;
	--tec-color-link-accent: #1D4E89;
}

/* „iCalendar“ im Abo-Menü auch auf Android zeigen (für ICSx⁵) */
.tec-is-android .tribe-events-c-subscribe-dropdown__list-item--ical {
	display: list-item !important;
}

/* Termin-Liste (Events Shortcodes): doppelten „Mehr“-Link ausblenden – Titel und Bild verlinken bereits */
.ect-events-read-more {
	display: none;
}

/* ---------- Schnellzugriff-Karten auf der Startseite ---------- */
.om-card {
	transition: transform .15s ease, box-shadow .15s ease;
}
.om-card:hover,
.om-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(29, 78, 137, .15);
}
.om-card a {
	text-decoration: none;
}
.om-card a::after { /* ganze Karte klickbar */
	content: "";
	position: absolute;
	inset: 0;
}
.om-card { position: relative; }

/* Footer-Linkliste ohne Aufzählungspunkte */
.om-footer-links {
	list-style: none;
	padding-left: 0;
}
.om-footer-links li { margin-bottom: .35em; }

/* Sichtbarer Tastaturfokus */
a:focus-visible {
	outline: 3px solid currentColor; /* hebt sich auf Weiß und auf Stadtblau ab */
	outline-offset: 2px;
}
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid #1D4E89;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #FFFFFF; /* weißer Ring trennt Button und Fokusrahmen */
}

/* Wappen im Hero mit leichtem Schatten, damit es auf dem Foto steht */
.om-hero-wappen img {
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}

/* Hero auf dem Handy etwas niedriger */
@media (max-width: 600px) {
	.om-hero { min-height: 420px !important; }
	.om-hero-wappen img { width: 120px !important; }
}

/* Nur für Screenreader sichtbar (z. B. Abschnittsüberschrift „Auf einen Blick“) */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- Header ---------- */
.om-header {
	box-shadow: 0 1px 0 #D9DEE5, 0 6px 18px rgba(26, 36, 51, .06);
	position: relative;
	z-index: 10;
}
.om-site-tagline { margin: 0; }
@media (max-width: 600px) {
	.om-logo img { width: 56px !important; height: auto !important; }
	.om-site-tagline { display: none; }
}

/* ---------- Termin-Liste (Events Shortcodes) im Stadtblau statt Plugin-Hellblau ---------- */
.ect-list-post .modern-list-right-side {
	background-color: #1D4E89 !important;
}
.ect-list-post .ect-list-title a { color: #1A2433; text-decoration: none; }
.ect-list-post .ect-list-title a:hover { color: #1D4E89; }

/* ---------- Einzelansicht Veranstaltung: Beitragsbild kompakt neben dem Text ----------
   TEC legt die Bestandteile in einen Flex-Container (wrap) und setzt jedem width:100% –
   daher Breiten mit höherer Spezifität und !important statt float. */
.tribe-events-single > .tribe_events > .tribe-events-event-image {
	width: min(300px, 100%) !important;
	margin: 0 2rem 1.5rem 0;
	align-self: flex-start;
}
.tribe-events-single > .tribe_events > .tribe-events-single-event-description {
	width: calc(100% - min(300px, 100%) - 2rem) !important;
}
.tribe-events-single .tribe-events-event-image img {
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(26, 36, 51, .12);
}
@media (max-width: 700px) {
	.tribe-events-single > .tribe_events > .tribe-events-event-image {
		width: min(300px, 100%) !important;
		margin: 0 auto 1.5rem;
		align-self: center;
	}
	.tribe-events-single > .tribe_events > .tribe-events-single-event-description {
		width: 100% !important;
	}
}
