/*
Theme Name: OrchidSoul Licht (jonathansander.de)
Theme URI: https://jonathansander.de
Author: Jonathan Sander
Author URI: https://jonathansander.de
Description: Block-Theme im OrchidSoul-Stil für jonathansander.de (Testumgebung). Seelenfarben Platin-Gold, Perlmutt-Silber und Kristallines Aquamarin, Fraunces und Figtree lokal eingebunden (DSGVO-freundlich). Komplett im Website-Editor bearbeitbar, ohne Page-Builder.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jonathansander
Tags: block-theme, full-site-editing, one-column, custom-colors, editor-style, block-patterns, translation-ready
*/

/* Kleine Feinheiten, die theme.json nicht abdeckt */

html { scroll-behavior: smooth; }

/* Abschnitte schließen nahtlos aneinander an, Abstände kommen aus den Abschnitten selbst */
.wp-site-blocks > * { margin-block-start: 0; }

::selection {
	background: var(--wp--preset--color--platin-gold);
	color: var(--wp--preset--color--nacht);
}

:where(a) { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(a:hover) { text-decoration-thickness: 2px; }

:where(:focus-visible) {
	outline: 2px solid var(--wp--preset--color--platin-gold);
	outline-offset: 3px;
}

/* Kleine Überzeile über Überschriften */
.is-style-ueberzeile {
	font-family: var(--wp--preset--font-family--figtree);
	font-size: var(--wp--preset--font-size--klein);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--platin-gold-tief);
}

/* Feine goldene Trennlinie */
.wp-block-separator.is-style-goldfaden {
	border: 0;
	height: 2px;
	width: 72px;
	background: var(--wp--preset--color--platin-gold) !important;
	color: var(--wp--preset--color--platin-gold) !important;
	opacity: 1;
}

/* Gruppe als Karte */
.is-style-karte {
	background: var(--wp--preset--color--perlmutt-silber);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--50);
	transition: transform .25s ease, box-shadow .25s ease;
}
.is-style-karte:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -24px rgba(31, 42, 51, .3);
}

/* Bild mit organischer Bogenform */
.wp-block-image.is-style-bogen img,
.wp-block-cover.is-style-bogen {
	border-radius: 999px 999px 18px 18px;
}

/* Zitat mit großem Anführungszeichen */
.wp-block-quote.is-style-gross {
	border: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--gross);
	font-style: italic;
	line-height: 1.35;
}
.wp-block-quote.is-style-gross::before {
	content: "„";
	display: block;
	font-size: 4em;
	font-style: normal;
	line-height: 1;
	height: .4em;
	margin-bottom: 0;
	transform: translateY(-.62em);
	color: var(--wp--preset--color--platin-gold);
}
.wp-block-quote.is-style-gross cite {
	font-family: var(--wp--preset--font-family--figtree);
	font-style: normal;
	font-size: var(--wp--preset--font-size--klein);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--platin-gold-tief);
}

/* Umriss-Button */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
}

/* Sticky Header mit leichtem Glas-Effekt */
.js-kopf {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	background: color-mix(in srgb, var(--wp--preset--color--perlmutt) 86%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--nacht) 8%, transparent);
}
body.admin-bar .js-kopf { top: 32px; }
@media (max-width: 782px) { body.admin-bar .js-kopf { top: 46px; } }

/* Beitragskarten im Blog-Raster */
.js-beitragskarte .wp-block-post-featured-image img { border-radius: 14px; transition: transform .4s ease; }
.js-beitragskarte .wp-block-post-featured-image { overflow: hidden; border-radius: 14px; }
.js-beitragskarte:hover .wp-block-post-featured-image img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Perlmutt-Schimmer: zarter Lichtschleier für Abschnitte */
.is-style-schimmer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.is-style-schimmer::before {
	content: "";
	position: absolute;
	inset: -40%;
	z-index: -1;
	background:
		radial-gradient(40% 35% at 18% 22%, rgba(143, 216, 210, .38), transparent 70%),
		radial-gradient(35% 30% at 82% 30%, rgba(211, 190, 138, .32), transparent 70%),
		radial-gradient(45% 40% at 55% 85%, rgba(183, 187, 194, .30), transparent 70%);
	filter: blur(10px);
	animation: js-schimmer 22s ease-in-out infinite alternate;
}
@keyframes js-schimmer {
	from { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
	to   { transform: translate3d(2%, 2%, 0) rotate(6deg); }
}

/* Karte mit Perlmuttrand */
.is-style-karte {
	background: linear-gradient(var(--wp--preset--color--weiss), var(--wp--preset--color--weiss)) padding-box,
	            linear-gradient(135deg, #D3BE8A, #E3E4E6 45%, #8FD8D2) border-box;
	border: 1px solid transparent;
}

/* Goldener Akzent im Wort: Text markieren und "Hervorhebung" mit Klasse js-gold */
.js-gold, mark.js-gold {
	background: linear-gradient(100deg, #8A7340, #C9AE6E 45%, #8A7340);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Mobil: Kopf-Button ausblenden, Menü übernimmt; Karten etwas enger */
@media (max-width: 600px) {
	.js-kopf-button { display: none; }
	.is-style-karte { padding: var(--wp--preset--spacing--30); }
}

/* Rundes Porträt in der Autorenbox */
.js-avatar { flex-shrink: 0; }
.js-avatar img { width: 88px; height: 88px; aspect-ratio: 1; object-fit: cover; border-radius: 999px; }

/* Formulare (Kommentare, Kontakt, Suche) */
:where(input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], textarea, select) {
	font: inherit;
	color: var(--wp--preset--color--nacht);
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--silber);
	border-radius: 12px;
	padding: .75em 1em;
}
:where(input, textarea, select):focus {
	border-color: var(--wp--preset--color--aquamarin-tief);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--aquamarin) 45%, transparent);
	outline: none;
}
:where(input[type="submit"], button[type="submit"]):not(.wp-block-search__button) {
	font: inherit; font-weight: 600; cursor: pointer;
	color: var(--wp--preset--color--weiss);
	background: var(--wp--preset--color--aquamarin-tief);
	border: 0; border-radius: 999px; padding: .85em 1.6em;
}

/* Startseite: Seitentitel automatisch ausblenden, Inhalt beginnt direkt */
.home .js-seitentitel { display: none; }

/* Volle Breite: Seiteninhalt schließt unten bündig an den Fußbereich an */
.wp-block-post-content > :last-child:not(.alignfull) { margin-bottom: var(--wp--preset--spacing--60); }

/* Goldlinie unter dem Seitentitel linksbündig */
.js-seitentitel .is-style-goldfaden { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
