/*
Theme Name: Caroline von Gunten
Author: Caroline von Gunten
Description: Sehr reduziertes Block-Theme für eine Künstlerinnen-Website. Ein zentrales Werk auf der Startseite, News, Portfolio-Downloads, Instagram-Link und ein eingebautes Kontaktformular ohne Plugin.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cvg
Tags: block-theme, full-site-editing, one-column, portfolio, minimal
*/

::selection { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* Kopfzeile: Name links, drei Wörter rechts */
.cvg-header .wp-block-site-title a { text-decoration: none; }
.cvg-header .wp-block-navigation a { text-decoration: none; }
.cvg-header .wp-block-navigation a:hover,
.cvg-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; }

/* Zentrales Werk */
.cvg-work { text-align: center; }
.cvg-work img {
	max-height: 76vh;
	width: auto !important;
	max-width: 100%;
	margin-inline: auto;
	display: block;
}
.cvg-work figcaption,
.cvg-caption {
	color: var(--wp--preset--color--subtle);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 1rem;
	text-align: center;
}

/* News als ruhige Liste */
.cvg-list .wp-block-post-template { border-top: 1px solid var(--wp--preset--color--line); }
.cvg-list .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.9rem 0;
	margin: 0 !important;
	display: grid;
	grid-template-columns: 8.5rem 1fr;
	gap: 1rem;
	align-items: baseline;
}
.cvg-list .wp-block-post > * { margin: 0 !important; }
.cvg-list .wp-block-post-title a { text-decoration: none; }
.cvg-list .wp-block-post-title a:hover { text-decoration: underline; }
@media (max-width: 600px) {
	.cvg-list .wp-block-post { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Downloads */
.wp-block-file {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.9rem 0;
	margin: 0 !important;
}
.wp-block-file:first-of-type { border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-file a:not(.wp-block-file__button) { text-decoration: none; }
.wp-block-file .wp-block-file__button {
	background: none !important;
	color: inherit !important;
	padding: 0 !important;
	border-radius: 0 !important;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: underline;
	white-space: nowrap;
}
.wp-block-file .wp-block-file__button::after { content: " ↓"; }

/* Kontaktformular */
.cvg-form { display: grid; gap: 1.25rem; max-width: 34rem; }
.cvg-form label { display: block; font-size: var(--wp--preset--font-size--small); margin-bottom: 0.35rem; color: var(--wp--preset--color--subtle); }
.cvg-form input[type="text"],
.cvg-form input[type="email"],
.cvg-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	padding: 0.4rem 0;
}
.cvg-form textarea { min-height: 9rem; resize: vertical; border: 1px solid var(--wp--preset--color--contrast); padding: 0.6rem; }
.cvg-form input:focus, .cvg-form textarea:focus { outline: none; border-color: var(--wp--preset--color--subtle); }
.cvg-form .cvg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cvg-form button {
	justify-self: start;
	font: inherit;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: 0;
	padding: 0.6rem 1.4rem;
	cursor: pointer;
}
.cvg-form button:hover { opacity: 0.8; }
.cvg-form .cvg-note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--subtle); margin: 0; }
.cvg-msg { padding: 0.8rem 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; max-width: 34rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
