/*
Theme Name: The Special Connection (neu)
Description: Kindertheme von Twenty Twenty-Five mit dem Farbkonzept und den Schriften von The Special Connection. Alle Farben, Schriften und Abstände stehen zentral in theme.json.
Template: twentytwentyfive
Version: 0.4.4
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsc-neu
*/

/* Kleine Überschrift mit Strichen, z. B. "– BONJOUR –".
   Im Editor: Absatz auswählen > Erweitert > Zusätzliche CSS-Klasse(n): smalltitle */
.smalltitle {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
}
.smalltitle::before,
.smalltitle::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 2px;
	background: currentColor;
	vertical-align: middle;
	margin: 0 0.6em;
}

/* Auf dunklem Hintergrund (Klasse "has-accent-3-background-color") weiß */
.has-accent-3-background-color .smalltitle { color: #ffffff; }

/* Sanfte Übergänge wie im alten Theme */
a, .wp-element-button, .wp-block-button__link {
	transition: all 0.4s cubic-bezier(0.25, 1, 0.35, 1);
}

/* Bereiche über die ganze Breite (Titelbild, Streifen, farbige Flächen)
   sollen ohne weiße Lücke aneinanderstoßen. */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * {
	margin-block-start: 0;
}

/* Preis in der Speisekarte nicht umbrechen */
.tsc-price { white-space: nowrap; flex-shrink: 0; }

/* Sprachwechsel (Flagge) in der Kopfzeile */
.tsc-lang-switch { display: inline-flex; align-items: center; }
.tsc-lang-switch img { display: block; width: 24px; height: auto; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}

/* Fußzeile direkt an den letzten Abschnitt anschließen */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-block-start: 0;
}

/* Weiches Scrollen zu den Abschnitten (Menü, „Zur Speisekarte“) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Kontaktformular (Contact Form 7) im Stil der Website */
.wpcf7 form > p { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-size: 0.9375rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 0.35rem;
	padding: 0.65rem 0.75rem;
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-1);
	border-radius: 0;
}
.wpcf7 textarea { height: 9rem; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 0;
	border-color: var(--wp--preset--color--accent-3);
}
.wpcf7 form > p:has(a) { font-size: 0.8125rem; line-height: 1.5; }
.wpcf7 .cf-turnstile { margin: 0.25rem 0 1rem; }
.wpcf7 input[type="submit"] {
	appearance: none;
	cursor: pointer;
	padding: 1rem 1.5rem;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--accent-3);
	border: 2px solid var(--wp--preset--color--accent-3);
	border-radius: 0;
	transition: background-color 0.2s, border-color 0.2s;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}
.wpcf7 .wpcf7-spinner { margin: 0 0 0 0.75rem; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 0.8125rem; margin-top: 0.25rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: 0.75rem 1rem; font-size: 0.875rem; }


/* Cloudflare-Kästchen rechts neben „Nachricht senden“ (ragt am Computer
   in die mittlere Spalte; am Handy bleibt es über dem Button) */
@media (min-width: 782px) {
	.wpcf7 form { position: relative; }
	.wpcf7 form .cf7-cf-turnstile {
		position: absolute;
		top: auto;
		left: calc(100% + 2em);
		width: 300px;
		min-height: 65px;
		margin: -7px 0 0 !important;
		z-index: 1;
	}
	.wpcf7 form .cf7-cf-turnstile + br { display: none; }
	.wpcf7 form > p:empty { display: none; }
}
