/* Responsive Ansicht bis 1000 px (ersetzt das fruehere Joomla-Mobiltemplate "dtgmobil").
   Ueber 1000 px greift nichts davon: die Desktop-Ansicht bleibt unveraendert. */

.mobil-kopf, .mobil-schleier { display: none; }

@media (max-width: 1000px) {
	html, body { overflow-x: hidden; }
	body { background-image: none; }

	.wrapper, .page { width: auto; }

	/* Kopf wie im Mobiltemplate: Leiste mit Menueknopf und Logo */
	.mobil-kopf {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		height: 55px;
		background: #080808 url(/templates/dtgmobil/images/header_bg.jpg) repeat-x 0 97%;
	}
	.mobil-kopf .mobil-logo { display: block; width: 420px; max-width: calc(100vw - 110px); height: auto; }
	.mobil-menue-knopf {
		position: absolute;
		left: 5px;
		top: 50%;
		transform: translateY(-50%);
		width: 44px;
		height: 38px;
		padding: 0;
		border: 0;
		border-radius: 5px;
		background: #000;
		cursor: pointer;
	}
	.mobil-menue-knopf img { width: 20px; height: auto; display: block; margin: 0 auto; }
	.mobil-menue-knopf:focus-visible { outline: 2px solid #17b1e6; outline-offset: 2px; }

	.logo { display: none; }

	/* Bildwechsel: 80 % breit, mittig, Seitenverhaeltnis der Bilder (985 x 310) */
	.header {
		width: 80%;
		height: auto;
		margin: 10px auto 0 auto;
		aspect-ratio: 985 / 310;
	}
	.rotating-item { width: 100%; height: auto; }

	/* Menue als ausklappende Leiste von links */
	.page_left {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1000;
		width: 260px;
		max-width: 85vw;
		margin: 0;
		padding: 25px 15px 25px 0;
		border-radius: 0;
		overflow-y: auto;
		box-sizing: border-box;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	body.menue-offen .page_left {
		transform: none;
		visibility: visible;
		transition: transform .25s ease;
		box-shadow: 0 0 25px #000;
	}
	body.menue-offen .mobil-schleier {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(0, 0, 0, .5);
	}
	#navigation { margin: 0 20px 0 0; }

	/* Inhalt */
	.page_right {
		width: auto;
		float: none;
		margin: 0;
		padding: 0 15px;
		min-height: 0;
	}
	.breadcrumbs_contact { width: auto; height: auto; margin: 10px 0 15px 0; }
	.breadcrumbs_contact nav { display: none; }
	.contact_button { float: none; margin: 0 auto; }
	h1 { height: auto; padding-bottom: 6px; background-position: 0 100%; }

	.content { overflow-wrap: anywhere; }
	.content img { max-width: 100%; height: auto; }
	.content table { max-width: 100%; }
	.content iframe { max-width: 100%; }

	.content_table { width: 100%; margin-left: 0; }
	.content_table > tbody > tr > td {
		display: block;
		float: none;
		width: auto;
		padding-left: 0;
		margin-top: 30px;
	}

	/* Startseite: Symbole ueber dem Text, wie im Mobiltemplate */
	#startpage-table { margin-left: 0; width: 100%; }
	#startpage-table td { display: block; width: auto; padding: 0; }
	#startpage-table strong { display: block; margin: 0 auto; text-align: center; }
	#startpage-table .service-icon { display: block; margin: 40px auto 10px auto; box-shadow: 0 0 25px #000; }
	.content-row-left, .content-row-right { width: auto; float: none; margin-bottom: 20px; }

	/* Wegweiser und Fuss */
	.sign img { float: none !important; display: block !important; margin: 30px 0 0 0; }
	.footer {
		padding-top: 0;
		margin-top: 0;
		height: auto;
		background: url(/templates/dtgmobil/images/footer_bg.jpg) repeat-x 0 0;
	}
	.footer_content { width: auto; text-align: center; padding: 15px 0 16px 0; }
	.footer_content > div[style] { float: none !important; position: static !important; padding: 0 !important; }
	.footer_content img { margin: 0 !important; }
}

@media (max-width: 600px) {
	/* Fuhrpark-Tabelle: feste Breite der Spalte "Typ" (200 px) aufheben, damit "Kapazität" Platz hat */
	#fuhrpark th, #fuhrpark td { width: auto !important; }
	#fuhrpark td { padding: 0 4px; }
	#fuhrpark td:first-child img { max-width: 44px; height: auto; }
}

@media (max-width: 500px) {
	.mobil-kopf .mobil-logo { content: url(/templates/dtgmobil/images/logoklein.png); width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
	.page_left, body.menue-offen .page_left { transition: none; }
}
