/* =============================================================
   RebeIT Theme ohne Enfold: Rahmen der Seite
   Grundlagen, Kopf, Menues, Footer, Mobilmenue, Hinweise.
   Die Inhalte der Seiten liegen in rbh.css.
   ============================================================= */

/* ---------- Schriften ---------- */
@font-face { font-family: "roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-regular.woff2") format("woff2"); }
@font-face { font-family: "roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-medium.woff2") format("woff2"); }
@font-face { font-family: "roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-bold.woff2") format("woff2"); }

:root {
	--rb-font: roboto, Helvetica, Arial, sans-serif;
	--rb-ink: #15233a;
	--rb-text: #444444;
	--rb-nav: #5d6d86;
	--rb-accent: #228ae6;
	--rb-accent-dark: #1565b0;
	--rb-dark: #0e1a2b;
	--rb-darker: #08111e;
	--rb-line: #e2e8f0;
	--rb-soft: #f4f6fa;
	--rb-gutter: 50px;
	--rb-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Grundlagen (entspricht dem Zuruecksetzen in Enfold) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code,
em, img, small, strong, sub, sup, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, details, figure, figcaption,
footer, header, main, nav, section, summary, time, mark {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

html { -webkit-text-size-adjust: 100%; }

body {
	background: #ffffff;
	color: var(--rb-text);
	font-family: var(--rb-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

ol, ul { list-style: none; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
img, video { max-width: 100%; height: auto; }
a { color: var(--rb-accent-dark); text-decoration: none; }
a:hover { color: var(--rb-accent); }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }

:focus-visible { outline: 2px solid var(--rb-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.rb-skip {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 2000;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--rb-ink);
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
}
.rb-skip:focus { top: 12px; color: #ffffff; }

/* ---------- Rahmen ---------- */
.rb-container {
	position: relative;
	width: 100%;
	max-width: 1310px;
	margin: 0 auto;
	padding: 0 var(--rb-gutter);
}

.rb-main { overflow-x: clip; background: #ffffff; color: #4a5a75; }

/* ---------- Inhalte: Grundwerte wie bisher unter Enfold ---------- */
.rb-entry p { margin: .85em 0; }
.rb-entry p:empty { display: none; }
.rb-entry .post { position: relative; }
.rb-entry .hidden-fields-container { display: none; }
.rb-entry a { color: #228be6; max-width: 100%; }
.rb-entry a:hover { color: var(--rb-accent-dark); }
.rb-entry strong, .rb-entry b { color: var(--rb-ink); }
.rb-entry h1, .rb-entry h2, .rb-entry h3, .rb-entry h4, .rb-entry h5, .rb-entry h6 { color: var(--rb-ink); font-family: var(--rb-font); font-weight: 600; }
.rb-entry h1, .rb-entry h2, .rb-entry h3 { font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; text-transform: none; }
.rb-entry h1 { margin-bottom: 14px; font-size: 34px; }
.rb-entry h2 { margin-bottom: 20px; font-size: 28px; }
.rb-entry h3 { margin-bottom: 8px; font-size: 20px; }
.rb-entry p + h1, .rb-entry p + h2, .rb-entry p + h3, .rb-entry p + h4, .rb-entry p + h5, .rb-entry p + h6 { margin-top: 1.5em; }
.rb-entry h1 a, .rb-entry h2 a, .rb-entry h3 a, .rb-entry h4 a, .rb-entry h5 a, .rb-entry h6 a { color: inherit; font-weight: inherit; }
.rb-entry h1 strong, .rb-entry h2 strong, .rb-entry h3 strong, .rb-entry h4 strong, .rb-entry h5 strong, .rb-entry h6 strong { color: inherit; }
.rb-entry ul, .rb-entry ol { margin-bottom: 20px; }
.rb-entry ul { margin-left: 7px; list-style: disc outside; }
.rb-entry li { margin-left: 1em; padding: 3px 0; text-indent: 0; }
.rb-entry form, .rb-entry fieldset { margin-bottom: 20px; }
.rb-entry label { font-size: .92em; font-weight: 700; }
.rb-entry label span, .rb-entry legend span { color: #444444; font-size: 13px; font-weight: 400; }
.rb-entry input[type="checkbox"] { display: inline; }
.rb-entry textarea { width: 100%; min-height: 60px; line-height: 1.5em; }
.rb-entry input[type="text"], .rb-entry input[type="email"], .rb-entry input[type="tel"], .rb-entry input[type="number"], .rb-entry input[type="url"], .rb-entry select, .rb-entry textarea {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 6px;
	border: 1px solid var(--rb-line);
	background-color: #f5f8fb;
	color: #4a5a75;
	font-size: 1em;
	line-height: 1.5em;
	outline: none;
}
.rb-entry input[type="submit"] {
	padding: 9px 22px;
	border: 0;
	border-radius: 6px;
	background-color: #228be6;
	color: #ffffff;
	font-weight: 600;
	letter-spacing: .01em;
	cursor: pointer;
}

/* Seiten ohne rbh-* Abschnitte (z. B. Informationspflichten) */
.rb-entry--prose { max-width: 860px; padding: 56px 0 72px; }
.rb-entry--prose .rb-entry__title { margin: 0 0 24px; color: var(--rb-ink); font-size: 38px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.rb-entry--prose h2 { margin: 36px 0 12px; color: var(--rb-ink); font-size: 26px; font-weight: 700; line-height: 1.25; }
.rb-entry--prose h3 { margin: 28px 0 10px; color: var(--rb-ink); font-size: 20px; font-weight: 700; line-height: 1.3; }
.rb-entry--prose p, .rb-entry--prose ul, .rb-entry--prose ol, .rb-entry--prose table { margin: 0 0 16px; }
.rb-entry--prose ul { padding-left: 22px; list-style: disc outside; }
.rb-entry--prose ol { padding-left: 22px; list-style: decimal outside; }
.rb-entry--prose a { text-decoration: underline; text-underline-offset: 2px; }
.rb-entry--prose td, .rb-entry--prose th { padding: 8px 12px; border: 1px solid var(--rb-line); text-align: left; vertical-align: top; }
.rb-entry--prose th { color: var(--rb-ink); font-weight: 600; }

/* ---------- Kopf ---------- */
.rb-header {
	position: relative;
	z-index: 500;
	background: #ffffff;
	box-shadow: 0 0 2px 1px rgba(0, 0, 0, .1);
}

.rb-topbar {
	background: var(--rb-dark);
	color: #b4c3d8;
	font-size: 14px;
	line-height: 1.4;
}
.rb-topbar__inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 38px;
	padding-bottom: 8px;
}
.rb-topbar__phone {
	padding: 5px 34px 5px 0;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
}
.rb-topbar__phone:hover { color: #ffffff; }

.rb-topbar__menu { display: flex; align-items: center; }
.rb-topbar__menu > li {
	position: relative;
	padding: 0 10px;
	border-right: 1px solid rgba(255, 255, 255, .18);
	line-height: 10px;
}
.rb-topbar__menu > li:last-child { border-right: 0; }
.rb-topbar__menu > li > a {
	display: inline;
	padding: 7px 0;
	color: #b4c3d8;
	font-size: 14px;
	font-weight: 700;
	line-height: 10px;
	white-space: nowrap;
}
.rb-topbar__menu > li > a:hover,
.rb-topbar__menu > li:focus-within > a { color: #ffffff; }

.rb-mainbar {
	position: relative;
	margin-top: -1px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(15, 30, 60, .07);
}
.rb-mainbar__inner {
	display: flex;
	align-items: center;
	height: 80px;
}

.rb-logo {
	display: block;
	flex: 0 0 auto;
	margin-right: auto;
	padding: 12px 0;
	line-height: 0;
}
.rb-logo img { display: block; width: auto; height: 56px; }

/* Hauptmenue */
.rb-nav { height: 100%; }
.rb-nav__menu { display: flex; height: 100%; }
.rb-nav__menu > li { position: relative; }
.rb-nav__menu > li > a {
	display: block;
	padding: 0 16px;
	color: var(--rb-nav);
	font-size: 16px;
	font-weight: 500;
	line-height: 80px;
	white-space: nowrap;
}
.rb-nav__menu > li:hover > a,
.rb-nav__menu > li:focus-within > a,
.rb-nav__menu > li.current-menu-item > a,
.rb-nav__menu > li.current-menu-ancestor > a { color: var(--rb-ink); }

.rb-nav__text { position: relative; }
.rb-nav__text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 2px;
	border-radius: 2px;
	background: var(--rb-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .2s ease;
}
.rb-nav__menu > li:hover > a .rb-nav__text::after,
.rb-nav__menu > li:focus-within > a .rb-nav__text::after,
.rb-nav__menu > li.current-menu-item > a .rb-nav__text::after,
.rb-nav__menu > li.current-menu-ancestor > a .rb-nav__text::after { transform: scaleX(1); }

/* Ausklappmenues (Hauptmenue und Kopfzeile) */
.rb-nav__menu .sub-menu,
.rb-topbar__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	width: 208px;
	padding: 6px 0;
	background: #ffffff;
	border: 1px solid #e2e6ee;
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(15, 30, 60, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.rb-topbar__menu .sub-menu { top: calc(100% + 17px); left: -50px; }
.rb-topbar__menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }

.rb-nav__menu > li:hover > .sub-menu,
.rb-nav__menu > li:focus-within > .sub-menu,
.rb-topbar__menu > li:hover > .sub-menu,
.rb-topbar__menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
.rb-nav__menu .sub-menu a,
.rb-topbar__menu .sub-menu a {
	display: block;
	padding: 9px 18px;
	color: var(--rb-nav);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
}
.rb-nav__menu .sub-menu li:hover > a,
.rb-nav__menu .sub-menu a:focus-visible,
.rb-nav__menu .sub-menu .current-menu-item > a,
.rb-topbar__menu .sub-menu li:hover > a,
.rb-topbar__menu .sub-menu a:focus-visible,
.rb-topbar__menu .sub-menu .current-menu-item > a { background: var(--rb-soft); color: var(--rb-accent); }

/* Symbolknoepfe */
.rb-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rb-nav);
	cursor: pointer;
}
.rb-iconbtn:hover { color: var(--rb-ink); }

/* Suche */
.rb-search { position: relative; height: 100%; }
.rb-search__toggle { width: 45px; height: 100%; padding: 2px 0 0 1px; }
.rb-search__toggle svg { width: 15px; height: 15px; }
.rb-search__panel {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	display: flex;
	gap: 8px;
	width: 340px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e2e6ee;
	border-radius: 8px;
	box-shadow: 0 18px 40px rgba(15, 30, 60, .12);
}
.rb-search__panel[hidden] { display: none; }
.rb-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #d5deea;
	border-radius: 8px;
	background: #ffffff;
	color: var(--rb-ink);
	font-size: 16px;
	line-height: 1.4;
}
.rb-search__input:focus { border-color: var(--rb-accent); outline: none; box-shadow: 0 0 0 3px rgba(34, 138, 230, .18); }
.rb-search__submit {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--rb-accent);
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}
.rb-search__submit:hover { background: var(--rb-accent-dark); }

/* Menueknopf fuer Tablet und Smartphone */
.rb-burger { display: none; width: 55px; height: 100%; padding-left: 20px; }
.rb-burger__lines,
.rb-burger__lines::before,
.rb-burger__lines::after {
	display: block;
	width: 35px;
	height: 3px;
	border-radius: 3px;
	background: currentColor;
}
.rb-burger__lines { position: relative; }
.rb-burger__lines::before,
.rb-burger__lines::after { content: ""; position: absolute; left: 0; }
.rb-burger__lines::before { top: -10px; }
.rb-burger__lines::after { top: 10px; }

/* ---------- Mobilmenue ---------- */
.rb-offcanvas { position: fixed; inset: 0; z-index: 1000; }
.rb-offcanvas[hidden] { display: none; }
.rb-offcanvas__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.rb-offcanvas__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 350px;
	max-width: 100%;
	padding: 96px 0 48px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #ffffff;
	box-shadow: -12px 0 40px rgba(15, 30, 60, .12);
	animation: rb-slide-in .25s ease;
}
@keyframes rb-slide-in { from { transform: translateX(100%); } to { transform: none; } }

.rb-offcanvas__close {
	position: absolute;
	top: 28px;
	right: 30px;
	width: 44px;
	height: 44px;
	color: var(--rb-ink);
}

.rb-mobile__menu { border-top: 1px solid var(--rb-line); }
.rb-mobile__menu li { position: relative; }
.rb-mobile__menu a {
	display: block;
	padding: 15px 50px;
	border-bottom: 1px solid var(--rb-line);
	color: var(--rb-ink);
	font-size: 17px;
	line-height: 1.3;
}
.rb-mobile__menu .menu-item-has-children > a { padding-right: 64px; }
.rb-mobile__menu .sub-menu { display: none; background: #f8fafc; }
.rb-mobile__menu .is-open > .sub-menu { display: block; }
.rb-mobile__menu .sub-menu a { padding-left: 70px; font-size: 15px; }

.rb-mobile__toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 64px;
	height: 52px;
	color: #9aa6b8;
}
.rb-mobile__toggle svg { transition: transform .2s ease; }
.rb-mobile__menu .is-open > .rb-mobile__toggle svg { transform: rotate(90deg); }

html.rb-noscroll { overflow: hidden; }

/* ---------- Footer ---------- */
.rb-footer {
	padding: 56px 0 36px;
	background: var(--rb-dark);
	border-top: 1px solid #1a2a40;
	color: #b4c3d8;
}
.rb-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 6%;
}
.rb-widget { display: flow-root; margin: 30px 0; }
.rb-widget__title {
	margin: 12.75px 0 14px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}
.rb-footer li { padding: 4px 0; font-size: 15px; }
.rb-footer li a {
	display: block;
	padding: 5px 0;
	color: #c5cad8;
	font-size: 15px;
	line-height: 1.5;
}
.rb-footer li a:hover,
.rb-footer .current-menu-item > a { color: #ffffff; }

.rb-socket {
	margin-top: -1px;
	background: var(--rb-darker);
	border-top: 1px solid var(--rb-dark);
	color: #8aa1c2;
	font-size: 14px;
	line-height: 28px;
}
.rb-socket .rb-container { padding-top: 18px; padding-bottom: 18px; }
.rb-socket__copy { font-size: 14px; line-height: 28px; }

/* ---------- Nach oben ---------- */
.rb-totop {
	position: fixed;
	right: 50px;
	bottom: 50px;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 8px;
	background: var(--rb-accent);
	color: #ffffff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility 0s linear .2s, background-color .2s ease;
}
.rb-totop.is-visible { opacity: .7; visibility: visible; transition: opacity .2s ease, visibility 0s, background-color .2s ease; }
.rb-totop:hover { opacity: 1; background: var(--rb-accent-dark); color: #ffffff; }

/* ---------- Hinweis zu Cookies ---------- */
.rb-hint {
	position: fixed;
	left: 30px;
	bottom: 30px;
	z-index: 999;
	width: 312px;
	max-width: calc(100% - 40px);
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--rb-line);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(15, 30, 60, .16);
	color: #4a5a75;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}
.rb-hint[hidden] { display: none; }
.rb-hint__text a { color: var(--rb-accent-dark); text-decoration: underline; }
.rb-hint__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.rb-hint__btn {
	min-width: 80px;
	padding: 8px 14px;
	border: 1px solid var(--rb-accent);
	border-radius: 999px;
	background: #ffffff;
	color: var(--rb-accent);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.rb-hint__btn--primary { background: var(--rb-accent); color: #ffffff; }
.rb-hint__btn:hover { background: var(--rb-accent-dark); border-color: var(--rb-accent-dark); color: #ffffff; }

/* ---------- Desktop: Kopf bleibt oben stehen ---------- */
@media only screen and (min-width: 990px) {
	.rb-header { position: sticky; top: var(--rb-admin-bar); }
	html { scroll-padding-top: 130px; }
}

/* ---------- Tablet und Smartphone ---------- */
@media only screen and (max-width: 989px) {
	.rb-nav { display: none; }
	.rb-burger { display: inline-flex; }
	.rb-search__toggle { width: 39px; }
	.rb-mainbar__inner { height: 90px; }
	.rb-logo img { height: 66px; }
	.rb-totop { right: 20px; bottom: 20px; }
}

@media only screen and (max-width: 767px) {
	.rb-container { width: 85%; max-width: 85%; padding-left: 0; padding-right: 0; }

	.rb-topbar__inner { flex-direction: column; justify-content: center; gap: 4px; padding: 11px 0 9px; min-height: 0; }
	.rb-topbar__phone { padding: 0; }
	.rb-topbar__menu { --rb-gap: clamp(12px, 5vw, 24px); column-gap: var(--rb-gap); }
	.rb-topbar__menu > li { padding: 0; border: 0; line-height: 18px; }
	.rb-topbar__menu > li + li::before {
		content: "";
		position: absolute;
		top: 4px;
		left: calc(var(--rb-gap) / -2);
		width: 1px;
		height: 10px;
		background: rgba(255, 255, 255, .22);
	}
	.rb-topbar__menu > li > a { padding: 0; font-size: 12.5px; line-height: 18px; }
	.rb-topbar__menu .sub-menu { display: none; }

	.rb-mainbar__inner { height: 80px; }
	.rb-logo { flex: 0 1 auto; width: 80%; max-width: 330px; padding: 0; }
	.rb-logo img { width: 100%; height: auto; }
	.rb-search { display: none; }

	.rb-footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding-bottom: 20px; }

	.rb-hint { left: 20px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
