/* KiBelino Contact – v3.0 */

/* ── Reset scope ── */
.kbc-wrap,
.kbc-wrap * {
	box-sizing: border-box;
}

/* ── Groups ── */
.kbc-group {
	margin-bottom: 1.5rem;
	border-radius: 12px;
	padding: 1.6rem 1.8rem 1.8rem;
	overflow: hidden;
}

.kbc-group--leitung {
	background: #0e2f61;
}

.kbc-group--organisation {
	background: #e8a817;
}

.kbc-group__title {
	font-family: 'Barlow Condensed', 'Barlow', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 1.2rem;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
	border-radius: 0;
	display: block;
}

/* ── Card grid ── */
.kbc-team-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	border: none;
	background: none;
}

/* ── Single card ── */
.kbc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.4rem 1rem 1.2rem;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 10px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
	box-shadow: none;
	gap: 0;
}

/* ── Photo ── */
.kbc-card__photo {
	display: block;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
	border: 3px solid rgba(255, 255, 255, 0.7);
	margin-bottom: 0.75rem;
	flex-shrink: 0;
}

/* ── Avatar fallback ── */
.kbc-card__avatar {
	display: none;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: #0e2f61;
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
	align-items: center;
	justify-content: center;
	line-height: 1;
	border: 3px solid rgba(255, 255, 255, 0.4);
	margin-bottom: 0.75rem;
	flex-shrink: 0;
}

.kbc-card__avatar--fallback {
	display: flex;
}

.kbc-group--organisation .kbc-card__avatar {
	background: #e8a817;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

/* ── Name ── */
.kbc-card__name {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #0e2f61;
	line-height: 1.3;
	margin: 0 0 0.2rem;
}

/* ── Function/title ── */
.kbc-card__title {
	display: block;
	font-size: 0.8rem;
	color: #7a8fa8;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

/* ── Description ── */
.kbc-card__desc {
	font-size: 0.83rem;
	color: #4a5a70;
	line-height: 1.55;
	margin: 0 0 0.75rem;
	padding: 0;
	text-align: center;
}

/* ── Kontakt button ── */
.kbc-contact-btn {
	display: inline-block;
	margin-top: auto;
	padding: 0.4rem 1.1rem;
	background: transparent;
	color: #0e2f61;
	border: 1.5px solid #0e2f61 !important;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	line-height: 1.4;
	text-decoration: none;
}

.kbc-contact-btn:hover {
	background: #0e2f61;
	color: #fff;
	border-color: #0e2f61 !important;
}

/* ── Full cards variant (kb_team_cards shortcode) ── */
.kbc-team-cards--full {
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

/* Leitung: max 2 Spalten nebeneinander */
.kbc-group--leitung .kbc-team-cards,
.kbc-group--leitung .kbc-team-cards--full {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	max-width: 600px;
}

.kbc-card--full {
	padding: 1.8rem 1.2rem 1.5rem;
}

.kbc-card--full .kbc-card__photo,
.kbc-card--full .kbc-card__avatar {
	width: 120px;
	height: 120px;
	font-size: 2.6rem;
	line-height: 120px;
}

/* ── Responsive ── */
@media (max-width: 540px) {
	.kbc-team-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.kbc-team-cards--full {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 340px) {
	.kbc-team-cards,
	.kbc-team-cards--full {
		grid-template-columns: 1fr;
	}
}

/* ══════════════════════════════════════════════
   Modal
══════════════════════════════════════════════ */
.kbc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(14, 47, 97, 0.5);
	backdrop-filter: blur(3px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

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

.kbc-modal {
	background: #fff;
	border-radius: 12px;
	padding: 2rem 2.2rem;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 8px 40px rgba(0,0,0,0.18);
	animation: kbc-modal-in 0.2s ease;
}

@keyframes kbc-modal-in {
	from { opacity: 0; transform: translateY(-14px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.kbc-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #a7a7a5;
	cursor: pointer;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.kbc-modal__close:hover {
	color: #0e2f61;
	background: #f0f3f8;
}

.kbc-modal__title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0e2f61;
	margin: 0 0 0.3rem;
}

/* ── Form ── */
.kbc-form__recipient {
	font-size: 0.9rem;
	color: #666;
	margin: 0 0 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e0e6ef;
}

.kbc-form__recipient strong {
	color: #8b0d3a;
}

.kbc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kbc-field {
	margin-bottom: 1rem;
}

.kbc-label {
	display: block;
	font-size: 0.87rem;
	font-weight: 600;
	color: #0e2f61;
	margin-bottom: 0.3rem;
}

.kbc-label span {
	color: #8b0d3a;
	margin-left: 2px;
}

.kbc-input {
	display: block;
	width: 100%;
	padding: 0.6rem 0.8rem;
	font-family: inherit;
	font-size: 0.95rem;
	color: #0e2f61;
	background: #fff;
	border: 1px solid #c8d4e3;
	border-radius: 5px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.kbc-input:focus {
	outline: none;
	border-color: #0e2f61;
	box-shadow: 0 0 0 3px rgba(14,47,97,0.1);
}

.kbc-textarea {
	resize: vertical;
	min-height: 120px;
}

.kbc-actions {
	margin-top: 1.4rem;
}

.kbc-submit {
	display: inline-block;
	padding: 0.7rem 2rem;
	background: #8b0d3a;
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.2s;
}

.kbc-submit:hover:not(:disabled) {
	background: #6b0a2e;
}

.kbc-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.kbc-feedback {
	margin-top: 1rem;
	padding: 0.8rem 1rem;
	border-radius: 4px;
	font-size: 0.92rem;
	line-height: 1.5;
}

.kbc-feedback[hidden] { display: none; }

.kbc-feedback--success {
	background: #e8f3f0;
	border-left: 4px solid #8aae9e;
	color: #2a4a3a;
}

.kbc-feedback--error {
	background: #fdf5f8;
	border-left: 4px solid #8b0d3a;
	color: #6b0a2e;
}
