/* ==========================================================================
   register.css  -  scoped styles fuer die Standalone-Seiten
   index.php (Login), register / t_register.php und t_danke.php.
   CI-Design angelehnt an FREDI: helle Flaechen, gelbe Aktionsfarbe mit
   dunklem Text, rotes BEO-Logo, duenne Rahmen, kleine Radien.
   Reines CSS, keine Abhaengigkeiten. Aendert den eingeloggten Bereich nicht.
   ========================================================================== */

:root {
	--ci-bg:        #f5f6f8;
	--ci-card:      #ffffff;
	--ci-border:    #e5e7eb;
	--ci-line:      #d1d5db;
	--ci-text:      #1f242b;
	--ci-text-2:    #6b7280;
	--ci-text-3:    #9ca3af;
	--ci-label:     #374151;
	--ci-yellow:    #f5c518;   /* Primaer-Aktion */
	--ci-yellow-h:  #e6b800;
	--ci-yellow-a:  #cfa200;
	--ci-link:      #a16207;   /* amber-700, lesbar auf weiss */
	--ci-danger:    #dc2626;
	--ci-focus:     rgba(245, 197, 24, 0.35);
}

.reg-page {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: var(--ci-bg);
	color: var(--ci-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.reg-wrap {
	width: 100%;
	max-width: 560px;
	margin: 48px 16px;
}
.reg-wrap.reg-narrow { max-width: 400px; }

.reg-card {
	background: var(--ci-card);
	border: 1px solid var(--ci-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
	padding: 32px 32px 28px;
	box-sizing: border-box;
}

.reg-logo { text-align: center; margin-bottom: 20px; }
.reg-logo img { border: 0; height: auto; max-width: 170px; }

.reg-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ci-text);
	text-align: center;
}
.reg-subtitle {
	margin: 0 0 24px;
	text-align: center;
	color: var(--ci-text-2);
	font-size: 13px;
}

/* Felder ------------------------------------------------------------------ */
.reg-field { margin-bottom: 16px; }

.reg-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--ci-label);
	font-size: 13px;
}
.reg-req { color: var(--ci-danger); margin-left: 2px; }

.reg-input,
.reg-select {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ci-text);
	background-color: #fff;
	border: 1px solid var(--ci-line);
	border-radius: 6px;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.reg-input::placeholder { color: var(--ci-text-3); }

/* Dropdown klar als solches erkennbar: eigener Chevron-Pfeil rechts */
.reg-select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	cursor: pointer;
}

.reg-input:hover,
.reg-select:hover { border-color: #9ca3af; }

.reg-input:focus,
.reg-select:focus {
	outline: none;
	border-color: var(--ci-yellow-h);
	box-shadow: 0 0 0 3px var(--ci-focus);
}

/* Ansprechpartner: Anrede + Name nebeneinander */
.reg-inline { display: flex; gap: 10px; }
.reg-inline .reg-select { flex: 0 0 120px; }
.reg-inline .reg-input  { flex: 1 1 auto; }

/* Fehlerzustand ----------------------------------------------------------- */
.reg-input.is-invalid,
.reg-select.is-invalid {
	border-color: var(--ci-danger);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}
.reg-error {
	display: none;
	margin-top: 5px;
	color: var(--ci-danger);
	font-size: 12px;
}
.reg-error.show { display: block; }

/* Button (CI: Gelb mit dunklem Text) -------------------------------------- */
.reg-actions { margin-top: 22px; }
.reg-btn {
	display: inline-block;
	width: 100%;
	padding: 11px 18px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	color: var(--ci-text);
	background: var(--ci-yellow);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}
.reg-btn:hover  { background: var(--ci-yellow-h); }
.reg-btn:active { background: var(--ci-yellow-a); }

.reg-recaptcha { margin-top: 18px; display: flex; justify-content: center; }

.reg-hint { margin-top: 16px; font-size: 12px; color: var(--ci-text-3); text-align: center; }
.reg-hint a { color: var(--ci-link); text-decoration: none; font-weight: 600; }
.reg-hint a:hover { text-decoration: underline; }

/* Danke-Seite ------------------------------------------------------------- */
.reg-success { text-align: center; padding: 8px 0 4px; }
.reg-check {
	width: 64px; height: 64px;
	margin: 4px auto 18px;
	border-radius: 50%;
	background: #e7f6ec;
	display: flex; align-items: center; justify-content: center;
}
.reg-check svg { width: 34px; height: 34px; }
.reg-success h1 { font-size: 20px; color: var(--ci-text); margin: 0 0 10px; }
.reg-success p  { color: var(--ci-text-2); margin: 0 0 8px; }
.reg-links { margin-top: 20px; font-size: 13px; }
.reg-links a { color: var(--ci-link); text-decoration: none; display: inline-block; margin: 0 8px; font-weight: 600; }
.reg-links a:hover { text-decoration: underline; }

@media (max-width: 480px) {
	.reg-card { padding: 22px 18px; }
	.reg-inline { flex-direction: column; gap: 16px; }
	.reg-inline .reg-select { flex-basis: auto; }
}
