/**
 * Goerdes-Design: Kommentarbereich
 *
 * Gestaltet Kommentarlisten und Kommentarformular ruhig, klar und barrierearm.
 * Die Farben greifen auf die zentralen Farbvariablen aus colors.css zurück.
 */

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 0.125rem solid var(--goerdes-color-border, #c8d3dc);
}

.comments-title,
.comment-reply-title {
	color: var(--goerdes-color-text-strong, #102033);
	font-size: 1.6rem;
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

.comment-list {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
	margin-bottom: 1.5rem;
	padding: 1.25rem;
	background: var(--goerdes-color-surface, #f7f9fb);
	border: 0.125rem solid var(--goerdes-color-border, #c8d3dc);
	border-radius: 0.5rem;
}

.comment-body {
	color: var(--goerdes-color-text, #1f2933);
	line-height: 1.7;
}

.comment-meta,
.comment-metadata {
	color: var(--goerdes-color-text-muted, #4b5b6b);
	font-size: 0.95rem;
	line-height: 1.5;
}

.comment-author .fn {
	font-weight: 700;
	color: var(--goerdes-color-text-strong, #102033);
}

.comment-content a,
.comment-metadata a,
.reply a,
.logged-in-as a,
.comment-notes a,
.goerdes-comment-checks a {
	color: var(--goerdes-color-link, #005ea8);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 0.08em;
}

.comment-content a:hover,
.comment-content a:focus,
.comment-metadata a:hover,
.comment-metadata a:focus,
.reply a:hover,
.reply a:focus,
.logged-in-as a:hover,
.logged-in-as a:focus,
.comment-notes a:hover,
.comment-notes a:focus,
.goerdes-comment-checks a:hover,
.goerdes-comment-checks a:focus {
	color: var(--goerdes-color-link-hover, #003f73);
	text-decoration-thickness: 0.12em;
}

.comment-respond {
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: var(--goerdes-color-surface, #f7f9fb);
	border: 0.125rem solid var(--goerdes-color-border, #c8d3dc);
	border-radius: 0.5rem;
}

.comment-form {
	max-width: 48rem;
}

.comment-form p {
	margin-bottom: 1.25rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
	color: var(--goerdes-color-text-strong, #102033);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form input[type="number"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem;
	color: var(--goerdes-color-text, #1f2933);
	background: var(--goerdes-color-background, #ffffff);
	border: 0.125rem solid var(--goerdes-color-border-strong, #8fa3b5);
	border-radius: 0.35rem;
	font: inherit;
	line-height: 1.5;
}

.comment-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.comment-form input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	margin-right: 0.5rem;
	vertical-align: middle;
	accent-color: var(--goerdes-color-focus, #d96c00);
}

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form button:focus,
.comment-form .submit:focus,
.comment-reply-link:focus {
	outline: 0.2rem solid var(--goerdes-color-focus, #d96c00);
	outline-offset: 0.2rem;
}

.form-submit .submit {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	color: var(--goerdes-color-button-text, #ffffff);
	background: var(--goerdes-color-link, #005ea8);
	border: 0.125rem solid var(--goerdes-color-link, #005ea8);
	border-radius: 0.35rem;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.form-submit .submit:hover,
.form-submit .submit:focus {
	color: var(--goerdes-color-button-text, #ffffff);
	background: var(--goerdes-color-link-hover, #003f73);
	border-color: var(--goerdes-color-link-hover, #003f73);
}

.goerdes-comment-checks {
	margin: 1.5rem 0;
	padding: 1rem;
	background: var(--goerdes-color-background, #ffffff);
	border: 0.125rem solid var(--goerdes-color-border, #c8d3dc);
	border-radius: 0.5rem;
}

.goerdes-comment-checks__field {
	margin-bottom: 1rem;
}

.goerdes-comment-checks__field:last-child {
	margin-bottom: 0;
}

.comment-form-goerdes-privacy label {
	display: inline;
	font-weight: 600;
}

.goerdes-comment-checks__help {
	margin-top: 0.35rem;
	color: var(--goerdes-color-text-muted, #4b5b6b);
	font-size: 0.95rem;
	line-height: 1.5;
}

.comment-notes,
.logged-in-as {
	color: var(--goerdes-color-text-muted, #4b5b6b);
	line-height: 1.6;
}

.required-field-message,
.required {
	color: var(--goerdes-color-required, #9a3d00);
	font-weight: 700;
}

@media (max-width: 48rem) {
	.comment-respond {
		padding: 1rem;
	}

	.comment-list .comment,
	.comment-list .pingback,
	.comment-list .trackback {
		padding: 1rem;
	}
}