/* Gemeinsame Inhalts-Styles für beide Designs. Farben/Abstände über CSS-Variablen, die die Themes überschreiben. */
:root {
	--tm-primary: #212042;
	--tm-accent: #025885;
	--tm-text: #333;
	--tm-muted: #6b6b7b;
	--tm-line: #e3e3ea;
	--tm-surface: #fff;
	--tm-soft: #f4f4f7;
	--tm-radius: 0;
	--tm-font-head: inherit;
}

/* Raster und Tabellen der Inhalte gestaltet jedes Theme selbst (klassisch: Bootstrap 3 wie im Original). */
.entry-content img { max-width: 100%; height: auto; }
.entry-content .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Mietgeräte-Raster */
.tm-rental-grid { list-style: none; margin: 30px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.tm-rental-grid a { display: block; text-decoration: none; color: var(--tm-primary); }
.tm-rental-grid img { width: 100%; max-width: 230px; height: auto; transition: opacity .3s, transform .3s; }
.tm-rental-grid a:hover img, .tm-rental-grid a:focus img { opacity: .55; }
.tm-rental-title { display: block; margin-top: 10px; font-family: var(--tm-font-head); text-transform: uppercase; font-weight: 700; }

/* Maschinenliste */
.tm-machines-filter { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin: 0 0 24px; padding: 16px; background: var(--tm-soft); border-radius: var(--tm-radius); }
.tm-machines-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--tm-primary); }
.tm-machines-filter select, .tm-machines-filter input { min-width: 190px; padding: 8px 10px; border: 1px solid #c9c9d4; border-radius: var(--tm-radius); font: inherit; font-weight: 400; background: #fff; color: var(--tm-text); }
.tm-machines-search { flex: 1 1 220px; }
.tm-machines-search input { width: 100%; }
.tm-machines-count { margin: 0 0 8px auto; font-size: 13px; color: var(--tm-muted); }
.tm-machines-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.tm-machine { display: flex; flex-direction: column; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); overflow: hidden; }
.tm-machine[hidden] { display: none; }
.tm-machine-img { position: relative; aspect-ratio: 4 / 3; background: var(--tm-soft); }
.tm-machine-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tm-machine-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tm-muted); font-size: 13px; }
.tm-machine-badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--tm-primary); border-radius: var(--tm-radius); }
.tm-badge-gebraucht { background: #5c5c6e; }
.tm-machine-body { padding: 14px 16px 6px; flex: 1; }
.tm-machine-cat { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tm-muted); }
.tm-machine-title { margin: 0 0 6px !important; padding: 0 !important; font-size: 17px !important; line-height: 1.3; text-transform: none !important; color: var(--tm-primary); }
.tm-machine-meta, .tm-machine-desc { margin: 0 0 6px; font-size: 13px; color: var(--tm-muted); }
.tm-machine-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tm-machine-price { margin: 8px 0 0; font-weight: 700; color: var(--tm-primary); }
.tm-machine-actions { display: flex; gap: 8px; padding: 12px 16px 16px; flex-wrap: wrap; }
.tm-machine-actions a { flex: 1 1 auto; text-align: center; padding: 8px 10px; font-size: 13px; font-weight: 700; text-decoration: none; border-radius: var(--tm-radius); border: 2px solid var(--tm-primary); }
.tm-machine-request { background: var(--tm-primary); color: #fff !important; }
.tm-machine-request:hover, .tm-machine-request:focus { background: var(--tm-accent); border-color: var(--tm-accent); }
.tm-machine-ext { color: var(--tm-primary) !important; background: transparent; }
.tm-machine-ext:hover, .tm-machine-ext:focus { background: var(--tm-soft); }
.tm-machines-none, .tm-machines-empty { padding: 20px; background: var(--tm-soft); text-align: center; }
.tm-boersen { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tm-boersen a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 2px solid var(--tm-primary); color: var(--tm-primary); text-decoration: none; font-weight: 700; border-radius: var(--tm-radius); }

/* Kontaktformular */
.tm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.tm-form-grid p { margin: 0 0 14px; }
.tm-form-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .tm-form-grid { grid-template-columns: 1fr; } }
.tm-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.tm-form input[type="text"], .tm-form input[type="email"], .tm-form input[type="tel"], .tm-form textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #c9c9d4; border-radius: var(--tm-radius); font: inherit; color: var(--tm-text); background: #fff; }
.tm-form input:focus, .tm-form textarea:focus { outline: 2px solid var(--tm-accent); outline-offset: 1px; border-color: var(--tm-accent); }
.tm-form-check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.tm-form-check input { margin-top: 4px; }
.tm-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tm-form-msg { padding: 12px 16px; border-left: 4px solid; }
.tm-form-ok { background: #edf7ed; border-color: #2e7d32; }
.tm-form-error { background: #fdecea; border-color: #c62828; }
.tm-form-note { font-size: 12px; color: var(--tm-muted); }
.tm-form button { cursor: pointer; font: inherit; }

/* Zwei-Klick-Karte */
.tm-map { position: relative; min-height: 300px; height: 100%; background: #e8ebf0 linear-gradient(135deg, #eef0f4 25%, #e3e7ee 25%, #e3e7ee 50%, #eef0f4 50%, #eef0f4 75%, #e3e7ee 75%) 0 0 / 40px 40px; }
.tm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tm-map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; gap: 4px; }
.tm-map-consent p { margin: 0 0 10px; max-width: 380px; background: rgba(255,255,255,.92); padding: 10px 14px; }
.tm-map-load { padding: 9px 18px; background: var(--tm-primary); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; border-radius: var(--tm-radius); }
.tm-map-route { margin-left: 10px; }
.tm-map-remember { font-size: 12px; background: rgba(255,255,255,.92); padding: 4px 10px; }

.tm-icon { vertical-align: -0.125em; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000; background: #fff; color: #000; padding: 12px 20px; left: 8px; top: 8px; }
