/* Gästebuch – dunkles Clan-Theme */

.cc-gb-wrap {
	--cc-gb-bg: #141414;
	--cc-gb-bg-soft: #1a1a1a;
	--cc-gb-line: rgba(255, 255, 255, 0.1);
	--cc-gb-text: #e6e8ec;
	--cc-gb-muted: #9aa0ab;
	--cc-gb-accent: #8b9b6a;
	--cc-gb-warn: #c97878;
	color: var(--cc-gb-text);
	font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 28px;
	animation: cc-gb-fade 0.45s ease both;
}

.cc-gb-wrap a {
	color: var(--cc-gb-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.cc-gb-wrap a:hover {
	color: var(--cc-gb-accent);
}

@keyframes cc-gb-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cc-gb-toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	margin: 0 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--cc-gb-line);
}

.cc-gb-toolbar-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.cc-gb-toolbar-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 4px;
}

.cc-gb-intro {
	margin: 0;
	color: var(--cc-gb-muted);
	font-size: 14px;
}

.cc-gb-intro strong {
	color: var(--cc-gb-text);
	font-weight: 600;
}

.cc-gb-write {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid rgba(139, 155, 106, 0.65);
	background: rgba(139, 155, 106, 0.14);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cc-gb-write:hover {
	color: #fff !important;
	border-color: var(--cc-gb-accent);
	background: rgba(139, 155, 106, 0.28);
}

.cc-gb-note {
	margin: 0;
	color: var(--cc-gb-muted);
	font-size: 13px;
}

.cc-gb-msg {
	text-align: center;
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid var(--cc-gb-line);
	font-size: 14px;
}

.cc-gb-msg--ok {
	border-color: rgba(111, 175, 120, 0.35);
	color: #b7d9bb;
}

.cc-gb-msg--error {
	border-color: rgba(201, 120, 120, 0.4);
	color: #e0a8a8;
}

.cc-gb-empty {
	text-align: center;
	color: var(--cc-gb-muted);
	margin: 28px 0;
	font-size: 14px;
}

/* Pagination (kompakt wie News) */
.cc-gb-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 3px;
	margin: 0;
	row-gap: 6px;
}

.cc-gb-pager--bottom {
	justify-content: center;
	margin-top: 8px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cc-gb-pager-btn,
.cc-gb-pager-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 5px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--cc-gb-muted) !important;
	text-decoration: none !important;
	font-size: 12px;
	line-height: 1;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cc-gb-pager-btn {
	border-color: var(--cc-gb-line);
	padding: 0 6px;
}

.cc-gb-pager-btn:hover,
.cc-gb-pager-page:hover {
	color: var(--cc-gb-text) !important;
	border-color: rgba(139, 155, 106, 0.55);
	background: rgba(139, 155, 106, 0.08);
}

.cc-gb-pager-btn.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.cc-gb-pager-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
	margin: 0 2px;
}

.cc-gb-pager-page.is-current {
	color: #fff !important;
	border-color: rgba(139, 155, 106, 0.55);
	background: rgba(139, 155, 106, 0.12);
	font-weight: 600;
}

.cc-gb-pager-ellipsis {
	color: var(--cc-gb-muted);
	padding: 0 2px;
	font-size: 12px;
}

.cc-gb-pager-jump {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 4px;
	color: var(--cc-gb-muted);
	font-size: 11px;
	white-space: nowrap;
}

.cc-gb-pager-jump input {
	width: 34px;
	height: 26px;
	padding: 0 4px;
	border: 1px solid var(--cc-gb-line);
	background: var(--cc-gb-bg-soft);
	color: #fff;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	outline: none;
}

.cc-gb-pager-jump input:focus {
	border-color: rgba(139, 155, 106, 0.7);
}

/* Einträge */
.cc-gb-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cc-gb-entry {
	margin: 0 0 20px;
	padding: 0 0 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	animation: cc-gb-fade 0.4s ease both;
}

.cc-gb-entry-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

.cc-gb-entry-author {
	margin: 0;
	font-size: 14px;
	color: var(--cc-gb-muted);
	min-width: 0;
}

.cc-gb-entry-author strong {
	color: #fff;
	font-weight: 600;
}

.cc-gb-entry-author a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(139, 155, 106, 0.35);
}

.cc-gb-entry-author a:hover {
	color: var(--cc-gb-accent);
}

.cc-gb-entry-num {
	flex-shrink: 0;
	color: var(--cc-gb-muted);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.cc-gb-entry-body {
	margin: 0 0 12px;
	color: var(--cc-gb-text);
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.cc-gb-entry-body img {
	max-width: 100%;
	height: auto;
}

.cc-gb-entry-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}

.cc-gb-entry-contact img {
	vertical-align: middle;
}

.cc-gb-comment {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-left: 2px solid rgba(139, 155, 106, 0.45);
	background: rgba(255, 255, 255, 0.03);
}

.cc-gb-comment-meta {
	margin: 0 0 6px;
	font-size: 12px;
	color: var(--cc-gb-muted);
}

.cc-gb-comment-text {
	margin: 0;
	font-size: 13px;
	color: var(--cc-gb-text);
	line-height: 1.45;
}

/* Formular */
.cc-gb-form-wrap {
	max-width: 560px;
	margin: 0 auto;
}

.cc-gb-form-title {
	margin: 0 0 16px;
	padding: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-gb-accent);
	border-bottom: 1px solid var(--cc-gb-line);
	text-align: center;
}

.cc-gb-form {
	display: grid;
	gap: 14px;
}

.cc-gb-field {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.cc-gb-field label {
	padding-top: 8px;
	color: var(--cc-gb-muted);
	font-size: 13px;
}

.cc-gb-req {
	color: var(--cc-gb-warn);
}

.cc-gb-field input[type="text"],
.cc-gb-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid var(--cc-gb-line);
	background: var(--cc-gb-bg-soft);
	color: #fff;
	font: inherit;
	outline: none;
}

.cc-gb-field input[type="text"]:focus,
.cc-gb-field textarea:focus {
	border-color: rgba(139, 155, 106, 0.7);
}

.cc-gb-field textarea {
	min-height: 180px;
	resize: vertical;
}

.cc-gb-bbcode {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 6px;
}

.cc-gb-bbcode a {
	line-height: 0;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.cc-gb-bbcode a:hover {
	opacity: 1;
}

.cc-gb-hint {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: var(--cc-gb-muted);
	line-height: 1.4;
}

.cc-gb-terms {
	margin: 4px 0 0;
	text-align: center;
	font-size: 12px;
	color: var(--cc-gb-muted);
}

.cc-gb-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 6px;
}

.cc-gb-submit {
	padding: 8px 18px;
	border: 1px solid rgba(139, 155, 106, 0.55);
	background: rgba(139, 155, 106, 0.12);
	color: #fff;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-gb-submit:hover {
	background: rgba(139, 155, 106, 0.22);
	border-color: var(--cc-gb-accent);
}

.cc-gb-back {
	color: var(--cc-gb-muted) !important;
	text-decoration: none !important;
	font-size: 13px;
	border-bottom: 1px solid transparent;
}

.cc-gb-back:hover {
	color: var(--cc-gb-accent) !important;
	border-bottom-color: var(--cc-gb-accent);
}

.cc-gb-required-note {
	margin: 10px 0 0;
	text-align: center;
	font-size: 12px;
	color: var(--cc-gb-muted);
}

@media (max-width: 720px) {
	.cc-gb-toolbar-meta {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.cc-gb-pager {
		justify-content: center;
	}

	.cc-gb-pager-jump {
		flex-basis: 100%;
		justify-content: center;
		margin: 4px 0 0;
	}

	.cc-gb-field {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.cc-gb-field label {
		padding-top: 0;
	}
}
