/*
Theme Name: tablework
Theme URI: https://tablework.ch
Author: dineo gmbh
Description: Block-Theme fuer die Website von Cuna Luethi, Tischseancen in Thurnen BE.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tablework
*/

/* ---------------------------------------------------------------
   Ergaenzungen zu theme.json
   --------------------------------------------------------------- */

:root {
	--tw-shadow: 0 1px 2px rgba(43, 42, 39, 0.06), 0 12px 32px -12px rgba(43, 42, 39, 0.18);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	text-wrap: balance;
	letter-spacing: -0.01em;
}

p {
	text-wrap: pretty;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Header */
.tw-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.tw-header .wp-block-site-title a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.01em;
}

.tw-header .wp-block-site-tagline {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}

.tw-header .wp-block-site-tagline::before {
	content: "\00b7";
	margin-right: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--accent);
}

.tw-header .wp-block-navigation a {
	text-decoration: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding-block: 0.35em;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease;
}

.tw-header .wp-block-navigation a:hover,
.tw-header .wp-block-navigation .current-menu-item > a {
	border-bottom-color: var(--wp--preset--color--accent);
}

/* Hero */
.tw-hero {
	position: relative;
	overflow: hidden;
}

.tw-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 70% at 30% 50%, rgba(140, 106, 31, 0.10), transparent 70%);
	pointer-events: none;
}

.tw-hero .wp-block-image img {
	max-height: min(70vh, 640px);
	width: auto;
	margin-inline: auto;
	filter: drop-shadow(0 24px 32px rgba(43, 42, 39, 0.18));
	animation: tw-rise 1.1s ease-out both;
}

.tw-hero__claim {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.02em;
}

@keyframes tw-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tw-hero .wp-block-image img { animation: none; }
}

/* Kacheln */
.tw-card {
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
	box-shadow: var(--tw-shadow);
	height: 100%;
}

.tw-card__label {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.tw-card__value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	line-height: 1.1;
}

/* Ablauf-Schritte */
.tw-step__number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

/* Zitat */
.tw-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
	color: var(--wp--preset--color--contrast);
}

/* Bedingungen-Liste */
.tw-conditions li {
	padding-left: 0.4em;
	margin-bottom: 0.6em;
}

.tw-conditions li::marker {
	color: var(--wp--preset--color--accent);
}

/* FAQ (core/details) */
.wp-block-details {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-details:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.3;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex: none;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	color: var(--wp--preset--color--accent);
	font-size: 1.4em;
	line-height: 1;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin-top: var(--wp--preset--spacing--20);
}

/* Portrait */
.tw-portrait img {
	max-height: 560px;
	width: auto;
	margin-inline: auto;
}

/* Kontaktformular (Contact Form 7) */
.wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0.3em;
}

.wpcf7 p {
	margin-bottom: var(--wp--preset--spacing--30);
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]),
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0.75em 0.9em;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: inherit;
}

.wpcf7 textarea {
	min-height: 10em;
}

.wpcf7 .wpcf7-list-item {
	margin-left: 0;
}

.wpcf7 .wpcf7-list-item label {
	font-weight: 400;
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
}

.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 999px;
	padding: 0.9em 2em;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-dark);
}

.wpcf7 form .wpcf7-response-output {
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 1em 1.2em;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--accent);
}

/* Footer */
.tw-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.tw-footer a {
	color: inherit;
	text-decoration: none;
}

.tw-footer a:hover {
	color: var(--wp--preset--color--accent);
}

.tw-footer .wp-block-navigation a {
	text-decoration: none;
}

/* Contact Form 7: Zustaende, die sonst das Plugin-CSS regelt */
.wpcf7 .hidden-fields-container,
.wpcf7 label + br,
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #5c7a3a;
	background: #eef3e6;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: #a3412d;
	background: #f6e8e4;
}

.wpcf7 .wpcf7-not-valid {
	border-color: #a3412d;
}

.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	color: #a3412d;
	font-size: var(--wp--preset--font-size--small);
	margin-top: 0.3em;
}

.wpcf7 .wpcf7-spinner {
	display: none;
}

.wpcf7 form.submitting input[type="submit"] {
	opacity: 0.6;
	cursor: wait;
}
