/* =========================================================
   EIPOS Livestream – Teilnehmerseiten
   ========================================================= */

:root {
	/* EIPOS-Farben (Corporate Design, abgeglichen mit eipos-sachverstaendigentage.de und Logo) */
	--navy:        #00305d;
	--navy-dark:   #00234a;
	--red:         #e4003a;
	--red-dark:    #c00031;
	--grey:        #848c8c;
	--bg:          #f2f2f2;
	--surface:     #ffffff;
	--border:      #e1e3e5;
	--text:        #2b2f33;
	--muted:       #646b6e;
	--tint:        #e9eef3;
	--radius:      10px;
	--nav-h:       64px;
	--shadow:      0 1px 2px rgba(0, 48, 93, .06), 0 4px 16px rgba(0, 48, 93, .05);
}

html { scroll-behavior: smooth; }
html, body {
	background: var(--bg);
	color: var(--text);
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
a:hover { color: var(--red); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { border-radius: 6px; font-weight: 500; }
.btn-brand {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}
.btn-brand:hover,
.btn-brand:focus,
.btn-brand:not(:disabled):not(.disabled):active {
	background: var(--red-dark);
	border-color: var(--red-dark);
	color: #fff;
}
.btn-brand:focus { box-shadow: 0 0 0 3px rgba(228, 0, 58, .25); }
.btn-outline-brand {
	border: 1px solid var(--navy);
	color: var(--navy);
	background: transparent;
}
.btn-outline-brand:hover { background: var(--navy); color: #fff; }

/* ---------- Formulare ---------- */
label { font-size: 14px; font-weight: 600; color: #3d4347; margin-bottom: 6px; }
.form-control { border-color: #cfd4d8; border-radius: 6px; }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 48, 93, .12); }

/* ---------- Karten ---------- */
.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 6px;
}

/* ---------- Marke (wie im Adminbereich) ---------- */
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff !important;
	margin-right: 28px;
}
.brand-mark {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	letter-spacing: .5px;
	line-height: 1;
	position: relative;
	padding-left: 18px;
}
.brand-mark::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 10px;
	height: 10px;
	background: var(--red);
}
.brand-divider {
	width: 1px;
	height: 26px;
	background: rgba(255, 255, 255, .25);
}
.brand-title {
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	font-weight: 500;
	opacity: .9;
}

/* ---------- Navigation (Menüpunkte mit Rahmen, wie die Buttons im Adminbereich) ---------- */
/* Gleiche Maße wie die Kopfzeile im Adminbereich: 64 px Inhalt + 3 px roter Strich */
.site-nav {
	background: var(--navy);
	border-bottom: 3px solid var(--red);
	min-height: calc(var(--nav-h) + 3px);
	padding: 0 !important;
}
.site-nav > .container {
	min-height: var(--nav-h);
	padding-top: 10px;
	padding-bottom: 10px;
}
.site-nav .navbar-brand { padding-top: 0; padding-bottom: 0; }
.site-nav .navbar-nav { gap: 8px; }
.site-nav .nav-link {
	color: #fff !important;
	font-size: 14px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 6px;
	padding: 6px 14px !important;
	transition: background .15s, border-color .15s;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .5);
}
.site-nav .nav-user { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav .navbar-toggler { border-color: rgba(255, 255, 255, .3); }
.site-nav .dropdown-menu { border-radius: 8px; border-color: var(--border); box-shadow: var(--shadow); }
@media (max-width: 767px) {
	.site-nav .navbar-collapse { padding-top: 12px; }
	.site-nav .navbar-nav { gap: 6px; }
	.site-nav .navbar-nav + .navbar-nav { margin-top: 6px; }
	.brand-divider, .brand-title { display: none; }
}
.page-live { padding-top: calc(var(--nav-h) + 3px); }
section[id], header[id] { scroll-margin-top: calc(var(--nav-h) + 13px); }

/* ---------- Kopf ---------- */
.hero {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 28px 0 24px;
}
.hero-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.hero h1 {
	font-size: 26px;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
}
.hero-inner > div { min-width: 0; }
.hero h1 { overflow-wrap: break-word; hyphens: auto; }
.hero-logo { flex: 0 0 auto; max-height: 48px; max-width: 40%; width: auto; height: auto; }

/* ---------- Abschnitte ---------- */
.section { padding: 40px 0; }
.section-alt { background: var(--bg); }
.section-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 20px;
	padding-bottom: 10px;
	position: relative;
}
.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	background: var(--red);
}
.narrow { max-width: 860px; }
.narrow p { color: var(--muted); line-height: 1.65; }

/* ---------- Stream ---------- */
.stream-frame {
	position: relative;
	padding-top: 56.25%;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.stream-frame iframe,
.stream-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.stream-frame img { object-fit: contain; background: #fff; }

/* ---------- Fragen ---------- */
.question-panel { padding: 22px; height: 100%; }
.panel-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.question-panel p { font-size: 14px; }
.question-status {
	font-size: 14px;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #e8f5ec;
	color: #1d6b35;
	display: none;
}
.question-status.is-visible { display: block; }
.question-status.is-error { background: #fdecef; color: var(--red-dark); }

/* ---------- Programm (wie eipos-sachverstaendigentage.de) ---------- */
.programme {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px 32px 12px;
	margin-bottom: 24px;
}
.day-title {
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--navy);
	margin: 0 0 6px;
}
.prog-item {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid var(--red);
	color: #595959;
	font-size: 18px;
	line-height: 1.5;
}
.prog-item:last-child { border-bottom: 0; }
.prog-time {
	font-weight: 700;
	color: var(--red);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.prog-title {
	font-weight: 700;
	color: #333;
}
.prog-short .prog-title { font-weight: 400; color: #595959; }
.prog-sub { margin-top: 12px; }
.prog-speaker { color: #595959; }
.prog-speaker + .prog-speaker,
.prog-role + .prog-speaker { margin-top: 12px; }
.prog-role {
	font-style: italic;
	font-size: 15px;
	color: #595959;
}
.prog-points,
.prog-text ul {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}
.prog-points li,
.prog-text li {
	position: relative;
	padding-left: 14px;
	margin-bottom: 6px;
}
.prog-points li::before,
.prog-text li::before {
	content: "-";
	position: absolute;
	left: 0;
}
.prog-text { margin-top: 12px; }
.prog-text p { margin: 0 0 10px; }
.prog-text > :last-child { margin-bottom: 0; }

/* ---------- Login (geteiltes Layout) ---------- */
.page-login {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--surface);
}
.login-split {
	flex: 1 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.login-visual {
	background: var(--navy);
	border-right: 4px solid var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
}
.login-visual-inner { width: 100%; max-width: 640px; }
.login-visual-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}
.login-hints {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	color: rgba(255, 255, 255, .85);
	font-size: 15px;
}
.login-hints li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
}
.login-hints li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 8px;
	background: var(--red);
}
.login-hints a { color: #fff; text-decoration: underline; }
.login-form-side {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 32px;
}
.login-box { width: 100%; max-width: 380px; }
.login-box-logo { display: block; max-width: 170px; height: auto; margin-bottom: 36px; }
.login-title { font-size: 24px; font-weight: 700; color: var(--navy); margin: 0 0 4px; line-height: 1.25; }
.login-sub { color: var(--muted); margin-bottom: 26px; }
.login-box .alert { font-size: 15px; }
.login-box .form-control { height: 46px; font-size: 16px; }

@media (max-width: 991px) {
	.login-split { grid-template-columns: 1fr; }
	.login-visual { border-right: 0; border-bottom: 4px solid var(--red); padding: 24px 16px; }
	.login-visual-inner { max-width: 520px; }
	.login-hints { display: none; }
	.login-form-side { padding: 32px 16px 40px; }
	.login-box-logo { display: none; }
}

/* ---------- Fußzeile ---------- */
.site-footer {
	background: var(--navy);
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
	padding: 18px 0;
	text-align: center;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .sep { margin: 0 8px; opacity: .5; }

/* ---------- Mobil ---------- */
@media (max-width: 575px) {
	.hero { padding: 20px 0 18px; }
	.hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
	.hero h1 { font-size: 21px; }
	.hero-logo { max-height: 32px; max-width: 60%; }
	.programme { padding: 20px 16px 6px; }
	.day-title { font-size: 19px; }
	.prog-item { font-size: 16px; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
	.prog-role { font-size: 14px; }
	.site-footer .sep { display: none; }
	.site-footer span, .site-footer a { display: block; margin: 2px 0; }
}
