/* ==========================================================================
   Gutachten AfA – Auftragsformular
   Überarbeitet 23.11.2026: aufgeräumt (deaktivierte Regeln entfernt),
   Syntaxfehler behoben, einheitliche Überschriften auf Mobilgeräten,
   Styles für Gutschein, Exit-Hinweis und einklappbare Info-Kästen.
   ========================================================================== */

/* ---------- Variablen ---------- */
:root {
	--primary: #27358B;
	--primary-dark: #1d2870;
	--blue: #27358B;
	--gray-dark: #555;
	--dark-gray: #555;
	--gray: #ccc;
	--light-gray: #E7E9EB;
	--box-gray: #efefef;
	--red: #e51010;
	--yellow: #f09711;
	--green: #1F8027;
	--green2: #22d330;
	--white: #fff;
	--black: #000;

	--light: 200;
	--normal: 400;
	--bold: 800;

	/* Überschriften (Desktop) */
	--h1-size: 1.8rem;
	--h2-size: 1.6rem;
	--h3-size: 1.2rem;
	--infobox-h2-size: 1.35rem;
	--h3-section-size: 1.35rem;
}

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

body {
	margin: 0;
	padding: 0;
	background: var(--white);
	font-family: 'Montserrat', Verdana, sans-serif;
	font-weight: 300;
	font-style: normal;
	line-height: 28px;
}

b {
	font-family: 'Montserrat', Verdana, sans-serif;
	font-weight: var(--bold);
	font-style: normal;
}

ul { margin-left: -40px; }

ol li, ul li {
	margin-left: 20px;
	padding-left: 10px;
}

/* Links: blau, fett, unterstrichen */
a {
	color: var(--blue);
	font-weight: var(--bold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:visited { color: var(--blue); }
a:hover, a:focus-visible {
	color: var(--primary-dark);
	text-decoration-thickness: 2px;
}

/* Links auf farbigem Hintergrund behalten die Schriftfarbe der Leiste */
#header-bar a, #header-bar a:visited,
.full-width a, .full-width a:visited,
.progress-header a,
.whatsapp-chat a, #save-data a { color: inherit; }
#header-bar a:hover, .full-width a:hover { color: inherit; text-decoration: none; }

.link {
	cursor: pointer;
	text-decoration: underline;
}
.link:hover { text-decoration: none; }

/* Seitenbreite */
#body {
	width: 1080px;
	max-width: 1280px;
	margin: 4rem auto 12rem;
}
@media only screen and (max-width: 1080px) {
	#body { width: 800px; }
}
@media only screen and (max-width: 840px) {
	#body { width: 90%; }
}

.full-width {
	background-color: var(--primary);
	width: 100%;
	text-align: center;
}

.centered-page {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Kopfbereich ---------- */
#header-logo {
	margin-top: 2rem;
	text-align: center;
}

#header, .info-box { margin-bottom: 4rem; }

#header-bar {
	position: sticky;
	top: 2px;
	z-index: 1000;
	color: var(--white);
	background-color: var(--green);
	font-weight: var(--normal);
}
#header-bar p { padding: 5px; }

#instant-result {
	position: fixed;
	bottom: 4px;
	z-index: 1000;
	padding-top: 10px;
	padding-bottom: 10px;
	color: var(--white);
	border-bottom: 1px solid #afafaf;
	box-shadow: 0 1px 10px;
}
#instant-result-content {
	width: 70%;
	margin-left: auto;
	margin-right: auto;
}
#to-toc-link {
	float: right;
	margin-right: 20px;
}

#partner-logo img {
	margin-top: 4rem;
	width: 30%;
}

/* ---------- Überschriften ---------- */
h1, h2, h3 {
	line-height: 1.3;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

h1, h2, h3.design-bar {
	border-left: 8px solid var(--blue);
	padding-left: 16px;
	font-weight: var(--bold);
}

h1 {
	font-size: var(--h1-size);
	margin-top: 2rem;
}

h2 {
	font-size: var(--h2-size);
	margin-top: 3rem;
	margin-bottom: 0;
}

h3 {
	font-size: var(--h3-size);
	margin-top: 2rem;
	margin-bottom: 0.4rem;
}

h4 {
	font-size: 1rem;
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.subtitle { font-size: 16px; }

/* Unterabschnitte (Modernisierungen, Auftrag): h3 mit Balken, größer als Feldbeschriftungen */
h3.modernization-heading,
h3.section-heading {
	font-size: var(--h3-section-size);
	margin-top: 3rem;
	margin-bottom: 1rem;
}

/* Sprungmarken */
.anchor { scroll-margin-top: 200px; }

/* ---------- Info-Kästen ---------- */
.info-box {
	padding: 20px;
	background: var(--box-gray);
	border-radius: 10px;
}
.info-box h2 {
	font-size: var(--infobox-h2-size);
	margin-top: 0;
	margin-bottom: 1rem;
}
.info-box .image img {
	width: 70%;
	text-align: center;
}
.info-box .image .subtitle { font-weight: var(--normal); }
.info-box hr {
	margin-top: 2rem;
	margin-bottom: 2rem;
	color: var(--gray);
}
.info-box ul, .info-box ol { margin-left: -20px; }

.un-fold {
	float: right;
	cursor: pointer;
}

ol.toc, ol.toc-sub, ol.service-overview { margin-left: -40px; }
ol.service-overview li { margin-bottom: 1rem; }

ol.info-box li {
	line-height: 24px;
	margin-bottom: 20px;
}

ol.four-steps-tutorial { margin-bottom: 0.2rem; }
ol.four-steps-tutorial li {
	line-height: 20px;
	margin-bottom: 20px;
}

/* Wichtige Hinweise */
.important-notes {
	margin-top: 1rem;
	margin-bottom: 2rem;
	padding: 16px;
	background: var(--box-gray);
	font-size: 1rem;
	line-height: 24px;
}
.important-notes .headline {
	display: block;
	font-weight: var(--bold);
}
.important-notes .text ul li { margin-bottom: 6px; }
.important-notes .contact-hint {
	margin-top: 1rem;
	font-size: 0.8rem;
}

p.info-text {
	font-size: 14px;
	margin-top: 4px;
	line-height: 16px;
}

/* Felder für die kostenlose Ersteinschätzung */
.free-assessement-color, .blue { color: #4a85ed; }
.free-assessment-border { background: rgba(74, 133, 237, 0.2); }

/* ---------- Formular ---------- */
#order-form-container { margin-bottom: 10rem; }

.form-control { margin-bottom: 2rem; }

input { font-size: 1rem; }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="submit"],
select,
textarea {
	width: 90%;
	padding: 6px;
	font-family: 'Montserrat', Verdana, sans-serif;
	font-size: 1rem;
}
select { width: 94%; }
select, input[type="date"] { font-weight: 300; }
textarea { height: 12rem; }
input[type="submit"] { width: 93%; }
input#booked-services-vorort-amount { width: 50px; }

input:focus, select:focus, textarea:focus {
	outline: 4px double var(--red);
}

label {
	margin-left: 6px;
	font-size: 1rem;
	line-height: 24px;
	font-weight: normal;
}

.red-border { border: 2px solid var(--red); }

/* Platzhalter */
::placeholder {
	color: var(--dark-gray);
	font-weight: 200;
}
::-webkit-input-placeholder {
	color: var(--dark-gray);
	font-weight: 200;
}

/* ---------- Schaltflächen ---------- */
.buttonCopyInvoiceData {
	max-width: 90%;
	margin-top: 15px;
	padding: 5px;
	border: 1px solid var(--black);
	border-radius: 4px;
	background: var(--light-gray);
	color: var(--black);
	text-align: center;
	font-weight: var(--normal);
	cursor: pointer;
}
.buttonCopyInvoiceData:hover {
	background: var(--gray-dark);
	color: var(--white);
}

#signature-save-button,
#signature-clear-button {
	padding: 6px;
	font-family: 'Montserrat', Verdana, sans-serif;
	background-color: var(--blue);
	color: var(--white);
}
#signature-clear-button { margin-left: 10px; }

button#save-order-button {
	width: 92%;
	padding: 6px;
	font-family: 'Montserrat', Verdana, sans-serif;
	font-size: 1rem;
	background-color: var(--blue);
	color: var(--white);
}

button#order-form-submit {
	width: 90%;
	font-family: 'Montserrat', Verdana, sans-serif;
	background-color: var(--blue);
	color: var(--white);
}
.order-form-submit-disabled { background-color: var(--gray) !important; }

#submitText {
	width: 91%;
	padding: 10px;
	border-radius: 4px;
	background: var(--red);
	color: var(--white);
	text-align: center;
}

#saveSignature { background-color: var(--white); }

/* ---------- Preise ---------- */
.price-tag {
	float: right;
	font-weight: 600;
}
.price-total-bar { font-size: 1.6rem; }

/* ---------- Modernisierungen ---------- */
.modernization-percentage { width: 45% !important; }
.modernization-or { color: var(--gray); }
.moderzination-dropdown {
	border-top: 2px solid black;
	border-left: 2px solid black;
	border-right: 2px solid gray;
	border-bottom: 2px solid gray;
}

/* ---------- Overlay (Speichern) ---------- */
#overlay-bg {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 9999;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
}
#overlay {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 10000;
	width: 80%;
	height: 80%;
	padding: 16px;
	background-color: var(--white);
	transform: translate(-50%, -50%);
	overflow: auto;
}
.overlay-close {
	text-align: right;
	cursor: pointer;
}
.overlay-close a:hover { text-decoration: underline; }

/* ---------- Schwebende Elemente ---------- */
#instant-calculation {
	position: fixed;
	top: 20%;
	right: 0;
	left: -10000px; /* ausgeblendet */
	width: 150px;
	padding: 10px;
	background-color: var(--box-gray);
	border: 2px dotted #acacac;
	border-radius: 4px 0 0 10px;
	text-align: center;
}
#instant-calculation h1 {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	border-left: none;
}
#instant-calculation p {
	margin: 0;
	padding: 0;
	font-size: 1rem;
}
#instant-calculation-years { font-size: 2rem; font-weight: var(--bold); }
#instant-calculation-percentage { font-size: 1.2rem; font-weight: var(--bold); }
.instant-calculation-years, .instant-calculation-percentage { font-size: 20px; }

.whatsapp-chat {
	position: fixed;
	bottom: 10px;
	left: -10000px; /* ausgeblendet */
	z-index: 10000;
	padding: 8px;
	border-radius: 8px;
	background-color: var(--green);
	color: var(--white);
	font-size: 15px;
	font-weight: var(--bold);
}
.whatsapp-chat a, .whatsapp-chat a:hover, .whatsapp-chat a:visited { text-decoration: none !important; }
.whatsapp-chat .icon { width: 20px; }
.whatsapp-chat-label-container {
	display: inline-block;
	height: 20px;
}

#save-data {
	position: fixed;
	bottom: 20%;
	right: -10px;
	z-index: 10000;
	padding: 6px 16px 0 6px;
	border: 4px solid var(--white);
	border-radius: 10px;
	background-color: var(--green);
	color: var(--white);
	text-align: center;
	font-size: 0.8rem;
	cursor: pointer;
}
#save-data:hover {
	background-color: var(--gray);
	color: var(--black);
}
img#save-icon { width: 50px; filter: invert(100%); }
img#share-icon { filter: invert(100%); }

#urlToShareText { position: absolute; left: -10000px; }
#urlToShareIcon { font-size: 32px; }

#submit-button-section {
	position: fixed;
	bottom: 0;
	z-index: 1000;
	width: 100%;
	height: 40px;
	background: var(--white);
	border: 1px solid red;
}

/* ---------- KI-Hinweis, Fußbereich ---------- */
.ask-my-ai {
	margin: 1rem auto 0;
	padding: 10px;
	border-top: 1px dashed var(--black);
	border-bottom: 1px dashed var(--black);
	background: var(--box-gray);
	text-align: center;
}

#footer { text-align: center; }
#footer ul {
	margin-left: -40px;
	list-style-type: none;
}
#footer ul li { display: inline; }

/* ---------- Fortschrittsbalken ---------- */
.progress-header {
	position: fixed;
	top: 0;
	z-index: 1;
	width: 100%;
	background-color: var(--green);
}
.progress-container {
	width: 100%;
	height: 2px;
	background: var(--light-gray);
}
.progress-bar {
	width: 0%;
	height: 2px;
	background: var(--black);
}

/* ---------- Hilfsklassen ---------- */
.left { float: left; }
.right, .fr, .float-right { float: right; }
.clear { clear: both; }

.mandatory {
	margin-left: 0.2rem;
	color: var(--red);
	font-size: 1rem;
}
.dark-gray { color: var(--dark-gray); }
.gray { color: var(--gray-dark); }
.light-gray { color: var(--light-gray); }
.blue2 { color: var(--blue); }
.red { color: var(--red); }
.yellow { color: var(--yellow); }
.green { color: var(--green); }
.green2 { color: var(--green2); }
.light { font-weight: 300; }
.bold, .b { font-weight: var(--bold); }
.hidden { display: none; }
.hidden2 { visibility: hidden; }
.center, .c { text-align: center; }
.uppercase, .uc { text-transform: uppercase; }

@media screen and (min-width: 600px) {
	.mobile-break { display: none; }
}

/* ==========================================================================
   Gutschein-Code
   ========================================================================== */
#voucher-box {
	margin: 2rem 0 1rem;
	padding: 18px 20px;
	border: 1px dashed var(--primary);
	border-radius: 10px;
	background: #f4f5fb;
}
#voucher-box .voucher-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--primary);
	font-size: 1.1rem;
	font-weight: var(--bold);
}
#voucher-box .voucher-row {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
	max-width: 520px;
}
#voucher-box #voucher_code {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 46px !important;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 14px;
	border: 1px solid #b9bfd9;
	border-radius: 6px;
	background: var(--white);
	font-family: 'Montserrat', Verdana, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
#voucher-box #voucher_code[readonly] {
	background: #eef7ef;
	border-color: var(--green);
	color: var(--green);
	font-weight: var(--bold);
}
#voucher-box #voucher_code::placeholder {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 300;
	color: var(--dark-gray);
}
#voucher-box button {
	flex: 0 0 auto !important;
	display: inline-block !important;
	width: auto !important;
	height: 46px !important;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 22px;
	border: 1px solid var(--primary);
	border-radius: 6px;
	font-family: 'Montserrat', Verdana, sans-serif;
	font-size: 1rem;
	font-weight: var(--bold);
	cursor: pointer;
}
#voucher-box #voucher-apply { background: var(--primary); color: var(--white); }
#voucher-box #voucher-apply:hover { background: var(--primary-dark); }
#voucher-box #voucher-apply:disabled { opacity: .6; cursor: wait; }
#voucher-box #voucher-remove { background: var(--white); color: var(--primary); }
#voucher-box #voucher-remove:hover { background: var(--light-gray); }
#voucher-box .voucher-hidden { display: none !important; }
#voucher-box .voucher-status { margin: 10px 0 0; font-size: .95rem; line-height: 1.4; }
#voucher-box .voucher-status:empty { display: none; }
#voucher-box .voucher-status.ok { color: var(--green); font-weight: 600; }
#voucher-box .voucher-status.err { color: var(--red); font-weight: 600; }

#voucher-summary { margin: 1rem 0 0; font-size: 1rem; }
#voucher-summary .vs-row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 6px 0;
	border-bottom: 1px solid var(--light-gray);
}
#voucher-summary .vs-discount { color: var(--green); font-weight: var(--bold); }

/* ==========================================================================
   Exit-Hinweis „Später weitermachen?“
   ========================================================================== */
#exit-intent-popup {
	position: fixed;
	top: 16px;
	left: 50%;
	z-index: 10001;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(560px, calc(100% - 32px));
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid var(--light-gray);
	border-left: 4px solid var(--primary);
	border-radius: 10px;
	background: var(--white);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
	font-size: 15px;
	line-height: 1.45;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -12px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
#exit-intent-popup.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity .25s ease, transform .25s ease;
}
#exit-intent-popup .exit-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #eceffa;
	color: var(--primary);
	font-size: 17px;
}
#exit-intent-popup .exit-text { flex: 1 1 auto; margin: 0; }
#exit-intent-popup .exit-text strong {
	display: block;
	color: var(--primary);
	font-weight: var(--bold);
}
#exit-intent-popup .exit-save {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 0;
	border-radius: 6px;
	background: var(--primary);
	color: var(--white);
	font-family: 'Montserrat', Verdana, sans-serif;
	font-size: 14px;
	font-weight: var(--bold);
	white-space: nowrap;
	cursor: pointer;
}
#exit-intent-popup .exit-save:hover { background: var(--primary-dark); }
#exit-intent-popup .exit-close {
	flex: 0 0 auto;
	align-self: flex-start;
	margin: -6px -6px 0 0;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: var(--dark-gray);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
#exit-intent-popup .exit-close:hover { color: var(--black); }

/* ==========================================================================
   Info-Kästen einklappbar
   ========================================================================== */
.info-box > h2.info-toggle {
	position: relative;
	padding-right: 48px;
	cursor: pointer;
	user-select: none;
}
.info-box > h2.info-toggle:focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: 4px;
}
.info-box > h2.info-toggle .info-chevron {
	position: absolute;
	right: 0;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: var(--white);
	color: var(--primary);
	font-size: 16px;
	transition: transform .25s ease;
}
.info-box.is-open > h2.info-toggle .info-chevron { transform: rotate(180deg); }
.info-box > h2.info-toggle:hover .info-chevron {
	background: var(--primary);
	color: var(--white);
}
.info-box.is-collapsed > h2.info-toggle { margin-bottom: 0; }
.info-box.is-collapsed {
	padding-bottom: 20px;
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   Upload-Felder (sammeln, Drag & Drop)
   ========================================================================== */
input[type="file"].upload-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}
.upload-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 90%;
	box-sizing: border-box;
	padding: 22px 16px;
	border: 2px dashed #b9bfd9;
	border-radius: 10px;
	background: #f7f8fc;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.upload-zone:hover, .upload-zone:focus-visible, .upload-zone.is-dragover {
	border-color: var(--primary);
	background: #eceffa;
	outline: none;
}
.upload-zone.has-files { padding: 12px 16px; }
.upload-zone.has-files .upload-zone-icon, .upload-zone.has-files .upload-zone-hint { display: none; }
.upload-zone-icon { color: var(--primary); font-size: 28px; }
.upload-zone-text { font-size: 1rem; }
.upload-zone-link { color: var(--blue); font-weight: var(--bold); text-decoration: underline; text-underline-offset: 3px; }
.upload-zone-hint { color: var(--dark-gray); font-size: .85rem; }

.upload-list {
	width: 90%;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.upload-list .upload-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	padding: 6px 8px;
	border: 1px solid var(--light-gray);
	border-radius: 8px;
	background: var(--white);
	line-height: 1.3;
}
.upload-thumb {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	object-fit: cover;
	background: #eceffa;
}
.upload-thumb-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 20px;
}
.upload-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}
.upload-state { color: var(--dark-gray); font-size: .8rem; line-height: 1.2; }
.upload-item.is-done .upload-state { color: var(--green); }
.upload-item.is-local .upload-state { color: var(--dark-gray); }
.upload-bar {
	display: block;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: #dfe3f3;
}
.upload-bar-fill {
	display: block;
	width: 0;
	height: 100%;
	background: var(--primary);
	transition: width .2s ease;
}
.upload-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .95rem;
}
.upload-size { flex: 0 0 auto; color: var(--dark-gray); font-size: .85rem; }
.upload-remove {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--dark-gray);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.upload-remove:hover { background: #fdecec; color: var(--red); }
.upload-msg { margin: 6px 0 0; color: var(--red); font-size: .9rem; }
.upload-msg:empty { display: none; }
.upload-total { color: var(--black); }
.upload-privacy { display: inline-block; margin-top: 4px; color: var(--dark-gray); font-size: .85rem; line-height: 1.4; }

/* ==========================================================================
   Absenden mit Fortschrittsbalken
   ========================================================================== */
#submitText.upload-progress-box {
	width: 90%;
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid var(--light-gray);
	border-left: 4px solid var(--primary);
	border-radius: 10px;
	background: #f7f8fc;
	color: var(--black);
	text-align: left;
}
.upload-progress-box .up-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 10px;
}
.upload-progress-box .up-title { font-weight: var(--bold); color: var(--primary); }
.upload-progress-box .up-percent { font-size: 1.4rem; font-weight: var(--bold); color: var(--primary); font-variant-numeric: tabular-nums; }
.upload-progress-box .up-bar {
	position: relative;
	height: 14px;
	overflow: hidden;
	border-radius: 7px;
	background: #dfe3f3;
}
.upload-progress-box .up-fill {
	width: 0;
	height: 100%;
	border-radius: 7px;
	background: var(--primary);
	transition: width .3s ease;
}
.upload-progress-box .up-bar.is-processing .up-fill {
	background: repeating-linear-gradient(45deg, var(--primary) 0 12px, #3d4ba3 12px 24px);
	background-size: 34px 34px;
	animation: up-stripes 1s linear infinite;
}
@keyframes up-stripes { from { background-position: 0 0; } to { background-position: 34px 0; } }
.upload-progress-box .up-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	color: var(--dark-gray);
	font-size: .95rem;
	font-variant-numeric: tabular-nums;
}
.upload-progress-box .up-note { margin: 12px 0 0; font-size: .9rem; line-height: 1.4; }
#submitText.upload-progress-box.is-error { border-left-color: var(--red); background: #fdf0f0; }
.upload-progress-box.is-error .up-title { color: var(--red); }
@media (prefers-reduced-motion: reduce) {
	.upload-progress-box .up-fill, .upload-progress-box .up-bar.is-processing .up-fill { transition: none; animation: none; }
}

/* ==========================================================================
   Bestätigungsseite nach dem Absenden
   ========================================================================== */
body.order-ok-page { background: #f4f5fb; }
.order-ok {
	max-width: 720px;
	margin: 0 auto;
	padding: 2rem 16px 4rem;
}
.order-ok-logo { text-align: center; margin-bottom: 1.5rem; }
.order-ok-logo img { max-width: 260px; width: 60%; height: auto; }
.order-ok-card {
	padding: 32px 32px 24px;
	border-top: 6px solid var(--green);
	border-radius: 12px;
	background: var(--white);
	box-shadow: 0 10px 30px rgba(39, 53, 139, .10);
	text-align: center;
}
.order-ok-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #e8f4e9;
	color: var(--green);
	font-size: 34px;
	animation: ok-pop .4s ease-out;
}
@keyframes ok-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
h1.order-ok-title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.8rem;
	line-height: 1.25;
}
.order-ok-lead { margin: 6px 0 0; font-size: 1.15rem; }
.order-ok-number {
	display: inline-block;
	margin: 14px 0 0;
	padding: 6px 14px;
	border-radius: 20px;
	background: var(--box-gray);
	font-size: .95rem;
	letter-spacing: .02em;
}
.order-ok-action {
	margin: 24px 0 8px;
	padding: 18px 20px;
	border-left: 4px solid var(--primary);
	border-radius: 8px;
	background: #eceffa;
	text-align: left;
	line-height: 1.55;
}
.order-ok-action p { margin: 0; }
.order-ok-action-title {
	margin-bottom: 6px !important;
	color: var(--primary);
	font-size: 1.1rem;
	font-weight: var(--bold);
}
.order-ok-action-title i { margin-right: 6px; }
.order-ok-email { overflow-wrap: anywhere; white-space: nowrap; }
@media only screen and (max-width: 600px) { .order-ok-email { white-space: normal; } }
ol.order-ok-steps {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
ol.order-ok-steps li {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--light-gray);
	line-height: 1.5;
}
ol.order-ok-steps li:last-child { border-bottom: 0; }
.order-ok-steps .step-no {
	flex: 0 0 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
	font-weight: var(--bold);
}
.ok-note {
	display: flex;
	gap: 10px;
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 8px;
	text-align: left;
	line-height: 1.5;
}
.ok-note i { margin-top: 4px; }
.ok-note-success { background: #e8f4e9; color: #1b5e20; }
.ok-note-warn { background: #fdf0f0; color: #a11; }
.order-ok-small {
	margin: 20px 0 0;
	color: var(--dark-gray);
	font-size: .88rem;
	line-height: 1.5;
	text-align: left;
}
.order-ok-more {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}
.ok-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 8px;
	font-size: .95rem;
	text-decoration: none !important;
}
.ok-btn-primary { background: var(--primary); color: var(--white) !important; }
.ok-btn-primary:hover { background: var(--primary-dark); }
.ok-btn-secondary { border: 1px solid var(--primary); background: var(--white); color: var(--primary) !important; }
.ok-btn-secondary:hover { background: #eceffa; }

/* ==========================================================================
   Seitennavigation links (nur Desktop)
   ========================================================================== */
#section-nav { display: none; }
@media only screen and (min-width: 1240px) {
	#section-nav {
		position: fixed;
		left: 14px;
		top: 50%;
		z-index: 20000;
		display: block;
		opacity: 0;
		visibility: hidden;
		transform: translate(-8px, -50%);
		transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
	}
	#section-nav.is-visible {
		opacity: 1;
		visibility: visible;
		transform: translate(0, -50%);
		transition: opacity .25s ease, transform .25s ease;
	}
	#section-nav ul {
		margin: 0;
		padding: 8px 6px;
		list-style: none;
		border: 1px solid var(--light-gray);
		border-left: 4px solid var(--primary);
		border-radius: 0 28px 28px 0;
		background: var(--white);
		box-shadow: 0 6px 22px rgba(39, 53, 139, .12);
	}
	#section-nav li {
		position: relative;
		margin: 0;
		padding: 0;
	}
	#section-nav li.sn-top {
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px solid var(--light-gray);
	}
	#section-nav a {
		display: flex;
		align-items: center;
		width: 44px;
		height: 44px;
		margin: 2px 0;
		border-radius: 50%;
		color: var(--primary);
		font-weight: var(--bold);
		text-decoration: none;
	}
	#section-nav .sn-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		font-size: 17px;
		transition: background .15s ease, color .15s ease;
	}
	#section-nav a:hover .sn-icon,
	#section-nav a:focus-visible .sn-icon { background: #eceffa; }
	#section-nav a.is-active .sn-icon {
		background: var(--primary);
		color: var(--white);
	}
	#section-nav .sn-label {
		position: absolute;
		left: 54px;
		top: 50%;
		padding: 7px 12px;
		border-radius: 6px;
		background: var(--primary);
		color: var(--white);
		font-size: 14px;
		line-height: 1.2;
		white-space: nowrap;
		box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
		opacity: 0;
		pointer-events: none;
		transform: translate(-6px, -50%);
		transition: opacity .15s ease, transform .15s ease;
	}
	#section-nav .sn-label::before {
		content: "";
		position: absolute;
		left: -5px;
		top: 50%;
		margin-top: -5px;
		border: 5px solid transparent;
		border-left: 0;
		border-right-color: var(--primary);
	}
	#section-nav a:hover .sn-label,
	#section-nav a:focus-visible .sn-label {
		opacity: 1;
		transform: translate(0, -50%);
	}
	#section-nav a:focus-visible { outline: none; }
	#section-nav a:focus-visible .sn-icon { outline: 3px solid var(--primary); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	#section-nav, #section-nav .sn-label, #section-nav .sn-icon { transition: none !important; }
}

/* ==========================================================================
   Entwurf: PIN-Dialog, Wiederherstellen, Hinweise
   ========================================================================== */
.draft-dialog-bg {
	position: fixed;
	inset: 0;
	z-index: 30000;
	background: rgba(0, 0, 0, .55);
}
.draft-dialog {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 30001;
	width: min(440px, calc(100% - 32px));
	box-sizing: border-box;
	padding: 24px;
	border-top: 6px solid var(--primary);
	border-radius: 12px;
	background: var(--white);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	transform: translate(-50%, -50%);
}
.draft-dialog[hidden], .draft-dialog-bg[hidden] { display: none; }
.draft-dialog h2 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-size: 1.3rem;
}
.draft-dialog p { margin: 0 0 12px; line-height: 1.5; }
.draft-dialog #draft-pin {
	width: 100%;
	box-sizing: border-box;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #b9bfd9;
	border-radius: 6px;
	font-size: 1.1rem;
	letter-spacing: .1em;
}
.draft-dialog-error { min-height: 1.2em; margin: 8px 0 0 !important; color: var(--red); font-size: .9rem; }
.draft-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}
.draft-dialog-actions button { border: 0; cursor: pointer; font-family: 'Montserrat', Verdana, sans-serif; font-weight: var(--bold); }

.draft-restore-wrap {
	position: relative;
	z-index: 1001;
	padding: 16px;
	background: var(--primary);
}
.draft-restore-wrap .draft-restore {
	max-width: 1080px;
	margin: 0 auto;
	border-left: 0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
	animation: draft-drop .35s ease-out;
}
@keyframes draft-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.draft-restore {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 2rem;
	padding: 16px 18px;
	border-left: 4px solid var(--primary);
	border-radius: 10px;
	background: #eceffa;
	line-height: 1.45;
}
.draft-restore-icon { color: var(--primary); font-size: 22px; }
.draft-restore-text { flex: 1 1 300px; }
.draft-restore-actions { display: flex; gap: 10px; }
.draft-restore-actions button { border: 0; cursor: pointer; font-family: 'Montserrat', Verdana, sans-serif; font-weight: var(--bold); }

.draft-notice {
	position: fixed;
	left: 50%;
	bottom: 110px;
	z-index: 30002;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	color: var(--white);
	font-size: .95rem;
	line-height: 1.4;
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity .3s ease, transform .3s ease;
}
.draft-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
.draft-notice.is-success { background: var(--green); }
.draft-notice.is-warn { background: #b45309; }

/* ==========================================================================
   Mobilgeräte
   ========================================================================== */
@media only screen and (max-width: 600px) {
	:root {
		--h1-size: 1.45rem;
		--h2-size: 1.3rem;
		--h3-size: 1.1rem;
		--infobox-h2-size: 1.1rem;
		--h3-section-size: 1.15rem;
	}

	body {
		font-size: 14px;
		line-height: 22px;
	}

	#header-logo img {
		width: 60%;
		text-align: center;
	}

	h1, h2, h3.design-bar {
		border-left-width: 6px;
		padding-left: 12px;
	}
	h2 { margin-top: 2.5rem; }

	.info-box { padding: 16px; }
	.info-box > h2.info-toggle { padding-right: 44px; }

	select { width: 92%; }
	input[type="submit"] {
		width: 93%;
		font-size: 14px;
	}

	.price-tag {
		margin-top: 20px;
		margin-bottom: 20px;
	}
	.price-total-bar { font-size: 1.3rem; }

	.upload-zone, .upload-list { width: 100%; }
	#submitText.upload-progress-box { width: 100%; padding: 16px; }

	.order-ok { padding-top: 1.25rem; }
	.order-ok-card { padding: 24px 18px 18px; }
	h1.order-ok-title { font-size: 1.4rem; }
	.order-ok-more { flex-direction: column; }
	.ok-btn { justify-content: center; }
	.upload-progress-box .up-meta { flex-direction: column; gap: 2px; }

	#voucher-box { padding: 14px; }
	#voucher-box button { padding: 0 14px; }

	.draft-restore-wrap { padding: 10px; }

	#exit-intent-popup {
		flex-wrap: wrap;
		padding: 14px 40px 14px 16px;
	}
	#exit-intent-popup .exit-icon { display: none; }
	#exit-intent-popup .exit-text { flex-basis: 100%; }
	#exit-intent-popup .exit-close {
		position: absolute;
		top: 10px;
		right: 10px;
		margin: 0;
	}
}
