/*
 * Wigger Select 2.0 – Portal-Optik passend zum Login (master.php).
 * Reine Darstellungsschicht ueber Bootstrap 3 / sb-admin-2 / formular.css:
 * keine Struktur, keine IDs, kein JavaScript. Wird nach style.css geladen;
 * "body" vor Selektoren, die formular.css (spaeter im Inhalt geladen) sonst ueberschreibt.
 */
:root {
	--ws-dunkel: #2b3034;
	--ws-tief: #1d2023;
	--ws-grund: #f3f4f6;
	--ws-linie: #e3e6e9;
	--ws-feld: #d5d9dd;
	--ws-text: #2b3034;
	--ws-grau: #6b7378;
	--ws-orange: #ec6707;
	--ws-orange-dunkel: #d15b04;
	--ws-rot: #c0392b;
}

/* ---------------------------------------------------------------- Grundflaeche */
body {
	background: var(--ws-grund);
	color: var(--ws-text);
}
#wrapper,
#page-wrapper {
	background: var(--ws-grund);
}
#page-wrapper {
	border-left: 0;
	padding: 8px 32px 90px; /* Platz fuer Vorschau/Gesamtbetrag unten rechts */
}
h1 {
	margin: 26px 0 22px;
	font-size: 28px;
	font-weight: 600;
	color: var(--ws-text);
}
a {
	color: var(--ws-dunkel);
}

/* ---------------------------------------------------------------- Kopf */
nav.navbar.navbar-inverse {
	background: linear-gradient(180deg, #3a4146 0%, var(--ws-dunkel) 100%);
	border: 0;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------------------------- Seitenleiste */
.navbar-default.sidebar {
	background: #fff;
	border-right: 1px solid var(--ws-linie);
	padding-top: 14px;
	min-height: calc(100vh - 80px);
}
.sidebar ul li {
	border-bottom: 0;
}
#side-menu a {
	margin: 2px 12px;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--ws-text);
	font-weight: 500;
	transition: background .15s, color .15s;
}
#side-menu .nav-second-level a {
	padding-left: 34px;
	font-weight: 400;
	color: var(--ws-grau);
}
#side-menu a:hover,
#side-menu a:focus {
	background: var(--ws-grund);
	color: var(--ws-text);
}
#side-menu a.active,
#side-menu a.active:hover,
#side-menu a.active:focus {
	background: var(--ws-orange);
	color: #fff;
}
#side-menu .nav-second-level a.active {
	background: #fdf0e6;
	color: var(--ws-orange-dunkel);
	font-weight: 600;
}
#side-menu .badge {
	background: var(--ws-orange);
	color: #fff;
}
#side-menu a.active .badge {
	background: #fff;
	color: var(--ws-orange-dunkel);
}
#side-menu .nav-second-level a.active .badge {
	background: var(--ws-orange);
	color: #fff;
}

/* ---------------------------------------------------------------- Karten (Schritte, Einstieg) */
body .jumbotron {
	background: #fff;
	border: 1px solid var(--ws-linie);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
	padding: 28px 36px 32px;
}
/* Schritte nutzen die volle Breite statt des festen Bootstrap-Containers */
body .jumbotron > .container {
	width: auto;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}
body .jumbotron h2,
body h2.fragen {
	margin-top: 0;
	font-size: 24px;
	font-weight: 600;
	color: var(--ws-text);
}
body .jumbotron h3 {
	font-size: 18px;
	font-weight: 600;
}
body .skip {
	margin-top: 22px;
	padding-top: 24px;
	border-top: 1px solid var(--ws-linie);
}
/* Kopf eines Schritts: Titel links, "zurueck"/"weiter" rechts in einer Zeile */
body .jumbotron .col-md-12:has(> h2.fragen) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
}
body .jumbotron .col-md-12 > h2.fragen {
	flex: 1 1 auto;
	margin: 0;
}
body .jumbotron .col-md-12:has(> h2.fragen) > h2.fragen + .row {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	margin: 0;
}
body .jumbotron .col-md-12:has(> h2.fragen) > h2.fragen + .row > [class*="col-"] {
	width: auto;
	float: none;
	padding: 0;
}
body .jumbotron .col-md-12:has(> h2.fragen) > h2.fragen + .row > .text-center {
	display: none;
}
body .jumbotron .col-md-12:has(> h2.fragen) > h2.fragen + .row .pull-right {
	float: none !important;
}
/* weitere Zeilen in derselben Spalte (Inhalt, Hinweise) wieder ueber die volle Breite */
body .jumbotron .col-md-12:has(> h2.fragen) > .row:not(h2.fragen + .row) {
	flex: 1 0 100%;
	margin-left: 0;
	margin-right: 0;
}
body .jumbotron .col-md-12:has(> h2.fragen) > .alert {
	flex: 1 0 100%;
	margin: 4px 0 0 !important;
}
/* Datenerfassung: Beschriftung | breites Feld | mm */
#position1 .form-group {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
}
#position1 .form-group::before,
#position1 .form-group::after {
	display: none; /* Bootstrap-Clearfix waere sonst ein eigenes Flex-Element */
}
#position1 .form-group:not(:has(> label)) {
	display: block;
}
#position1 .form-group > label {
	flex: 0 0 120px;
	width: auto;
	margin: 0;
	padding: 0;
}
#position1 .form-group > .col-md-5 {
	flex: 1 1 auto;
	width: auto;
	padding: 0;
}
#position1 .form-group > .col-md-1 {
	flex: 0 0 auto;
	width: auto;
	padding: 0;
	color: var(--ws-grau);
}
#position1 .form-group small {
	display: block;
	margin-top: 4px;
	color: var(--ws-grau);
}
#position1 .form-control {
	height: 44px;
}
#position1 h3 {
	margin-top: 0;
}
/* Kundendaten: Beschriftung | Feld, unabhaengig von der unterschiedlichen Verschachtelung im Template */
#position15 .skip .row,
#position15 .skip .col-md-12 {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}
#position15 .form-group {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 14px;
}
#position15 .form-group::before,
#position15 .form-group::after {
	display: none;
}
#position15 .form-group > label {
	flex: 0 0 220px;
	width: auto;
	margin: 0;
	padding: 11px 0 0;
}
#position15 .form-group > label small {
	font-weight: 400;
	color: var(--ws-grau);
}
#position15 .form-group > div {
	flex: 1 1 auto;
	width: auto;
	max-width: 640px;
	padding: 0;
}
#position15 .form-control {
	height: 44px;
}
#position15 textarea.form-control {
	height: auto;
	min-height: 96px;
}
/* Vorschau und Gesamtbetrag als feste Leiste unten rechts (Vorschau ist im Formular per Inline-Style positioniert) */
#KonfiguratorStart {
	position: fixed !important;
	top: auto !important;
	right: 236px !important;
	bottom: 24px;
	z-index: 1000;
	padding: 10px 20px;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
#page-wrapper .btn-dark.pull-right {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;
	margin: 0;
}
/* Zwischenueberschrift in einem Schritt, z.B. "Glaeser Option Seitenteil" */
body .skip + .row h2.fragen {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--ws-linie);
}

/* Einstieg "Neue Bestellung": ganze Karte als Auswahl */
body .jumbotron:has(img.einstieg) {
	padding: 26px 22px;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
body .jumbotron:has(img.einstieg):hover {
	border-color: var(--ws-orange);
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
	transform: translateY(-2px);
}
body .jumbotron:has(img.einstieg) a,
body .jumbotron:has(img.einstieg) a:hover {
	color: var(--ws-text);
	text-decoration: none;
}
body .jumbotron:has(img.einstieg) h4 {
	margin-bottom: 18px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

/* ---------------------------------------------------------------- Fortschritt */
body .step {
	height: 6px;
	border-radius: 3px;
	background: var(--ws-linie);
}
body .step.active {
	background: var(--ws-orange);
}

/* ---------------------------------------------------------------- Knoepfe */
body .btn {
	border-radius: 8px;
	font-weight: 600;
	padding: 8px 16px;
	transition: background .15s, border-color .15s, color .15s;
}
body .btn-primary {
	background: var(--ws-dunkel);
	border-color: var(--ws-dunkel);
	color: #fff;
}
body .btn-primary:hover,
body .btn-primary:focus,
body .btn-primary:active {
	background: var(--ws-tief);
	border-color: var(--ws-tief);
	color: #fff;
}
/* "weiter »" als Hauptaktion, "« zurueck" zurueckhaltend */
body .btn-primary.pull-right[class*="step"] {
	background: var(--ws-orange);
	border-color: var(--ws-orange);
}
body .btn-primary.pull-right[class*="step"]:hover {
	background: var(--ws-orange-dunkel);
	border-color: var(--ws-orange-dunkel);
}
body .btn-primary[class*="back"] {
	background: #fff;
	border-color: var(--ws-feld);
	color: var(--ws-text);
}
body .btn-primary[class*="back"]:hover {
	background: var(--ws-grund);
	color: var(--ws-text);
}
body .btn-success {
	background: var(--ws-orange);
	border-color: var(--ws-orange);
}
body .btn-success:hover,
body .btn-success:focus {
	background: var(--ws-orange-dunkel);
	border-color: var(--ws-orange-dunkel);
}
body .btn-warning {
	background: #fff;
	border-color: var(--ws-feld);
	color: var(--ws-text);
}
body .btn-warning:hover,
body .btn-warning:focus {
	background: var(--ws-grund);
	border-color: var(--ws-feld);
	color: var(--ws-text);
}
body .btn-dark {
	background: var(--ws-dunkel);
	border-radius: 999px;
	padding: 10px 20px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
body .btn-circle {
	border-radius: 50%;
	padding: 6px 0;
}
#toTop {
	bottom: 84px; /* ueber Vorschau/Gesamtbetrag */
	right: 24px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ws-dunkel);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
#toTop:hover {
	background: var(--ws-orange);
}

/* ---------------------------------------------------------------- Formularfelder, Auswahl */
body .form-control {
	border: 1px solid var(--ws-feld);
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
body .form-control:focus {
	border-color: var(--ws-orange);
	box-shadow: 0 0 0 3px rgba(236, 103, 7, 0.18);
}
body .checkmark {
	border-color: #9aa1a6;
	border-radius: 6px;
	background: #fff;
}
body .preis {
	color: var(--ws-orange-dunkel);
	font-weight: 600;
}
body label img.img-responsive {
	border-radius: 6px;
}

/* ---------------------------------------------------------------- Tabellen */
body .table {
	background: #fff;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
body .table-bordered {
	border: 1px solid var(--ws-linie);
}
body .table-bordered > thead > tr > th,
body .table-bordered > tbody > tr > td {
	border-color: var(--ws-linie);
	border-width: 0 0 1px 0;
}
body .table > thead > tr > th {
	background: #f7f8f9;
	color: var(--ws-grau);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom-width: 1px;
}
body .table > tbody > tr > td,
body .table > thead > tr > th {
	padding: 12px 14px;
	vertical-align: middle;
}
body .table-striped > tbody > tr:nth-of-type(odd) {
	background: #fbfbfc;
}
body .table > tbody > tr:hover {
	background: #fdf6f0;
}
body .table td a {
	font-weight: 600;
	color: var(--ws-text);
}
body .table td a:hover {
	color: var(--ws-orange-dunkel);
	text-decoration: none;
}
/* Bearbeiten-Knopf in den Angebotslisten: die Regel oben wuerde den Stift dunkel
   auf dunklem Kreis zeichnen */
body .table td a.btn-circle {
	background: var(--ws-orange);
	border-color: var(--ws-orange);
	color: #fff;
}
body .table td a.btn-circle:hover,
body .table td a.btn-circle:focus {
	background: var(--ws-orange-dunkel);
	border-color: var(--ws-orange-dunkel);
	color: #fff;
}
body .table td a[href$=".pdf"]::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f1c1";
	margin-right: 9px;
	color: #c0392b;
}
/* "anpassen" in der Uebersicht und andere Knoepfe in Tabellen zurueckhaltend */
body .table .btn-primary:not(.btn-circle) {
	padding: 4px 12px;
	background: #fff;
	border-color: var(--ws-feld);
	color: var(--ws-text);
	font-size: 13px;
	font-weight: 500;
}
body .table .btn-primary:not(.btn-circle):hover {
	background: var(--ws-grund);
	border-color: var(--ws-grau);
	color: var(--ws-text);
}
/* Uebersicht am Ende des Konfigurators: kompakter, Betraege rechtsbuendig */
#position16 .table > tbody > tr > td,
#position16 .table > thead > tr > th {
	padding: 9px 14px;
}
#position16 .table > tbody > tr > td:nth-child(3),
#position16 .table > thead > tr > th:nth-child(3) {
	text-align: right;
	white-space: nowrap;
}
#position16 .table > tbody > tr > td:first-child {
	color: var(--ws-grau);
}

/* ---------------------------------------------------------------- Firmendaten */
#page-wrapper form.form:not(.form-horizontal) {
	max-width: 760px;
	padding: 8px 32px 28px;
	background: #fff;
	border: 1px solid var(--ws-linie);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
#page-wrapper form.form:not(.form-horizontal) h2 {
	margin: 24px 0 14px;
	font-size: 20px;
	font-weight: 600;
}
#page-wrapper form.form:not(.form-horizontal) label {
	font-size: 13px;
	font-weight: 600;
	color: #3d4449;
}
#page-wrapper form.form:not(.form-horizontal) .form-control {
	height: 42px;
}

/* ---------------------------------------------------------------- Hinweise */
body .alert {
	border-radius: 10px;
	border-width: 0 0 0 4px;
}
body .alert-info {
	background: #eef3f8;
	border-color: #6d8fb3;
	color: var(--ws-text);
}
