/* ==========================================================================
   Eigene Anpassungen – Rad-Wanderfreunde Freilassing (statische Version)
   Lokal eingebunden, keine externen Ressourcen.
   Dezenter Rahmen + weicher Schatten für Inhaltsbilder.
   ========================================================================== */

/* Inhalts- und Galeriebilder – NICHT das Logo (.custom-logo) */
.entry-content img[class*="wp-image-"]:not(.custom-logo),
.wp-block-image img,
.wp-block-gallery img,
figure.wp-block-image img {
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
	background: #fff;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	will-change: transform;
}

/* Sanftes Anheben beim Überfahren mit der Maus */
.entry-content a img[class*="wp-image-"]:not(.custom-logo):hover,
.wp-block-image img:hover,
.wp-block-gallery img:hover,
figure.wp-block-image img:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20), 0 3px 8px rgba(0, 0, 0, 0.10);
}

/* Galerie-Abstände etwas luftiger */
.wp-block-gallery.has-nested-images figure.wp-block-image {
	margin: 6px;
}

/* Logo ausdrücklich ohne Rahmen/Schatten belassen */
img.custom-logo {
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

/* Statische Standort-Karte (Ersatz für Google-Maps-Einbettung) */
.static-map-card {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease;
}
.static-map-card:hover {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   Galerie: alle Bilder einheitlich im Querformat (4:3). Die meisten Bilder
   sind bereits 4:3 (kein Beschnitt); breitere/hochkant werden mittig auf
   einen Querformat-Ausschnitt zugeschnitten (object-fit: cover).
   ========================================================================== */
.wp-block-gallery.has-nested-images figure.wp-block-image,
.wp-block-gallery.has-nested-images figure.wp-block-image > a,
.wp-block-gallery.has-nested-images figure.wp-block-image picture {
	display: block;
	width: 100%;
}
.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	aspect-ratio: 4 / 3;
	height: auto !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center;
	flex: none !important;
}

/* ==========================================================================
   Kontaktseite: Telefon-/Handynummern nie umbrechen, Spalten breiter
   ========================================================================== */
a[href^="tel:"] {
	white-space: nowrap;
}
/* Kontaktseite (page-id-1608): Service-Spalten mehr Platz geben, damit
   die Handynummer (+49) 152 09807850 in einer Zeile bleibt */
body.page-id-1608 .wp-block-columns {
	flex-wrap: wrap;
	gap: 1.5rem;
}
body.page-id-1608 .wp-block-column {
	flex-basis: 320px;
	flex-grow: 1;
}
body.page-id-1608 .service-title {
	white-space: nowrap;
}

/* ==========================================================================
   Barrierefreiheit
   ========================================================================== */
/* "Zum Inhalt springen" – nur sichtbar bei Tastatur-Fokus */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 10px 18px;
	background: #2c6e49;
	color: #fff;
	border-radius: 0 0 6px 0;
	text-decoration: none;
	font-weight: 600;
}
.skip-link:focus {
	left: 0;
}
/* Deutlich sichtbarer Tastatur-Fokus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #2c6e49;
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   "Nach oben"-Button
   ========================================================================== */
#toTop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: #2c6e49;
	color: #fff;
	font-size: 22px;
	line-height: 46px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
	z-index: 9999;
}
#toTop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
#toTop:hover {
	background: #24583a;
}
@media (max-width: 600px) {
	#toTop { right: 14px; bottom: 14px; }
}
