/*
Theme Name: Your Own Flow
Theme URI: https://yourownflowjournals.com
Author: Your Own Flow
Description: Ruhiges Block-Theme für das Reflexionsjournal Your Own Flow: Jahresversion 2027, Arbeitsversion, Bundle, English Edition und ein Ausblick auf das Wegbuch. Texte und Bilder änderst du direkt im WordPress-Editor.
Version: 2.1.1
Requires at least: 6.8
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: yourownflow
*/

/* Seitengrund: Papier mit sanftem Verlauf wie im Buch */
body {
	background-image: linear-gradient(172deg, var(--wp--preset--color--paper) 0%, var(--wp--preset--color--paper-deep) 100%);
	background-attachment: scroll;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(.wp-site-blocks) { overflow-x: clip; }
a { text-decoration-color: var(--wp--preset--color--rose-light); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--wp--preset--color--gold); }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

/* Fett in Überschriften und Zetteln = goldene Unterstreichung wie im Buch */
:where(h1, h2, h3, .is-style-yof-zettel, .is-style-yof-zettel-gross) strong {
	font-weight: inherit;
	background-image: linear-gradient(transparent 80%, rgba(154, 123, 60, .42) 80%, rgba(154, 123, 60, .42) 90%, transparent 90%);
	padding-inline: .04em;
}

/* ---------- Kopf ---------- */
.yof-kopf { padding-block: 22px; }
.yof-marke a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wp--preset--color--ink); }
.yof-marke a::before {
	content: ""; flex: none; width: 34px; height: 34px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23B08A7E' stroke-width='1.4'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Ccircle cx='20' cy='20' r='12.5'/%3E%3Ccircle cx='20' cy='20' r='7'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2.8' fill='%239A7B3C'/%3E%3C/svg%3E") center / contain no-repeat;
}
.yof-kopf .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ink-soft); }
.yof-kopf .wp-block-navigation a:hover { color: var(--wp--preset--color--ink); }

/* ---------- Abschnitte ---------- */
.yof-abschnitt { padding-block: clamp(52px, 7.5vw, 104px); }
/* Inhalte in Abschnitten immer linksbündig (auch bei Seiten aus älteren Theme-Versionen) */
.yof-abschnitt.is-layout-constrained:not(.is-style-yof-band) > * { margin-left: 0 !important; }
.yof-hero { padding-block: clamp(20px, 4vw, 56px) clamp(48px, 7vw, 104px); gap: clamp(28px, 5vw, 72px); }
.wp-block-columns { gap: clamp(28px, 5vw, 80px); }

/* Kreise hinter dem Buch */
.yof-kreise {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%23D7C0B5'%3E%3Ccircle cx='300' cy='300' r='70' stroke-width='1.4'/%3E%3Ccircle cx='300' cy='300' r='135' stroke-width='1.3' opacity='.95'/%3E%3Ccircle cx='300' cy='300' r='200' stroke-width='1.6' opacity='.85'/%3E%3Ccircle cx='300' cy='300' r='262' stroke-width='1.2' opacity='.7'/%3E%3Ccircle cx='300' cy='300' r='296' stroke-width='1.1' opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat;
}
.yof-buch img { width: min(100%, 470px); height: auto; margin-inline: auto; display: block; }

/* Trenner mit Kreis-Motiv */
.wp-block-separator.is-style-yof-ring {
	border: 0 !important; height: 46px; width: 46px; max-width: 46px; margin-inline: auto !important; opacity: 1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23D7C0B5' stroke-width='1.4'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Ccircle cx='20' cy='20' r='12.5'/%3E%3Ccircle cx='20' cy='20' r='7'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2.8' fill='%239A7B3C'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* ---------- Textstile ---------- */
.is-style-yof-kicker {
	font-size: .8125rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
	color: var(--wp--preset--color--rose-ink); margin-bottom: 0;
}
.is-style-yof-einleitung { font-size: var(--wp--preset--font-size--large); line-height: 1.62; color: var(--wp--preset--color--ink-soft); max-width: 33em; }
.is-style-yof-hand { font-family: var(--wp--preset--font-family--kalam); color: var(--wp--preset--color--rose-ink); font-size: 1.4rem; line-height: 1.3; display: inline-block; transform: rotate(-1.5deg); }
.is-style-yof-schluss { font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: var(--wp--preset--font-size--x-large); line-height: 1.3; color: var(--wp--preset--color--rose-ink); }
.is-style-yof-gross { font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: var(--wp--preset--font-size--x-large); line-height: 1.32; }
.is-style-yof-klein { font-size: .9375rem; line-height: 1.55; color: var(--wp--preset--color--ink-soft); }
.yof-abschnitt p:not([class*="is-style"]) { max-width: 36em; }

/* ---------- Klebezettel ---------- */
.is-style-yof-zettel, .is-style-yof-zettel-gross {
	position: relative; background: var(--wp--preset--color--note) !important;
	padding: 46px 34px 30px !important; transform: rotate(-2deg); max-width: 360px; margin-inline: auto !important;
	box-shadow: 0 1px 2px rgba(74, 46, 36, .06), 0 22px 44px -30px rgba(74, 46, 36, .45);
	font-family: var(--wp--preset--font-family--kalam); font-size: 1.6rem; line-height: 1.45; text-align: center; color: var(--wp--preset--color--ink);
}
.is-style-yof-zettel::before, .is-style-yof-zettel-gross::before {
	content: ""; position: absolute; top: -14px; left: 50%; width: 128px; height: 32px; margin-left: -64px;
	background: rgba(205, 175, 165, .78); transform: rotate(2.5deg);
}
.is-style-yof-zettel > * { margin-block: 0; }
.is-style-yof-zettel .is-style-yof-unterschrift, .is-style-yof-unterschrift { font-size: 1.05rem; color: var(--wp--preset--color--rose-ink); text-align: right; margin-top: 12px !important; }
.is-style-yof-zettel-gross { max-width: 520px; font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem); padding: 56px 44px 42px !important; }
.is-style-yof-band { text-align: center; }
.is-style-yof-band > p:not(.is-style-yof-zettel-gross) { max-width: 33em; margin-inline: auto !important; color: var(--wp--preset--color--ink-soft); }

/* ---------- Listen ---------- */
ul.is-style-yof-linien { list-style: none; padding: 0; border-top: 1px solid rgba(176, 138, 126, .38); }
ul.is-style-yof-linien li { display: flex; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid rgba(176, 138, 126, .38); font-size: var(--wp--preset--font-size--large); margin: 0; }
ul.is-style-yof-linien li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--gold); transform: translateY(-2px); }

ul.is-style-yof-grundsaetze { list-style: none; padding: 0; border-left: 1px solid rgba(176, 138, 126, .38); }
ul.is-style-yof-grundsaetze li { position: relative; font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: var(--wp--preset--font-size--x-large); line-height: 1.25; padding: 15px 0 15px 30px; margin: 0; }
ul.is-style-yof-grundsaetze li::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--wp--preset--color--gold); }

ul.is-style-yof-kreise { list-style: none; padding: 0; display: grid; gap: 14px; }
ul.is-style-yof-kreise li { display: flex; gap: 14px; align-items: baseline; margin: 0; }
ul.is-style-yof-kreise li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--rose); background: radial-gradient(circle, var(--wp--preset--color--gold) 0 2.2px, transparent 2.6px); transform: translateY(1px); }

/* ---------- Buchseiten ---------- */
.is-style-yof-raster { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 44px 28px !important; }
.is-style-yof-raster > .yof-doppel { grid-column: span 2; }
.yof-doppel .wp-block-image.is-style-yof-buchseite img { aspect-ratio: 2 / 1.414; }

/* Gruppen im Einblick (Durch das Jahr · Kapitel und Werkzeuge · Stille Seiten) */
.yof-gruppe { margin-top: clamp(40px, 5vw, 68px) !important; }
.yof-gruppe > * { margin-block: 0 !important; }
.yof-gruppe-kopf { border-top: 1px solid rgba(176, 138, 126, .38); padding-top: 18px; margin-bottom: 30px !important; gap: 4px 28px !important; }
.yof-gruppe-kopf > * { margin: 0 !important; }
.yof-gruppe-kopf h3 { font-size: 1.55rem; }
.yof-gruppe-kopf .is-style-yof-klein { max-width: 30em; }
.is-style-yof-raster > * { margin: 0 !important; min-width: 0; }
.is-style-yof-raster .wp-block-group > * { margin-block: 0; }
.is-style-yof-raster .is-style-yof-kicker { font-size: .75rem; letter-spacing: .2em; margin-top: 18px !important; }
.is-style-yof-raster .is-style-yof-klein { margin-top: 6px !important; }
.wp-block-image.is-style-yof-buchseite img {
	width: 100%; height: auto; aspect-ratio: 1 / 1.414; object-fit: cover; display: block;
	background: var(--wp--preset--color--sheet);
	box-shadow: 0 24px 40px -24px rgba(74, 46, 36, .5), 0 2px 6px rgba(74, 46, 36, .08);
	transition: transform .35s ease;
}
.wp-block-image.is-style-yof-buchseite { margin: 0; }
.is-style-yof-raster > *:hover .is-style-yof-buchseite img { transform: translateY(-4px) rotate(-.6deg); }

/* ---------- Karten (Ausgaben) und Hinweis-Box ---------- */
.is-style-yof-karte, .is-style-yof-hinweis {
	background: var(--wp--preset--color--sheet); border-radius: 6px;
	box-shadow: 0 1px 2px rgba(74, 46, 36, .06), 0 22px 44px -30px rgba(74, 46, 36, .4);
}
.is-style-yof-karte { padding: 26px 30px 26px 18px !important; gap: 26px !important; height: 100%; }
.is-style-yof-karte > .wp-block-image { flex: 0 0 150px; margin: 0; }
.is-style-yof-karte > .wp-block-image img { width: 100%; height: auto; }
.is-style-yof-karte > .wp-block-group { flex: 1 1 0; min-width: 0; }
.is-style-yof-karte > .wp-block-group > * { margin-block: 0 8px; }
.is-style-yof-karte h3 { margin-block: 4px 8px !important; }
.is-style-yof-hinweis { padding: 34px clamp(22px, 4vw, 48px) !important; }
.is-style-yof-hinweis .wp-block-group > * { margin-block: 0; }

/* Tablet-Bild */
.yof-tablet img { width: min(100%, 340px); height: auto; margin-inline: auto; display: block; }

/* ---------- Knöpfe ---------- */
.wp-block-button.is-style-yof-klein .wp-block-button__link { padding: .6em 1.15em; font-size: .875rem; }
.wp-block-button.is-style-yof-leise .wp-block-button__link {
	background: transparent !important; color: var(--wp--preset--color--ink) !important; padding: 0 0 2px !important;
	border-radius: 0; border-bottom: 1px solid var(--wp--preset--color--rose-light);
}
.wp-block-button.is-style-yof-leise .wp-block-button__link:hover { border-color: var(--wp--preset--color--gold); }
.wp-block-buttons { gap: 14px 26px; align-items: center; }

/* ---------- Fragen ---------- */
.yof-fragen { max-width: 780px; }
.yof-fragen > * { margin-block: 0 !important; }
.wp-block-details { border-bottom: 1px solid rgba(176, 138, 126, .38); }
.yof-fragen .wp-block-details:first-child { border-top: 1px solid rgba(176, 138, 126, .38); }
.wp-block-details summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px;
	font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: 1.3rem; 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--inter); font-style: normal; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--rose-ink); transition: transform .2s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > p { margin: 0 0 22px; color: var(--wp--preset--color--ink-soft); max-width: 38em; }

/* ---------- Fuß ---------- */
.yof-fuss { border-top: 1px solid rgba(176, 138, 126, .38); margin-top: clamp(48px, 7vw, 88px) !important; padding-block: 44px 56px; color: var(--wp--preset--color--ink-soft); font-size: .875rem; }
.yof-fuss .wp-block-navigation a { color: var(--wp--preset--color--ink-soft); text-decoration: underline; text-decoration-color: var(--wp--preset--color--rose-light); display: inline-block; padding-block: 6px; }
.yof-fuss .wp-block-navigation__container { gap: 4px 22px; }

/* ---------- Rechtstexte ---------- */
.yof-recht { max-width: 740px; padding-block: 8px 24px; }
.yof-recht h2 { font-size: 1.5rem; margin-top: 42px; }
.yof-recht p { color: var(--wp--preset--color--ink-soft); }

/* ---------- 2.0: Ausgaben ---------- */
.yof-ausgaben { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px !important; margin-top: clamp(32px, 4vw, 52px) !important; }
.yof-ausgaben > * { margin: 0 !important; }
.yof-meta { font-size: .8125rem; line-height: 1.45; color: var(--wp--preset--color--rose-ink); letter-spacing: .02em; }
.is-style-yof-karte .wp-block-buttons { margin-top: 10px !important; }
.is-style-yof-karte > .yof-zwei { flex: 0 0 150px; display: grid !important; margin: 0; padding: 10px 8px; }
.yof-zwei > figure { grid-area: 1 / 1; margin: 0 !important; }
.yof-zwei > figure img { width: 100%; height: auto; box-shadow: 0 14px 26px -18px rgba(74, 46, 36, .55); }
.yof-zwei > figure:first-child { transform: translate(-10px, -6px) rotate(-4deg); }
.yof-zwei > figure:last-child { transform: translate(12px, 8px) rotate(3deg); }
.yof-hinweis-zeile { margin-top: 10px !important; }

/* ---------- 2.0: Buchseiten in drei Spalten ---------- */
.is-style-yof-raster.yof-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 2.0: Wegbuch ---------- */
ol.yof-stationen { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid rgba(176, 138, 126, .38); }
ol.yof-stationen li { counter-increment: st; display: flex; gap: 14px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid rgba(176, 138, 126, .38); font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: 1.25rem; line-height: 1.3; margin: 0; }
ol.yof-stationen li::before { content: counter(st, upper-roman); flex: none; min-width: 2.4em; font-family: var(--wp--preset--font-family--inter); font-style: normal; font-weight: 500; font-size: .75rem; letter-spacing: .2em; color: var(--wp--preset--color--rose-ink); }
.wp-block-spacer.yof-wegbild, .yof-wegbild {
	min-height: 340px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 440' fill='none'%3E%3Cpath d='M70 420 C 70 360 330 370 330 300 S 70 250 70 185 S 330 140 300 70' stroke='%23D7C0B5' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='2 9'/%3E%3Cg stroke='%23B08A7E' stroke-width='1.3'%3E%3Ccircle cx='300' cy='62' r='34'/%3E%3Ccircle cx='300' cy='62' r='22'/%3E%3Ccircle cx='300' cy='62' r='11'/%3E%3C/g%3E%3Ccircle cx='300' cy='62' r='3.6' fill='%239A7B3C'/%3E%3Cg fill='%23B08A7E'%3E%3Ccircle cx='70' cy='420' r='4'/%3E%3Ccircle cx='258' cy='345' r='3'/%3E%3Ccircle cx='180' cy='262' r='3'/%3E%3Ccircle cx='86' cy='205' r='3'/%3E%3Ccircle cx='226' cy='150' r='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Bildschirmgrößen ---------- */
@media (max-width: 960px) {
	.is-style-yof-raster, .is-style-yof-raster.yof-drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yof-ausgaben { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 781px) {
	.wp-block-spacer.yof-wegbild, .yof-wegbild { min-height: 240px; height: 240px !important; }
	.yof-abschnitt { padding-block: clamp(44px, 9vw, 72px); }
}
/* Tippziele mindestens 44 px hoch: Handy, Tablet und alle Touch-Geräte */
@media (max-width: 1100px), (pointer: coarse) {
	.wp-block-button.is-style-yof-leise .wp-block-button__link { padding: 12px 0 10px !important; }
	.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }
	.yof-fuss .wp-block-navigation a { padding-block: 11px; }
	.yof-abschnitt p a, .wp-block-details p a { padding-block: 12px; }
	.wp-block-details summary { min-height: 44px; }
}
@media (max-width: 600px) {
	/* Auf dem Handy: nur Logo und Menü im Kopf, der Etsy-Knopf steht gleich darunter auf der Seite */
	.yof-kopf .wp-block-buttons { display: none; }
	.yof-kopf { padding-block: 14px; }
}
@media (max-width: 480px) {
	.is-style-yof-raster { gap: 32px 18px !important; }
	.is-style-yof-karte { padding: 20px 20px 20px 10px !important; gap: 16px !important; }
	.is-style-yof-karte > .wp-block-image { flex-basis: 96px; }
	.is-style-yof-zettel { font-size: 1.4rem; padding: 42px 24px 26px !important; }
	.is-style-yof-karte > .yof-zwei { flex-basis: 96px; }
	ol.yof-stationen { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* ---------- 2.0.8: Gedruckt, Planer, So geht es ---------- */
.yof-formate { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; margin-block: 24px !important; }
.yof-formate > * { margin: 0 !important; }
.yof-merkmale { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px) !important; margin-block: clamp(28px, 4vw, 48px) !important; }
.yof-merkmale > * { margin: 0 !important; padding-top: 16px; border-top: 1px solid var(--wp--preset--color--rose-light, #D7C0B5); }
.yof-merkmale h3 { margin: 0 0 8px !important; }
.yof-schritte { list-style: none; counter-reset: yof-s; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-block: clamp(24px, 4vw, 44px) !important; }
.yof-schritte li { counter-increment: yof-s; margin: 0 !important; }
.yof-schritte li::before { content: counter(yof-s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border: 1px solid currentColor; border-radius: 50%; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.125rem; color: var(--wp--preset--color--gold, #9A7B3C); }
@media (max-width: 960px) { .yof-merkmale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) { .yof-formate, .yof-merkmale, .yof-schritte { grid-template-columns: minmax(0, 1fr); } }
