/* WordPress-Anpassungen zum Marinelli-Nachbau (wittmoo.it, 13.11.2026). Original-Stile stehen unveraendert in 01-22. */

/* Kopfbild-Wechsel */
.eup-slider img.slide { display: none; }
.eup-slider img.slide.eup-aktiv { display: block; }
.eup-kasten { position: absolute; z-index: 5; opacity: 0; transform: scale(0); transition-property: opacity, transform; transition-timing-function: ease-out; background-repeat: no-repeat; }
.eup-kasten.eup-sichtbar { opacity: 1; transform: scale(1); }
.theme-light .nivoSlider { background-image: none; }

/* Bild-Vergroesserung */
.eup-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 20px; box-sizing: border-box; }
.eup-lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 30px rgba(0,0,0,.6); background: #fff; }

/* Google-Karte per Klick */
.eup-karte { width: 425px; max-width: 100%; height: 350px; background: #eef0f1; border: 1px solid #d5d9db; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 15px; box-sizing: border-box; font-size: 11px; line-height: 1.5em; }
.eup-karte button { background: #7d8285; color: #fff; border: 0; padding: 8px 16px; font: inherit; font-size: 12px; text-transform: uppercase; cursor: pointer; margin-bottom: 10px; }
.eup-karte button:hover { background: #B9BFC3; }
.eup-karte iframe { max-width: 100%; }

/* Menue-Knopf nur auf schmalen Bildschirmen */
.eup-menueknopf { display: none; }

/* Datei-Symbole wie im Original */
.file img.file-icon { vertical-align: middle; margin-right: 4px; }

/* Seiten-Hinweis fuer Ersatzseite */
.eup-hinweis { background: #fff8d8; border: 1px solid #e6d27a; padding: 8px 12px; margin: 10px 0 15px; font-size: 11px; }

/* ---------- schmale Bildschirme (Original ist starr 988 px) ---------- */
@media (max-width: 1007px) {
	#totalContainer, .width_2#totalContainer { width: auto; margin: 0; padding: 0 16px; box-sizing: border-box; }
	#top { float: none; height: auto; padding: 34px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
	#topUtility { top: 6px; right: 0; }
	#logo { max-width: 70vw; height: auto; }
	.eup-menueknopf { display: block; background: #7d8285; color: #fff; border: 0; padding: 9px 14px; font: inherit; text-transform: uppercase; cursor: pointer; }
	#navigation-primary { position: static; margin: 0 0 10px; width: auto; height: auto; float: none; display: none; background: #7d8285; }
	#navigation-primary.eup-offen { display: block; }
	#navigation-primary > ul > li { float: none; }
	#navigation-primary > ul > li > a { float: none; display: block; line-height: 2.6em; border-top: 1px solid rgba(255,255,255,.2); }
	.main-menu { width: auto; }
	#pageBorder, #contentWrapper { float: none; width: auto; }
	.grid_12, .container_12 .grid_12, #siteContent, #overContent, #top, #topBar { width: auto !important; margin-left: 0; margin-right: 0; float: none; display: block; }
	.container_12, #totalContainer.container_12 { width: auto !important; }
	html, body { overflow-x: hidden; }
	#top { display: flex !important; }
	.theme-light.slider-wrapper { margin-left: 0; width: 100%; height: auto; background: none; }
	.theme-light .nivoSlider { width: 100%; height: auto; aspect-ratio: 988 / 300; margin-bottom: 0; }
	.theme-light .nivoSlider img { width: 100%; height: 100%; object-fit: cover; }
	#innerContent { display: flex; flex-direction: column; }
	#siteContent { order: 1; float: none; width: auto; }
	#highlight { order: 2; float: none; width: auto; padding-right: 0; margin-top: 20px; border-top: 1px solid #e2e2e2; }
	.field-name-body { float: none; }
	.field-name-field-bilder { float: none; width: auto; text-align: left; margin-top: 15px; }
	.field-name-field-bilder img { max-width: 100%; height: auto; }
	.teaser-container { width: auto; float: none; margin: 10px 0; height: auto; overflow: hidden; }
	#content img, #content iframe, #content table { max-width: 100%; }
	#content img { height: auto; }
	.field-name-field-dateien { width: auto; }
	p[style*="justify"] { text-align: left !important; }
}
