/*
 * Mike Baum – Angleichung Rocket Theme 0.3.9 an das frühere Impreza-Layout.
 * Ersetzt die CSS-Regeln, die die Migration nicht übersetzen konnte, und gleicht
 * Unterschiede zwischen Impreza und Rocket aus. Angelegt von Claude am 01.12.2026.
 * Wird nach dem „Zusätzlichen CSS“ geladen.
 */

/* ---------- Grundschrift wie Impreza 8: 20px, Laptop/Tablet 18px, Handy 16px; Zeilenhöhe immer 33px ---------- */
@media (min-width: 601px) and (max-width: 1280px) { :root { --rt-body-size: 18px; } }
:root { --rt-body-line: 33px; }
:where(.rt-site) a { text-decoration: none; }

/* ---------- Footer: lag bei Impreza außerhalb von .l-canvas → Links/Texte in Inter 400 ---------- */
#rt-footer a, #rt-footer span, #rt-footer li { font-family: 'Inter' !important; font-weight: 400 !important; }
#rt-footer .rb-acc-title span { font-family: inherit !important; }

/* ---------- Kopfbereich ---------- */
#rt-header a { text-decoration: none; }
/* Telefonnummer in der transparenten Kopfleiste (Startseite usw.) wie die übrige Leiste */
.rt-header-transparent #rt-header.rt-hs:not(.is-scrolled) .rt-row-top .callUsBig a { color: inherit; }
/* Social-Icons rot wie bei Impreza, beim Darüberfahren weiß */
#rt-header .rb-social { --rb-icon-size: 22px; --rb-social-gap: 10px; }
#rt-header .rb-social-list li { --rb-item-color: #d70e33 !important; }
#rt-header .rb-social-list a:hover .rb-svg-icon { color: #fff !important; }
/* Linie unter der Logo-/Menüzeile */
#rt-header .rt-row-middle > .rb-container { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
/* Menü in der transparenten Kopfzeile: alle Punkte weiß (Impreza: auch „aktiv“ weiß) */
@media (min-width: 1281px) { .rt-header-transparent #rt-header.rt-hs:not(.is-scrolled) .rb-menu-horizontal .rb-menu-link { color: #fff !important; } }
/* Laptop (Impreza: Kopfleiste oben 70px) */
@media (min-width: 1025px) and (max-width: 1280px) { #rt-header .rt-row-top > .rb-container > .rb-row { min-height: 70px; } }

/* Handy/Tablet: dunkler Kopf (Impreza-Child bis 900px), Kopf liegt wie bei Impreza über dem ersten Abschnitt */
@media (max-width: 900px) {
	#rt-header.rt-hs, #rt-header .rt-hb-area { background: #1e1e1e !important; }
	#rt-header .rb-menu-toggle { color: #fff !important; }
	#rt-header .rb-menu.rb-menu-mode-dropdown .rb-menu-panel { background: #1e1e1e !important; }
	#rt-header .rb-menu-mode-dropdown .rb-menu-link { color: #fff !important; text-transform: uppercase; }
	#rt-header .rb-menu-mode-dropdown .current-menu-item > .rb-menu-link { color: #d70e33 !important; text-decoration: none; }
}
@media (max-width: 1280px) {
	.rt-content-builder > .rb-content > .rb-section.mainFirstRow:first-child { margin-top: calc(-1 * var(--rt-hs-h, 0px)); }
}
/* Laptop/Tablet quer: Kopf weiß (Impreza ohne Transparenz) → dunkle Schrift; Rocket behält sonst die Weiß-Schrift des transparenten Kopfs */
@media (min-width: 901px) and (max-width: 1280px) {
	#rt-header.rt-hs { --rt-header-text: var(--rt-header-text-solid); color: var(--rt-header-text-solid); }
	#rt-header .rb-menu-horizontal { --rb-menu-color: #000 !important; --rb-menu-hover: #d70e33 !important; }
	#rt-header .rb-menu-horizontal .rb-menu-link { color: #000; }
	#rt-header .rb-menu-horizontal .current-menu-item > .rb-menu-link, #rt-header .rb-menu-horizontal .rb-menu-link:hover { color: #d70e33; }
}
/* Desktop, Kopfvorlage ohne Transparenz (Standort-/Projektseiten): erster Abschnitt unter die Kopfleiste wie bei Impreza */
@media (min-width: 1281px) {
	body:not(.rt-header-transparent) .rt-content-builder > .rb-content > .rb-section.mainFirstRow:first-child { margin-top: calc(-1 * var(--rt-hs-h, 0px)); }
	.rt-header-transparent .rt-content-builder > .rb-content > .rb-section.mainFirstRow:first-child > .rb-container { padding-top: 0 !important; }
}

/* ---------- Bilder ---------- */
.imgFullWidth .rb-image-inner { display: block; }
/* SVG ohne Maße (WordPress meldet 1×1): wie Impreza auf Spaltenbreite */
.rb-image img[width="1"][height="1"] { width: 100%; height: auto; }
.img4Columns .rb-image-inner, .img4Columns img, .borderradiusVorschau img { border-radius: 30px; }

/* ---------- Startseite: Kacheln „Für private/gewerbliche Kunden“ (Hintergrundbild der Spalte + Verlauf) ---------- */
.columnsImg3 > .rb-col-inner { position: absolute; inset: 0; padding: 0 !important; border-radius: 30px; overflow: hidden; }
.columnsImg3 > .rb-col-inner::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(360deg, rgba(30, 30, 30, 0.85), rgba(30, 30, 30, 0)); pointer-events: none; }
.columnsImg3 .rb-text { left: 0; right: 0; }
.columnsImg3 .rb-text p { color: rgba(255, 255, 255, 0.57) !important; }
.columnsImg3 .rb-text a { color: #fff !important; }
.columnsImgBlock2Text .rb-text { color: rgba(255, 255, 255, 0.7); font-family: 'Inter' !important; }

/* ---------- Zähler (12+, 8+, 144+) ---------- */
.animatedNumbersText .rb-counter-number, .animatedNumbersText .rb-counter-number span { font-family: 'Oswald' !important; font-weight: 500 !important; line-height: 1.2; }
.animatedNumbersText .rb-counter-title { font-family: 'Oswald' !important; font-weight: 300 !important; font-size: max(1.4rem, 1.4vw); line-height: 1.2; color: #fff; }

/* ---------- Wendeboxen der Verbände (rund, Logo als Hintergrund, Rückseite rot) ---------- */
.rb-flipbox { width: 250px !important; margin-left: auto !important; margin-right: auto !important; }
.rb-flipbox-side { text-align: center; border-radius: 100%; padding: 50px !important; width: 250px !important; height: 250px !important; background-size: 200px !important; background-repeat: no-repeat !important; background-position: center center !important; }
.rb-flipbox-back .rb-flipbox-title { font-family: 'Oswald' !important; font-weight: 500 !important; line-height: 30px; text-transform: uppercase !important; font-size: 22px !important; color: #fff; }
.rb-flipbox-front .rb-flipbox-title { color: rgba(255, 255, 255, 0) !important; }

/* ---------- Pop-ups (Projektablauf, Video): Auslöser wie bei Impreza über die Kacheln/Buttons ---------- */
.columns3popup > .rb-popup-trigger, .rb-c-7206854 > .rb-popup-trigger { display: none !important; }
.columns3popup, .rb-c-7206854, #rb-c3c3a13-dialog, #rb-2005ca9-dialog, #rb-44f4bdf-dialog, #rb-7206854-dialog { --rb-popup-width: 1000px; --rb-popup-padding: 0; --rb-popup-bg: #1e1e1e; --rb-popup-overlay: rgba(0, 0, 0, 0.85); }
.rb-popup-dialog .rb-popup-box { border-radius: 30px; color: #999; font-weight: 300; box-shadow: 0 1.33424px 14.6766px rgba(0, 0, 0, 0.75); }
.rb-popup-dialog .rb-popup-close { z-index: 20; top: 0.5rem; right: 0.5rem; width: 50px; height: 50px; align-items: center; justify-content: center; background: #d70e33; color: #fff; transition: box-shadow 0.2s ease; }
.rb-popup-dialog .rb-popup-close:hover { box-shadow: 0 1.33424px 14.6766px rgba(0, 0, 0, 0.75); }
.rb-popup-dialog .rb-popup-close svg { width: 24px; height: 24px; }
.click-cursor, .playvideo, #privateKunden, #gewerblicheKunden { cursor: pointer; }
/* Abschnitte im Popup: „volle Breite“ bezieht sich auf das Popup, nicht auf das Fenster */
.rb-popup-dialog .rb-section { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; }
.rb-popup-dialog .rb-section.projektablaufCnt { margin: 1.5rem 2rem !important; }
.rb-popup-dialog .rb-section > .rb-container { max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }

/* ---------- FAQ (Akkordeon wie Impreza-Reiter) ---------- */
.rb-accordion .rb-acc-item, .rb-acc-line .rb-acc-item:first-child { border: 0; margin-bottom: 1px; }
.rb-accordion .rb-acc-title { margin: 0; padding: 1em 1.5em; background: #222; color: #fff; font-family: 'Oswald' !important; font-weight: 300 !important; font-size: 1.5rem; line-height: 1.5; transition: background-color 0.3s ease; }
.rb-accordion .rb-acc-title:hover, .rb-accordion .rb-acc-item[open] > .rb-acc-title { background: #d70e33; color: #fff; }
.rb-accordion .rb-acc-title svg { color: #fff; width: 1em; height: 1em; }
.rb-accordion .rb-acc-content { padding: 1.5rem; color: #fff; }

/* ---------- Runde 2 (Vergleich 01.12.2026) ---------- */
/* Spalten-Link über die ganze Kachel (Impreza „vc_column-link“) */
.rb-col[data-mb-link] { position: relative; }
.mb-col-link { position: absolute; inset: 0; z-index: 5; }
/* Kacheltexte mit Innenabstand der Impreza-Spalte (1.5rem) */
.columnsImg3 .rb-text { left: 1.5rem; right: 1.5rem; bottom: 1.5rem; }
/* Buttons in den Projektkarten weiß, „Nachricht schreiben“ in Fließtextgröße */
.columnsImgBlock2Text a.rb-button { color: #fff !important; }
.nachrichtbutton a.rb-button, a.rb-button.nachrichtbutton { font-size: 1rem !important; }
.columnsImgBlock2Text .rb-text h3 { margin-top: 1rem !important; }
/* Farbschema „Footer“ (Impreza: Überschriften #ccc, Felder #1a1a1a) */
.rb-scheme-footer-bottom :is(h1, h2, h3, h4, h5, h6) { color: #ccc; }
.rb-scheme-footer-bottom .wpcf7 :is(input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea):not(.mb-cf *) { background: #1a1a1a; color: #999; border: 0; border-radius: 0; box-shadow: none; }
.wpcf7 textarea { height: 8.4rem; }
.mb-cf ::placeholder { opacity: 0.5; }
/* FAQ: Trennlinie #e8e8e8 wie Impreza, größeres Plus */
.rb-accordion .rb-acc-item, .rb-acc-line .rb-acc-item:first-child { margin: 0; border: 0; border-bottom: 1px solid #e8e8e8; }
.rb-accordion .rb-acc-title svg { width: 1.67em; height: 1.67em; margin-right: -0.3em; }
/* Mitlaufender Kopf: keine Linie, Logo 60px (Impreza max-height 70px inkl. 5px Abstand) */
#rt-header.is-scrolled .rt-row-middle > .rb-container { border-bottom-color: transparent; }
@media (min-width: 801px) { #rt-header.is-scrolled .desktoplogo { --rb-logo-sticky: 60px !important; --rb-logo-height: 60px !important; } }
/* Social-Icons im Kopf in einer Zeile */
#rt-header .rb-social-list { flex-wrap: nowrap; }
/* Social-Icons wie Impreza: Font-Awesome-Brands (gefüllte Logos, rot, Hover weiß); Schrift aus Impreza übernommen (SIL OFL) */
@font-face { font-family: 'mb-fa-brands'; src: url('fonts/fa-brands-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
#rt-header .rb-social .rb-social-list { gap: 0.4em; }
#rt-header .rb-social-list a { width: auto !important; height: auto !important; padding: 5px 2px !important; background: none !important; border: 0 !important; line-height: 1; }
#rt-header .rb-social-list a .rb-svg-icon { display: none !important; }
#rt-header .rb-social-list a::before { display: inline-block; font-family: 'mb-fa-brands' !important; font-weight: 400 !important; font-style: normal; font-size: 1.05rem; line-height: 1; position: relative; color: #d70e33; -webkit-font-smoothing: antialiased; transition: color 0.2s ease; }
#rt-header .rb-social-instagram a::before { content: '\f16d'; }
#rt-header .rb-social-facebook a::before { content: '\f09a'; }
#rt-header .rb-social-whatsapp a::before { content: '\f232'; }
#rt-header .rb-social-list a:hover::before { color: #fff; }
@media (min-width: 1281px) { #rt-header .rb-social-list a::before { top: -4px; } }
/* Kopf: Zeilenhöhe 1.5 wie Impreza (Rocket gibt sonst die 33px des Fließtexts weiter) */
#rt-header .rb-html { line-height: 1.5; }
/* Handy-Menü offen: keine Linie unter dem Logo (Impreza zeigte sie erst unter dem Menü) */
#rt-header:has(.rb-menu.is-open) .rt-row-middle > .rb-container { border-bottom-color: transparent; }
/* 404 wie Impreza */
.mb-404 { text-align: center; padding-top: 260px; padding-bottom: 4rem; }
@media (max-width: 1280px) { .mb-404 { padding-top: 90px; } }
@media (max-width: 1024px) { .mb-404 { padding-top: 1.5rem; padding-bottom: 1.5rem; } }
/* Abstände, die Rocket bei Elementen im Text überschreibt (Impreza behielt sie) */
.rb-el.mainFirstRowStrongText { margin-top: 2rem !important; }
.footer-maps-blockText .rb-text > p:last-child { margin-bottom: 5px !important; }
/* Kategoriearchiv: Beitragsliste wie Impreza (nur Titel, Fließtextgröße, ohne Innenabstand) */
.archive .rt-card-body { padding: 0 !important; }
.archive .rt-card-title { font-size: 1rem !important; }

/* ---------- Runde 3 (Gesamtvergleich 01.12.2026) ---------- */
/* Rote Linie unter „Haben Sie Fragen?“: Rocket setzt beim letzten Element im Text den Abstand auf 0 */
.wpRedUnderLine { margin-bottom: 2rem !important; }
/* Kontaktanschrift im Footer: Text 15px neben dem Symbol wie bei Impreza */
.footer-maps-block .rb-row { justify-content: space-between; }
/* Lange Wörter in den Footer-Listen nicht umbrechen (Impreza ließ sie überstehen) */
#rt-footer .ulFooterVertikal li, #rt-footer .ulFooterVertikal a { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* FAQ: Plus-Symbol drückt die Zeile nicht auf */
.rb-accordion .rb-acc-title svg { margin-top: -0.2em; margin-bottom: -0.2em; }
/* Button-Stile 3/4 mit dem Impreza-Verlauf */
.rt-btn-3, .rb-button.rt-btn-3 { background-image: linear-gradient(135deg, rgba(215, 14, 51, 0.8), #d70e33); }
.rt-btn-3:hover, .rb-button.rt-btn-3:hover, .rt-btn-4, .rb-button.rt-btn-4 { background-image: none; }
.rt-btn-4:hover, .rb-button.rt-btn-4:hover { background-image: linear-gradient(135deg, rgba(215, 14, 51, 0.8), #d70e33); }

/* Projektkarten: letzter Absatz behält 12px (Rocket setzt ihn auf 0), Handy: 3rem zwischen Bild und Text wie Impreza */
.columnsImgBlock2Text .rb-text > p:last-child { margin-bottom: 12px !important; }
@media (max-width: 900px) { .rb-row.columnsImgBlock2 { row-gap: 3rem !important; } }

/* Handy: Bild im Block „Breites Portfolio“ (Standortseiten) volle Breite wie Impreza */
@media (max-width: 900px) { .columnsImgBlock2Img .rb-image-inner { display: block; } }
/* Handy-Logo nicht stauchen */
#rt-header .mobillogo, #rt-header .mobillogo .rb-logo-link { flex-shrink: 0; }
#rt-header .mobillogo .rb-logo-img { max-width: none; width: auto; }
/* Beitrag/Archiv: Impreza hatte keine Titelleiste; Abstand unter dem transparenten Kopf bleibt */
body:is(.single-post, .archive, .search, .blog) .rt-titlebar { background: transparent !important; min-height: 0 !important; padding: 0 !important; }
body:is(.single-post, .archive, .search, .blog) .rt-titlebar > * { display: none !important; }
@media (min-width: 1281px) { .rt-header-transparent:is(.single-post, .archive, .search, .blog) .rt-titlebar { padding-top: var(--rt-hs-h, 180px) !important; } }
.archive .rt-card, .search .rt-card, .blog .rt-card { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }

/* Überschrift direkt nach Überschrift (z. B. H2 → H3 im Datenschutz): kein zusätzlicher Abstand, wie Impreza */
:where(.rb-text) :is(h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6) { padding-top: 0; }
/* Große Projektüberschriften: deutsche Silbentrennung statt Abschneiden am Rand (Impreza) bzw. Bruch mitten im Wort */
.mainFirstRowHeadlineTwoLeistung h1, .rb-text h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* ---------- Kontaktformular im Footer (ehemals Impreza-Formular) ---------- */
.mb-cf { display: flex; flex-wrap: wrap; justify-content: space-between; }
.mb-cf p { margin: 0; }
.mb-cf-f { margin-bottom: 1rem; }
.mb-cf-select { flex: 0 0 47.8%; margin-right: 52.2%; }
.mb-cf-half { flex: 0 0 47.8%; }
.mb-cf > .mb-cf-half:nth-child(4), .mb-cf > .mb-cf-half:nth-child(5) { flex-basis: 48.76%; }
.mb-cf-full { flex: 0 0 100%; }
@media (max-width: 900px) {
	.mb-cf-select, .mb-cf-half, .mb-cf > .mb-cf-half:nth-child(4), .mb-cf > .mb-cf-half:nth-child(5) { flex-basis: 100%; margin-right: 0; }
}
.mb-cf .wpcf7-form-control-wrap { display: block; }
.mb-cf input[type=text], .mb-cf input[type=email], .mb-cf input[type=tel], .mb-cf select, .mb-cf textarea {
	width: 100%; height: 2.8rem; padding: 0 0.8rem; border: 0; border-radius: 6px; background: #fff !important; color: #1a1a1a !important;
	font-family: 'Inter' !important; font-size: 1rem; font-weight: 400; line-height: 1.5; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
}
.mb-cf textarea { height: 8.4rem; padding: 0.8rem; resize: vertical; }
.mb-cf ::placeholder { color: #1a1a1a !important; opacity: 0.5; }
.mb-cf input:focus, .mb-cf select:focus, .mb-cf textarea:focus { outline: none; box-shadow: 0 0 0 2px #d70e33; }
.mb-cf-label { display: block; margin-bottom: 0; line-height: 1.2; color: #999; }
.mb-cf-submit { margin-bottom: 0; }
.mb-cf-agree .wpcf7-list-item { margin: 0; display: flex; gap: 0.6rem; align-items: flex-start; }
.mb-cf-agree .wpcf7-list-item label { display: flex; gap: 0.6rem; align-items: flex-start; color: #999; }
.mb-cf-agree input[type=checkbox] { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.25rem 0 0; accent-color: #d70e33; }
.mb-cf-agree a { color: #ccc; }
.mb-cf-submit { margin-left: auto; }
.mb-cf .wpcf7-submit { min-width: 150px; height: 2.8rem; padding: 0 0.8rem; border-radius: 30px !important; font-family: 'Inter' !important; font-weight: 700; font-size: 14px; }
.mb-cf .wpcf7-spinner { position: absolute; }
