/* ==========================================================================
   base.css — Geteilter Code (Reset, Typography, Buttons, Inputs,
   Utilities, Toast, Tooltip)
   Wird sowohl vom Frontend (Bewerberseite) als auch vom Admin-Bereich
   geladen.
   ========================================================================== */

/* --- Reset --- */
* {
	border: 0;
	margin: 0;
	padding: 0;
}
*,
*::after,
*::before {
	box-sizing: border-box;
}
*::after,
*::before {
	display: inline-block;
}
body,
html {
	height: 100%;
	min-width: 320px;
}
body {
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 400;
	font-family: var(--schriftart, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	color: var(--secondary, #2B2B2B);
	background-color: var(--weiss, #fff);
	-moz-osx-font-smoothing: grayscale;
	-moz-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}
button,
input,
textarea,
.input {
	font-family: var(--schriftart, inherit);
}

/* --- Header (shared: Public + Admin) --- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
}
.header__container {
	position: relative;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.header__logo {
	display: block;
}
.header__logo img {
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}
.header .langMenu {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
}
.langMenuButton {
	background: none;
	border: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	padding: 8px 12px;
	text-transform: uppercase;
	position: relative;
	font-size: 16px;
}
.langMenuButton::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	width: 0;
	height: 0;
	vertical-align: middle;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid currentColor;
	margin-bottom: 2px;
}
.langMenuDropdown {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	background-color: #FFF;
	min-width: 80px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
	z-index: 1000;
}
.langMenuDropdown a {
	display: block;
	padding: 8px 12px;
	text-decoration: none;
	color: #000;
	white-space: nowrap;
	text-transform: uppercase;
	font-size: 14px;
}
.langMenuDropdown a:hover {
	background-color: #F1F1F1;
}
.langMenu:hover .langMenuDropdown {
	display: block;
}

/* --- Form Layout Basics (shared Admin + Frontend) --- */
.row-inputs {
	display: flex;
	gap: 16px;
}
.input-wrapper {
	flex: 0 1 calc(50% - 8px);
	padding-bottom: 20px;
}
.input-label,
.input-wrapper label {
	padding-top: 15px;
	padding-bottom: 8px;
}
@media (max-width: 768px) {
	.row-inputs {
		flex-wrap: wrap;
		gap: 0;
	}
	.input-wrapper {
		flex: 1 1 100%;
	}
}

/* --- Login (shared: wird unter /admin bei Login-Formular geladen) --- */
.login-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .06);
	width: 30rem;
	max-width: calc(100vw - 32px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.login-container.login--shake {
	animation: loginShake .4s cubic-bezier(.36, .07, .19, .97) both;
}
@keyframes loginShake {
	10%, 90% { transform: translate(calc(-50% - 1px), -50%); }
	20%, 80% { transform: translate(calc(-50% + 2px), -50%); }
	30%, 50%, 70% { transform: translate(calc(-50% - 4px), -50%); }
	40%, 60% { transform: translate(calc(-50% + 4px), -50%); }
}
.input-with-icon {
	position: relative;
}
.input-with-icon .input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa0a6;
	font-size: 16px;
	pointer-events: none;
	z-index: 1;
}
.input-with-icon .form-control.has-icon {
	padding-left: 40px;
}
.input-with-icon .form-control.has-toggle {
	padding-right: 44px;
}
.input-with-icon .pwToggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #9aa0a6;
	cursor: pointer;
	padding: 6px 10px;
	font-size: 16px;
	border-radius: 4px;
	transition: color .15s, background-color .15s;
}
.input-with-icon .pwToggle:hover {
	color: var(--primary, #0d6efd);
	background: rgba(13, 110, 253, .06);
}
.login-container .form-control:focus {
	outline: none;
	border-color: var(--primary, #0d6efd);
	box-shadow: 0 0 0 3px rgba(13, 110, 253, .15), inset 0 1px 3px rgba(0, 0, 0, .06);
}
.capsLockWarning {
	display: none;
	margin-top: 6px;
	padding: 4px 8px;
	background: #fff3cd;
	color: #664d03;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.3;
}
.capsLockWarning.visible {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.capsLockWarning i {
	font-size: 13px;
}
.pwStrength {
	margin-top: 8px;
	display: none;
}
.pwStrength.visible {
	display: block;
}
.pwStrength__bar {
	height: 4px;
	border-radius: 2px;
	background: #e9ecef;
	overflow: hidden;
	position: relative;
}
.pwStrength__bar::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--pw-strength, 0%);
	background: var(--pw-strength-color, #dc3545);
	transition: width .2s ease, background-color .2s ease;
}
.pwStrength__label {
	margin-top: 4px;
	font-size: 12px;
	color: var(--pw-strength-color, #6c757d);
}
.login-container .btn-login[disabled],
.login-container .btn-login.btn--loading {
	opacity: .7;
	cursor: not-allowed;
	position: relative;
}
.login-container .btn-login.btn--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 14px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: btnSpinner .8s linear infinite;
}
.login-container .login-text {
	text-align: left;
	margin-bottom: 16px;
	margin-top: 0;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.2;
}
.login-container .btn-login {
	border: none;
	padding: 12px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 5px;
	margin-top: 20px;
	width: 100%;
	transition: background .3s;
	cursor: pointer;
}
.login-container .help-text {
	font-size: 12px;
	color: #6c757d;
	margin-top: 6px;
	line-height: 1.4;
}
.login-container.login .pwLostContent,
.login-container.pwLost .loginContent {
	display: none;
}
.login-links {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-top: 20px;
	margin-bottom: -15px;
}
.login-links a {
	text-decoration: none;
	font-weight: 500;
	font-size: 13px;
}
@media (max-width: 768px) {
	.login-container {
		padding: 30px;
		border-radius: 30px;
		width: 80%;
	}
	.login-container .login-text {
		font-size: 28px;
	}
	.login-container .btn-login {
		font-size: 15px;
		padding: 11px;
	}
}
@media (max-width: 576px) {
	.login-container {
		padding: 20px;
		border-radius: 20px;
		width: 90%;
	}
	.login-container .login-text {
		font-size: 24px;
	}
	.login-container .btn-login {
		font-size: 14px;
		padding: 10px;
	}
}
@media (max-width: 480px) {
	.login-links {
		flex-direction: column;
		align-items: center;
	}
	.login-links a {
		margin-bottom: 10px;
	}
}
@media (min-width: 1586px) {
	.header {
		height: 7.5rem;
	}
	.header__logo {
		height: 3.5rem;
		width: auto;
	}
}
@media (max-width: 1585px) {
	.header__logo {
		height: 75px;
		width: auto;
	}
}
@media (max-width: 900px) {
	.header__logo {
		height: 70px;
		width: auto;
	}
}
@media (max-width: 320px) {
	.header {
		height: 3.4375rem;
	}
	.header__logo {
		height: 70px;
		width: auto;
	}
}
button,
input,
textarea {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	background-color: transparent;
	box-shadow: none;
}
textarea {
	width: 100%;
}
button,
option,
select {
	cursor: pointer;
}
a {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}
ul li {
	list-style: none;
}
img {
	vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
	font-size: inherit;
}
ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* --- Layout-Wrapper --- */
.lock body {
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: none;
}
.wrapper {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
@supports (overflow:clip) {
	.wrapper {
		overflow: clip
	}
}
.wrapper > main {
	flex: 1 1 auto;
}
.wrapper > * {
	min-width: 0;
}
[class*=__container] {
	max-width: 99.125rem;
	margin: 0 auto;
	padding: 0 .9375rem;
}

/* --- Utilities --- */
.text-color:hover {
	text-decoration: underline;
}
.textLeft {
	text-align: left;
}
.textRight {
	text-align: right;
}
.floatRight {
	float: right;
}
.editBackground {
	background-color: #FFF;
}

/* --- Inputs (Basis) --- */
input[type=email],
input[type=tel],
input[type=text],
textarea {
	-webkit-appearance: none;
	appearance: none;
}
.input {
	display: block;
	width: 100%;
	height: auto;
	padding: 6px 10px;
	border: 1px solid #CCC;
	border-radius: 3px;
	font-size: 18px;
	caret-color: inherit;
}
.input[placeholder]:not([data-placeholder-nohiden])::placeholder {
	transition: opacity .3s;
}
.input[placeholder]:not([data-placeholder-nohiden]):focus::placeholder {
	opacity: 0;
}
textarea.input {
	resize: none;
	padding: 0;
}
input.input-error + label,
input.input-error,
.file-input-area input.input-error {
	border: 2px solid red !important;
	outline: none;
}
label {
	font-size: 18px!important;
}
input {
	font-size: 18px!important;
	font-weight: 400;
}
form select {
	font: inherit;
}
.form-control {
	padding: 12px;
	font-size: 15px;
	width: 100%;
	background: rgba(255, 255, 255, .9);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
	border-radius: 2px;
}
.form-control::placeholder {
	font-size: 14px;
	font-weight: 400;
	color: #9aa0a6;
}
.mb-3 {
	width: 100%;
	margin-bottom: 15px;
}
.feld-abstand {
	padding-top: 14px;
}
.formText {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #495057;
	margin-bottom: 6px;
}

/* --- Validierungszustände (geteilt) --- */
.inputCheck.is-valid,
.inputEmailCheck.is-valid,
.selectCheck.is-valid {
	border-color: #00A660;
}
.inputCheck.is-invalid,
.inputEmailCheck.is-invalid,
.selectCheck.is-invalid {
	border-color: #C92438;
}
.checkbox__text.is-valid {
	color: #00A660;
}
.checkbox__text.is-invalid {
	color: #C92438;
}

/* --- Checkbox (Basis) --- */
.checkbox {
	position: relative;
}
.checkbox:not(:last-child) {
	margin-bottom: em(5);
}
.checkbox__input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
}
.checkbox__input:checked + .checkbox__label:before {
	background: url(/images/icon-checked-black.svg) center center/90% no-repeat;
}
.checkbox__label {
	cursor: pointer;
	display: inline-flex;
	position: relative;
	gap: 10px;
}
.checkbox__label:before {
	content: "";
	align-self: flex-start;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	padding: 1px;
}
.checkbox__text {
	align-self: center;
}

/* --- Buttons (Basis) --- */
.button,
.black-button {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 7px 20px 7px;
	width: max-content;
	border-radius: 8px;
	cursor: pointer;
	transition: all .3s ease 0s;
}
.button {
	gap: 4px;
	font-size: 25.875px;
}
.buttonRow {
	position: relative;
}
.buttonBack {
	font-size: 18px;
	padding-top: 8px;
}

/* --- Button Loading-Zustand (Spinner) --- */
.btn--loading {
	position: relative;
	pointer-events: none;
	color: transparent !important;
}
.btn--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: btnSpinner 0.6s linear infinite;
	color: #fff;
}
@keyframes btnSpinner {
	to { transform: rotate(360deg); }
}

/* --- Dynamische Syreta-Honeypot (absichtlich beidseitig geteilt) --- */
.dynSyretaDiv {
	display: none;
}

/* --- Toast Notifications --- */
.toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 2060;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}
.toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #FFF;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
	padding: 14px 16px;
	min-width: 280px;
	max-width: 420px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	pointer-events: all;
	opacity: 0;
	transform: translateX(30px);
	transition: opacity .25s ease, transform .25s ease;
}
.toast.toast--visible {
	opacity: 1;
	transform: translateX(0);
}
.toast.toast--hiding {
	opacity: 0;
	transform: translateX(30px);
}
.toast.success {
	border-left: 4px solid #00A660;
	color: #00A660;
}
.toast.error {
	border-left: 4px solid #C92438;
	color: #C92438;
}
.toast__message {
	flex: 1;
	color: #2B2B2B;
}
.toast__close {
	flex-shrink: 0;
	cursor: pointer;
	opacity: .5;
	font-size: 18px;
	line-height: 1;
	background: none;
	border: none;
	padding: 0;
	color: #2B2B2B;
}
.toast__close:hover {
	opacity: 1;
}

/* --- CSS-only Tooltip --- */
[data-tooltip] {
	position: relative;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	max-width: 260px;
	pointer-events: none;
	z-index: 2000;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	animation: tooltipFade .15s ease-out;
}
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 3px);
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #333;
	pointer-events: none;
	z-index: 2000;
	animation: tooltipFade .15s ease-out;
}
@keyframes tooltipFade {
	from { opacity: 0; transform: translateX(-50%) translateY(4px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
