/* WordPress-Anpassungen für den 1:1-Nachbau: bildet die Joomla-Klassen auf die WordPress-Ausgabe ab. */
:root {
	--tm-primary: #212042;
	--tm-accent: #025885;
	--tm-font-head: 'Industry Bold', tahoma, arial, sans-serif;
}

/* Topbar: Social-Icons wie im Original (float links, weiß, 20px) */
/* position/z-index: auf Handy-Breite liegt die Menüspalte darunter und würde die Icons sonst überdecken */
#topbar .tm-social { float: left; margin: 0; position: relative; z-index: 2; }
/* Logo beim Verkleinern proportional halten (HTML-Attribut height="83" sonst fest) */
#head .logo img { height: auto !important; max-width: 100%; aspect-ratio: 500 / 83; object-fit: contain; }
#topbar .tm-social a { font-size: 20px; color: #fff; display: inline-block; padding: 4px; }
#topbar .tm-social a:hover, #topbar .tm-social a:focus { color: #cfd0ea; }
/* Kontakt im Topmenü mit Briefsymbol (Original: .item-113) */
#topbar .menu li.tm-kontakt { padding-left: 40px; }
#topbar .menu li.tm-kontakt a:before { font-family: FontAwesome; content: "\f003"; margin-right: 8px; }

/* Aktiver Menüpunkt: WordPress-Klassen statt Joomla .current/.active */
#head .menu li.current-menu-item > a,
#head .menu li.current-menu-ancestor > a,
#head .menu li.current-page-ancestor > a,
#head .menu li.current_page_parent > a { color: #fff; background: #212042; }
/* Kein Browser-Fokusrahmen an Links/Buttons (Bootstrap: a:focus mit Systemfarbe, z. B. orange).
   Tastatur-Fokus: Hauptmenü wie Hover (dunkle Füllung), sonstige Links unterstrichen. */
a, button { -webkit-tap-highlight-color: transparent; }
a:focus, a:active, a:focus-visible, button:focus, button:active, button:focus-visible { outline: 0 !important; box-shadow: none; }
#head .menu li a:focus-visible:after { -webkit-transform: scaleX(1); transform: scaleX(1); }
#head .menu li a:focus-visible { color: #fff; }
#topbar a:focus-visible, .entry-content a:focus-visible, #footer a:focus-visible { text-decoration: underline; }
#head .menu .sub-menu { display: none; padding-left: 0; width: 220px; position: absolute; z-index: 99; background-color: #efefef; list-style: none; }
#head .menu li:hover > .sub-menu, #head .menu li:focus-within > .sub-menu { display: block; }
#head .menu .sub-menu li { float: none; }
#head .menu .sub-menu li a { display: block; font-size: 15px; padding: 5px 6px 5px 15px; }

/* Seitentitel: Original nutzte h2; für Barrierefreiheit jetzt h1 mit identischem Aussehen */
.tm-page-title { font-size: 32px; text-transform: uppercase; padding-bottom: 7px; font-family: 'Industry Bold', tahoma, arial, sans-serif !important; margin: 20px 0 10px; color: inherit; }
.tm-date { color: #777; margin-top: -10px; }

/* Brotkrumen (nav statt div) */
.breadcrumbs .breadcrumb { margin-bottom: 0; }
.breadcrumbs .breadcrumb .divider { padding: 0 5px; color: #ccc; }

/* Startseiten-Titelbild statt Smart Slider: volle Breite, Seitenverhältnis 1920 × 420 wie im Original */
#slider .tm-hero { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 420; object-fit: cover; }

/* Partner-Logos sind jetzt verlinkt: Block-Link, damit max-width: 70% sich wie im Original auf die Spalte bezieht */
#news .imag a { display: block; }

/* Fußbereich: Karte in derselben Höhe wie das alte iframe (450px, im Original in einem <p> = +14px) */
.tm-footer-map .tm-map { height: 450px; margin-bottom: 14px; }

/* Inhalt: Raster und Tabellen kommen wie im Original aus bootstrap.min.css; Hilfsklassen aus dem alten Template */
.entry-content .fullimg { max-width: 100%; }
.entry-content .height500 { display: block; max-width: 90%; max-height: 400px; margin: 0 auto; }
/* Scroll-Container für Tabellen auf dem Handy: Abstand der Bootstrap-Tabelle (20px) sitzt am Container,
   damit er wie im Original mit dem Abstand der folgenden Überschrift verschmilzt. */
.entry-content .table-wrap { margin: 0; }
.entry-content .table-wrap:has(> .table) { margin-bottom: 20px; }
.entry-content .table-wrap > .table { margin-bottom: 0; }

/* Mietgeräte-Raster wie das alte "News Show Pro"-Modul: 3 Spalten, Bild 370×230, Titel darunter, Hover mit Overlay */
.tm-rental-grid { display: block; margin: 0; padding: 0; list-style: none; text-align: left; }
.tm-rental-grid::after { content: ""; display: table; clear: both; }
.tm-rental-grid li { float: left; width: 33.333%; padding: 0 20px 20px 0; box-sizing: border-box; }
.tm-rental-grid li:nth-child(3n+1) { clear: both; }
.tm-rental-grid a { display: block; color: #000; text-decoration: none; }
.tm-rental-imgwrap { position: relative; display: block; float: left; width: calc(100% - 14px); margin: 6px 14px 0 0; }
.tm-rental-grid img { display: block; width: 100%; max-width: none; height: auto; opacity: 1; transition: .5s ease; backface-visibility: hidden; }
.tm-rental-imgwrap::after { content: "\f1ea"; font-family: FontAwesome; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 16px 32px; font-size: 34px; color: #fff; background: #212042; opacity: 0; transition: .5s ease; }
.tm-rental-grid a:hover img, .tm-rental-grid a:focus img { opacity: .4; }
.tm-rental-grid a:hover .tm-rental-imgwrap::after, .tm-rental-grid a:focus .tm-rental-imgwrap::after { opacity: 1; }
.tm-rental-grid .tm-rental-title { display: block; clear: both; margin: 0; padding: 10px 0 15px; font-family: 'Industry Bold', tahoma, arial, sans-serif; font-size: 18px; line-height: 19.8px; font-weight: 500; text-transform: uppercase; text-align: center; color: #000; }
@media (max-width: 767px) { .tm-rental-grid li { width: 100%; padding-right: 0; } }

/* Buttons im Formular wie .readon */
.tm-form .tm-button { border: 2px solid #212042; margin: 0; }

/* Mobiles Menü (ersetzt jQuery SlickNav, gleiche Klassen/Optik) */
.slicknav_menu { display: none; }
@media (max-width: 1080px) {
	.slicknav_menu { display: block; }
	/* Topmenü ist hier ausgeblendet: Social-Icons links in die Menüleiste (auf Höhe des MENU-Buttons) */
	body { position: relative; }
	#topbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; background: transparent; pointer-events: none; z-index: 2; }
	#topbar .tm-social { padding: 0; margin-top: 10px; }
	#topbar .tm-social a { pointer-events: auto; line-height: 25px; }
}
@media (min-width: 1081px) {
	.slicknav_menu { display: none !important; }
}
.slicknav_btn { border: 0; font: inherit; }
.slicknav_nav[hidden] { display: none; }
.slicknav_nav .current-menu-item > a { background: #fff; color: #212042 !important; }
/* Hover/Antippen: weißer Balken mit dunkler Schrift (sonst weiß auf weiß wegen color: white!important) */
.slicknav_nav a:hover, .slicknav_nav a:active, .slicknav_nav a:focus { background: #fff; color: #212042 !important; text-decoration: none; }
/* Kein Fokus-/Antipp-Rahmen im mobilen Menü (Browser-Standard ist je nach System farbig, z. B. orange).
   Fokus bleibt über den weißen Balken (a:focus oben) bzw. die Unterstreichung des Buttons erkennbar. */
.slicknav_menu, .slicknav_menu * { -webkit-tap-highlight-color: transparent; }
.slicknav_menu button, .slicknav_menu a,
.slicknav_menu button:focus, .slicknav_menu a:focus,
.slicknav_menu button:focus-visible, .slicknav_menu a:focus-visible,
.slicknav_menu button:active, .slicknav_menu a:active { outline: 0 !important; box-shadow: none !important; border: 0; -webkit-appearance: none; appearance: none; }
.slicknav_btn:focus-visible .slicknav_menutxt { text-decoration: underline; }

/* Bewegungen reduzieren, wenn vom Nutzer gewünscht */
@media (prefers-reduced-motion: reduce) {
	.down { animation: none; }
	.box img:hover { transform: none; }
}
