/*
+==============================================================================+
|   _   _   _____   _____   ____    ___  __  __                                |
|  | \ | | | ____| |_   _| |  _ \  |_ _| \ \/ /                                |
|  |  \| | |  _|     | |   | |_) |  | |   \  /                                 |
|  | |\  | | |___    | |   |  _ <   | |   /  \                                 |
|  |_| \_| |_____|   |_|   |_| \_\ |___| /_/\_\                                |
|                                                                              |
|  IT | WEB | SOFTWARE | DIGITAL SOLUTIONS                                     |
|  Engineered by NETRIX                                                        |
|  https://www.netrix.de/                                                      |
|                                                                              |
+==============================================================================+
|  Projekt   : Geschützte Online-Registrierung                                 |
|  Datei     : software/geschuetzte-online-registrierung/assets/anmeldung.css  |
|  Version   : 1.1.0                                                           |
|  Copyright : (c) 2026 NETRIX GmbH                                            |
|              Alle Rechte vorbehalten.                                        |
+==============================================================================+
*/

.noa,
.noa-float,
.noa-dialog {
	--noa-button: #0E7490;
	--noa-button-text: #FFFFFF;
	--noa-accent: #0E7490;
	--noa-text: #1d2b3a;
	--noa-muted: #4a5868;
	--noa-surface: #f4f7f9;
	--noa-radius: 10px;
}

.noa {
	box-sizing: border-box;
	max-width: 760px;
	margin: 2rem auto;
	color: var(--noa-text);
	line-height: 1.55;
}

.noa *,
.noa *::before,
.noa *::after {
	box-sizing: inherit;
}

.noa--voll {
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: #fff;
	border-top: 6px solid var(--noa-accent);
	border-radius: var(--noa-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.noa--kompakt {
	margin: 1.5rem 0;
}

.noa__logo {
	margin: 0 0 1.25rem;
	text-align: center;
}

.noa__logo img {
	display: inline-block;
	max-width: min(280px, 70%);
	height: auto;
}

.noa__title {
	margin: 0 0 0.75rem;
	color: var(--noa-text);
	text-align: center;
}

.noa__intro {
	margin: 0 0 1.5rem;
	text-align: center;
}

.noa__intro p,
.noa__privacy p,
.noa__details p {
	margin: 0 0 0.75em;
}

.noa__privacy {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--noa-surface);
	border-left: 4px solid var(--noa-accent);
	border-radius: 0 var(--noa-radius) var(--noa-radius) 0;
	font-size: 0.92em;
	color: var(--noa-muted);
}

.noa__privacy-title {
	margin: 0 0 0.5rem;
	font-size: 1.05em;
	color: var(--noa-text);
}

.noa__privacy a,
.noa__details a {
	color: var(--noa-accent);
	text-decoration: underline;
}

.noa__privacy-link {
	margin-bottom: 0 !important;
}

.noa__details {
	margin: 0 0 1rem;
	font-size: 0.92em;
	color: var(--noa-muted);
}

.noa__details summary {
	cursor: pointer;
	color: var(--noa-accent);
	font-weight: 600;
}

.noa__details[open] summary {
	margin-bottom: 0.5rem;
}

/* Ohne JavaScript bleibt das Formular verborgen, der Noscript-Hinweis erscheint. */
.noa:not(.noa--js) .noa__form,
.noa__form[hidden] {
	display: none;
}

.noa__consent {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin: 0 0 1.25rem;
	cursor: pointer;
}

.noa__consent input {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.15rem 0 0;
	accent-color: var(--noa-accent);
	cursor: pointer;
}

.noa__actions {
	display: flex;
}

.noa__actions--left { justify-content: flex-start; }
.noa__actions--center { justify-content: center; }
.noa__actions--right { justify-content: flex-end; }

/* ---------- Button ---------- */

/*
 * Hintergrund, Schrift, Kante (3D), Schatten und Bewegung laufen über Variablen. So setzen
 * sich Stil, Schatten und Hover-Effekt frei kombinierbar zusammen, und Theme-Regeln für
 * button:hover überschreiben die Farben nicht.
 */
.noa-btn {
	--noa-btn-bg: var(--noa-button);
	--noa-btn-fg: var(--noa-button-text);
	--noa-ty: 0px;
	--noa-sc: 1;
	--noa-inset: inset 0 0 0 transparent;
	--noa-edge: 0 0 0 transparent;
	--noa-drop: 0 0 0 transparent;
	display: inline-flex;
	gap: 0.6em;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.7em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--noa-btn-bg);
	color: var(--noa-btn-fg);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
	box-shadow: var(--noa-inset), var(--noa-edge), var(--noa-drop);
	transform: translateY(var(--noa-ty)) scale(var(--noa-sc));
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.noa-btn:hover,
.noa-btn:focus {
	background: var(--noa-btn-bg);
	color: var(--noa-btn-fg);
}

.noa-btn:active {
	--noa-sc: 0.98;
}

.noa-btn:focus-visible {
	outline: 3px solid var(--noa-accent);
	outline-offset: 3px;
}

/* Stil */
.noa-btn--style-gradient {
	--noa-btn-bg: linear-gradient(135deg, var(--noa-button-light) 0%, var(--noa-button) 45%, var(--noa-button-dark) 100%);
}

.noa-btn--style-outline {
	--noa-btn-bg: transparent;
	--noa-btn-fg: var(--noa-button);
	border-color: var(--noa-button);
}

.noa-btn--style-outline:hover,
.noa-btn--style-outline:focus-visible {
	--noa-btn-bg: var(--noa-button);
	--noa-btn-fg: var(--noa-button-text);
}

.noa-btn--style-3d {
	--noa-btn-bg: linear-gradient(180deg, var(--noa-button-light) 0%, var(--noa-button) 55%);
	--noa-inset: inset 0 1px 0 rgba(255, 255, 255, 0.3);
	--noa-edge: 0 5px 0 var(--noa-button-dark);
	margin-bottom: 5px;
}

/* Schatten */
.noa-btn--shadow-soft { --noa-drop: 0 6px 16px rgba(0, 0, 0, 0.18); }
.noa-btn--shadow-medium { --noa-drop: 0 10px 24px rgba(0, 0, 0, 0.24); }
.noa-btn--shadow-strong { --noa-drop: 0 16px 36px rgba(0, 0, 0, 0.34), 0 4px 10px rgba(0, 0, 0, 0.2); }
.noa-btn--shadow-glow { --noa-drop: 0 6px 24px var(--noa-button-glow); }

/* Hover-Effekt */
.noa-btn--hover-lift:hover { --noa-ty: -2px; filter: brightness(1.06); }
.noa-btn--hover-grow:hover { --noa-sc: 1.05; filter: brightness(1.04); }
.noa-btn--hover-darken:hover { filter: brightness(0.88); }

/* 3D: Button gibt beim Klick nach (steht nach den Hover-Regeln, damit es Vorrang hat). */
.noa-btn--style-3d:active {
	--noa-ty: 3px;
	--noa-sc: 1;
	--noa-edge: 0 2px 0 var(--noa-button-dark);
}

.noa-btn:disabled {
	--noa-ty: 0px;
	--noa-sc: 1;
	cursor: progress;
	opacity: 0.75;
	filter: none;
}

.noa-btn--pill { border-radius: 999px; }
.noa-btn--rounded { border-radius: 8px; }
.noa-btn--square { border-radius: 0; }

.noa-btn--small { min-height: 2.25rem; padding: 0.45em 1.1em; font-size: 0.9em; }
.noa-btn--normal { font-size: 1em; }
.noa-btn--large { min-height: 3.25rem; padding: 0.8em 1.9em; font-size: 1.1em; }

.noa-btn--w-full { width: 100%; }
.noa-btn--upper { text-transform: uppercase; }

.noa-btn .noa-icon {
	flex: 0 0 auto;
	width: 1.25em;
	height: 1.25em;
}

.noa--busy .noa-btn .noa-icon {
	animation: noa-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes noa-pulse {
	from { transform: translateX(0); }
	to { transform: translateX(3px); }
}

/* ---------- Hinweise ---------- */

.noa__hint,
.noa__status {
	margin: 0.75rem 0 0;
	font-size: 0.88em;
}

.noa__hint {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	color: var(--noa-muted);
}

.noa__hint--left { justify-content: flex-start; }
.noa__hint--center { justify-content: center; }
.noa__hint--right { justify-content: flex-end; }

.noa__status {
	min-height: 1.5em;
}

.noa__status--center { text-align: center; }
.noa__status--right { text-align: right; }

.noa__status--error {
	color: #b42318;
	font-weight: 600;
}

.noa__noscript {
	padding: 1rem;
	background: #fff4e5;
	border-radius: var(--noa-radius);
}

/* Honeypot: für Menschen unsichtbar. */
.noa__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.noa__embed[hidden] {
	display: none;
}

.noa__frame {
	display: block;
	width: 100%;
	min-height: 1600px;
	border: 0;
	border-radius: var(--noa-radius);
	background: #fff;
}

/* ---------- Schwebender Button ---------- */

/*
 * Oberste Ebene über dem Seiteninhalt, aber unter Cookie-Bannern (z. B. Borlabs 999999).
 * Abstand vom Rand: --noa-fx / --noa-fy (Einstellungen), auf Smartphones höchstens 12 px.
 */
.noa-float {
	--noa-fx: 20px;
	--noa-fy: 20px;
	--noa-x: var(--noa-fx);
	--noa-y: var(--noa-fy);
	--noa-bar: 0px;
	position: fixed;
	z-index: 99990;
}

body.admin-bar .noa-float { --noa-bar: 32px; }

.noa-float--top-left { top: calc(var(--noa-y) + var(--noa-bar)); left: var(--noa-x); }
.noa-float--top-right { top: calc(var(--noa-y) + var(--noa-bar)); right: var(--noa-x); }
.noa-float--bottom-left { bottom: var(--noa-y); left: var(--noa-x); }
.noa-float--bottom-right { bottom: var(--noa-y); right: var(--noa-x); }

.noa-float--top-center,
.noa-float--bottom-center {
	left: 50%;
	transform: translateX(-50%);
}

.noa-float--top-center { top: calc(var(--noa-y) + var(--noa-bar)); }
.noa-float--bottom-center { bottom: var(--noa-y); }

.noa-float--middle-left,
.noa-float--middle-right {
	top: 50%;
	transform: translateY(-50%);
}

.noa-float--middle-left { left: 0; }
.noa-float--middle-right { right: 0; }

/* Seitliche Lasche: Text senkrecht, bündig am Rand. */
.noa-float--middle-left .noa-btn,
.noa-float--middle-right .noa-btn {
	min-height: 0;
	padding: 1.1em 0.7em;
	writing-mode: vertical-rl;
}

.noa-float--middle-left .noa-btn { border-radius: 0 10px 10px 0; }
.noa-float--middle-right .noa-btn { border-radius: 10px 0 0 10px; }

.noa-float--middle-left .noa-btn--square,
.noa-float--middle-right .noa-btn--square { border-radius: 0; }

/* Kontur-Stil braucht über beliebigem Seiteninhalt eine Fläche. */
.noa-float .noa-btn--style-outline { --noa-btn-bg: #fff; }
.noa-float .noa-btn--style-outline:hover,
.noa-float .noa-btn--style-outline:focus-visible { --noa-btn-bg: var(--noa-button); }

/* Aufmerksamkeit: kurze Bewegung alle 4 Sekunden, pausiert beim Darüberfahren. */
.noa-float__inner {
	display: flex;
}

.noa-float--anim-pulse .noa-float__inner {
	animation: noa-float-pulse 4s ease-in-out 2s infinite;
}

.noa-float--anim-bounce .noa-float__inner {
	animation: noa-float-bounce 4s ease-in-out 2s infinite;
}

.noa-float:hover .noa-float__inner,
.noa-float:focus-within .noa-float__inner {
	animation-play-state: paused;
}

@keyframes noa-float-pulse {
	0%, 70%, 100% { transform: scale(1); }
	80% { transform: scale(1.07); }
	90% { transform: scale(0.98); }
}

@keyframes noa-float-bounce {
	0%, 70%, 100% { transform: translateY(0); }
	78% { transform: translateY(-10px); }
	86% { transform: translateY(0); }
	92% { transform: translateY(-4px); }
}

@media (max-width: 782px) {
	body.admin-bar .noa-float { --noa-bar: 46px; }
}

@media (max-width: 600px) {
	.noa-float--desktop { display: none; }
	.noa-float {
		--noa-x: min(var(--noa-fx), 12px);
		--noa-y: min(var(--noa-fy), 12px);
	}
	/* Die Admin-Leiste scrollt auf Smartphones mit, deshalb hier kein Zuschlag. */
	body.admin-bar .noa-float { --noa-bar: 0px; }
}

/* ---------- Dialog ---------- */

.noa-dialog {
	width: min(640px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	padding: 0;
	border: 0;
	border-top: 6px solid var(--noa-accent);
	border-radius: var(--noa-radius);
	background: #fff;
	color: var(--noa-text);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	overflow: auto;
}

.noa-dialog::backdrop {
	background: rgba(15, 23, 32, 0.55);
}

.noa-dialog .noa {
	margin: 0;
	padding: clamp(1.25rem, 4vw, 2rem);
	padding-top: 2.25rem;
}

.noa-dialog .noa__logo img {
	max-width: min(200px, 60%);
}

.noa-dialog__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--noa-muted);
	cursor: pointer;
}

.noa-dialog__close:hover,
.noa-dialog__close:focus-visible {
	background: var(--noa-surface);
	color: var(--noa-text);
}

html.noa-dialog-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.noa-btn,
	.noa--busy .noa-btn .noa-icon,
	.noa-float__inner {
		transition: none;
		animation: none !important;
	}

	.noa-btn:hover {
		--noa-ty: 0px;
		--noa-sc: 1;
	}
}
