/**
 * Blog Abo – Frontend-Styles für Button und Lightbox.
 */

/* Inline-Call-to-Action unter dem Beitrag */
.blogabo-inline-cta {
	margin: 2em 0;
	text-align: center;
}

/* Anmelde-Button */
.blogabo-open-btn {
	display: inline-block;
	padding: 0.75em 1.6em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	background-color: #DC0C15;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

.blogabo-open-btn:hover,
.blogabo-open-btn:focus {
	background-color: #b30a11;
	outline: none;
}

/* Overlay */
.blogabo-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background-color: rgba(15, 23, 42, 0.6);
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}

.blogabo-overlay[hidden] {
	display: none;
}

.blogabo-overlay.is-visible {
	opacity: 1;
}

/* Modal */
.blogabo-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 2rem 1.75rem 1.75rem;
	background-color: #ffffff;
	border-radius: 6px;
	border-top: 4px solid #DC0C15;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
	transform: translateY(12px);
	transition: transform 0.2s ease-in-out;
	color: #1f2937;
	box-sizing: border-box;
}

.blogabo-overlay.is-visible .blogabo-modal {
	transform: translateY(0);
}

.blogabo-modal h2 {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	line-height: 1.25;
	color: #111827;
}

.blogabo-intro {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #4b5563;
}

/* Schließen-Button */
.blogabo-close {
	position: absolute;
	top: 0.6rem;
	right: 0.8rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	font-size: 1.6rem;
	line-height: 1;
	color: #9ca3af;
	background: none;
	border: none;
	cursor: pointer;
}

.blogabo-close:hover,
.blogabo-close:focus {
	color: #111827;
	outline: none;
}

/* Formular */
.blogabo-form-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.blogabo-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
}

.blogabo-email {
	width: 100%;
	padding: 0.7em 0.85em;
	font-size: 1rem;
	color: #111827;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	box-sizing: border-box;
}

.blogabo-email:focus {
	border-color: #DC0C15;
	outline: none;
	box-shadow: 0 0 0 3px rgba(220, 12, 21, 0.15);
}

.blogabo-submit {
	margin-top: 0.25rem;
	padding: 0.75em 1.2em;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background-color: #DC0C15;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

.blogabo-submit:hover,
.blogabo-submit:focus {
	background-color: #b30a11;
	outline: none;
}

.blogabo-submit[disabled] {
	opacity: 0.65;
	cursor: default;
}

/* Statusmeldung */
.blogabo-message {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	min-height: 1.2em;
}

.blogabo-message.is-success {
	color: #047857;
}

.blogabo-message.is-error {
	color: #b91c1c;
}

/* Honeypot – visuell und für Screenreader versteckt, aber für Bots im DOM */
.blogabo-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

/* Kompakter auf kleinen Bildschirmen */
@media (max-width: 480px) {
	.blogabo-modal {
		padding: 1.75rem 1.25rem 1.5rem;
	}

	.blogabo-modal h2 {
		font-size: 1.25rem;
	}
}

/* Statusmeldung nimmt keinen Platz ein, solange sie leer ist */
.blogabo-message:empty {
	margin: 0;
	min-height: 0;
}

/* Kleiner Kontakt-Hinweis unter dem Formular */
.blogabo-contact-hint {
	margin: 1.1rem 0 0;
	padding-top: 0.9rem;
	border-top: 1px solid #ececec;
	font-size: 0.8rem;
	line-height: 1.55;
	color: #6b7280;
	text-align: center;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.blogabo-contact-hint a {
	color: #DC0C15;
	font-weight: 600;
	text-decoration: underline;
}

.blogabo-contact-hint a:hover,
.blogabo-contact-hint a:focus {
	color: #b30a11;
	text-decoration: none;
	outline: none;
}

/* Datenschutz-Hinweis unter dem Button */
.blogabo-privacy {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #6b7280;
	text-align: center;
}

.blogabo-privacy a {
	color: #DC0C15;
	text-decoration: underline;
}

.blogabo-privacy a:hover,
.blogabo-privacy a:focus {
	color: #b30a11;
	text-decoration: none;
	outline: none;
}

.sidebar .blogabo-open-btn {
	display: block;
    padding: 19px 10px 18px;
    margin: 0 0 43px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;
}

.sidebar .blogabo-open-btn:hover {
	background-color: #DC0C15;
	text-decoration: underline;	
}