/* ============================================================================
   COMMENTS  v1.0.0  (assets/css/comments.css)
   Styling der Kommentar-Sektion — geladen NUR auf /fan-corner
   (functions.php, Abschnitt 28b). Markup stammt aus den Core-Bloecken
   core/comments, core/comment-template und core/post-comments-form.

   Optisch abgestimmt auf contact-form.css und wp-email-form.css:
   gleiche Grautoene, Radius 6px, Focus in country-teal, Submit in link-blue.

   Core liefert bereits: list-style:none + padding:0 fuer
   .wp-block-comment-template sowie padding-left:2rem fuer verschachtelte
   <ol> (Threads). Diese Datei ergaenzt nur, was fehlt.
   ============================================================================ */

/* ── Sektion: Abstand + Trennlinie zum Content ── */
.mygc-comments {
	margin-top: var(--wp--preset--spacing--7);
	padding-top: var(--wp--preset--spacing--5);
	border-top: 1px solid #e3e5e7;
}

/* Ueberschrift ("3 Responses") — globales h2-Margin gezielt neutralisieren */
.mygc-comments .wp-block-comments-title {
	margin: 0 0 var(--wp--preset--spacing--5);
}

/* ── Einzelner Kommentar ── */
.mygc-comments .wp-block-comment-template li {
	margin: 0 0 var(--wp--preset--spacing--5);
	padding: 0 0 var(--wp--preset--spacing--5);
	border-bottom: 1px solid #f3f4f6;
}

/* Letzter Kommentar der obersten Ebene: keine doppelte Linie zum Formular */
.mygc-comments > .wp-block-comment-template > li:last-child {
	margin-bottom: 0;
	padding-bottom: var(--wp--preset--spacing--3);
	border-bottom: 0;
}

/* ── Meta-Zeile: Autor · Datum · (Edit) ── */
.mygc-comments .mygc-comment-meta {
	gap: 0 var(--wp--preset--spacing--3);
	align-items: baseline;
	margin-bottom: var(--wp--preset--spacing--2);
}

.mygc-comments .wp-block-comment-author-name {
	font-weight: 600;
}
.mygc-comments .wp-block-comment-author-name a { text-decoration: none; }
.mygc-comments .wp-block-comment-author-name a:hover { text-decoration: underline; }

.mygc-comments .wp-block-comment-date,
.mygc-comments .wp-block-comment-edit-link {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--politics-gray);
}
.mygc-comments .wp-block-comment-date a {
	color: inherit;
	text-decoration: none;
}
.mygc-comments .wp-block-comment-date a:hover { text-decoration: underline; }

/* ── Kommentartext ── */
.mygc-comments .wp-block-comment-content { margin: 0; }
.mygc-comments .wp-block-comment-content p { margin: 0 0 0.75em; }
.mygc-comments .wp-block-comment-content p:last-child { margin-bottom: 0; }

/* Hinweis "Your comment is awaiting moderation." */
.mygc-comments .comment-awaiting-moderation {
	display: block;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--culture-red);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}

/* ── Reply-Link + Pagination ── */
.mygc-comments .wp-block-comment-reply-link,
.mygc-comments .wp-block-comments-pagination {
	font-size: var(--wp--preset--font-size--small);
}
.mygc-comments .wp-block-comment-reply-link { margin-top: var(--wp--preset--spacing--2); }
.mygc-comments .wp-block-comments-pagination { margin-top: var(--wp--preset--spacing--5); }

/* ── Kommentarformular ──
   Fund-Analogie zu contact-form.css: Direkte Kinder von
   .is-layout-constrained bekommen von WP-Core margin-left/right:auto
   !important. Ohne Gegen-Override wuerde das 600px-Formular in der
   ~800px-Spalte zentriert statt links am Textfluss ausgerichtet. */
.mygc-comments .wp-block-post-comments-form {
	width: 100%;
	max-width: 600px;
	margin-top: var(--wp--preset--spacing--6);
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.mygc-comments .comment-reply-title {
	margin: 0 0 var(--wp--preset--spacing--3);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.3;
}
/* "Cancel reply" steht im <small> innerhalb der Ueberschrift */
.mygc-comments .comment-reply-title small {
	margin-left: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

.mygc-comments .comment-notes,
.mygc-comments .required-field-message,
.mygc-comments .logged-in-as {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--politics-gray);
}

.mygc-comments .comment-form p { margin: 0 0 1rem; }

.mygc-comments .comment-form label {
	display: block;
	margin: 0 0 0.15rem;
	font-weight: 600;
}

/* font-size >= 16px (1rem) verhindert den Zoom-auf-Fokus in iOS Safari.
   width:100% + box-sizing egalisiert die size=""-Attribute des Core-Markups. */
.mygc-comments .comment-form input[type="text"],
.mygc-comments .comment-form input[type="email"],
.mygc-comments .comment-form input[type="url"],
.mygc-comments .comment-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.45rem 0.6rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background-color: #fff;
	color: #374151;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

.mygc-comments .comment-form input[type="text"]:focus,
.mygc-comments .comment-form input[type="email"]:focus,
.mygc-comments .comment-form input[type="url"]:focus,
.mygc-comments .comment-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--country-teal);
	outline-offset: 1px;
	border-color: #9ca3af;
}

.mygc-comments .comment-form textarea {
	min-height: 180px;
	resize: vertical; /* horizontales Aufziehen wuerde das Layout sprengen */
}

/* Cookie-Consent-Checkbox: Kaestchen und Label in einer Zeile */
.mygc-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.mygc-comments .comment-form-cookies-consent input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 0.35rem 0 0;
}
.mygc-comments .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
}

/* ── Absende-Button (Optik identisch zu cscf und WP-EMail) ── */
.mygc-comments .form-submit { margin-bottom: 0; }

.mygc-comments .comment-form input[type="submit"] {
	display: inline-block;
	width: auto;
	padding: 0.55rem 1.4rem;
	border: none;
	border-radius: 6px;
	background-color: var(--wp--preset--color--link-blue);
	background-image: none;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}
.mygc-comments .comment-form input[type="submit"]:hover { opacity: 0.88; }
.mygc-comments .comment-form input[type="submit"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--country-teal);
	outline-offset: 2px;
}

/* ── Mobil ──
   Core setzt pro Thread-Ebene padding-left:2rem — bei drei Ebenen bleiben
   auf 320px kaum 100px Textbreite uebrig. Hier auf 1rem reduziert. */
@media (max-width: 600px) {
	.mygc-comments .wp-block-comment-template ol { padding-left: 1rem; }
	.mygc-comments .mygc-comment-meta { gap: 0 var(--wp--preset--spacing--2); }
	.mygc-comments .wp-block-post-comments-form { margin-top: var(--wp--preset--spacing--5); }
}