#btn_start_analyse{
	background-color: #1E73BE;
	color: white;
}

#email_gate { margin-bottom: 16px; }
#email_gate label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
#email_gate input[type="email"] { display: block; width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #f8fbfe; font: 700 16px "Trebuchet MS", sans-serif; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
#email_gate input[type="email"]:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(45, 117, 186, .14); }

.email-status { margin: 18px 18px 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: var(--ink); background: var(--sage); font-size: 13px; line-height: 1.45; }
.email-status-ok { border-left-color: #2E7D32; }
.email-status-error { border-left-color: #d75a4c; color: #a33f32; background: #fff0ec; }
#btn_weiter, #btn_zurueck{
	background-color: #1E73BE;
	color: white;
	float: right;
	margin-left: 10px;
	display: none;
}

#progress_bar{
	border-radius: 10px;
	background-color: #1E73BE;
	color: white;
	padding: 10px;
}

#progress{
	display: none;
	float: left;
	width: 100%;
	margin-top: 10px;
}

#nav_analyse{
	display: none;
	margin-top: 10px;

}

#myChart_div{
	width: 100%;
	padding: 18px 18px 0;
	margin-top: 10px;
	margin-bottom: 0;
	height: auto;
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: linear-gradient(180deg, #f8fbfe, #eef4f9);
}

#myChart{
	width: 100%;
	max-width: 100%;
	margin: 0px;
	padding: 0px;
	display: block;
	background: transparent;
}

table.border{
  border: 0px solid white;
}

tr.border{
  border: 0px solid white;
}

#tr_value td{
	width: 25%;
}

#tr_legend{
	font-weight: bold;
}

#tr_legend td + td {
	border-left: 8px solid var(--panel);
}

.result-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 32px 18px 0; padding: 24px; border: 2px solid rgba(45, 117, 186, .2); border-radius: 14px; color: var(--ink); background: linear-gradient(110deg, #eaf4fc, #dcecf9); box-shadow: 0 12px 26px rgba(23, 43, 67, .10); }
.result-note strong { font-size: 19px; letter-spacing: .1px; }
.explanation-link { display: inline-block; max-width: 360px; padding: 15px 20px; border-radius: 9px; color: #fff; background: var(--accent); box-shadow: 0 8px 16px rgba(45, 117, 186, .25); font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.explanation-link:hover { background: var(--accent-dark); box-shadow: 0 11px 20px rgba(32, 91, 148, .3); transform: translateY(-2px); }

.red{
	background-color: #8e0000;
	color: white;
}

.yellow{
	background-color: #F9A825;
	color: black;
}

.green{
	background-color: #005005;
	color: white;
}

.blue{
	background-color: #001064;
	color: white;
}

.lred{
	background-color: #C62828;
	color: white;
}

.lyellow{
	background-color: #F9C851;
	color: black;
}

.lgreen{
	background-color: #2E7D32;
	color: white;
}

.lblue{
	background-color: #283593;
	color: white;
}

/* Visual layer for the questionnaire shell and generated question forms. */
:root { --ink: #172b43; --muted: #607080; --paper: #eef4f9; --panel: #fff; --line: #d8e3ee; --accent: #2d75ba; --accent-dark: #205b94; --sage: #dcebf8; --shadow: 0 24px 60px rgba(23, 43, 67, .12); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 86% 8%, rgba(45, 117, 186, .10), transparent 27rem), var(--paper); font-family: "Trebuchet MS", Verdana, sans-serif; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 9px; background: var(--accent); }
.app-shell { position: relative; width: min(100% - 40px, 920px); margin: 0 auto; padding: 72px 0 38px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: start; gap: 34px; margin-bottom: 48px; animation: rise-in .7s ease both; }
.intro-content { min-width: 0; }
.brand-logo { display: block; width: 130px; height: auto; margin-top: 0; }
.eyebrow, .panel-label { margin: 0; color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
h1 { margin: 13px 0 16px; font: 400 clamp(44px, 7vw, 78px)/.94 Georgia, serif; letter-spacing: 0; }
.title-line { white-space: nowrap; }
h1 em { color: var(--accent); font-style: italic; }
.intro-copy { max-width: 490px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.quiz-panel { padding: 30px 34px 27px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(216, 227, 238, .95); border-radius: 14px; box-shadow: var(--shadow); animation: rise-in .7s .12s ease both; }
.panel-topline, .progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.panel-topline { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.scale-hint, footer { color: var(--muted); font-size: 12px; }
#analyse_forms { min-height: 275px; padding: 32px 0 18px; color: var(--ink); font-size: 18px; line-height: 1.35; }
.empty-state { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.6; }
#analyse_forms form { display: grid; gap: 16px; }
#analyse_forms form br { display: none; }
#analyse_forms input { display: block; width: 100%; height: 52px; margin-top: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #f8fbfe; font: 700 18px "Trebuchet MS", sans-serif; outline: none; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
#analyse_forms input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(45, 117, 186, .14); transform: translateY(-1px); }
#analyse_forms input[style*="background"] { border-color: #d75a4c !important; background: #fff0ec !important; }
button { border: 0; border-radius: 8px; cursor: pointer; font: 700 13px "Trebuchet MS", sans-serif; letter-spacing: .2px; transition: transform .2s, background .2s, box-shadow .2s; }
button:hover { transform: translateY(-2px); }
#btn_start_analyse { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 20px; color: #fff; background: linear-gradient(110deg, var(--ink), #24476b); box-shadow: 0 8px 18px rgba(23, 43, 67, .16); }
#btn_start_analyse:hover { box-shadow: 0 12px 24px rgba(23, 43, 67, .22); }
#btn_start_analyse:hover, #btn_weiter:hover { background: var(--accent-dark); }
button strong { font-size: 19px; font-weight: 400; }
#btn_weiter, #btn_zurueck { display: none; padding: 13px 17px; color: #fff; background: var(--ink); box-shadow: 0 6px 14px rgba(23, 43, 67, .12); }
#btn_weiter { margin-left: 0; }
#btn_zurueck { color: var(--ink); background: var(--sage); box-shadow: none; }
#nav_analyse { display: none; align-items: center; min-height: 44px; margin-top: 12px; }
#nav_analyse { flex-wrap: wrap; gap: 10px; }
#nav_analyse button { float: none; margin-right: 0; }
#progress { display: none; float: none; width: 100%; margin-top: 28px; }
.progress-meta { margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8eef4; }
#progress_bar { width: 0; height: 100%; padding: 0; border-radius: inherit; background: var(--accent); }
footer { margin-top: 18px; text-align: center; }
#analyse_forms table { width: 100%; margin-top: 18px; border-collapse: collapse; table-layout: fixed; text-align: center; }
#analyse_forms table td { padding: 15px 10px; }
#tr_value td { padding: 22px 10px 14px; font-size: 30px; }
#tr_legend td { padding: 11px 10px; font-size: 12px; letter-spacing: 1px; }
#analyse_forms table { width: calc(100% - 36px); margin: 0 18px; overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--panel); }
#tr_value td, #tr_legend td { border-color: var(--panel); }
#analyse_forms h4 { margin: 0 0 8px; font: 400 28px Georgia, serif; }
.analysis-result { margin-top: 38px; padding: 28px 20px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.8; }
.analysis-result h4 { color: var(--ink); }
.form-error { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #d75a4c; color: #a33f32; background: #fff0ec; font-size: 13px; line-height: 1.45; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
	.app-shell { width: min(100% - 32px, 620px); }
	.intro { display: block; padding-top: 86px; }
	.brand-logo { position: absolute; top: 0; right: -16px; width: 104px; }
	.title-line { white-space: normal; }
	h1 { font-size: clamp(38px, 9vw, 58px); }
	.quiz-panel { padding: 26px 24px 24px; }
	.panel-topline { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 600px) {
	.app-shell { width: min(100% - 28px, 920px); padding-top: 54px; }
	.intro { gap: 16px; margin-bottom: 32px; }
	.brand-logo { right: -14px; width: 78px; }
	h1 { font-size: clamp(36px, 11vw, 48px); }
	.quiz-panel { padding: 22px 18px 20px; }
	#analyse_forms { padding-top: 25px; font-size: 16px; }
	#analyse_forms input { height: 45px; }
	#analyse_forms table { font-size: 12px; }
	#analyse_forms table { width: calc(100% - 20px); margin: 0 10px; }
	#analyse_forms table td { padding: 12px 5px; }
	#tr_value td { padding: 18px 5px 12px; font-size: clamp(22px, 8vw, 30px); }
	#tr_legend td { font-size: 10px; letter-spacing: .6px; }
	#myChart_div { padding: 12px 10px 0; }
	.result-note { align-items: stretch; flex-direction: column; gap: 12px; margin: 20px 10px 0; }
	.explanation-link { max-width: none; }
}
