/*
Theme Name: Klartext Sicherheit
Theme URI: https://klartext-sicherheit.de
Description: Schlankes Block-Child-Theme fuer die Landingpage "Klartext Sicherheit". Basis: Twenty Twenty-Five. Clean, modern, barrierearm.
Author: Klartext Sicherheit
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: klartext-sicherheit
*/

/* ---- Grundlagen ---- */
.kt-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.kt-hero { padding-block: clamp(3rem, 8vw, 6.5rem); }
.kt-empty { color: #50607a; font-style: italic; }
.kt-placeholder {
	border: 1px dashed var(--wp--preset--color--primary, #1d4ed8);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	color: #41506b;
	background: #fff;
}

/* ---- Karten-Raster ---- */
.kt-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.kt-grid--cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kt-grid--contacts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kt-grid--gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.kt-card, .kt-contact, .kt-recap {
	border: 1px solid var(--wp--preset--color--border, #d7e0ef);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.kt-card__media img, .kt-recap__media img {
	display: block; width: 100%; height: 170px; object-fit: cover;
}
.kt-card__body, .kt-recap__body { padding: 1rem 1.1rem 1.2rem; }
.kt-card__date { margin: 0 0 .35rem; font-size: .9rem; color: var(--wp--preset--color--primary, #1d4ed8); font-weight: 500; }
.kt-card__title, .kt-recap__title { margin: 0 0 .35rem; font-size: 1.15rem; line-height: 1.25; }
.kt-card__place { margin: 0 0 .4rem; color: #41506b; font-size: .95rem; }
.kt-card__text, .kt-recap__text { margin: 0; color: #41506b; font-size: .95rem; }

/* ---- Bus-Timeline ---- */
.kt-timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; }
.kt-timeline .kt-card {
	border: 0; border-radius: 0; background: transparent; flex-direction: row; gap: .9rem;
	padding: .35rem 0 1.1rem 1.5rem; position: relative;
}
.kt-timeline .kt-card::before {
	content: ""; position: absolute; left: 0; top: .45rem;
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--wp--preset--color--primary, #1d4ed8);
}
.kt-timeline .kt-card::after {
	content: ""; position: absolute; left: 5px; top: 1.1rem; bottom: -.2rem;
	width: 2px; background: var(--wp--preset--color--border, #d7e0ef);
}
.kt-timeline .kt-card:last-child::after { display: none; }

/* ---- Kontakte ---- */
.kt-contact { padding: 1.1rem; flex-direction: row; gap: .9rem; align-items: center; }
.kt-contact__photo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.kt-contact__region { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--wp--preset--color--primary, #1d4ed8); }
.kt-contact__name { margin: .1rem 0 0; font-weight: 500; }
.kt-contact__role { margin: .1rem 0 .5rem; font-size: .9rem; color: #41506b; }
.kt-contact__cta { font-size: .9rem; font-weight: 500; }

/* ---- Footer ---- */
.kt-footer { padding-block: 2.5rem; text-align: center; }
.kt-footer a { color: inherit; }

/* ---- Zugaenglichkeit ---- */
:where(a, button, input, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--primary, #1d4ed8);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
