/*
Theme Name: Carolin Kost
Theme URI: https://www.carolinkost.de/
Author: Carolin Kost
Description: Schlichtes Block-Theme für Studio-Updates, Galerie (Cyanotypie, Gel Printing, Collage, Fotografie, Mixed Media) und Kurse an der VHS Dresden. Schriften lokal eingebunden.
Version: 1.0.3
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carolin-kost
Tags: block-patterns, full-site-editing, portfolio, blog, one-column, grid-layout
*/

/* ---------- Grundlagen ---------- */
:root {
	--ck-line: #E6E7E4;
	--ck-radius: 16px;
}
:where(a, button, input):focus-visible {
	outline: 3px solid var(--wp--preset--color--highlight);
	outline-offset: 2px;
}
.ck-section {
	padding-top: clamp(56px, 8vw, 88px);
	padding-bottom: clamp(56px, 8vw, 88px);
}
.ck-kicker {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.ck-lead {
	font-size: 19px;
	line-height: 1.55;
	color: #3F454B;
	max-width: 560px;
}
.ck-muted { color: var(--wp--preset--color--muted); }
.ck-section-head > * { margin-block: 0; }
.ck-section-head h2 { margin-top: 10px; }
.ck-section-head .ck-lead { margin-top: 14px; }

/* ---------- Kopfzeile ---------- */
.ck-header {
	border-bottom: 1px solid var(--ck-line);
	padding-top: 18px;
	padding-bottom: 18px;
}
.ck-brand { gap: 10px !important; align-items: baseline !important; }
.ck-brand .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.ck-brand .wp-block-site-tagline { font-size: 13px; color: var(--wp--preset--color--muted); }
.ck-header .wp-block-navigation-item__content {
	padding: 10px 14px;
	border-radius: 999px;
	text-decoration: none;
}
.ck-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--base-2); }
.ck-header .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1.5px solid currentColor;
}
.ck-btn-light > .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.ck-btn-highlight > .wp-block-button__link {
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
}
.ck-btn-light > .wp-block-button__link:hover,
.ck-btn-highlight > .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Hero ---------- */
.ck-hero h1 { margin: 0; }
.ck-tiles {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	height: 460px;
}
.ck-tiles > * { margin: 0 !important; }
.ck-tile {
	border-radius: 14px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-size: cover;
	background-position: center;
}
.ck-tile p { margin: 0; font-size: 13px; }
.ck-tile .ck-tile__label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ck-tile--tall { grid-row: 1 / span 2; }

/* ---------- Karten (Studio-Updates) ---------- */
.ck-card {
	background: var(--wp--preset--color--base);
	border-radius: var(--ck-radius);
	overflow: hidden;
	height: 100%;
}
.ck-card > .wp-block-post-featured-image { margin: 0; }
.ck-card__body { padding: 24px; }
.ck-card__body > * { margin-block: 0 !important; }
.ck-card__body > * + * { margin-top: 12px !important; }
.ck-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.ck-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.ck-card .wp-block-post-excerpt { color: #3F454B; font-size: 16px; }
.ck-card .wp-block-post-excerpt__more-text { margin-top: 8px; }
.ck-meta { gap: 8px !important; align-items: center !important; }
.ck-meta .wp-block-post-date { font-size: 13px; color: var(--wp--preset--color--muted); }

/* Kategorie-Etiketten */
.ck-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-chips .wp-block-post-terms__separator { display: none; }
.ck-chips a,
.ck-chip {
	display: inline-block;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	padding: 5px 10px;
	border-radius: 999px;
	text-decoration: none;
	background: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--contrast);
}
.ck-chips a[href*="cyanotypie"], .ck-chip--cyan { background: var(--wp--preset--color--cyan-tint); color: #1E3F7A; }
.ck-chips a[href*="gel-printing"], .ck-chip--gel { background: var(--wp--preset--color--gel-tint); color: #7A3216; }
.ck-chips a[href*="collage"], .ck-chip--collage { background: var(--wp--preset--color--collage-tint); color: #5A4A1E; }
.ck-chips a[href*="fotografie"], .ck-chip--foto { background: var(--wp--preset--color--foto-tint); color: #2E3135; }
.ck-chips a[href*="mixed-media"], .ck-chip--mixed { background: var(--wp--preset--color--mixed-tint); color: #4B2E6B; }
.ck-chips a[href*="kurs"], .ck-chip--kurs { background: var(--wp--preset--color--highlight); color: var(--wp--preset--color--contrast); }
p.ck-chip { width: fit-content; }

/* ---------- Galerie ---------- */
.ck-filter { gap: 8px !important; }
.ck-filter .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border: 1.5px solid #C9CCC8;
	padding: 10px 18px;
	font-size: 15px;
	min-height: 44px;
}
.ck-filter .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}
.ck-gallery .wp-block-post-featured-image { margin: 0; }
.ck-gallery .wp-block-post-featured-image img { border-radius: 12px; }
.ck-gallery .wp-block-post-title { font-size: 16px; font-weight: 600; font-family: var(--wp--preset--font-family--body); letter-spacing: 0; margin-top: 10px; }
.ck-gallery .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.ck-gallery .ck-chips { margin-top: 6px; }

/* Bilder in Beiträgen */
.wp-block-gallery img, .wp-block-image img { border-radius: 10px; }

/* ---------- Kurse ---------- */
.ck-kurse .ck-kicker { color: var(--wp--preset--color--highlight); }
.ck-kurse .ck-lead { color: #D6DEEB; }
.ck-next {
	border: 1.5px dashed rgba(255, 255, 255, 0.55);
	border-radius: var(--ck-radius);
	padding: 28px;
	gap: 24px !important;
}
.ck-next h3 { margin: 8px 0 4px; }
.ck-next p { margin: 0; }
.ck-next p:not(.ck-chip) { color: #D6DEEB; }
.ck-courses { gap: 20px !important; }
.ck-course {
	border-radius: var(--ck-radius);
	padding: 26px;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.ck-course > * { margin-block: 0 !important; }
.ck-course > * + * { margin-top: 14px !important; }
.ck-course p { font-size: 15px; }
.ck-course a { color: var(--wp--preset--color--accent); font-weight: 600; }
.ck-course .ck-course__link { margin-top: auto !important; padding-top: 14px; }
.ck-facts > * { margin: 0 !important; font-size: 14px !important; }
.ck-facts > * + * { margin-top: 4px !important; }

/* ---------- Über mich ---------- */
.ck-portrait {
	aspect-ratio: 4 / 5;
	border-radius: var(--ck-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
}

/* ---------- Fußzeile ---------- */
.ck-footer a { color: var(--wp--preset--color--base); }
.ck-footer a:hover { color: var(--wp--preset--color--highlight); }
.ck-footer .ck-kicker { color: var(--wp--preset--color--highlight); font-size: 13px; }
.ck-footer p { margin: 0; }
.ck-footer .ck-small, .ck-footer .ck-small a { color: #B9BEC4; font-size: 14px; }
.ck-footer-bottom { border-top: 1px solid #3A3D41; padding-top: 24px; }

/* ---------- Rechtstexte / Einzelseiten ---------- */
.ck-page-title { margin-bottom: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.ck-tiles { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.ck-tile { min-height: 180px; }
	.ck-tile--tall { grid-row: auto; grid-column: 1 / -1; min-height: 240px; }
	.wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 782px) and (max-width: 1024px) {
	.wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
