/* ==========================================================================
   Frida Carlo – Ergänzende Styles (alles, was theme.json nicht abdeckt)
   Wird im Frontend UND im Editor geladen. Rein frontendseitiges Verhalten
   (sticky, fixed, Slider) ist auf body:not(.editor-styles-wrapper) begrenzt,
   damit der Editor übersichtlich bleibt.
   ========================================================================== */

:root {
	--fc-rosa: var(--wp--preset--color--rosa);
	--fc-pink: var(--wp--preset--color--pink);
	--fc-header-h: 190px;
	--fc-welle: #c8a8d8;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fc-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }

::selection { background: var(--fc-pink); color: #fff; }

:where(a, button, input, textarea):focus-visible {
	outline: 2px solid var(--fc-pink);
	outline-offset: 3px;
}

/* --- Header ------------------------------------------------------------- */
.fc-header {
	padding-block: 1.25rem;
	background: rgb(249 224 226 / 0.69);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
body:not(.editor-styles-wrapper) .wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar:not(.editor-styles-wrapper) .wp-site-blocks > header { top: 32px; }
@media (max-width: 782px) { body.admin-bar:not(.editor-styles-wrapper) .wp-site-blocks > header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar:not(.editor-styles-wrapper) .wp-site-blocks > header { top: 0; } }

.fc-header__inner { gap: 1rem; }
.fc-header__inner > * { flex: 1 1 0; }
.fc-header__logo img {
	display: block;
	width: clamp(96px, 9.8vw, 156px) !important;
	height: auto !important;
	aspect-ratio: 156 / 160;
	object-fit: contain;
	transform: rotate(var(--fc-logo-dreh, 0deg));
	will-change: transform;
}
.fc-header__cta { justify-content: flex-end; }
.fc-header__cta .wp-block-button__link { padding: .45rem 1.2rem; font-size: .9rem; }

.fc-nav .wp-block-navigation__container { gap: 0; }
.fc-nav .wp-block-navigation-item__content {
	padding: .35rem .75rem;
	position: relative;
}
.fc-nav .wp-block-navigation-item + .wp-block-navigation-item { border-left: 1px solid rgb(0 0 0 / .45); }
.fc-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: .75rem; right: .75rem; bottom: -.15rem;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.fc-nav .wp-block-navigation-item__content:hover { text-decoration: none; }
.fc-nav .wp-block-navigation-item__content:hover::after,
.fc-nav .is-aktiv .wp-block-navigation-item__content::after { transform: scaleX(1); }

@media (max-width: 600px) {
	:root { --fc-header-h: 104px; }
	.fc-header { padding-block: .75rem; }
	.fc-header__logo img { width: 80px !important; }
	.fc-header__inner > .fc-nav { flex: 2 1 auto; }
	.fc-header__cta .wp-block-button__link { padding: .35rem .9rem; font-size: .85rem; }
	.fc-nav .wp-block-navigation-item__content { padding-inline: .5rem; font-size: .9rem; }
}

/* --- Sektionen ---------------------------------------------------------- */
.fc-sektion { padding-block: clamp(5rem, 13vw, 16rem) 0; }
.fc-main > .fc-sektion:last-child,
.fc-main .wp-block-post-content > .fc-sektion:last-child { padding-bottom: clamp(5rem, 13vw, 16rem); }

.is-style-dachzeile {
	text-transform: uppercase;
	letter-spacing: .45em;
	font-weight: 500;
	font-size: .95rem;
	margin-bottom: .35rem !important;
}
.is-style-dachzeile + .wp-block-heading { margin-top: 0; }

/* Hero */
.fc-hero { padding-top: clamp(2rem, 6vw, 4.5rem); }
.fc-hero h1 { margin-bottom: 1.75rem; }
/* Welle unter „Frida Carlo“ – Linie aus dem Original, zeichnet sich selbst und erneuert sich alle ~8 s */
.fc-hero h1 { isolation: isolate; }
.fc-hero h1 mark {
	position: relative;
	display: inline-block;
	background: none;
	color: inherit;
	padding: 0;
}
.fc-hero h1 mark::after {
	content: "";
	position: absolute;
	/* Fläche wie im Original (Text + 20px), rundum um 10 Einheiten erweitert,
	   damit die 20er-Linie nicht am Rand abgeschnitten wird */
	left: calc(50% - (100% + 20px) * 0.52);
	top: calc(50% - (100% + 20px) * 0.566667);
	width: calc((100% + 20px) * 1.04);
	height: calc((100% + 20px) * 1.166667);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 520 175' preserveAspectRatio='none'%3E%3Cstyle%3Epath%7Bstroke-dasharray:1500;stroke-dashoffset:1500;animation:d 9.2s 1s ease infinite%7D%40keyframes d%7B0%25%7Bstroke-dashoffset:1500;opacity:1%7D13%25%7Bstroke-dashoffset:0%7D93%25%7Bstroke-dashoffset:0;opacity:1%7D100%25%7Bstroke-dashoffset:0;opacity:0%7D%7D%3C/style%3E%3Cpath d='M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6' fill='none' stroke='rgba%28158,144,185,0.49%29' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	z-index: -1;
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.fc-hero h1 mark::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 520 175' preserveAspectRatio='none'%3E%3Cpath d='M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6' fill='none' stroke='rgba%28158,144,185,0.49%29' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* Motiv-Kacheln */
.fc-kacheln {
	margin-top: var(--wp--preset--spacing--50) !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* auch im Editor nebeneinander */
}
.wp-block-image.is-style-kachel { position: relative; margin: 0; }
.wp-block-image.is-style-kachel img {
	display: block;
	width: 100%;
	aspect-ratio: 12 / 13;
	object-fit: cover;
}

/* Website: Overlay wie im Original – Fläche vollflächig pink, Text gleitet weich ein.
   Die Fläche hängt an der Kachel selbst, nicht am Link: funktioniert also auch,
   wenn beim Bildtausch der Link verloren geht. */
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel { overflow: hidden; }
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel a { display: block; }
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel img {
	height: 100%;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--fc-pink);
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel figcaption {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	font-size: 1rem;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
	pointer-events: none; /* Klicks gehen an den Etsy-Link darunter */
}
.wp-block-image.is-style-kachel figcaption strong {
	display: block;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .45em;
	margin-bottom: .55rem;
}
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel:is(:hover, :focus-within) img { transform: scale(1.1); }
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel:is(:hover, :focus-within)::before,
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel:is(:hover, :focus-within) figcaption { opacity: 1; }
body:not(.editor-styles-wrapper) .wp-block-image.is-style-kachel:is(:hover, :focus-within) figcaption { transform: none; transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
	.wp-block-image.is-style-kachel::before,
	.wp-block-image.is-style-kachel img,
	.wp-block-image.is-style-kachel figcaption { transition: none !important; transform: none !important; }
}

/* Editor: Text gut sichtbar unter dem Bild, normal anklickbar und bearbeitbar */
.editor-styles-wrapper .wp-block-image.is-style-kachel figcaption {
	margin: 0;
	padding: .7rem .75rem .8rem;
	background: var(--fc-pink);
	color: #fff;
	text-align: center;
	font-size: .85rem;
	line-height: 1.45;
}
.editor-styles-wrapper .wp-block-image.is-style-kachel figcaption strong { letter-spacing: .3em; margin-bottom: .3rem; }
.fc-inspiration__text { margin-top: var(--wp--preset--spacing--40) !important; max-width: 46rem !important; margin-inline: auto !important; }

/* Service – Linienraster */
.is-style-rahmen-raster {
	border-top: 1px solid var(--fc-pink);
	border-left: 1px solid var(--fc-pink);
}
.is-style-rahmen-raster > * {
	margin: 0 !important;
	border-right: 1px solid var(--fc-pink);
	border-bottom: 1px solid var(--fc-pink);
}
.fc-karte {
	padding: 1.75rem clamp(1rem, 3vw, 2.6rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.is-style-rahmen-raster > :nth-child(odd):last-child { grid-column: 1 / -1; }
.fc-karte > * { margin-block: 0 !important; }
.fc-karte > * + * { margin-top: .9rem !important; }
.fc-karte h4 { margin-bottom: .25rem !important; }
.fc-karte p { font-size: .9rem; }
.fc-karte__link { font-weight: 600; }

/* Kundenstimmen */
.fc-feedback .wp-block-quote {
	margin: 0;
	padding: 0 0 0 3.2rem;
	position: relative;
}
.fc-feedback .wp-block-quote::before {
	content: "//";
	position: absolute;
	left: 0; top: -2.4rem;
	font-family: var(--wp--preset--font-family--lora);
	font-style: italic;
	font-size: 3rem;
	line-height: 1;
	color: var(--fc-pink);
	letter-spacing: -.1em;
}
.fc-feedback .wp-block-quote p {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -.02em;
}
.fc-feedback .wp-block-quote cite {
	display: block;
	margin-top: 1.75rem;
	font-style: normal;
	font-size: .9rem;
	line-height: 1.6;
	color: var(--fc-pink);
	font-weight: 600;
}
.fc-feedback .wp-block-quote cite::first-line { color: #000; font-weight: 400; }

.is-style-slider { padding-top: 2.4rem; }
body:not(.editor-styles-wrapper) .is-style-slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
body:not(.editor-styles-wrapper) .is-style-slider::-webkit-scrollbar { display: none; }
body:not(.editor-styles-wrapper) .is-style-slider > * {
	flex: 0 0 100%;
	scroll-snap-align: start;
	margin: 0 !important;
}
.editor-styles-wrapper .is-style-slider > * + * { margin-top: 3.5rem; }

.fc-slider-punkte {
	display: flex;
	gap: .6rem;
	margin-top: 1.75rem;
	padding-left: 3.2rem;
}
.fc-slider-punkte button {
	width: 10px; height: 10px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--fc-pink);
	background: transparent;
	cursor: pointer;
	transition: background-color .2s;
}
.fc-slider-punkte button[aria-current="true"] { background: var(--fc-pink); }

/* Kontakt */
.fc-kontakt h3 { margin-bottom: .25rem; }
.fc-kontakt h3 + p { margin-top: 0; font-size: .9rem; }

.fc-form { margin-top: 1.5rem; }
.fc-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.4rem 1.25rem;
}
.fc-form__feld { margin: 0; display: flex; flex-direction: column; }
.fc-form__feld--nachricht { grid-column: 1 / -1; }
.fc-form label { font-size: .85rem; font-weight: 500; margin-bottom: .2rem; }
.fc-form input,
.fc-form textarea {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	width: 100%;
	padding: .45rem 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--fc-pink);
	border-radius: 0;
	transition: border-color .2s, background-color .2s;
}
.fc-form textarea { resize: vertical; min-height: 5.5rem; }
.fc-form input:focus,
.fc-form textarea:focus {
	outline: none;
	border-bottom-width: 2px;
	background: rgb(255 255 255 / .3);
}
.fc-form__hinweis { font-size: .8rem; opacity: .8; margin-top: 1.4rem; }
.fc-form__absenden { display: flex; justify-content: flex-start; margin-top: 1.25rem; }
.fc-form__absenden .wp-element-button { cursor: pointer; font-family: inherit; }
.fc-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fc-form__meldung {
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--fc-pink);
	background: rgb(255 255 255 / .45);
	font-size: .95rem;
}
.fc-form__meldung p { margin: 0; }
.fc-form__meldung ul { margin: .5rem 0 0; padding-left: 1.2rem; }
@media (max-width: 600px) { .fc-form__grid { grid-template-columns: 1fr; } }

/* --- Inhaltsseiten (Impressum etc.) -------------------------------------- */
/* Fließtext auf normalen Seiten lesbar halten – Sektionen (alignfull/alignwide) dürfen breit bleiben */
.fc-seite > .wp-block-post-title,
.fc-seite .wp-block-post-content > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) { max-width: 880px; }
.fc-seite { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.fc-seite h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-top: 2.5em; }

/* --- Impressum & Datenschutz ---------------------------------------- */
.fc-rechtliches + .fc-rechtliches { padding-top: clamp(4rem, 8vw, 9rem); }
.fc-rechtliches h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.fc-rechtliches h3 {
	font-family: var(--wp--preset--font-family--lora);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	letter-spacing: -.02em;
	margin-top: 3rem;
}
.fc-rechtliches h4 {
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: -.02em;
	margin-top: 2.25rem;
	margin-bottom: .5rem;
}
.fc-rechtliches h5 {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--schwarz);
	letter-spacing: -.02em;
	margin-top: 1.5rem;
	margin-bottom: .35rem;
}
.fc-rechtliches :is(h4, h5) + p { margin-top: 0; }
.fc-rechtliches p, .fc-rechtliches li { line-height: 1.65; }
.fc-rechtliches ul { padding-left: 1.2rem; }
.fc-rechtliches li + li { margin-top: .6rem; }
.fc-rechtliches a { overflow-wrap: anywhere; }
.fc-quelle { font-size: .8rem; opacity: .7; margin-top: 2.5rem !important; }

/* --- Footer ------------------------------------------------------------- */
.fc-footer {
	border-top: 1px solid var(--fc-pink);
	margin-top: var(--wp--preset--spacing--60);
	padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

/* Feste Social-Leiste rechts */
.wp-block-social-links.is-style-seitenleiste { gap: 4px; }
.wp-block-social-links.is-style-seitenleiste .wp-social-link {
	background: var(--fc-pink) !important;
	color: #fff !important;
	border-radius: 0;
	margin: 0;
}
.wp-block-social-links.is-style-seitenleiste .wp-social-link a { padding: .4rem; }
.wp-block-social-links.is-style-seitenleiste .wp-social-link svg { width: 22px; height: 22px; }
body:not(.editor-styles-wrapper) .wp-block-social-links.is-style-seitenleiste {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	flex-direction: column;
	z-index: 40;
	margin: 0;
}
@media (max-width: 600px) {
	.wp-block-social-links.is-style-seitenleiste .wp-social-link svg { width: 18px; height: 18px; }
}

/* --- Einflug-Animationen (nur Frontend; Klasse fc-js setzt ein Inline-Skript im <head>) */
/* 1) Vorab unsichtbar, damit beim Laden nichts aufblitzt */
.fc-js:not(.fc-alles-zeigen) :is(
	.fc-header__inner > *,
	.fc-sektion:not(.fc-rechtliches) > :not(.wp-block-columns):not(.fc-kacheln),
	.fc-sektion:not(.fc-rechtliches) > .wp-block-columns > .wp-block-column > :not(.is-style-rahmen-raster),
	.is-style-rahmen-raster > *,
	.fc-kacheln > *
):not(.ist-sichtbar) { opacity: 0; }

/* 2) Ausgangslage je Richtung, dann weich an den Platz */
.fc-einflug {
	transition:
		opacity 1.25s ease var(--fc-verzoegerung, 0s),
		transform 1.25s cubic-bezier(.2, .7, .2, 1) var(--fc-verzoegerung, 0s);
}
.fc-einflug:not(.ist-sichtbar).fc-von-oben        { transform: translateY(60px); }
.fc-einflug:not(.ist-sichtbar).fc-von-unten       { transform: translateY(-40px); }
.fc-einflug:not(.ist-sichtbar).fc-von-unten-klein { transform: translateY(-24px); }
.fc-einflug:not(.ist-sichtbar).fc-von-links       { transform: translateX(-80px); }
.fc-einflug:not(.ist-sichtbar).fc-von-rechts      { transform: translateX(80px); }
.fc-einflug.ist-sichtbar { opacity: 1; transform: none; }
/* Kachel-Zoom/Overlay nicht verzögern */
.wp-block-image.is-style-kachel.fc-einflug.ist-sichtbar {
	transition: opacity 1.25s ease var(--fc-verzoegerung, 0s), transform 1.25s cubic-bezier(.2, .7, .2, 1) var(--fc-verzoegerung, 0s);
}
/* Wartende Elemente (z. B. „von rechts“) dürfen die Seite nicht breiter machen –
   sonst rutscht auf dem Handy die feste Social-Leiste aus dem Bild.
   clip (statt hidden) lässt den Sticky-Header intakt. */
body, .wp-site-blocks { overflow-x: clip; }
@media (max-width: 600px) {
	.fc-einflug:not(.ist-sichtbar).fc-von-links  { transform: translateX(-32px); }
	.fc-einflug:not(.ist-sichtbar).fc-von-rechts { transform: translateX(32px); }
}

@media (prefers-reduced-motion: reduce) {
	.fc-einflug { transition: none; transform: none !important; }
}

/* --- Responsive Feinschliff --------------------------------------------- */
html[lang^="de"] .wp-block-heading { -webkit-hyphens: auto; hyphens: auto; }
.wp-block-button__link { white-space: nowrap; }
.fc-karte h4 { font-size: clamp(1.25rem, 1.7vw, 1.75rem); }

@media (max-width: 1024px) {
	.fc-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
	.is-style-rahmen-raster { grid-template-columns: minmax(0, 1fr) !important; }
	.fc-feedback .wp-block-quote { padding-left: 2.4rem; }
	.fc-slider-punkte { padding-left: 2.4rem; }
}
